|
|
|
|
@ -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' |
|
|
|
|
|