diff --git a/api/api.js b/api/api.js index bb63a76..5021fb2 100644 --- a/api/api.js +++ b/api/api.js @@ -66,8 +66,22 @@ const install = (Vue, vm) => { isparams: false }) + // 客服派单接口 + + + // 获取物料列表数据 goods/list + let getGoodsList = (params) => http.get('/goods/list', params , { + authorization: false, + isparams: false + }) + + // 巡检计划列表 / + let getDictionaryList = (params) => http.get('/blade-system/dict/dictionary?code=flow', params , { + authorization: false, + isparams: false + }) // 将各个定义的接口名称,统一放进对象挂载到vm.$u.api(因为vm就是this,也即this.$u.api)下 - vm.$u.api = { getTenantInfo, login, logout, register, getworkbench, getLoginRecords, getEditRecords, subEditRecords, getChildList, getDeviceList,workOrderSave,getWorkOrderRecords,getBreakdownInfo,workOrderupdate,evaluateSign,getRepairPersons }; + vm.$u.api = { getTenantInfo, login, logout, register, getworkbench, getLoginRecords, getEditRecords, subEditRecords, getChildList, getDeviceList,workOrderSave,getWorkOrderRecords,getBreakdownInfo,workOrderupdate,evaluateSign,getRepairPersons,getGoodsList,getDictionaryList }; } export default { diff --git a/common/betone_components/betone-list.vue b/common/betone_components/betone-list.vue index 0961249..436852b 100644 --- a/common/betone_components/betone-list.vue +++ b/common/betone_components/betone-list.vue @@ -40,13 +40,13 @@ @click.stop="goPage(item, 'breakdownView')">查看 - + 派单 接单确认 + type="primary" @click="orderConfirm(item)">接单确认 修改 - + 查看位置 @@ -80,10 +80,11 @@ - - + + + @@ -166,7 +167,7 @@ export default { size: this.page.pageSize, //条数 dataType: this.dataTypes,//数据权限 // ...this.searchInfo - reportUnit: this.searchInfo.reportUnit + // reportUnit: this.searchInfo.reportUnit } this.$u.api.getWorkOrderRecords(query).then(res => { @@ -251,7 +252,12 @@ export default { // 确认派单 sendOrdersConfirm(e) { console.log(44444,e); - // 确定派单 + // 确定派单 传参 + // {"id":"1857232935845892097","reportUnit":"","maintenanceTeam":"1847218701580435458","dispatchTime":"2024-11-15 00:00:00","planCompleteTime":"","repairPerson":null,"status":1,"remark":""} + + }, + // 维修人员 接单确认 + orderConfirm(row){ }, // 获取维修人员列表 diff --git a/pages.json b/pages.json index 6f5f95a..91184d3 100644 --- a/pages.json +++ b/pages.json @@ -81,20 +81,6 @@ } } }, - { - "path": "pages/submission/materialSelect", - "style": { - "navigationBarTitleText": "物料选择", - "enablePullDownRefresh": false, - "navigationBarTextStyle": "black", - "navigationBarBackgroundColor": "rgba(248,248,248,1)", - "app-plus": { - "titleNView": { - - } - } - } - }, { "path": "pages/submission/evaluate", "style": { @@ -136,6 +122,20 @@ "navigationStyle": "custom", "navigationBarTextStyle": "white" } + }, + { + "path": "pages/inspection/records", + "style": { + "navigationBarTitleText": "巡检计划", + "enablePullDownRefresh": false, + "navigationBarTextStyle": "black", + "navigationBarBackgroundColor": "rgba(248,248,248,1)", + "app-plus": { + "titleNView": { + + } + } + } } ], "globalStyle": { diff --git a/pages/home/index.vue b/pages/home/index.vue index d28e89d..918a039 100644 --- a/pages/home/index.vue +++ b/pages/home/index.vue @@ -53,7 +53,7 @@ export default { name: "实验室巡检", img: require("@/static/images/home/lab_xj.png"), num: 10, - pagePath: '' + pagePath: '/pages/inspection/records' }, { name: "报送记录", diff --git a/pages/inspection/records.vue b/pages/inspection/records.vue new file mode 100644 index 0000000..d1a4c85 --- /dev/null +++ b/pages/inspection/records.vue @@ -0,0 +1,326 @@ + + + + + \ No newline at end of file diff --git a/pages/register/index.vue b/pages/register/index.vue index 5f7887c..5db66a9 100644 --- a/pages/register/index.vue +++ b/pages/register/index.vue @@ -180,7 +180,6 @@ export default { }, formSubmit() { - console.log("form表单的提交", this.registerInfo); // uni.navigateTo({ // url: "/pages/register/registerSuccess", // }); diff --git a/pages/submission/materialSelect.vue b/pages/submission/materialSelect.vue deleted file mode 100644 index 3db47c7..0000000 --- a/pages/submission/materialSelect.vue +++ /dev/null @@ -1,78 +0,0 @@ - - - \ No newline at end of file diff --git a/pages/submission/recordsdetails.vue b/pages/submission/recordsdetails.vue index 8b3d185..c2572d2 100644 --- a/pages/submission/recordsdetails.vue +++ b/pages/submission/recordsdetails.vue @@ -1,22 +1,26 @@ \ No newline at end of file diff --git a/static/images/submit/wuliao.png b/static/images/submit/wuliao.png new file mode 100644 index 0000000..8434c3b Binary files /dev/null and b/static/images/submit/wuliao.png differ diff --git a/uni_modules/uview-ui/components/u-number-box/u-number-box.vue b/uni_modules/uview-ui/components/u-number-box/u-number-box.vue index 54a679e..3b8e8bf 100644 --- a/uni_modules/uview-ui/components/u-number-box/u-number-box.vue +++ b/uni_modules/uview-ui/components/u-number-box/u-number-box.vue @@ -10,7 +10,7 @@