|
@@ -850,6 +850,8 @@
|
|
|
this.requestDict('交付要求');
|
|
this.requestDict('交付要求');
|
|
|
this.getByCodeFn();
|
|
this.getByCodeFn();
|
|
|
this.getFactoryList();
|
|
this.getFactoryList();
|
|
|
|
|
+ // 查询库存数量
|
|
|
|
|
+ // this.inventory(val.id);
|
|
|
if (val.type == 'edit') {
|
|
if (val.type == 'edit') {
|
|
|
this.getPlanInfo(val.id);
|
|
this.getPlanInfo(val.id);
|
|
|
} else {
|
|
} else {
|
|
@@ -909,6 +911,10 @@
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|
|
|
|
|
+ // 查询库存数量
|
|
|
|
|
+ inventory(id){
|
|
|
|
|
+
|
|
|
|
|
+ },
|
|
|
// 验证时间是否超期
|
|
// 验证时间是否超期
|
|
|
changeDate(item, i) {
|
|
changeDate(item, i) {
|
|
|
if (this.isTimeAGreaterThanB(item.deliveryTime, item.reqMoldTime)) {
|
|
if (this.isTimeAGreaterThanB(item.deliveryTime, item.reqMoldTime)) {
|
|
@@ -950,10 +956,12 @@
|
|
|
this.bomListVersion();
|
|
this.bomListVersion();
|
|
|
// this.getPlanRouting();
|
|
// this.getPlanRouting();
|
|
|
}
|
|
}
|
|
|
|
|
+ this._getInventory();
|
|
|
},
|
|
},
|
|
|
async _getInventory() {
|
|
async _getInventory() {
|
|
|
let code = [this.form.productCode];
|
|
let code = [this.form.productCode];
|
|
|
const res = await getInventoryTotalAPI(code);
|
|
const res = await getInventoryTotalAPI(code);
|
|
|
|
|
+ console.log(res,'这是库存的数据 ---')
|
|
|
this.form.stockCountBase = res[0].stockCountBase;
|
|
this.form.stockCountBase = res[0].stockCountBase;
|
|
|
},
|
|
},
|
|
|
|
|
|