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

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-form-item label="盘点状态">
<el-select <el-select
v-model="enterForm.invType" v-model="enterForm.invStatus"
placeholder="请选择盘点状态" placeholder="请选择盘点状态"
clearable clearable
style="width: 240px" style="width: 240px"
@ -83,7 +83,7 @@
<el-col :span="1.5"> <el-col :span="1.5">
<el-button <el-button
type="primary" type="primary"
:disabled="!handleSelect.length != 0" :disabled="disabledFlag"
@click="generateThePlan" @click="generateThePlan"
>执行</el-button> >执行</el-button>
</el-col> </el-col>
@ -166,6 +166,7 @@ export default {
// invWay: 'open' // invWay: 'open'
invStatus: 'init' invStatus: 'init'
}, },
disabledFlag: 'true',
selectData: [], selectData: [],
tableForm: { tableData: [] }, tableForm: { tableData: [] },
handleSelect: [], handleSelect: [],
@ -189,6 +190,7 @@ export default {
queryTable() { queryTable() {
// if (!this.enterForm.invOrderNo) return this.$message("!"); // if (!this.enterForm.invOrderNo) return this.$message("!");
this.loading = true this.loading = true
this.disabledFlag = true
// if (this.value1 !== null && this.value1 !== 'null' && this.value1 !== undefined) { // if (this.value1 !== null && this.value1 !== 'null' && this.value1 !== undefined) {
// this.enterForm.execTime = this.value1[0] // this.enterForm.execTime = this.value1[0]
// this.enterForm.endTime = this.value1[1] // this.enterForm.endTime = this.value1[1]
@ -204,6 +206,7 @@ export default {
if (response.code === 200) { if (response.code === 200) {
this.loading = false this.loading = false
this.tableForm.tableData = response.rows this.tableForm.tableData = response.rows
this.disabledFlag = true
} }
}) })
.catch(() => { .catch(() => {
@ -212,8 +215,14 @@ export default {
}, },
// //
handleselection(val) { handleselection(val) {
this.disabledFlag = false
this.selectData = val this.selectData = val
this.handleSelect = val.map((ele) => ele.id) this.handleSelect = val.map((ele) => ele.id)
val.forEach((item) => {
if (item.invStatus !== 'init') {
this.disabledFlag = true
}
})
}, },
// //
resetQuery() { resetQuery() {
@ -303,7 +312,7 @@ export default {
}, },
// //
calce() { calce() {
this.$confirm('是否确认删除所选明细?', '提示', { this.$confirm('是否取消盘点', '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'warning' type: 'warning'

Loading…
Cancel
Save