修改bug

prod
wangwei 2 years ago
parent a94c6a5e2c
commit 7cefc5a438

@ -11,7 +11,6 @@
>开始盘点 >开始盘点
</el-button> </el-button>
<el-button <el-button
v-if="countType != 2"
type="primary" type="primary"
:disabled="this.codeArray.length > 0" :disabled="this.codeArray.length > 0"
@click.native="startCount()" @click.native="startCount()"
@ -503,6 +502,7 @@ export default {
// //
this.saveOrder(1); this.saveOrder(1);
} }
this.formData.invSpaceCode = JSON.parse(localStorage.getItem('key'));
this.selectInvProductVisible = false; this.selectInvProductVisible = false;
}, },
getRowKeys(row) { getRowKeys(row) {
@ -515,6 +515,7 @@ export default {
}); });
}, },
startCount() { startCount() {
localStorage.setItem('key', JSON.stringify(this.formData.invSpaceCode));
this.countProductList = []; this.countProductList = [];
if (this.countType === 0) { if (this.countType === 0) {
if (isBlank(this.formData.invCode)) { if (isBlank(this.formData.invCode)) {
@ -554,7 +555,7 @@ export default {
} }
}); });
} else if (this.countType === 2) { } else if (this.countType === 2) {
if (isBlank(this.formData.invStorageCode) || isBlank(this.formData.invWarehouseCode)) { if (isBlank(this.formData.invCode) || isBlank(this.formData.invSpaceCode)) {
this.$message.warning("请先选盘点仓库"); this.$message.warning("请先选盘点仓库");
return; return;
} }

Loading…
Cancel
Save