白胚入库切换批次清除数据

master
guoshuang 8 months ago
parent 742c89b7db
commit 6d115dc25e

@ -185,6 +185,7 @@ export default class WhiteInstorage extends BasePage {
warehouselist = []; warehouselist = [];
planQuantity = 0; planQuantity = 0;
actplanQuantity = 0; actplanQuantity = 0;
cunchuQuantity = 0;
// remove: any = {}; // remove: any = {};
// async onReady() { // async onReady() {
// await this.model.queryLocation(); // await this.model.queryLocation();
@ -246,9 +247,9 @@ export default class WhiteInstorage extends BasePage {
warehouseChange(e: any) { warehouseChange(e: any) {
console.log('e', e); console.log('e', e);
this.cimWl = e.pickerName; this.cimWl = e.pickerName;
this.planQuantity = e.pickerName.batchQuantity - parseFloat(e.pickerName.realityNumber); //this.planQuantity = e.pickerName.batchQuantity - parseFloat(e.pickerName.realityNumber);
/// ///
this.actplanQuantity = this.planQuantity; this.actplanQuantity = this.cunchuQuantity;
this.list = []; this.list = [];
} }
// //
@ -269,6 +270,7 @@ export default class WhiteInstorage extends BasePage {
if (model.orderNoItemList) { if (model.orderNoItemList) {
this.orderNoItemList = model.orderNoItemList; this.orderNoItemList = model.orderNoItemList;
this.actplanQuantity = this.orderNoItemList.attr1; this.actplanQuantity = this.orderNoItemList.attr1;
this.cunchuQuantity = this.orderNoItemList.attr1;
// this.number1 = this.orderNoItemList.attr3; // this.number1 = this.orderNoItemList.attr3;
} else { } else {
this.orderNoItemList = {}; this.orderNoItemList = {};
@ -350,15 +352,15 @@ export default class WhiteInstorage extends BasePage {
//this.getlist(); //this.getlist();
} }
} }
async getlist() { // async getlist() {
await (this.model as any).list(this.orderNo); // await (this.model as any).list(this.orderNo);
if (model.productCodeList.length > 0) { // if (model.productCodeList.length > 0) {
this.list = model.productCodeList; // this.list = model.productCodeList;
} else { // } else {
this.list = []; // this.list = [];
} // }
console.log(model.productCodeList); // console.log(model.productCodeList);
} // }
async rukubutn() { async rukubutn() {
this.form5 = {}; this.form5 = {};
if (this.orderNo == '' || this.orderNo.length == 0) { if (this.orderNo == '' || this.orderNo.length == 0) {

Loading…
Cancel
Save