|
|
@@ -315,8 +315,32 @@ export default {
|
|
|
pricePlan: [],
|
|
|
currentPrice: 0,
|
|
|
currentPlan: null,
|
|
|
- retailLockCheckStyle: this.$localStore.get('retailLockCheckStyle') || false,
|
|
|
- identifyLockCheckStyle: this.$localStore.get('identifyLockCheckStyle') || false,
|
|
|
+ saleType: (() => {
|
|
|
+ const category = this.$route.meta.category || 'ticket'
|
|
|
+ const type = this.$route.meta.type
|
|
|
+ if (category === 'batch') return 'batch'
|
|
|
+ if (category === 'member') return 'member'
|
|
|
+ if (type === 'team') return 'team'
|
|
|
+ return 'single'
|
|
|
+ })(),
|
|
|
+ retailLockCheckStyle: (() => {
|
|
|
+ const category = this.$route.meta.category || 'ticket'
|
|
|
+ const type = this.$route.meta.type
|
|
|
+ let prefix = 'single'
|
|
|
+ if (category === 'batch') prefix = 'batch'
|
|
|
+ else if (category === 'member') prefix = 'member'
|
|
|
+ else if (type === 'team') prefix = 'team'
|
|
|
+ return this.$localStore.get(`${prefix}_lockCheckStyle`) || false
|
|
|
+ })(),
|
|
|
+ identifyLockCheckStyle: (() => {
|
|
|
+ const category = this.$route.meta.category || 'ticket'
|
|
|
+ const type = this.$route.meta.type
|
|
|
+ let prefix = 'single'
|
|
|
+ if (category === 'batch') prefix = 'batch'
|
|
|
+ else if (category === 'member') prefix = 'member'
|
|
|
+ else if (type === 'team') prefix = 'team'
|
|
|
+ return this.$localStore.get(`${prefix}_identifyLockCheckStyle`) || false
|
|
|
+ })(),
|
|
|
|
|
|
touristList: [{
|
|
|
batchConfigId: randomString(),
|
|
|
@@ -392,7 +416,7 @@ export default {
|
|
|
this.$refs.form.resetFields()
|
|
|
|
|
|
if (this.retailLockCheckStyle) {
|
|
|
- this.form.checkWay = this.$localStore.get('retailCheckWay') || (this.isTeam ? 2 : 1)
|
|
|
+ this.form.checkWay = this.$localStore.get(`${this.saleType}_checkWay`) || (this.isTeam ? 2 : 1)
|
|
|
} else {
|
|
|
this.form.checkWay = this.isTeam ? 2 : 1
|
|
|
}
|
|
|
@@ -600,8 +624,8 @@ export default {
|
|
|
defaultPapersType () {
|
|
|
if (process.env.VUE_APP_PROJECT === 'zql') {
|
|
|
return 0
|
|
|
- } else if (this.$localStore.get('retail_identify')) {
|
|
|
- return this.$localStore.get('retail_identify')
|
|
|
+ } else if (this.$localStore.get(`${this.saleType}_identify`)) {
|
|
|
+ return this.$localStore.get(`${this.saleType}_identify`)
|
|
|
} else {
|
|
|
return ''
|
|
|
}
|
|
|
@@ -680,15 +704,15 @@ export default {
|
|
|
},
|
|
|
retailLockCheckStyle (val) {
|
|
|
if (val) {
|
|
|
- this.$localStore.set('retailCheckWay', this.form.checkWay)
|
|
|
+ this.$localStore.set(`${this.saleType}_checkWay`, this.form.checkWay)
|
|
|
}
|
|
|
- this.$localStore.set('retailLockCheckStyle', val)
|
|
|
+ this.$localStore.set(`${this.saleType}_lockCheckStyle`, val)
|
|
|
},
|
|
|
identifyLockCheckStyle (val) {
|
|
|
if (val) {
|
|
|
- this.$localStore.set('retail_identify', this.form.buyerIdentifyType)
|
|
|
+ this.$localStore.set(`${this.saleType}_identify`, this.form.buyerIdentifyType)
|
|
|
}
|
|
|
- this.$localStore.set('identifyLockCheckStyle', val)
|
|
|
+ this.$localStore.set(`${this.saleType}_identifyLockCheckStyle`, val)
|
|
|
},
|
|
|
'form.playDateBegin' (val) {
|
|
|
if (val) {
|