Commit 67e2ff56 by 张立顺

feat 功能开发

1 parent 9f556bfe
......@@ -18,7 +18,7 @@ export const appId = 'wx570d9331f9ace0bd'
* 4预发布
* 5cdptest
*/
let index = 2
let index = 1
const accountInfo = wx.getAccountInfoSync()
const systemInfo = wx.getSystemInfoSync()
const envName = accountInfo.miniProgram.envVersion
......
......@@ -346,6 +346,7 @@ module.exports = {
/**获取服务项目列表数据 */
getServiceItemList(data) {
return api.post('dj.api.carboutique.construction.item.group.list', data)
// return api.post('dj.api.carboutique.construction.item.group.list', data)
},
// 批量添加施工单
batchAdd(data) {
......@@ -366,19 +367,22 @@ module.exports = {
getQYTechnicianList(data) {
return api.post('dj.api.smartcarlife.roleTechnician.list.effective', data)
},
/**施工单状态统计 */
statByStatus(data) {
/**施工单状态统计 */
statByStatus(data) {
let params = data || {}
return api.post('dj.api.smartcarlife.construction.summary.status', {
...params
})
},
// 查询门店轻改录单设置
lightChangeSettingList(data){
lightChangeSettingList(data) {
let params = data || {}
return api.post('dj.api.smartcarlife.order.field.lightChange.setting.list', {
...params
})
return api.post(
'dj.api.smartcarlife.order.field.lightChange.setting.list',
{
...params
}
)
}
}
......@@ -289,7 +289,9 @@ Page({
},
// 获取服务项目数据
getServicesList() {
api.getServiceItemList({}).then(res => {
let { goodsList } = this.data
const subOrderCodeList = goodsList.map(item => item.subOrderCode)
api.getServiceItemList({ subOrderCodeList }).then(res => {
let { code, data, message } = res
if (code == 0) {
console.log(data, 'getServiceItemList')
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!