From 9b4999fe001bd50efe3afc3a15b7fcc998ab9ad9 Mon Sep 17 00:00:00 2001 From: jjLv <1981429112@qq.com> Date: Mon, 25 Nov 2024 14:02:34 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E8=AF=95=E5=AE=A1=E6=A0=B8=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E8=81=94=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../testExamine/component/addToolsApply.vue | 387 ++++++++++++++++++ .../testExamine/component/homeApply.vue | 68 ++- .../testExamine/component/queryToolsApply.vue | 6 +- .../material/repair/testExamine/index.vue | 26 +- 4 files changed, 449 insertions(+), 38 deletions(-) create mode 100644 src/views/material/repair/testExamine/component/addToolsApply.vue diff --git a/src/views/material/repair/testExamine/component/addToolsApply.vue b/src/views/material/repair/testExamine/component/addToolsApply.vue new file mode 100644 index 00000000..3780c384 --- /dev/null +++ b/src/views/material/repair/testExamine/component/addToolsApply.vue @@ -0,0 +1,387 @@ + + + + diff --git a/src/views/material/repair/testExamine/component/homeApply.vue b/src/views/material/repair/testExamine/component/homeApply.vue index f460efd6..0a4b55d7 100644 --- a/src/views/material/repair/testExamine/component/homeApply.vue +++ b/src/views/material/repair/testExamine/component/homeApply.vue @@ -66,21 +66,21 @@ 通过 驳回 @@ -200,16 +200,16 @@ type="primary" @click="handleUpdate(scope.row)" v-if="scope.row.status != '2'" - >通过 + >审核 - 驳回 - + --> @@ -304,7 +304,8 @@ export default { leaseApplyDetails: [], // 领料任务详情数据 leaseApplyData: {}, - sendTemp: [], + passTemp: [], + faliTemp: [], }; }, created() { @@ -313,10 +314,14 @@ export default { methods: { // 多选框选中数据 handleSelectionChange(selection) { - this.sendTemp = []; - this.ids = selection.map((item) => item.id); + this.passTemp = []; + this.failTemp = []; + this.ids = selection.map((item) => item.taskId); selection.forEach((item) => { - this.sendTemp.push({ id: item.id, taskId: item.taskId }); + this.passTemp.push({ status: "1",taskId:item.taskId, }); + }); + selection.forEach((item) => { + this.failTemp.push({ status: "2",taskId:item.taskId, }); }); this.single = selection.length != 1; this.multiple = !selection.length; @@ -359,17 +364,48 @@ export default { this.queryParams.keyword = ""; this.handleQuery(); }, - /** 新增按钮操作 */ - handleAdd() { - this.$emit("addTools"); + /** 通过按钮操作 */ + handlePassAll() { + if (this.ids.length == 0) { + this.$alert("请至少勾选一条审核数据", "提示", { + type: "warning", + confirmButtonText: "确定", + }); + return; + } else { + auditPass(this.passTemp).then((response) => { + if (response.code == 200) { + this.$modal.msgSuccess("通过成功"); + } + this.getTaskInfo(); + }); + } }, + /** 驳回按钮操作 */ + handleFailAll() { + if (this.ids.length == 0) { + this.$alert("请至少勾选一条审核数据", "提示", { + type: "warning", + confirmButtonText: "确定", + }); + return; + } else { + auditPass(this.failTemp).then((response) => { + if (response.code == 200) { + this.$modal.msgSuccess("驳回成功"); + } + this.getTaskInfo(); + }); + } + }, + /** 查看按钮操作 */ handleView(row) { this.$emit("queryTools", row.taskId, row.id, row); }, /** 修改按钮操作 */ handleUpdate(row) { - this.$emit("editTools", row.taskId, row.id); + this.$emit("addTools", row.taskId, row.id,row); }, //----消息通知 diff --git a/src/views/material/repair/testExamine/component/queryToolsApply.vue b/src/views/material/repair/testExamine/component/queryToolsApply.vue index ceab022f..dc314320 100644 --- a/src/views/material/repair/testExamine/component/queryToolsApply.vue +++ b/src/views/material/repair/testExamine/component/queryToolsApply.vue @@ -99,7 +99,7 @@ @@ -147,7 +147,7 @@ - + @@ -27,13 +26,13 @@