盘点执行按钮 盘点状态属性修改

master
Mr.sun 2 years ago
parent 75f55db3c4
commit 0f19bd8a4a
  1. 15
      src/views/libraryManage/inventory/InventoryEntry.vue

@ -25,7 +25,7 @@
<el-form-item label="盘点状态">
<el-select
v-model="enterForm.invType"
v-model="enterForm.invStatus"
placeholder="请选择盘点状态"
clearable
style="width: 240px"
@ -83,7 +83,7 @@
<el-col :span="1.5">
<el-button
type="primary"
:disabled="!handleSelect.length != 0"
:disabled="disabledFlag"
@click="generateThePlan"
>执行</el-button>
</el-col>
@ -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'

Loading…
Cancel
Save