1.修复盘点部分bug

feature-order-fix
x_z 3 years ago
parent cb8286fbd1
commit 38cd608cab

@ -61,14 +61,12 @@
<el-table v-loading="loading" :data="list" style="width: 100%"> <el-table v-loading="loading" :data="list" style="width: 100%">
<el-table-column label="序号" type="index" fixed></el-table-column> <el-table-column label="序号" type="index" fixed></el-table-column>
<el-table-column label="仓库" prop="lo" width="120"></el-table-column> <el-table-column label="仓库" prop="invStorageName" width="180"></el-table-column>
<el-table-column label="分库" prop="expireDate" width="120"></el-table-column> <el-table-column label="分库" prop="invWarehouseName" width="180"></el-table-column>
<el-table-column label="货位" prop="expireDate" width="120"></el-table-column> <el-table-column label="货位" prop="invSpaceName" width="180"></el-table-column>
<el-table-column label="产品标识" prop="nameCode" width="120"></el-table-column> <el-table-column label="产品标识" prop="nameCode" width="120"></el-table-column>
<el-table-column label="产品名称" prop="cpmctymc" width="180"> <el-table-column label="产品名称" prop="productName" width="200"></el-table-column>
</el-table-column> <el-table-column label="规格型号" prop="ggxh" width="180" show-overflow-tooltip></el-table-column>
<el-table-column label="规格型号" prop="ggxh" width="180" show-overflow-tooltip>
</el-table-column>
<el-table-column label="批次号" prop="batchNo" width="120"></el-table-column> <el-table-column label="批次号" prop="batchNo" width="120"></el-table-column>
<el-table-column label="生产日期" prop="productionDate" width="120"></el-table-column> <el-table-column label="生产日期" prop="productionDate" width="120"></el-table-column>
<el-table-column label="失效日期" prop="expireDate" width="120"></el-table-column> <el-table-column label="失效日期" prop="expireDate" width="120"></el-table-column>
@ -251,6 +249,7 @@ import {filterSubByInv} from "@/api/basic/invSubWarehouse";
import {getSpaceCodeList} from "@/api/inventory/invSpace"; import {getSpaceCodeList} from "@/api/inventory/invSpace";
import {getPlacementDetailList, bindInvSpace, checkCodeSpace} from "@/api/inventory/InvProducts"; import {getPlacementDetailList, bindInvSpace, checkCodeSpace} from "@/api/inventory/InvProducts";
import {isBlank} from "@/utils/strUtil"; import {isBlank} from "@/utils/strUtil";
import {userInfo} from "@/api/auth/login";
export default { export default {
@ -498,7 +497,7 @@ export default {
checkCodeSpace(tQuery).then((res) => { checkCodeSpace(tQuery).then((res) => {
if (res.code === 20000) { if (res.code === 20000) {
this.codeArray.push(this.formData.code); this.codeArray.push(this.formData.code);
} else if (res.code === 8){ } else if (res.code === 8) {
this.loading = false; this.loading = false;
this.$message.error(res.message); this.$message.error(res.message);
} else if (res.code === 7) { } else if (res.code === 7) {
@ -520,8 +519,20 @@ export default {
}, },
}, },
created() { created() {
this.getList();
this.getStorage(); this.getStorage();
//
userInfo().then((res) => {
if (res.code === 20000) {
if (!isBlank(res.data.locInvCode)) {
this.filterQuery.invStorageCode = res.data.locInvCode;
this.invChange();
this.filterQuery.invWarehouseCode = res.data.locSubInvCode;
this.invWarehouseChange();
}
this.getList();
}
}).catch((error) => {
});
}, },
}; };
</script> </script>

@ -102,10 +102,9 @@
</div> </div>
</el-col> </el-col>
<el-col :span="7"> <el-col :span="7">
<el-form-item class="query-form-item" prop="invSpaceCode" <el-form-item class="query-form-item" prop="invSpaceCode">
>
<el-select v-model="formData.invSpaceCode" placeholder="盘点货位信息" <el-select v-model="formData.invSpaceCode" placeholder="盘点货位信息"
:disabled="codeArray.length>0" :disabled="codeArray.length>0 || disableSpace"
@change="invSpaceChange" @change="invSpaceChange"
clearable> clearable>
<el-option <el-option
@ -120,7 +119,6 @@
</el-col> </el-col>
</el-row> </el-row>
<el-row :gutter="20" style="margin-top: 12px"> <el-row :gutter="20" style="margin-top: 12px">
<el-col :span="2"> <el-col :span="2">
<div class="ao-text"> <div class="ao-text">
@ -380,6 +378,7 @@ export default {
edit: true edit: true
}, },
codesVisible: false, codesVisible: false,
disableSpace: false
}; };
}, },
methods: { methods: {
@ -420,7 +419,7 @@ export default {
this.closeDialog(); this.closeDialog();
} }
} else { } else {
this.$message.error(res.data.message); this.$message.error(res.message);
} }
}); });
}, },
@ -589,6 +588,7 @@ export default {
} }
}, },
startCount() { startCount() {
this.countProductList = [];
if (this.countType === 0) { if (this.countType === 0) {
if (isBlank(this.formData.invStorageCode) || isBlank(this.formData.invWarehouseCode)) { if (isBlank(this.formData.invStorageCode) || isBlank(this.formData.invWarehouseCode)) {
this.$message.warning("请先选择盘点仓库"); this.$message.warning("请先选择盘点仓库");
@ -618,6 +618,7 @@ export default {
invWarehouseCode: this.formData.invWarehouseCode, invWarehouseCode: this.formData.invWarehouseCode,
invSpaceCode: this.formData.invSpaceCode invSpaceCode: this.formData.invSpaceCode
}; };
console.log(params)
getCountInvProductProduct(params).then((res) => { getCountInvProductProduct(params).then((res) => {
if (res.data.length !== 0) { if (res.data.length !== 0) {
let invProductList = res.data; let invProductList = res.data;
@ -654,6 +655,9 @@ export default {
}); });
this.getCountOrderCodesNum(); this.getCountOrderCodesNum();
} }
if (this.countType == 0) {
this.disableSpace = true;
}
}, },
}; };
</script> </script>

Loading…
Cancel
Save