Commit 8e8c4a43 by 李伟康

commit 提交

1 parent 93615b38
......@@ -170,6 +170,7 @@ export default {
customerType: Number,
title: String,
show: Boolean,
madiaId: Number
},
data () {
return {
......@@ -338,7 +339,10 @@ export default {
this.$refs.couponBoxVisible.close()
},
jumpPage (e) {
this.$emit('jumpPage', e.uniCode)
this.$emit('jumpPage', {
id: e.uniCode,
historyId: this.madiaId
})
},
async createCoupon () {
try {
......@@ -347,7 +351,7 @@ export default {
await this.validate()
uni.showLoading()
let { staffName, salesUuid } = customerInfo,
scene = `id=${couponId}&userId=${salesUuid}&employName=${staffName}&merchantId=${shopMerchantId}&customerName=${customerInfo.customerName}&customerPhone=${customerInfo.phoneNumber}`,
scene = `id=${couponId}&userId=${salesUuid}&employName=${staffName}&merchantId=${shopMerchantId}&customerName=${customerInfo.customerName}&customerPhone=${customerInfo.phoneNumber}`,
params = {
path: '/packageShopmall/packageMine/pages/boutique/gift/gift',
appId: 'wxe10067a63c1856ac',
......
......@@ -87,6 +87,7 @@ export default {
},
data () {
return {
historyId: ''
};
},
computed: {
......@@ -99,6 +100,11 @@ export default {
return this.$store.state.user.historyStatus;
},
},
watch: {
watchStatus () {
this.historyId = ''
}
},
mounted () { },
methods: {
...mapMutations("audio", ["setReceptionStatus"]),
......@@ -110,7 +116,7 @@ export default {
7: "reception",
13: "invitation",
9: "Case",
12:'history'
12: 'history'
}[id];
return name;
},
......@@ -123,6 +129,11 @@ export default {
this.jumpPage(e.id)
},
back () {
if (this.historyId) {
this.jumpPage({ id: this.historyId })
this.historyId = ''
return
}
this.$refs?.toolRef?.hide();
this.$emit("back");
},
......@@ -131,7 +142,8 @@ export default {
this.$refs.stepRef.close();
this.$emit("done", e);
},
jumpPage (id) {
jumpPage ({ id, historyId }) {
if (historyId) this.historyId = historyId
this.$emit("update:id", Number(id));
},
/**回店客户 */
......@@ -143,7 +155,7 @@ export default {
phoneNumber: item.customerPhone,
salesUuid: item.userId,
staffName: item.employeeName,
receiveCouponDate:item.receiveCouponDate
receiveCouponDate: item.receiveCouponDate
})
this.$emit('reception')
},
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!