Commit 434399dd by 杨明

fixed

1 parent 2919f79b
...@@ -15,6 +15,11 @@ ...@@ -15,6 +15,11 @@
"js-message": "1.0.7" "js-message": "1.0.7"
} }
}, },
"@amap/amap-jsapi-loader": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/@amap/amap-jsapi-loader/-/amap-jsapi-loader-1.0.1.tgz",
"integrity": "sha512-nPyLKt7Ow/ThHLkSvn2etQlUzqxmTVgK7bIgwdBRTg2HK5668oN7xVxkaiRe3YZEzGzfV2XgH5Jmu2T73ljejw=="
},
"@ampproject/remapping": { "@ampproject/remapping": {
"version": "2.2.0", "version": "2.2.0",
"resolved": "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.2.0.tgz", "resolved": "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.2.0.tgz",
...@@ -1888,51 +1893,6 @@ ...@@ -1888,51 +1893,6 @@
"integrity": "sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==", "integrity": "sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==",
"dev": true "dev": true
}, },
"ansi-styles": {
"version": "4.3.0",
"resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
"integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
"dev": true,
"optional": true,
"requires": {
"color-convert": "^2.0.1"
}
},
"chalk": {
"version": "4.1.2",
"resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",
"integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",
"dev": true,
"optional": true,
"requires": {
"ansi-styles": "^4.1.0",
"supports-color": "^7.1.0"
}
},
"color-convert": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
"integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
"dev": true,
"optional": true,
"requires": {
"color-name": "~1.1.4"
}
},
"color-name": {
"version": "1.1.4",
"resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
"integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
"dev": true,
"optional": true
},
"has-flag": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
"integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
"dev": true,
"optional": true
},
"ssri": { "ssri": {
"version": "8.0.1", "version": "8.0.1",
"resolved": "https://registry.npmjs.org/ssri/-/ssri-8.0.1.tgz", "resolved": "https://registry.npmjs.org/ssri/-/ssri-8.0.1.tgz",
...@@ -1941,28 +1901,6 @@ ...@@ -1941,28 +1901,6 @@
"requires": { "requires": {
"minipass": "^3.1.1" "minipass": "^3.1.1"
} }
},
"supports-color": {
"version": "7.2.0",
"resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
"integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",
"dev": true,
"optional": true,
"requires": {
"has-flag": "^4.0.0"
}
},
"vue-loader-v16": {
"version": "npm:vue-loader@16.8.3",
"resolved": "https://registry.npmjs.org/vue-loader/-/vue-loader-16.8.3.tgz",
"integrity": "sha512-7vKN45IxsKxe5GcVCbc2qFU5aWzyiLrYJyUuMz4BQLKctCj/fmCa0w6fGiiQ2cLFetNcek1ppGJQDCup0c1hpA==",
"dev": true,
"optional": true,
"requires": {
"chalk": "^4.1.0",
"hash-sum": "^2.0.0",
"loader-utils": "^2.0.0"
}
} }
} }
}, },
...@@ -6504,17 +6442,27 @@ ...@@ -6504,17 +6442,27 @@
} }
}, },
"glsx-components": { "glsx-components": {
"version": "1.5.2", "version": "1.5.7",
"resolved": "https://registry.npmjs.org/glsx-components/-/glsx-components-1.5.2.tgz", "resolved": "https://registry.npmjs.org/glsx-components/-/glsx-components-1.5.7.tgz",
"integrity": "sha512-5/LaPu0B1uT7Kzl6oyIqyFT/NXIz2w7HNstiRtHaUQN1waSrPPPtzRRwywJg6CSSL+p994NaqPRnX696NAYzKg==", "integrity": "sha512-WEWt1Ev7uf8VgILrEr15ZHxOreqWEVEY2WRP5EmZKzYKTVF/7dQU/oI84+Xo4vSmlz7ltblaATyrwm1U1LDnHg==",
"requires": { "requires": {
"@amap/amap-jsapi-loader": "^1.0.1",
"core-js": "^3.6.5", "core-js": "^3.6.5",
"element-ui": "^2.15.6", "element-ui": "^2.15.6",
"glsx-common": "^1.4.9", "glsx-common": "^1.4.9",
"vue": "^2.6.11", "vue": "^2.6.11",
"vue-amap": "^0.5.10",
"vuedraggable": "^2.24.3" "vuedraggable": "^2.24.3"
}, },
"dependencies": { "dependencies": {
"axios": {
"version": "0.21.4",
"resolved": "https://registry.npmjs.org/axios/-/axios-0.21.4.tgz",
"integrity": "sha512-ut5vewkiu8jjGBdqpM44XxjuCjq9LAKeHVmoVfHVzy8eHgxxq8SbAVQNovDA8mVi05kP0Ea/n/UzcSHcTJQfNg==",
"requires": {
"follow-redirects": "^1.14.0"
}
},
"glsx-common": { "glsx-common": {
"version": "1.4.9", "version": "1.4.9",
"resolved": "https://registry.npmjs.org/glsx-common/-/glsx-common-1.4.9.tgz", "resolved": "https://registry.npmjs.org/glsx-common/-/glsx-common-1.4.9.tgz",
...@@ -6524,16 +6472,6 @@ ...@@ -6524,16 +6472,6 @@
"md5": "^2.3.0", "md5": "^2.3.0",
"qs": "^6.10.1", "qs": "^6.10.1",
"sha1": "^1.1.1" "sha1": "^1.1.1"
},
"dependencies": {
"axios": {
"version": "0.21.4",
"resolved": "https://registry.npmjs.org/axios/-/axios-0.21.4.tgz",
"integrity": "sha512-ut5vewkiu8jjGBdqpM44XxjuCjq9LAKeHVmoVfHVzy8eHgxxq8SbAVQNovDA8mVi05kP0Ea/n/UzcSHcTJQfNg==",
"requires": {
"follow-redirects": "^1.14.0"
}
}
} }
} }
} }
...@@ -13050,6 +12988,21 @@ ...@@ -13050,6 +12988,21 @@
"integrity": "sha512-WRbjgmYzgXkCV7zNVpy5YgrHgbBv126rMALQQMrmzOVC4GM2waQ9x7xtm8VU+1yF2kWyPzI9zbZ48n4vSxwfSA==", "integrity": "sha512-WRbjgmYzgXkCV7zNVpy5YgrHgbBv126rMALQQMrmzOVC4GM2waQ9x7xtm8VU+1yF2kWyPzI9zbZ48n4vSxwfSA==",
"dev": true "dev": true
}, },
"uppercamelcase": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/uppercamelcase/-/uppercamelcase-1.1.0.tgz",
"integrity": "sha512-C7YEMvhgrvTEKEEVqA7LXNID/1TvvIwYZqNIKLquS6y/MGSkRQAav9LnTTILlC1RqUM8eTVBOe1U/fnB652PRA==",
"requires": {
"camelcase": "^1.2.1"
},
"dependencies": {
"camelcase": {
"version": "1.2.1",
"resolved": "https://registry.npmjs.org/camelcase/-/camelcase-1.2.1.tgz",
"integrity": "sha512-wzLkDa4K/mzI1OSITC+DUyjgIl/ETNHE9QvYgy6J6Jvqyyz4C0Xfd+lQhb19sX2jMpZV4IssUn0VDVmglV+s4g=="
}
}
},
"uri-js": { "uri-js": {
"version": "4.4.1", "version": "4.4.1",
"resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz",
...@@ -13254,6 +13207,14 @@ ...@@ -13254,6 +13207,14 @@
"csstype": "^3.1.0" "csstype": "^3.1.0"
} }
}, },
"vue-amap": {
"version": "0.5.10",
"resolved": "https://registry.npmjs.org/vue-amap/-/vue-amap-0.5.10.tgz",
"integrity": "sha512-9ViNCev1vx32+zZ5RvF/TmUZNbwL9QrdA2/OnD2GlXMfQBkJy7D08Vb7379t6guqnopDPtWJ8K6gg72h9+4GUg==",
"requires": {
"uppercamelcase": "^1.1.0"
}
},
"vue-cli-plugin-element": { "vue-cli-plugin-element": {
"version": "1.0.1", "version": "1.0.1",
"resolved": "https://registry.npmjs.org/vue-cli-plugin-element/-/vue-cli-plugin-element-1.0.1.tgz", "resolved": "https://registry.npmjs.org/vue-cli-plugin-element/-/vue-cli-plugin-element-1.0.1.tgz",
...@@ -13334,6 +13295,75 @@ ...@@ -13334,6 +13295,75 @@
} }
} }
}, },
"vue-loader-v16": {
"version": "npm:vue-loader@16.8.3",
"resolved": "https://registry.npmjs.org/vue-loader/-/vue-loader-16.8.3.tgz",
"integrity": "sha512-7vKN45IxsKxe5GcVCbc2qFU5aWzyiLrYJyUuMz4BQLKctCj/fmCa0w6fGiiQ2cLFetNcek1ppGJQDCup0c1hpA==",
"dev": true,
"optional": true,
"requires": {
"chalk": "^4.1.0",
"hash-sum": "^2.0.0",
"loader-utils": "^2.0.0"
},
"dependencies": {
"ansi-styles": {
"version": "4.3.0",
"resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
"integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
"dev": true,
"optional": true,
"requires": {
"color-convert": "^2.0.1"
}
},
"chalk": {
"version": "4.1.2",
"resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",
"integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",
"dev": true,
"optional": true,
"requires": {
"ansi-styles": "^4.1.0",
"supports-color": "^7.1.0"
}
},
"color-convert": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
"integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
"dev": true,
"optional": true,
"requires": {
"color-name": "~1.1.4"
}
},
"color-name": {
"version": "1.1.4",
"resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
"integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
"dev": true,
"optional": true
},
"has-flag": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
"integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
"dev": true,
"optional": true
},
"supports-color": {
"version": "7.2.0",
"resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
"integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",
"dev": true,
"optional": true,
"requires": {
"has-flag": "^4.0.0"
}
}
}
},
"vue-router": { "vue-router": {
"version": "3.6.5", "version": "3.6.5",
"resolved": "https://registry.npmjs.org/vue-router/-/vue-router-3.6.5.tgz", "resolved": "https://registry.npmjs.org/vue-router/-/vue-router-3.6.5.tgz",
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
"el-tree-transfer": "^2.2.6", "el-tree-transfer": "^2.2.6",
"element-ui": "^2.4.5", "element-ui": "^2.4.5",
"glsx-common": "^2.0.4", "glsx-common": "^2.0.4",
"glsx-components": "^1.2.5", "glsx-components": "^1.5.7",
"vod-js-sdk-v6": "^1.5.0", "vod-js-sdk-v6": "^1.5.0",
"vue": "^2.6.10", "vue": "^2.6.10",
"vue-router": "^3.1.3", "vue-router": "^3.1.3",
......
...@@ -21,6 +21,8 @@ export default { ...@@ -21,6 +21,8 @@ export default {
listName: 'list', listName: 'list',
// 行数据的key // 行数据的key
mutiSelectUniqueKey: 'packageCode', mutiSelectUniqueKey: 'packageCode',
checkSelectKey: 'packageCode',
checkSelectVal: '',
// 多选ref的名称 // 多选ref的名称
mutiSelectName: 'list', mutiSelectName: 'list',
tableColumns: [ tableColumns: [
...@@ -42,6 +44,9 @@ export default { ...@@ -42,6 +44,9 @@ export default {
listName: 'list', listName: 'list',
// 行数据的key // 行数据的key
mutiSelectUniqueKey: 'packageCode', mutiSelectUniqueKey: 'packageCode',
checkSelectKey: 'id',
checkSelectVal: '',
checkSelectable: null,
// 多选ref的名称 // 多选ref的名称
mutiSelectName: 'list', mutiSelectName: 'list',
tableColumns: [ tableColumns: [
...@@ -81,7 +86,7 @@ export default { ...@@ -81,7 +86,7 @@ export default {
goodsTableParams: { goodsTableParams: {
listName: 'list', listName: 'list',
// 行数据的key // 行数据的key
mutiSelectUniqueKey: 'packageCode', mutiSelectUniqueKey: 'id',
// 多选ref的名称 // 多选ref的名称
mutiSelectName: 'list', mutiSelectName: 'list',
tableColumns: [ tableColumns: [
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: yangming yangming@didihu.com.cn * @Author: yangming yangming@didihu.com.cn
* @Date: 2023-05-16 17:13:33 * @Date: 2023-05-16 17:13:33
* @LastEditors: yangming yangming@didihu.com.cn * @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-07-17 15:39:18 * @LastEditTime: 2023-07-18 15:17:25
* @FilePath: \scrm-micro-home\src\store\modules\marketing.js * @FilePath: \scrm-micro-home\src\store\modules\marketing.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/ */
...@@ -87,12 +87,8 @@ export default { ...@@ -87,12 +87,8 @@ export default {
}, },
getTemplateInfo({ state }, data) { getTemplateInfo({ state }, data) {
apis.marketing.calendarDetail({ id: data }).then(res => { apis.marketing.calendarDetail({ id: data }).then(res => {
const { title, subTitle, startTime, endTime, backgroundImg, captionImg, codeId, couponItemList = [], subTitleStyle, titleStyle } = res || {} const { title, subTitle, startTime, endTime, backgroundImg, captionImg, codeId, subTitleStyle, titleStyle } = res || {}
if (couponItemList && couponItemList.length) state.activityInfo = Object.assign({}, { titleStyle, subTitleStyle, codeId, marketingTitle: title, marketingSubtitle: subTitle, backgroundImage: backgroundImg, detailImage: captionImg, couponItemList: true, activityTime: [startTime + ' 00:00:00', endTime + ' 00:00:00'] })
couponItemList.forEach(item => {
item.id = item.couponId
})
state.activityInfo = Object.assign({}, { titleStyle, subTitleStyle, codeId, marketingTitle: title, marketingSubtitle: subTitle, backgroundImage: backgroundImg, detailImage: captionImg, couponItemList, activityTime: [startTime + ' 00:00:00', endTime + ' 00:00:00'] })
}) })
}, },
//活动模板详情 //活动模板详情
......
...@@ -36,6 +36,7 @@ ...@@ -36,6 +36,7 @@
<div class="service-tab"> <div class="service-tab">
<div class="tab-item" :class="{ active: serviceIndex == item.type }" v-for="(item, index) in serviceTabList" :key="index" @click="serviceIndex = item.type">{{ item.label }}</div> <div class="tab-item" :class="{ active: serviceIndex == item.type }" v-for="(item, index) in serviceTabList" :key="index" @click="serviceIndex = item.type">{{ item.label }}</div>
<div class="tab-border" :style="{ left: (serviceIndex == 7 ? 0 : serviceIndex - 1) * 88 + 2 + 'px' }"></div> <div class="tab-border" :style="{ left: (serviceIndex == 7 ? 0 : serviceIndex - 1) * 88 + 2 + 'px' }"></div>
<div class="service-tip">(仅支持引用无限库存卷)</div>
<div class="tab-right"> <div class="tab-right">
<div class="refresh-btn" @click="getList"> <div class="refresh-btn" @click="getList">
<i class="el-icon-refresh-right"></i> <i class="el-icon-refresh-right"></i>
...@@ -149,6 +150,9 @@ export default { ...@@ -149,6 +150,9 @@ export default {
activityInfo: { activityInfo: {
handler(val) { handler(val) {
const info = this.$common.utils.deepClone(val) const info = this.$common.utils.deepClone(val)
if (this.routerInfo.addOrEdit == 'add') {
return
}
this.init() this.init()
this.$nextTick(() => { this.$nextTick(() => {
if (info.serviceMerchantPackageConfigDTOS) this.selectedCarList = info.serviceMerchantPackageConfigDTOS if (info.serviceMerchantPackageConfigDTOS) this.selectedCarList = info.serviceMerchantPackageConfigDTOS
...@@ -194,11 +198,17 @@ export default { ...@@ -194,11 +198,17 @@ export default {
this.goodsList = [] this.goodsList = []
this.selectedGoodsList = [] this.selectedGoodsList = []
this.totalPrice = 0 this.totalPrice = 0
this.editForm.activityPrice = ''
this.$refs['carRef'].$refs['listMutiTable'].clearSelection() this.$refs['carRef'].$refs['listMutiTable'].clearSelection()
this.$refs['goodsRef' + this.goodsIndex][0].$refs['listMutiTable'].clearSelection() this.$refs['goodsRef' + this.goodsIndex][0].$refs['listMutiTable'].clearSelection()
this.$refs['serviceRef' + this.serviceIndex][0].$refs['listMutiTable'].clearSelection() this.$refs['serviceRef' + this.serviceIndex][0].$refs['listMutiTable'].clearSelection()
}, },
validGh() {
if (this.activityInfo.ghExclusiveFlag != 2) return
const carList = this.carList.map(item => item.packageCode)
const serviceList = this.serviceList.map(item => item.id)
if (this.currentIndex == 1) this.carTableParams.checkSelectVal = carList
if (this.currentIndex == 3) this.serviceTableParams.checkSelectVal = serviceList
},
getGiftList(val) { getGiftList(val) {
const { merchantId } = this const { merchantId } = this
let params = { let params = {
...@@ -455,9 +465,9 @@ export default { ...@@ -455,9 +465,9 @@ export default {
}) })
this.calcCarValue() this.calcCarValue()
}) })
console.log(this.selectedCarList)
this.carList = packageConfigs this.carList = packageConfigs
this.selectedPreExisting(this.selectedCarList, this.carList, 'packageCode', this.$refs['carRef']) this.selectedPreExisting(this.selectedCarList, this.carList, 'packageCode', this.$refs['carRef'])
this.validGh()
}) })
.finally(() => { .finally(() => {
this.loading = false this.loading = false
...@@ -527,6 +537,7 @@ export default { ...@@ -527,6 +537,7 @@ export default {
// this.fnCallBack = true // this.fnCallBack = true
this.$refs['serviceRef' + this.serviceIndex][0].tableTotal = res.total this.$refs['serviceRef' + this.serviceIndex][0].tableTotal = res.total
this.selectedPreExisting(this.selectedServiceList, this.serviceList, 'id', this.$refs['serviceRef' + this.serviceIndex][0]) this.selectedPreExisting(this.selectedServiceList, this.serviceList, 'id', this.$refs['serviceRef' + this.serviceIndex][0])
this.validGh()
}) })
.finally(() => { .finally(() => {
this.loading = false this.loading = false
...@@ -559,6 +570,9 @@ export default { ...@@ -559,6 +570,9 @@ export default {
this.giftVisible = false this.giftVisible = false
}, },
tabClick(index) { tabClick(index) {
if ((index == 1 || index == 3) && this.activityInfo.ghExclusiveFlag == 2) {
this.$message.error('不可以修改用车权益/门店服务')
}
this.currentIndex = index this.currentIndex = index
} }
}, },
...@@ -635,10 +649,16 @@ export default { ...@@ -635,10 +649,16 @@ export default {
background: #ffffff; background: #ffffff;
transition: all 0.5s; transition: all 0.5s;
} }
.service-tip {
position: absolute;
right: -160px;
top: 3px;
color: #999;
}
.tab-right { .tab-right {
display: flex; display: flex;
position: absolute; position: absolute;
right: -30vw; right: -25vw;
top: 0px; top: 0px;
.refresh-btn { .refresh-btn {
cursor: pointer; cursor: pointer;
......
...@@ -4,14 +4,17 @@ ...@@ -4,14 +4,17 @@
<div class="task-item" v-for="item in taskList" :key="item.batchNo"> <div class="task-item" v-for="item in taskList" :key="item.batchNo">
<div class="task-title"> <div class="task-title">
<label>营销任务{{ taskList.length == 1 ? '' : item.batchNo }}</label> <label>营销任务{{ taskList.length == 1 ? '' : item.batchNo }}</label>
<div class="task-operate" v-show="item.expand" @click="handleExpand(item)">
收起 <template v-if="item.excelUrl">
<i class="el-icon-arrow-up"></i> <div class="task-operate" v-show="item.expand" @click="handleExpand(item)">
</div> 收起
<div class="task-operate" v-show="!item.expand" @click="handleExpand(item)"> <i class="el-icon-arrow-up"></i>
展开 </div>
<i class="el-icon-arrow-down"></i> <div class="task-operate" v-show="!item.expand" @click="handleExpand(item)">
</div> 展开
<i class="el-icon-arrow-down"></i>
</div>
</template>
</div> </div>
<div class="task-box"> <div class="task-box">
<template v-if="item.isFinish"> <template v-if="item.isFinish">
...@@ -52,7 +55,7 @@ ...@@ -52,7 +55,7 @@
<label>导入文档:</label> <label>导入文档:</label>
<span>成功导入客户数</span> <span>成功导入客户数</span>
</div> </div>
<div class="task-box-desc" :style="{ height: item.expand ? 'auto' : '0px' }"> <div class="task-box-desc" :style="{ height: item.expand ? 'auto' : '0px' }" v-show="item.excelUrl">
<div class="task-box-num">成功导入客户数</div> <div class="task-box-num">成功导入客户数</div>
<div class="task-num-item flex-column-center"> <div class="task-num-item flex-column-center">
<label>分配方式:</label> <label>分配方式:</label>
......
...@@ -12,6 +12,24 @@ ...@@ -12,6 +12,24 @@
<div class="case-container-title">预览营销方案</div> <div class="case-container-title">预览营销方案</div>
<phoneView ref="viewForm"></phoneView> <phoneView ref="viewForm"></phoneView>
</div> </div>
<GLDialog class="qr-dialog" title="活动链接" mode="mid" :hasFooter="false" :before-close="handleClose" :visible.sync="isQrcodeVisible" @onOk="handleCancelConfirm">
<div class="qrcode-body-link">
<div class="flex">
<div class="link-item" v-for="(item, index) in linkCode" :key="index">
<div class="link-item-l">
<div class="link-title">{{ item.title }}</div>
<div class="link-save"><el-button :size="size" type="primary" @click="downloadIamge(linkInfo[item.name])">保存图片</el-button></div>
</div>
<div class="link-item-r"><el-image :src="linkInfo[item.name]" alt=""></el-image></div>
</div>
</div>
<div class="link-address-box" v-for="(item, index) in linkValue" :key="index">
<div class="link-address-title">{{ item.title }}</div>
<div class="link-address">{{ linkInfo[item.name] }}</div>
<div class="link-clone"><el-button :size="size" type="primary" @click="cloneText(linkInfo[item.name])">复制链接</el-button></div>
</div>
</div>
</GLDialog>
</div> </div>
</template> </template>
...@@ -30,6 +48,16 @@ export default { ...@@ -30,6 +48,16 @@ export default {
}, },
data() { data() {
return { return {
isQrcodeVisible: false,
linkCode: [
{ title: '活动二维码', name: 'qrCodeUrl' },
{ title: '注册二维码', name: 'staffLoginQrCodeUrl' }
],
linkValue: [
{ title: '注册链接', name: 'staffLoginLinkUrl' },
{ title: '活动链接', name: 'linkUrl' }
],
linkInfo: {},
showPhone: false, showPhone: false,
loading: false, loading: false,
caseList: [ caseList: [
...@@ -43,6 +71,7 @@ export default { ...@@ -43,6 +71,7 @@ export default {
process: { process: {
handler(val) { handler(val) {
for (let k in val) { for (let k in val) {
console.log(val[k])
this.caseList[k].isFinish = val[k] ? true : false this.caseList[k].isFinish = val[k] ? true : false
} }
}, },
...@@ -61,11 +90,26 @@ export default { ...@@ -61,11 +90,26 @@ export default {
immediate: true immediate: true
} }
}, },
beforeDestroy() {
this.init()
},
methods: { methods: {
...mapMutations('marketing', ['SET_INIT']), ...mapMutations('marketing', ['SET_INIT']),
init() { init() {
this.SET_INIT(true) this.SET_INIT(true)
}, },
getDetail(id) {
this.isQrcodeVisible = true
this.$apis.activity.getShared({ id }).then(res => {
if (res) {
this.linkInfo = res
}
})
},
handleClose() {
this.isQrcodeVisible = false
this.$router.push('/activityLink/index')
},
//执行营销方案 //执行营销方案
async handleSave() { async handleSave() {
let params = { merchantId: this.$globalState.session.merchantId } let params = { merchantId: this.$globalState.session.merchantId }
...@@ -105,9 +149,8 @@ export default { ...@@ -105,9 +149,8 @@ export default {
.then(res => { .then(res => {
if (res) { if (res) {
this.loading = false this.loading = false
this.init() this.getDetail(res)
this.$message.success('操作成功') this.$message.success('操作成功')
if (params.id) this.$router.push('/activityLink/index')
} }
}) })
.finally(() => { .finally(() => {
...@@ -139,6 +182,49 @@ export default { ...@@ -139,6 +182,49 @@ export default {
background: #ffffff; background: #ffffff;
padding-top: 10px; padding-top: 10px;
} }
.qrcode-body-link {
.link-address-box {
background: #f8f8f8;
border-radius: 2px;
padding: 20px;
position: relative;
margin-top: 20px;
.link-address-title {
font-size: 14px;
color: #333333;
margin-bottom: 10px;
}
.link-address {
font-size: 14px;
color: #999999;
}
.link-clone {
position: absolute;
top: 20px;
right: 20px;
}
}
.flex {
gap: 10px;
.link-item {
background: #f8f8f8;
border-radius: 2px;
padding: 20px;
flex: 1;
display: flex;
justify-content: space-between;
.link-item-l {
display: flex;
flex-direction: column;
justify-content: space-between;
}
.link-item-r {
width: 120px;
height: 120px;
}
}
}
}
.case-step { .case-step {
width: 279px; width: 279px;
height: 170px; height: 170px;
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: yangming yangming@didihu.com.cn * @Author: yangming yangming@didihu.com.cn
* @Date: 2023-07-06 11:45:15 * @Date: 2023-07-06 11:45:15
* @LastEditors: yangming yangming@didihu.com.cn * @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-07-17 18:21:24 * @LastEditTime: 2023-07-18 16:36:52
* @FilePath: \scrm-micro-link\src\views\activityLink\components\SelectInsure.vue * @FilePath: \scrm-micro-link\src\views\activityLink\components\SelectInsure.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
--> -->
...@@ -48,15 +48,7 @@ export default { ...@@ -48,15 +48,7 @@ export default {
}) })
}, },
handleConfirm() { handleConfirm() {
this.$confirm('是否覆盖营销礼包的内容?', '提示', { this.$emit('handleSure', this.selectObj)
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
})
.then(() => {
this.$emit('handleSure', this.selectObj)
})
.catch(() => {})
}, },
handleModelClose() { handleModelClose() {
this.$emit('handleClose') this.$emit('handleClose')
......
...@@ -2121,6 +2121,9 @@ export default { ...@@ -2121,6 +2121,9 @@ export default {
}) })
param.couponCreateRequests = couponLists.concat(selectedGoodsList) || [] param.couponCreateRequests = couponLists.concat(selectedGoodsList) || []
const equityServices = this.selectedEquityList.map(i => i.packageCode) const equityServices = this.selectedEquityList.map(i => i.packageCode)
if(!param.serviceMerchantPackageConfigDTOS) {
delete param.serviceMerchantPackageConfigDTOS
}
param.equityServices = equityServices.join(',') param.equityServices = equityServices.join(',')
delete param.couponList delete param.couponList
// 标杆门店总产值/元(已结束战报) // 标杆门店总产值/元(已结束战报)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!