From 0f19bd8a4aff7ca8791ca97415beaf9f154d5890 Mon Sep 17 00:00:00 2001 From: "Mr.sun" <2290907227@qq.com> Date: Thu, 11 Apr 2024 11:46:30 +0800 Subject: [PATCH] =?UTF-8?q?=E7=9B=98=E7=82=B9=E6=89=A7=E8=A1=8C=E6=8C=89?= =?UTF-8?q?=E9=92=AE=20=20=E7=9B=98=E7=82=B9=E7=8A=B6=E6=80=81=E5=B1=9E?= =?UTF-8?q?=E6=80=A7=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../libraryManage/inventory/InventoryEntry.vue | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/src/views/libraryManage/inventory/InventoryEntry.vue b/src/views/libraryManage/inventory/InventoryEntry.vue index eb588d8..98ad8d0 100644 --- a/src/views/libraryManage/inventory/InventoryEntry.vue +++ b/src/views/libraryManage/inventory/InventoryEntry.vue @@ -25,7 +25,7 @@ 执行 @@ -166,6 +166,7 @@ export default { // invWay: 'open' invStatus: 'init' }, + disabledFlag: 'true', selectData: [], tableForm: { tableData: [] }, handleSelect: [], @@ -189,6 +190,7 @@ export default { queryTable() { // if (!this.enterForm.invOrderNo) return this.$message("单据编号必填!"); this.loading = true + this.disabledFlag = true // if (this.value1 !== null && this.value1 !== 'null' && this.value1 !== undefined) { // this.enterForm.execTime = this.value1[0] // this.enterForm.endTime = this.value1[1] @@ -204,6 +206,7 @@ export default { if (response.code === 200) { this.loading = false this.tableForm.tableData = response.rows + this.disabledFlag = true } }) .catch(() => { @@ -212,8 +215,14 @@ export default { }, // 表格复选框选中 handleselection(val) { + this.disabledFlag = false this.selectData = val this.handleSelect = val.map((ele) => ele.id) + val.forEach((item) => { + if (item.invStatus !== 'init') { + this.disabledFlag = true + } + }) }, // 重置 resetQuery() { @@ -303,7 +312,7 @@ export default { }, // 取消盘点 calce() { - this.$confirm('是否确认删除所选明细?', '提示', { + this.$confirm('是否取消盘点', '提示', { confirmButtonText: '确定', cancelButtonText: '取消', type: 'warning'