Commit e6fba62e by 前端

Merge branch 'v1.0.5' of http://192.168.3.233:8090/glsx/gl_tape into v1.0.5

2 parents c59c622e 8e8c4a43
...@@ -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')
}, },
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* @Author: huyue * @Author: huyue
* @Date: 2024-05-30 14:40:39 * @Date: 2024-05-30 14:40:39
* @LastEditors: huyue * @LastEditors: huyue
* @LastEditTime: 2024-06-04 16:23:51 * @LastEditTime: 2024-06-04 17:02:09
--> -->
<template> <template>
<view style="position: relative"> <view style="position: relative">
...@@ -89,13 +89,9 @@ ...@@ -89,13 +89,9 @@
.receptionSourceDetailInfoList" .receptionSourceDetailInfoList"
:key="ind" :key="ind"
class="tab-item" class="tab-item"
@click="changeIndex(ind, 'secondIndex')"
>
<view
class="text"
:class="[secondIndex == ind ? 'active' : '']" :class="[secondIndex == ind ? 'active' : '']"
>{{ item.tabName }}</view @click="changeIndex(ind, 'secondIndex')"
> >{{ item.tabName }}
</view> </view>
</view> </view>
<template <template
...@@ -160,7 +156,7 @@ export default { ...@@ -160,7 +156,7 @@ export default {
type: Array, type: Array,
default: () => [] default: () => []
}, },
madiaId: String, madiaId: Number,
show: Boolean show: Boolean
}, },
data () { data () {
...@@ -325,23 +321,17 @@ export default { ...@@ -325,23 +321,17 @@ export default {
align-items: center; align-items: center;
margin-left: 64rpx; margin-left: 64rpx;
margin-bottom: 48rpx; margin-bottom: 48rpx;
padding: 4rpx;
box-sizing: border-box;
.tab-item { .tab-item {
height: 100%; height: 100%;
.text { line-height: 88rpx;
display: flex;
align-items: center;
margin: 4rpx;
width: auto;
height: 84rpx;
padding: 0 48rpx; padding: 0 48rpx;
box-sizing: border-box; box-sizing: border-box;
&.active { }
.active {
background-color: #fff; background-color: #fff;
// margin: 4rpx 0;
border-radius: 16rpx; border-radius: 16rpx;
// height: calc(100% - 8rpx);
}
}
} }
} }
.product-list { .product-list {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!