diff --git a/App.vue b/App.vue index cc80dfe..7954cff 100644 --- a/App.vue +++ b/App.vue @@ -11,8 +11,8 @@ method: 'get', params:'' }).then(res => { - - if (res.code == 200&&res.msg &&res.msg != version){ + console.log(res,1444); + if (res.code == 200 && res.data &&res.data != version){ uni.showModal({ title:'版本升级', content:'新版本上线了,根据您自己的选择是否升级', diff --git a/config.js b/config.js index 43616ea..8bf720f 100644 --- a/config.js +++ b/config.js @@ -1,7 +1,7 @@ // 应用全局配置 module.exports = { - baseUrl: 'https://www.nuoyunr.com/admin-api', - //baseUrl: 'http://127.0.0.1:48080/admin-api', + //baseUrl: 'https://www.nuoyunr.com/admin-api', + baseUrl: 'http://127.0.0.1:48080/admin-api', imagesUrl: 'http://www.nuoyunr.com/lananRsc', baseImageUrl: 'https://www.nuoyunr.com/minio', // 应用信息 diff --git a/pages.json b/pages.json index e85bfd6..ebd032c 100644 --- a/pages.json +++ b/pages.json @@ -337,6 +337,14 @@ "navigationStyle": "custom" } + }, + { + "path" : "pages/index/selectProject", + "style" : + { + "navigationBarTitleText" : "选择项目", + "navigationStyle": "custom" + } } ], "globalStyle": { diff --git a/pages/Login/login.vue b/pages/Login/login.vue index 54615d3..8f235e5 100644 --- a/pages/Login/login.vue +++ b/pages/Login/login.vue @@ -212,13 +212,14 @@ }); console.log('员工'); request({ - url: '/getJcWorkerInfo', + url: '/rescue/getJcWorkerInfo', method: 'get', }).then((res)=>{ + console.log(res,219219); if(res.code == 200){ - uni.setStorageSync('staffinfo',res.user) - uni.setStorageSync('partnerId',res.partnerInfo.partnerId) + uni.setStorageSync('staffinfo',res.data.user) + uni.setStorageSync('partnerId',res.data.partnerId) uni.setStorageSync('roleSelect','worker') uni.hideLoading(); uni.redirectTo({ diff --git a/pages/index/Neworder.vue b/pages/index/Neworder.vue index e68dd40..76a2034 100644 --- a/pages/index/Neworder.vue +++ b/pages/index/Neworder.vue @@ -101,7 +101,13 @@ - + + 检测流程 + + + + + @@ -150,6 +156,7 @@ showxin:false, showzhi:false, skuId:0, + inspectionWorkNodes:[], columns: [], options:[], nature:[], @@ -171,12 +178,21 @@ unitName:'', kehui:'', naturetext:'', - customerData:[] + customerData:[], + inspectionWorkNodeStr:"" } }, onLoad() { this.getinitialize() + uni.$on('selectProject', (data) => { + this.inspectionWorkNodes = data + for (var i = 0; i < this.inspectionWorkNodes.length; i++) { + this.inspectionWorkNodeStr = this.inspectionWorkNodeStr + this.inspectionWorkNodes[i].projectName +" " + this.inspectionWorkNodes[i].orderNum = i+1 + } + + }); }, onShow() { @@ -275,6 +291,11 @@ this.zhilist.push(reszhi.data) }, + toSelectProject(){ + uni.navigateTo({ + url: '/pages/index/selectProject' + }) + }, async getgoodes(){ if(this.carNum == ''|| this.customerSource == "" || this.skuId == ''){ uni.showToast({ @@ -283,7 +304,13 @@ }) return } - + if(this.inspectionWorkNodes.length == 0){ + uni.showToast({ + title:'请选择检测流程!', + icon:'none' + }) + return + } let data = { partnerId:uni.getStorageSync('partnerId'), @@ -298,6 +325,7 @@ customerSource:this.customerSource, skuId :this.skuId, carNature:this.carNature, + inspectionWorkNodes:this.inspectionWorkNodes } let res = await request({ diff --git a/pages/index/ordermanage.vue b/pages/index/ordermanage.vue index 19abd00..a3a8294 100644 --- a/pages/index/ordermanage.vue +++ b/pages/index/ordermanage.vue @@ -38,7 +38,7 @@ {{item.goodsName}} - 接待员:{{item.workerName}} + 施工人员:{{item.workerName}} diff --git a/pages/index/selectProject.vue b/pages/index/selectProject.vue new file mode 100644 index 0000000..c466af8 --- /dev/null +++ b/pages/index/selectProject.vue @@ -0,0 +1,178 @@ + + + + + diff --git a/pages/staff/staff.vue b/pages/staff/staff.vue index d672a79..eea04e7 100644 --- a/pages/staff/staff.vue +++ b/pages/staff/staff.vue @@ -104,14 +104,18 @@ pageSize: 20,//一页多少张 totalPages: 0,//总数 tapList:[ + { + text:"待接受", + value:"1" + }, { text:"进行中", - value:"0" + value:"2" }, { text:"已完成", - value:"1", + value:"3", } ] } @@ -148,7 +152,7 @@ }, async getList(){ let res = await request({ - url:'/partnerOwn/partner/inspectionList', + url:'/system/info/geStelectInspection', method: 'get', params:{ partnerId:this.partnerId,