cosmoim-852 fix 代码优化

master
hou 3 years ago
parent 60191a09a3
commit 13acf5aefd

@ -38,6 +38,7 @@ export class AggregatingModule extends VuexModule {
* *
*/ */
accessoryList: any[] = []; accessoryList: any[] = [];
lockCode: any = '';
/** /**
* *
@ -251,6 +252,12 @@ export class AggregatingModule extends VuexModule {
}); });
return { orderList }; return { orderList };
} }
@MutationAction
async lock(params: any) {
const res: any = await http.post(url.sortscan.lock.list, params);
const lockCode = res.code;
return { lockCode };
}
/** /**
* - * -
* @param params * @param params

@ -124,13 +124,16 @@ export default class AggregatingResult extends BasePage {
font-size: 34rpx; font-size: 34rpx;
font-weight: 500; font-weight: 500;
text-align: center; text-align: center;
.title { .title {
flex: 3; flex: 3;
} }
.left, .left,
.right { .right {
flex: 1; flex: 1;
} }
.icon { .icon {
display: flex; display: flex;
justify-content: center; justify-content: center;

@ -23,6 +23,7 @@ export class PickingModule extends VuexModule {
orderOutIdList: any; orderOutIdList: any;
NEWparams: any; NEWparams: any;
LocList: any = []; LocList: any = [];
lockCode: any = '';
/** /**
* *
@ -316,7 +317,12 @@ export class PickingModule extends VuexModule {
})); }));
return { locationList }; return { locationList };
} }
@MutationAction
async lock(params: any) {
const res: any = await http.post(url.sortscan.lock.list, params);
const lockCode = res.code;
return { lockCode };
}
/** /**
* *
*/ */

@ -52,6 +52,7 @@ export default class RawReceiptDetail extends BasePage {
async onOrder() { async onOrder() {
// const list = this.model.proOrderResultList; // const list = this.model.proOrderResultList;
// await this.model.lockProOrderResult(list); // await this.model.lockProOrderResult(list);
await this.model.lock(this.model.proOrderResultList);
this.toPage(this.page.raw.handover.picking.byorder); this.toPage(this.page.raw.handover.picking.byorder);
} }
// //

@ -189,7 +189,7 @@ export default class returningDom extends BasePage {
this.form.sendSpot = this.data.sendSpot; this.form.sendSpot = this.data.sendSpot;
} }
if (this.form.prdOrder != null) { if (this.form.prdOrder != null) {
model.queryOrderInInfo(this.form.prdOrder); await this.query();
} }
uni.removeStorageSync('data'); uni.removeStorageSync('data');
} }

Loading…
Cancel
Save