|
|
|
@ -308,8 +308,36 @@ export default class AggregatingSummary extends BasePage {
|
|
|
|
|
this.submitForm.password = '';
|
|
|
|
|
this.isBusinessFinished = true;
|
|
|
|
|
// await this.model.queryProOrder(this.model.isFormChange);
|
|
|
|
|
await this.model.queryProOrderResult(this.model.param);
|
|
|
|
|
await this.model.queryAggregateList(this.model.orderOutIdListParams);
|
|
|
|
|
console.log('123456789yayayyayayayya', this.model.SubmitCode);
|
|
|
|
|
if (this.model.SubmitCode == '1') {
|
|
|
|
|
const ServeUrl = JSON.parse(uni.getStorageSync('__GWMS_APP_STATE_DATA__'));
|
|
|
|
|
this.uni.request({
|
|
|
|
|
url: ServeUrl.server.address + url.sumscan.query.ordoutlist,
|
|
|
|
|
method: 'POST',
|
|
|
|
|
data: this.model.param,
|
|
|
|
|
success: (res: any) => {
|
|
|
|
|
if (res.data.code != '0' && res.data.list != null) {
|
|
|
|
|
// this.empty();
|
|
|
|
|
//this.resetForm();
|
|
|
|
|
this.chaxun();
|
|
|
|
|
} else if (res.data.code == '0' && res.data.list == null) {
|
|
|
|
|
// this.customToast(this.$t('message.Pi_NoData') as string);
|
|
|
|
|
// this.toPage(this.page.raw.handover.aggregating.index);
|
|
|
|
|
uni.showToast({
|
|
|
|
|
//icon: 'success',
|
|
|
|
|
//duration: 2000,
|
|
|
|
|
title: this.$t('message.Pi_NoData') as string,
|
|
|
|
|
icon: 'none',
|
|
|
|
|
});
|
|
|
|
|
setTimeout(() => {
|
|
|
|
|
this.toPage(this.page.raw.handover.aggregating.index);
|
|
|
|
|
}, 2000);
|
|
|
|
|
//this.empty();
|
|
|
|
|
//this.form.documentNo = '';
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
// model.aggregateList.forEach((item: any, index: any) => {
|
|
|
|
|
// if (item.materialCode == this.spliceItem) {
|
|
|
|
|
// model.aggregateList.splice(index, 1);
|
|
|
|
@ -323,6 +351,11 @@ export default class AggregatingSummary extends BasePage {
|
|
|
|
|
/**this.$amountForm.setRules(this.amountFormRules);**/
|
|
|
|
|
this.$submitForm.setRules(this.submitFormRules);
|
|
|
|
|
}
|
|
|
|
|
//查询
|
|
|
|
|
async chaxun() {
|
|
|
|
|
await this.model.queryProOrderResult(this.model.param);
|
|
|
|
|
await this.model.queryAggregateList(this.model.orderOutIdListParams);
|
|
|
|
|
}
|
|
|
|
|
/**
|
|
|
|
|
* 解锁
|
|
|
|
|
*/
|
|
|
|
|