库位问题 拉取数据问题

master
hou 3 years ago
parent d784d8feb8
commit 293370a96f

@ -87,13 +87,13 @@ export default class productCheckReceipt extends BasePage {
@Ref('form') readonly $form!: VForm;
model = model;
form = {
aimWl:{} as OptionType,
aimWl: {} as OptionType,
productCode: '',
};
remove:any = {}
allNum:number = 0
remove: any = {};
allNum: number = 0;
userDefined4: any = '';
histroyItem:any = {}
histroyItem: any = {};
aimWlSelect = false;
cboPlaceSelect = false;
rules: VFormRules<any> = {
@ -107,13 +107,13 @@ export default class productCheckReceipt extends BasePage {
bookTypeChange(e: any) {
this.form.aimWl = e.pickerName;
}
selectItem(e:any){
selectItem(e: any) {
this.remove = e.pickerName;
this.model.removeList.forEach((item:any) =>{
if(item.materialCode = this.remove.value){
this.histroyItem = item
this.model.removeList.forEach((item: any) => {
if ((item.materialCode = this.remove.value)) {
this.histroyItem = item;
}
})
});
}
//
async query() {
@ -130,20 +130,22 @@ export default class productCheckReceipt extends BasePage {
}
}
//
async QueryHistory(){
async QueryHistory() {
if (this.userDefined4 == ' ' || this.userDefined4.length == 0) {
this.customToast(this.$t('message.barcode') as string);
return;
}
this.allNum = 0;
let params = {
loginName: session.loginName,
factoryCode: session.factoryCode,
proMoveCode: this.userDefined4,
}
await this.model.QueryHistory(params)
this,model.removeList.forEach((item:any) =>{
this.allNum += parseFloat(item.proNum)
})
};
await this.model.QueryHistory(params);
this,
model.removeList.forEach((item: any) => {
this.allNum += parseFloat(item.proNum);
});
}
//
async onReady() {
@ -206,9 +208,9 @@ export default class productCheckReceipt extends BasePage {
// this.form.productCode = '';
this.model.empty();
// this.query()
this.form.productCode = ''
this.allNum = 0
this.QueryHistory()
this.form.productCode = '';
this.allNum = 0;
this.QueryHistory();
// setTimeout(() => {
// this.$forceUpdate();
// }, 2000);

@ -112,9 +112,9 @@ export class wholeTransfer extends VuexModule {
async empty() {
const orderInInfo: any = [];
// const userDefined = '';
const WlList = [];
// const WlList = [];
const code = '';
return { orderInInfo, WlList, code };
return { orderInInfo, code };
}
@MutationAction
async onTakeoutConfirm(list: any) {

@ -114,12 +114,15 @@ export default class dnReceiptDom extends BasePage {
//
async onReady() {
//
let means: any = JSON.parse(localStorage.getItem('__GWMS_APP_STATE_DATA__') as any);
// let means: any = JSON.parse(localStorage.getItem('__GWMS_APP_STATE_DATA__') as any);
//let sendSpot = JSON.parse(localStorage.getItem('sendSpot') as any);
await this.QueryLoc()
}
async QueryLoc(){
let content = {
loginName: means.session.user.loginName,
loginName: session.loginName,
//sendSpot: sendSpot,
factoryCode: means.session.user.factoryCode,
factoryCode: session.factoryCode,
workArea: session.workareaCode,
};
await this.model.queryCodeAndWorkAreaCode(content);
@ -285,7 +288,9 @@ export default class dnReceiptDom extends BasePage {
this.customToast(this.$t('message.Commission_tips5') as any);
}
await this.model.submitOutsourcing(this.list);
this.empty();
await this.empty();
await this.QueryLoc()
await this.query()
}
async bill() {
if (this.form.documentNo == '') {

Loading…
Cancel
Save