Commit dc13debe by 杨明

fixed

1 parent 45215e6c
......@@ -2,7 +2,7 @@
* @Author: yangming yangming@didihu.com.cn
* @Date: 2023-06-29 21:24:27
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-07-09 12:29:03
* @LastEditTime: 2023-07-10 14:51:57
* @FilePath: \scrm-micro-link\src\views\activityLink\components\MarketingContent.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
......@@ -52,7 +52,6 @@ export default {
marketingTitle: '',
marketingSubtitle: '',
activityTime: [],
superMarketingCouponRelRequestList: [],
backgroundImage: '',
detailImage: '',
merchantLog: ''
......
......@@ -116,9 +116,9 @@ export default {
subscribe(val) {
this.getGiftList(val)
},
'editForm.activityPrice'(val) {
this.editForm.activityPrice = val.match(/\d+\.?\d{0,2}/, '')
},
// 'editForm.activityPrice'(newValue, oldValue) {
// this.editForm.activityPrice = ('' + newValue).match(/\d+\.?\d{0,2}/, '')
// },
currentIndex: {
handler() {
this.getList()
......@@ -210,13 +210,13 @@ export default {
}
const params = {}
const selectedGoodsList = [...this.selectedGoodsList, ...this.selectedServiceList].map(item => {
console.log(item)
return {
couponId: item.id,
couponAmount: item.couponAmount,
couponAmount: item.couponAmount || item.getAmount,
couponAnticipatedCost: item.denomination
}
})
console.log(this.selectedGoodsList, this.selectedServiceList)
const equityServices = this.selectedCarList.map(i => i.packageCode)
params.equityServices = equityServices.join(',')
params.activityPrice = (this.editForm.activityPrice * 100).toFixed(0)
......@@ -435,6 +435,7 @@ export default {
status: 2,
discountType: this.serviceIndex,
merchantId: this.merchantId,
limitStockFlag: 2,
pageNum: this.$refs['serviceRef' + this.serviceIndex][0].page.pageNum,
pageSize: this.$refs['serviceRef' + this.serviceIndex][0].page.pageSize
}
......
......@@ -138,7 +138,7 @@ export default {
configVisible: false,
configForm: config,
tableData: [],
roobList: [{ labe: 3, value: 4 }]
roobList: []
}
},
mounted() {
......@@ -278,12 +278,14 @@ export default {
this.configVisible = true
this.batchNo = num - 1
this.selectIndex = row.$index
this.configForm = {
taskId: row.talkId ? row.talkId : config.talkId,
messageContent: row.messageContent ? row.messageContent : config.messageContent
}
this.$apis.marketing.getRobotList({}).then(res => {
this.roobList = res.list || []
this.$nextTick(() => {
this.configForm = {
talkId: row.row.talkId ? row.row.talkId : config.talkId,
messageContent: row.row.messageContent ? row.row.messageContent : config.messageContent
}
})
})
},
handleCancelConfing() {
......
......@@ -37,6 +37,7 @@ export default {
watch: {
process: {
handler(val) {
console.log(val)
for (let k in val) {
this.caseList[k].isFinish = val[k] ? true : false
}
......@@ -59,6 +60,7 @@ export default {
}
params = { ...params, ...this.process[k] }
}
console.log(params)
const {
backgroundHeight,
detail: { backgroundImage },
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!