|
|
|
@ -61,14 +61,12 @@
|
|
|
|
|
|
|
|
|
|
<el-table v-loading="loading" :data="list" style="width: 100%">
|
|
|
|
|
<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="expireDate" width="120"></el-table-column>
|
|
|
|
|
<el-table-column label="货位" prop="expireDate" width="120"></el-table-column>
|
|
|
|
|
<el-table-column label="仓库" prop="invStorageName" width="180"></el-table-column>
|
|
|
|
|
<el-table-column label="分库" prop="invWarehouseName" width="180"></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="cpmctymc" width="180">
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="规格型号" prop="ggxh" width="180" show-overflow-tooltip>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="产品名称" prop="productName" width="200"></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="productionDate" 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 {getPlacementDetailList, bindInvSpace, checkCodeSpace} from "@/api/inventory/InvProducts";
|
|
|
|
|
import {isBlank} from "@/utils/strUtil";
|
|
|
|
|
import {userInfo} from "@/api/auth/login";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
@ -498,7 +497,7 @@ export default {
|
|
|
|
|
checkCodeSpace(tQuery).then((res) => {
|
|
|
|
|
if (res.code === 20000) {
|
|
|
|
|
this.codeArray.push(this.formData.code);
|
|
|
|
|
} else if (res.code === 8){
|
|
|
|
|
} else if (res.code === 8) {
|
|
|
|
|
this.loading = false;
|
|
|
|
|
this.$message.error(res.message);
|
|
|
|
|
} else if (res.code === 7) {
|
|
|
|
@ -520,8 +519,20 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
created() {
|
|
|
|
|
this.getList();
|
|
|
|
|
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>
|
|
|
|
|