dam-7 feat 过账新增二次提交

master
hou 3 years ago
parent 56750cfb70
commit 20aef9d82a

@ -234,27 +234,36 @@ export default class stoOutboundDom extends BasePage {
});
}
//
async Posting() {
Posting() {
if (!this.form.orderNo) {
this.customToast(this.$t('message.Commission_tips1') as string);
return;
}
let params = {
nxOutCode: this.form.orderNo,
rowItem: this.form.row,
materialCode: this.form.rowItem,
loginName: session.loginName,
factoryCode: session.factoryCode,
};
await this.model.Posting(params);
if (this.model.PostingCode == '1') {
uni.showToast({
title: this.$t('message.Warehouse_Tip9') as any,
duration: 2000,
image: '/static/icons/icon-51.png',
});
this.empty();
}
uni.showModal({
title: this.$t('message.ConfirmPosting') as string,
success: async (res) => {
if (res.confirm) {
let params = {
nxOutCode: this.form.orderNo,
rowItem: this.form.row,
materialCode: this.form.rowItem,
loginName: session.loginName,
factoryCode: session.factoryCode,
};
await this.model.Posting(params);
if (this.model.PostingCode == '1') {
uni.showToast({
title: this.$t('message.Warehouse_Tip9') as any,
duration: 2000,
image: '/static/icons/icon-51.png',
});
this.empty();
}
} else if (res.cancel) {
return;
}
},
});
}
empty() {
this.form.dockCode = null;

@ -181,7 +181,6 @@ export default class RawReceiptDetail extends BasePage {
this.wlCode = this.Location[0];
}
}
//
Add() {
if (this.qty == '' || this.wlCode == '') {
this.customToast(this.$t('message.Commission_tips2') as any);
@ -191,7 +190,6 @@ export default class RawReceiptDetail extends BasePage {
this.customToast(this.$t('message.Commission_tips3') as any);
return;
}
//guoshuang
if (JSON.stringify(this.some) == '{}') {
this.customToast(this.$t('message.Commission_tips6') as any);
return;

Loading…
Cancel
Save