From b9e8f34fe9ee49c41ed2535de8c0ce25803a9c81 Mon Sep 17 00:00:00 2001 From: BianLzhaoMin <11485688+bianliangzhaomin123@user.noreply.gitee.com> Date: Thu, 11 Jul 2024 15:17:01 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=A4=84=E7=BD=AE=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E4=B8=8A=E4=BC=A0=EF=BC=8C=E6=8A=A5=E5=BA=9F=E9=A9=B3?= =?UTF-8?q?=E5=9B=9E=E7=AD=89=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sgzb-ui/src/components/AnnexUpload/index.vue | 148 ++++++++++++++++++ .../forecastWaste/auditingReturn/index.vue | 12 +- .../forecastWaste/listing/index.vue | 28 +++- .../scrapManage/scrap/disposition/index.vue | 61 ++++++-- .../toolsAcceptance/component/queryTools.vue | 2 - 5 files changed, 227 insertions(+), 24 deletions(-) create mode 100644 sgzb-ui/src/components/AnnexUpload/index.vue diff --git a/sgzb-ui/src/components/AnnexUpload/index.vue b/sgzb-ui/src/components/AnnexUpload/index.vue new file mode 100644 index 00000000..ceecacbc --- /dev/null +++ b/sgzb-ui/src/components/AnnexUpload/index.vue @@ -0,0 +1,148 @@ + + + + + diff --git a/sgzb-ui/src/views/scrapManage/forecastWaste/auditingReturn/index.vue b/sgzb-ui/src/views/scrapManage/forecastWaste/auditingReturn/index.vue index c496b762..17664602 100644 --- a/sgzb-ui/src/views/scrapManage/forecastWaste/auditingReturn/index.vue +++ b/sgzb-ui/src/views/scrapManage/forecastWaste/auditingReturn/index.vue @@ -13,6 +13,7 @@ type="primary" size="mini" @click="handleComplete" + v-if="isDetails == 0" >完成退料 @@ -49,7 +50,7 @@ @click="handleRevoke(data)" icon="el-icon-circle-close" style="color: #de3115" - v-if="data.num == 0" + v-if="data.num == 0 && isDetails == 0" > 撤回 @@ -365,6 +366,9 @@ export default { type: Object, default: () => null, }, + isDetails: { + default: 0, + }, }, data() { return { @@ -892,6 +896,12 @@ export default { } const res = await getScrapReturnCompleteApi(endBackParams) + + if (res.code == 200) { + this.$message.success('退料成功!') + this.dialogConfigReturn.outerVisible = false + this.$emit('closeReturnPage') + } console.log(res, '退料结果') // this.submitScrapParams.deptIds = [] diff --git a/sgzb-ui/src/views/scrapManage/forecastWaste/listing/index.vue b/sgzb-ui/src/views/scrapManage/forecastWaste/listing/index.vue index 7cd90dd5..ea10ca8e 100644 --- a/sgzb-ui/src/views/scrapManage/forecastWaste/listing/index.vue +++ b/sgzb-ui/src/views/scrapManage/forecastWaste/listing/index.vue @@ -82,14 +82,16 @@ @click="handleSubmitScrap(data)" >提交报废 - + >{{ + data.commit == 0 ? '驳回退料' : '退料详情' + }} - + @@ -227,6 +233,7 @@ export default { this.dialogConfig.outerWidth = '70%' this.dialogConfig.outerVisible = true }, + // 提交审批 handleSubmitScrap(row) { this.submitScrapParams.taskIdList = [] this.submitScrapParams.taskIdList.push(row.taskId) @@ -234,15 +241,22 @@ export default { this.dialogConfig.outerWidth = '50%' this.dialogConfig.outerVisible = true }, + // 审批详情 handleAuditing(row) { this.auditingList = row.scrapAuditorSetList this.dialogConfig.outerTitle = '审批详情' this.dialogConfig.outerWidth = '50%' this.dialogConfig.outerVisible = true }, + // 驳回 退料 handleReject(row) { - console.log(row, '驳回退料----') + if (row.commit == 0) { + this.pageContent = '驳回退料' + } else { + this.pageContent = '退料详情' + } this.sendParamsAuditing.taskId = row.taskId + this.isDetails = row.commit this.parentId = row.parentId this.temp = !this.temp }, @@ -316,6 +330,10 @@ export default { goBack() { this.temp = !this.temp }, + closeReturnPage() { + this.temp = !this.temp + this.$refs.listingTbRef.getList() + }, }, } diff --git a/sgzb-ui/src/views/scrapManage/scrap/disposition/index.vue b/sgzb-ui/src/views/scrapManage/scrap/disposition/index.vue index 5471b65e..fabc08ce 100644 --- a/sgzb-ui/src/views/scrapManage/scrap/disposition/index.vue +++ b/sgzb-ui/src/views/scrapManage/scrap/disposition/index.vue @@ -131,16 +131,27 @@