diff --git a/src/api/statistics.js b/src/api/statistics.js index 7572b8d..559cb53 100644 --- a/src/api/statistics.js +++ b/src/api/statistics.js @@ -115,6 +115,31 @@ export function storeStatisticProjectList(params) { }); } +// 新项目购卡金额排行 +export function projectLists(params) { + return service({ + url: "/api" + "/demay/ssm/storeStatistic/projectLists", + method: "post", + data: params + }); +} +// 新项目服务金额排行 +export function serviceActive(params) { + return service({ + url: "/api" + "/demay/ssm/storeStatistic/service", + method: "post", + data: params + }); +} +// 项目结存金额排行 +export function balance(params) { + return service({ + url: "/api" + "/demay/ssm/storeStatistic/balance", + method: "post", + data: params + }); +} + // 门店员工统计列表 门店端-门店统计-门店员工统计列表 export function storeStatisticStaffMonthList(params) { return service({ diff --git a/src/pages/eashier/refundRecharge/refundRecharge.vue b/src/pages/eashier/refundRecharge/refundRecharge.vue index 80135ec..5431cce 100644 --- a/src/pages/eashier/refundRecharge/refundRecharge.vue +++ b/src/pages/eashier/refundRecharge/refundRecharge.vue @@ -744,7 +744,7 @@ >
diff --git a/src/pages/promotion/buyandgive/buyandgive.vue b/src/pages/promotion/buyandgive/buyandgive.vue index 053cb59..3fe0b76 100644 --- a/src/pages/promotion/buyandgive/buyandgive.vue +++ b/src/pages/promotion/buyandgive/buyandgive.vue @@ -154,7 +154,7 @@
- + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
总价格 @@ -528,6 +551,28 @@ 删除 + + + + + +
总价格 @@ -691,12 +736,20 @@ export default { }; }, methods: { + typeChange(row){ + if(row.typeInfo == '1'){ + row.useEndDate = null + }else{ + row.validTime = null + } + }, //打开项目单选弹窗 editPro() { this.$refs.project.show(0); }, //项目单选返回 projectData(form) { + form = {...form,typeInfo:"1"} form.projectId = form.id; form.times = form.minumumTimes; form.projectTotalMoney = @@ -836,6 +889,9 @@ export default { promotionName: this.packingForm.promotionName, standardTimes: item.standardTimes, type: 0, + typeInfo:item.typeInfo, + validTime:item.validTime, + useEndDate:item.useEndDate }; promotionProjectLists.push(items); }); @@ -901,6 +957,9 @@ export default { detail() { this.titles = "明细"; promotionProList({ id: this.radioRowValueList.id }).then((res) => { + res.rows.forEach(item=>{ + item.typeInfo += '' + }) this.packingForm = { promotionProjectLists: [] }; this.packingForm = { ...this.radioRowValueList }; this.packingForm.promotionProjectLists = res.rows; @@ -911,9 +970,11 @@ export default { }, //修改 editForm() { - this.titles = ""; this.titles = "修改"; promotionProList({ id: this.radioRowValueList.id }).then((res) => { + res.rows.forEach(item=>{ + item.typeInfo += '' + }) this.packingForm = { promotionProjectLists: [] }; this.packingForm = { ...this.radioRowValueList }; this.packingForm.promotionProjectLists = res.rows; @@ -938,6 +999,9 @@ export default { projectTotalMoney: item.projectTotalMoney, promotionName: this.packingForm.promotionName, type: 0, + typeInfo:item.typeInfo, + validTime:item.validTime, + useEndDate:item.useEndDate }; if (item.projectId != undefined) { items.projectId = item.projectId; @@ -1089,6 +1153,7 @@ export default { copyForm() { this.titles = "复制"; promotionProList({ id: this.radioRowValueList.id }).then((res) => { + res.rows.forEach(item=>item.typeInfo += '') this.packingForm = { promotionProjectLists: [] }; this.packingForm = { ...this.radioRowValueList }; this.packingForm.promotionProjectLists = res.rows; @@ -1111,6 +1176,9 @@ export default { projectTotalMoney: item.projectTotalMoney, promotionName: this.packingForm.promotionName, type: 0, + typeInfo:item.typeInfo, + validTime:item.validTime, + useEndDate:item.useEndDate }; if (item.projectId != undefined) { items.projectId = item.projectId; @@ -1131,7 +1199,7 @@ export default { this.packingForm.cardSalesCommission = 0; } this.packingForm.type = 0; - addPromotion(this.packingForm).then((res) => { + addPromotion(Object.assign(this.packingForm,{pushCount:null,pushState:null})).then((res) => { //console.log(res); if (res.code == "000000") { this.$message.success({ message: res.message }); diff --git a/src/pages/statistics/negativeCard/negativeCard.vue b/src/pages/statistics/negativeCard/negativeCard.vue index 1ff3c67..3995fd7 100644 --- a/src/pages/statistics/negativeCard/negativeCard.vue +++ b/src/pages/statistics/negativeCard/negativeCard.vue @@ -1,7 +1,7 @@