cosmoim-852 fix 代码优化

master
hou 3 years ago
parent 60191a09a3
commit 13acf5aefd

@ -38,6 +38,7 @@ export class AggregatingModule extends VuexModule {
*
*/
accessoryList: any[] = [];
lockCode: any = '';
/**
*
@ -251,6 +252,12 @@ export class AggregatingModule extends VuexModule {
});
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

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

@ -23,6 +23,7 @@ export class PickingModule extends VuexModule {
orderOutIdList: any;
NEWparams: any;
LocList: any = [];
lockCode: any = '';
/**
*
@ -316,7 +317,12 @@ export class PickingModule extends VuexModule {
}));
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() {
// const list = this.model.proOrderResultList;
// await this.model.lockProOrderResult(list);
await this.model.lock(this.model.proOrderResultList);
this.toPage(this.page.raw.handover.picking.byorder);
}
//

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

Loading…
Cancel
Save