27 lines
753 B
JavaScript
27 lines
753 B
JavaScript
// 引入 request 文件
|
|
import request from '@/request/index.js'
|
|
|
|
// 以下 api 为博主项目示例,实际与项目相匹配
|
|
|
|
// 查询服务类型
|
|
export const getServiceTree = () => {
|
|
return request({
|
|
url: `${uni.getStorageSync('serverUrl')}/nuIpadApi/nuConfigServiceCategory/getServiceTree`,
|
|
method: 'get',
|
|
})
|
|
}
|
|
// 查询表格
|
|
export const getNclist = (nuId,customerId) => {
|
|
return request({
|
|
url: `${uni.getStorageSync('serverUrl')}/nuIpadApi/nuBizNuCustomerServer/getNclist?nuId=${nuId}&customerId=${customerId}`,
|
|
method: 'get',
|
|
})
|
|
}
|
|
// 保存表格
|
|
export const addBatch = (params) => {
|
|
return request({
|
|
url: `${uni.getStorageSync('serverUrl')}/nuIpadApi/nuBizNuCustomerServer/addBatch`,
|
|
method: 'post',
|
|
data: params,
|
|
})
|
|
} |