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