|
|
@@ -1741,17 +1741,17 @@ const handleSubmit = (type?) => {
|
|
|
// params.disableDateValue = params.disableDateList.map(subArray => subArray.join(",")).join(";");
|
|
|
}
|
|
|
params.invoiceType = params.invoiceInformation.join(",");
|
|
|
- const output = lifeGroupBuyThalis.value.flatMap(group =>
|
|
|
- group.dishes.map(dish => ({
|
|
|
- groupName: group.groupName,
|
|
|
- detailId: dish.detailId,
|
|
|
- qty: dish.qty,
|
|
|
- dishPrice: dish.dishPrice
|
|
|
- }))
|
|
|
- );
|
|
|
+ // const output = lifeGroupBuyThalis.value.flatMap(group =>
|
|
|
+ // group.dishes.map(dish => ({
|
|
|
+ // groupName: group.groupName,
|
|
|
+ // detailId: dish.detailId,
|
|
|
+ // qty: dish.qty,
|
|
|
+ // dishPrice: dish.dishPrice
|
|
|
+ // }))
|
|
|
+ // );
|
|
|
const paramsObj = {
|
|
|
lifeGroupBuyMain: params,
|
|
|
- lifeGroupBuyThalis: output
|
|
|
+ lifeGroupBuyThalis: lifeGroupBuyThalis.value
|
|
|
};
|
|
|
console.log(paramsObj);
|
|
|
if (type) {
|