Commit dc13debe by 杨明

fixed

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