diff --git a/pages.json b/pages.json index a358dccd..0330e249 100644 --- a/pages.json +++ b/pages.json @@ -1402,15 +1402,31 @@ "enablePullDownRefresh": false } - }, { + }, + { "path": "pages/projectEnd/qualityManage/listTow", "style": { "navigationBarTitleText": "", "enablePullDownRefresh": false } - } - + }, + { + "path": "pages/projectEnd/ukashManage/ukashManage", + "style": { + "navigationBarTitleText": "", + "enablePullDownRefresh": false, + "enablePullDownRefresh": true, + "onReachBottomDistance": 100 + } + }, + { + "path": "pages/projectEnd/ukashManage/materials", + "style": { + "navigationBarTitleText": "", + "enablePullDownRefresh": false + } + } ], // "subPackages":[{ // "root": "carManage", diff --git a/pages/projectEnd/projectIndex/projectIndex.vue b/pages/projectEnd/projectIndex/projectIndex.vue index 04246b3c..5bbd29b4 100644 --- a/pages/projectEnd/projectIndex/projectIndex.vue +++ b/pages/projectEnd/projectIndex/projectIndex.vue @@ -643,6 +643,11 @@ export default { url: '../../fileManage/fileManage' }) break + case 'ukashManage': + uni.navigateTo({ + url: '../../projectEnd/ukashManage/ukashManage' + }) + break case 'betonManage': uni.navigateTo({ url: '../betonManage/index' diff --git a/pages/projectEnd/qualityManage/addIssue.vue b/pages/projectEnd/qualityManage/addIssue.vue index 2c5249b0..c2697267 100644 --- a/pages/projectEnd/qualityManage/addIssue.vue +++ b/pages/projectEnd/qualityManage/addIssue.vue @@ -547,7 +547,9 @@ subListData: [], //分项工程 subsectionIndex: -1, //分部工程 subentryIndex: -1, ////分项工程 - unitEnterpriseId: "" + unitEnterpriseId: "", + taskId: '', //任务ID + itemId: '' // 任务子ID } }, onLoad(option) { @@ -560,9 +562,10 @@ this.getPersonUpdateList(); this.getProgressListData() console.log('lll', option.taskId, option.itemId) - this.form.taskId = option.taskId ? option.taskId : null - this.form.itemId = option.itemId ? option.itemId : null - + this.taskId = option.taskId + this.itemId = option.itemId + this.form.taskId = option.taskId + this.form.itemId = option.itemId }, @@ -1140,7 +1143,7 @@ //新增保存 - addSaveBtn() { + async addSaveBtn() { let arr = [], arr2 = []; @@ -1249,6 +1252,7 @@ data.measurePoints = pointArr.join(',') console.log('data.measurePoints=============', data.measurePoints); if (this.typeCheck == "type1") { + console.log(data); // 质量问题 this.sendRequest({ url: 'xmgl/qualityInspectionRecord/add', @@ -1274,6 +1278,8 @@ } }) } else { + console.log(this.taskId); + console.log(this.itemId); // 排查记录 let data2 = { dangerDesc: data.dangerDesc, @@ -1295,8 +1301,11 @@ subentryId: data.subentryId, //分项工程 floor: data.floor, //巡检楼层 addedDescription: data.addedDescription, //事件描述 + taskId: this.taskId || null, // 任务ID + itemId: this.itemId || null // 任务子ID } - this.sendRequest({ + console.log(data.taskId); + await this.sendRequest({ url: 'xmgl/qualityInspectionRecord/add', method: 'post', data: data2, @@ -1327,7 +1336,7 @@ this.typeCheck = value this.checkedTab = value - console.log('切换tab', this.typeCheck); + console.log('切换tab', this.form); // 重制内容 this.form = { regionId: "", // 检查部位 @@ -1354,6 +1363,8 @@ imageUrl: "", fileUrl: "", recordType: 1, + // taskId:'', + // itemId:'' }; this.issueName = '' this.checkPointName = "" diff --git a/pages/projectEnd/qualityManage/list.vue b/pages/projectEnd/qualityManage/list.vue index 5860201e..a059c5a7 100644 --- a/pages/projectEnd/qualityManage/list.vue +++ b/pages/projectEnd/qualityManage/list.vue @@ -1,5 +1,5 @@