diff --git a/src/pages/modules/semifinished/semi-finished-check-search.vue b/src/pages/modules/semifinished/semi-finished-check-search.vue index 81ab4fd..1a4d01b 100644 --- a/src/pages/modules/semifinished/semi-finished-check-search.vue +++ b/src/pages/modules/semifinished/semi-finished-check-search.vue @@ -61,7 +61,7 @@
- +
@@ -80,7 +80,7 @@ 物料规格 数量 重量(kg) - 盘点数量 + 盘点重量 是否异常 盘点状态 盘点站台 @@ -100,7 +100,7 @@ {{e.material_spec}} {{e.qty | numeric(3)}} {{e.base_qty | numeric(3)}} - + {{ ['正常', '盘亏', '盘盈'][Number(e.check_resultI)] }} 生成 盘点中 @@ -109,7 +109,7 @@ 异常处理完成 确认完成 {{ e.checkpoint_id }} - {{ e.is_down }} + {{ ['未生成', '出库中', '回库中'][Number(e.is_down)] }} {{e.check_code}} 计划盘点 临时盘点 @@ -147,6 +147,19 @@ export default { disabled4: false } }, + computed: { + flag () { + let flag = false + if (this.dataList.length) { + this.dataList.map(el => { + if (el.fac_qty === '' || Number(el.fac_qty) < 0) { + flag = true + } + }) + } + return flag + } + }, created () { this._checkGetBcpStor() this._checkGetDtlAll() @@ -162,6 +175,9 @@ export default { async _checkGetDtlAll () { let res = await checkGetDtlAll(this.value1, this.date !== null ? dateTimeFtt(this.date[0]) : '', this.date !== null ? dateTimeFtt(this.date[1]) : '', this.material_code, this.storagevehicle_code, this.struct_code) this.dataList = [...res.data] + this.dataList.map(el => { + this.$set(el, 'fac_qty', '') + }) }, // 盘点位下拉框 async _checkGetPoint () { @@ -191,13 +207,7 @@ export default { // 盘点确认 async _checkConfirm () { this.disabled2 = true - let flag = false - this.dataList.map(el => { - if (el.fac_qty === '' || Number(el.fac_qty) < 0) { - flag = true - } - }) - if (flag) { + if (this.flag || this.dataList.length === 0) { this.disabled2 = false return }