Commit 8e8c4a43 by 李伟康

commit 提交

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