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'