Commit 463cf9dc authored by 黄奎's avatar 黄奎

餐厅前台页面保存修改

parent 848c6b4a
......@@ -256,12 +256,6 @@
this.list.forEach(item => {
item.DiningSummaryList.forEach(insideItem => {
insideItem.OrderState = 0;
if (!insideItem.Discount) {
insideItem.Discount = 0;
}
if (!insideItem.DiscountPrice) {
insideItem.DiscountPrice = 0;
}
})
})
}
......@@ -269,15 +263,23 @@
this.list.forEach(item => {
item.DiningSummaryList.forEach(insideItem => {
insideItem.OrderState = 1;
if (!insideItem.Discount) {
insideItem.Discount = 0;
})
})
}
this.list.forEach(item => {
item.DiningSummaryList.forEach(insideItem => {
if (insideItem.DiningPriceList) {
insideItem.DiningPriceList.forEach(subItem => {
if (!subItem.Discount) {
subItem.Discount = 0;
}
if (!insideItem.DiscountPrice) {
insideItem.DiscountPrice = 0;
if (!subItem.DiscountPrice) {
subItem.DiscountPrice = 0;
}
});
}
})
})
}
this.apipost('dmcstatistics_get_SetDiningOrder', this.list, res => {
if (res.data.resultCode == 1) {
this.$message.success(res.data.message);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment