|
@@ -47,7 +47,7 @@ import item from "./item";
|
|
|
import { sysCouponCode } from "./api";
|
|
|
import { isDuringDate } from "@/helpers/utils";
|
|
|
export default {
|
|
|
- props: ["status", "isEdit", "allMoney", "all", "buyList"],
|
|
|
+ props: ["status", "isEdit", "allMoney", "all", "buyList", "useSystem"],
|
|
|
components: {
|
|
|
MEmpty,
|
|
|
"coupon-item": item,
|
|
@@ -61,6 +61,7 @@ export default {
|
|
|
dataList: [],
|
|
|
params: {
|
|
|
page: 1,
|
|
|
+ useSystem: this.useSystem || "",
|
|
|
usageStatus: this.status,
|
|
|
rows: this.all ? 9999 : 10,
|
|
|
},
|
|
@@ -126,7 +127,7 @@ export default {
|
|
|
let faceValueList = {};
|
|
|
let shopType = []; // 所以类型的商品
|
|
|
this.buyList.forEach((item) => {
|
|
|
- if (shopObj[item.couponType]) {
|
|
|
+ if (shopObj[item.couponType] || shopType.includes(item.couponType)) {
|
|
|
shopObj[item.couponType] += Number(item.price);
|
|
|
} else {
|
|
|
shopObj[item.couponType] = Number(item.price);
|
|
@@ -147,7 +148,7 @@ export default {
|
|
|
* if (shopType.indexOf(copon.typeDetail) == -1) {
|
|
|
copon.disabled = true;
|
|
|
}
|
|
|
- *
|
|
|
+ *
|
|
|
*/
|
|
|
this.dataList.forEach((item) => {
|
|
|
if (list.indexOf(item.couponCodeId) != -1) {
|