|
|
|
@ -277,27 +277,37 @@ export default class receiveSRM extends BasePage {
|
|
|
|
|
};
|
|
|
|
|
await this.model.PurchaseOrderPda(query);
|
|
|
|
|
let prodlist = model.orderNoItemList;
|
|
|
|
|
this.reducelist = this.uniqueArray(prodlist);
|
|
|
|
|
this.reducelist.forEach((item) => {
|
|
|
|
|
item.value = item.materialCode.slice(item.materialCode.search(/[1-9]/));
|
|
|
|
|
item.label = item.materialDesc;
|
|
|
|
|
});
|
|
|
|
|
console.log('this.reducelist', this.reducelist);
|
|
|
|
|
this.bimWl = Object.keys(this.zancunmatcode).length ? this.zancunmatcode : this.reducelist[0];
|
|
|
|
|
this.oldprodlist = prodlist.map((item) => {
|
|
|
|
|
let newmaterialCode = item.materialCode.slice(item.materialCode.search(/[1-9]/));
|
|
|
|
|
return {
|
|
|
|
|
...item,
|
|
|
|
|
handlematerialCode: newmaterialCode,
|
|
|
|
|
realityaddNumber: item.realityNumber,
|
|
|
|
|
};
|
|
|
|
|
});
|
|
|
|
|
this.list = this.oldprodlist.filter((item) => {
|
|
|
|
|
return item.handlematerialCode == this.bimWl.value;
|
|
|
|
|
});
|
|
|
|
|
if (this.prodlist.length > 0) {
|
|
|
|
|
this.isdisabled = false;
|
|
|
|
|
this.reducelist = this.uniqueArray(prodlist);
|
|
|
|
|
this.reducelist.forEach((item) => {
|
|
|
|
|
item.value = item.materialCode.slice(item.materialCode.search(/[1-9]/));
|
|
|
|
|
item.label = item.materialDesc;
|
|
|
|
|
});
|
|
|
|
|
console.log('this.reducelist', this.reducelist);
|
|
|
|
|
this.bimWl = Object.keys(this.zancunmatcode).length ? this.zancunmatcode : this.reducelist[0];
|
|
|
|
|
this.oldprodlist = prodlist.map((item) => {
|
|
|
|
|
let newmaterialCode = item.materialCode.slice(item.materialCode.search(/[1-9]/));
|
|
|
|
|
return {
|
|
|
|
|
...item,
|
|
|
|
|
handlematerialCode: newmaterialCode,
|
|
|
|
|
realityaddNumber: item.realityNumber,
|
|
|
|
|
};
|
|
|
|
|
});
|
|
|
|
|
this.list = this.oldprodlist.filter((item) => {
|
|
|
|
|
return item.handlematerialCode == this.bimWl.value;
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
//查询标志卡
|
|
|
|
|
this.querycard();
|
|
|
|
|
//查询标志卡
|
|
|
|
|
this.querycard();
|
|
|
|
|
} else {
|
|
|
|
|
(this.$refs.uToast as any).show({
|
|
|
|
|
title: '请去到货登记!',
|
|
|
|
|
type: 'default',
|
|
|
|
|
duration: 3000,
|
|
|
|
|
});
|
|
|
|
|
this.isdisabled = true;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
//查询标志卡
|
|
|
|
|
async querycard() {
|
|
|
|
|