overseamom-483 feat pickup-重复调用接口提交

(cherry picked from commit dee28106f6c73d935695da3f1dd4596121410998)
master
mabaoyan 2 years ago committed by 马宝燕
parent 6346efc20a
commit 65646241e6

@ -317,7 +317,7 @@ export default class RawReceiptDetail extends BasePage {
} }
} }
async onAggregate() { async onAggregate() {
await this.model.queryProOrder(this.model.formParams); await this.model.queryProOrderPickUp(this.model.formParams);
await this.model.queryProOrderResult(this.model.NEWparams); await this.model.queryProOrderResult(this.model.NEWparams);
if (this.model.proOrderResultList.length == 0) { if (this.model.proOrderResultList.length == 0) {
this.some = {}; this.some = {};

@ -302,7 +302,7 @@ export default class RawReceiptDetail extends BasePage {
} }
} }
async onAggregate() { async onAggregate() {
await this.model.queryProOrder(this.model.formParams); await this.model.queryProOrderPickUp(this.model.formParams);
await this.model.queryProOrderResult(this.model.NEWparams); await this.model.queryProOrderResult(this.model.NEWparams);
const orderOutIdList = this.model.proOrderResultList.map((_: any) => _.orderOutId); const orderOutIdList = this.model.proOrderResultList.map((_: any) => _.orderOutId);
const params = { const params = {

@ -362,7 +362,7 @@ export default class pickingDom extends BasePage {
this.selectIndex = []; this.selectIndex = [];
this.$form.validate(async (valid: boolean) => { this.$form.validate(async (valid: boolean) => {
if (!valid) return; if (!valid) return;
await this.model.queryProOrder(this.formParams); await this.model.queryProOrderPickUp(this.formParams);
this.model.checkAllProOrderList(true); this.model.checkAllProOrderList(true);
this.isFormChange = false; this.isFormChange = false;
model.mrpCodeRegion = this.form.mrpCodeRegion as any; model.mrpCodeRegion = this.form.mrpCodeRegion as any;

@ -235,7 +235,7 @@ export class PickingModule extends VuexModule {
* @param params * @param params
*/ */
@MutationAction @MutationAction
async queryProOrder(params: any) { async queryProOrderPickUp(params: any) {
const { list: proOrderList }: any = await http.post(url.sortscan.query.prdorder, params); const { list: proOrderList }: any = await http.post(url.sortscan.query.prdorder, params);
if (!proOrderList.length) { if (!proOrderList.length) {
// uni.showToast({ // uni.showToast({

Loading…
Cancel
Save