|
|
|
@ -79,12 +79,6 @@ export class AggregatingModule extends VuexModule {
|
|
|
|
|
clearProOrderList() {
|
|
|
|
|
this.proOrderList = [];
|
|
|
|
|
}
|
|
|
|
|
/**
|
|
|
|
|
* 汇总列表是否全选
|
|
|
|
|
*/
|
|
|
|
|
get isAggregateCheckedAll() {
|
|
|
|
|
return !this.aggregateList.filter((_: any) => !_.checked).length;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 全选/取消全选汇总列表
|
|
|
|
@ -92,6 +86,7 @@ export class AggregatingModule extends VuexModule {
|
|
|
|
|
*/
|
|
|
|
|
@Mutation
|
|
|
|
|
checkAllAggregateList(checked: boolean) {
|
|
|
|
|
console.log('this.nodel.aggregateList222', this.aggregateList);
|
|
|
|
|
this.aggregateList = this.aggregateList.map((item: any) => {
|
|
|
|
|
item.checked = checked;
|
|
|
|
|
if (item.checked) {
|
|
|
|
@ -102,7 +97,23 @@ export class AggregatingModule extends VuexModule {
|
|
|
|
|
return item;
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 全选/取消按单列表
|
|
|
|
|
* @param checked
|
|
|
|
|
*/
|
|
|
|
|
@Mutation
|
|
|
|
|
checkAllOrderList(checked: boolean) {
|
|
|
|
|
console.log('this.nodel.orderList222', this.orderList);
|
|
|
|
|
this.orderList = this.orderList.map((item: any) => {
|
|
|
|
|
item.checked = checked;
|
|
|
|
|
if (item.checked) {
|
|
|
|
|
item.hvAmount = item.totalMoAmount - item.totalHvAmount;
|
|
|
|
|
} else {
|
|
|
|
|
item.hvAmount = 0;
|
|
|
|
|
}
|
|
|
|
|
return item;
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
/**
|
|
|
|
|
* 列表提交-汇总交接
|
|
|
|
|
* @param params
|
|
|
|
@ -161,7 +172,12 @@ export class AggregatingModule extends VuexModule {
|
|
|
|
|
const newItem = { ...original, hvAmount };
|
|
|
|
|
this.accessoryList.splice(index, 1, newItem);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 汇总列表是否全选
|
|
|
|
|
*/
|
|
|
|
|
get isAggregateCheckedAll() {
|
|
|
|
|
return !this.aggregateList.filter((_: any) => !_.checked).length;
|
|
|
|
|
}
|
|
|
|
|
/**
|
|
|
|
|
* 按单列表是否全选
|
|
|
|
|
*/
|
|
|
|
@ -179,22 +195,6 @@ export class AggregatingModule extends VuexModule {
|
|
|
|
|
checked,
|
|
|
|
|
}));
|
|
|
|
|
}
|
|
|
|
|
/**
|
|
|
|
|
* 全选/取消按单列表
|
|
|
|
|
* @param checked
|
|
|
|
|
*/
|
|
|
|
|
@Mutation
|
|
|
|
|
checkAllOrderList(checked: boolean) {
|
|
|
|
|
this.orderList = this.orderList.map((item: any) => {
|
|
|
|
|
item.checked = checked;
|
|
|
|
|
if (item.checked) {
|
|
|
|
|
item.hvAmount = item.totalMoAmount - item.totalHvAmount;
|
|
|
|
|
} else {
|
|
|
|
|
item.hvAmount = 0;
|
|
|
|
|
}
|
|
|
|
|
return item;
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 查询看单号
|
|
|
|
@ -242,6 +242,7 @@ export class AggregatingModule extends VuexModule {
|
|
|
|
|
vm.customToast(vm.$t('message.Pi_NoDataFound') as any);
|
|
|
|
|
return { aggregateList };
|
|
|
|
|
}
|
|
|
|
|
console.log('aggregateList', aggregateList);
|
|
|
|
|
return { aggregateList };
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -254,10 +255,13 @@ export class AggregatingModule extends VuexModule {
|
|
|
|
|
const { queryParams, proOrderResultList } = params;
|
|
|
|
|
await http.post(url.sumscan.lock.list, queryParams);
|
|
|
|
|
const orderList = cloneDeep<any>(proOrderResultList);
|
|
|
|
|
console.log('orderList', orderList);
|
|
|
|
|
orderList.map((item: any) => {
|
|
|
|
|
item.checked = false;
|
|
|
|
|
});
|
|
|
|
|
if (orderList.length == 0) {
|
|
|
|
|
return { orderList };
|
|
|
|
|
}
|
|
|
|
|
console.log('orderList', orderList);
|
|
|
|
|
return { orderList };
|
|
|
|
|
}
|
|
|
|
|
/**
|
|
|
|
|