From 34af59a29705597782f5e01c68c058a67228b7da Mon Sep 17 00:00:00 2001 From: bb_pan Date: Thu, 18 Dec 2025 14:39:39 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../warehousing/newTools/index.vue | 94 +++++++++++++------ 1 file changed, 63 insertions(+), 31 deletions(-) diff --git a/sgzb-ui/src/views/warehouseManage/warehousing/newTools/index.vue b/sgzb-ui/src/views/warehouseManage/warehousing/newTools/index.vue index 7c466621..36dfc335 100644 --- a/sgzb-ui/src/views/warehouseManage/warehousing/newTools/index.vue +++ b/sgzb-ui/src/views/warehouseManage/warehousing/newTools/index.vue @@ -352,7 +352,7 @@ :min="0" :max="row.checkNum" :precision="0" - :disabled="!showHandle" + :disabled="!showHandle || row.status == 1" style="width: 100%" /> @@ -529,10 +529,15 @@ prop="unitName" /> + { - item.inputNum = item.checkNum - }) + if (this.showHandle) { + this.detailTableList.forEach(item => { + item.inputNum = item.inputNum ? item.inputNum : item.checkNum + }) + } }).catch(() => { this.loading = false }) @@ -755,13 +762,13 @@ export default { }, /** 修改按钮操作 */ handleUpdate(row) { + this.showHandle = true this.query.pageNum = 1 this.query.pageSize = 10 this.query.taskId = row.taskId this.query.dictName = undefined this.getDialogTable() this.open = true - this.showHandle = true this.title = '审核' }, @@ -775,28 +782,35 @@ export default { this.$message.error('当前设备未编码,无法审核!') return } - let obj = { - taskId: this.query.taskId, - maId: row.maId, - inputNum: row.inputNum, - maCode: row.maCode, - typeId: row.typeId, - num: row.num, - } - - let param = { - taskId: this.query.taskId, - checkResult: '1', - inputRecordList: [obj], - } - changePutinStatus(param).then((response) => { - if (response.code == 200) { - this.$modal.msgSuccess('审批成功') - this.getDialogTable() - this.getList() - } else { - this.$modal.msgSuccess('审批失败') + // 增加二次确认弹框 + this.$confirm('是否确定通过?', '提示', { + confirmButtonText: '确定', + cancelButtonText: '取消', + type: 'warning' + }).then(() => { + let obj = { + taskId: this.query.taskId, + maId: row.maId, + inputNum: row.inputNum, + maCode: row.maCode, + typeId: row.typeId, + num: row.num, } + + let param = { + taskId: this.query.taskId, + checkResult: '1', + inputRecordList: [obj], + } + changePutinStatus(param).then((response) => { + if (response.code == 200) { + this.$modal.msgSuccess('审批成功') + this.getDialogTable() + this.getList() + } else { + this.$modal.msgSuccess('审批失败') + } + }) }) }, passAll() { @@ -815,11 +829,16 @@ export default { }) } catch (error) {} if (isCode) return + this.$confirm('是否确定通过?', '提示', { + confirmButtonText: '确定', + cancelButtonText: '取消', + type: 'warning' + }).then(() => { this.ids.forEach((item) => { item.taskId = this.query.taskId item.typeId = item.typeId item.maId = item.maId - item.inputNum = item.checkNum + item.inputNum = item.inputNum item.maCode = item.maCode }) let param = { @@ -836,6 +855,7 @@ export default { this.$modal.msgSuccess('审批失败') } }) + }) }, //拒绝 refused(row) { @@ -846,11 +866,16 @@ export default { this.$message.error('当前设备未编码,无法审核!') return } + this.$confirm('是否确定不通过?', '提示', { + confirmButtonText: '确定', + cancelButtonText: '取消', + type: 'warning' + }).then(() => { let obj = { taskId: this.query.taskId, maId: row.maId, maCode: row.maCode, - inputNum: row.checkNum, + inputNum: row.inputNum, typeId: row.typeId, } @@ -868,6 +893,7 @@ export default { this.$modal.msgSuccess('审批失败') } }) + }) }, refusedAll() { console.log(this.query.taskId) @@ -886,11 +912,16 @@ export default { } catch (error) {} if (isCode) return + this.$confirm('是否确定不通过?', '提示', { + confirmButtonText: '确定', + cancelButtonText: '取消', + type: 'warning' + }).then(() => { this.ids.forEach((item) => { item.taskId = this.query.taskId item.typeId = item.typeId item.maId = item.maId - item.inputNum = item.checkNum + item.inputNum = item.inputNum item.maCode = item.maCode }) let param = { @@ -908,16 +939,17 @@ export default { this.$modal.msgSuccess('审批失败') } }) + }) }, //查看操作 handleView(row) { + this.showHandle = false this.query.pageNum = 1 this.query.pageSize = 10 this.query.dictName = null this.query.taskId = row.taskId this.getDialogTable() this.open = true - this.showHandle = false this.title = '查看' }, //获取入库单数据