Commit 0966a48d by 杨明

fixed

1 parent dc13debe
......@@ -25,6 +25,9 @@
</div>
</GLTable>
</GLDialog>
<el-dialog title="预览" :append-to-body="true" :visible.sync="dialogVisible" width="30%">
<phone-view :activityInfo="activityInfo"></phone-view>
</el-dialog>
</div>
</template>
......@@ -33,6 +36,7 @@ import marketingTask from './MarketingTask'
import marketingGift from './MarketingGift'
import marketingContent from './MarketingContent'
import { mapActions } from 'vuex'
import PhoneView from './PhoneView.vue'
export default {
components: {
marketingTask,
......@@ -41,6 +45,7 @@ export default {
},
data() {
return {
dialogVisible: false,
routeInfo: {},
tabList: [{ label: '营销任务' }, { label: '营销礼包' }, { label: '营销内容' }],
caseList: [],
......@@ -137,7 +142,18 @@ export default {
this.getActivityInfo(row.id)
},
//预览
handleView(row) {},
handleView(row) {
this.$apis.marketing.activityDetail({ id: row.id }).then(res => {
console.log(res)
// if (res) {
// const activityCoupon = res.activityCouponBaseInfoDTOS || res.couponList || [],
// selectedGoodsList = activityCoupon.filter(i => i.discountType == 8),
// couponList = activityCoupon.filter(i => i.discountType != 8)
// this.activityInfo = { ...res, selectedEquityList: res.serviceMerchantPackageConfigDTOList, couponList, selectedGoodsList }
// this.dialogVisible = true
// }
})
},
tabClick(index) {
this.currentIndex = index
},
......@@ -160,6 +176,7 @@ export default {
}
this.$apis.activity.activityPage(param).then(res => {
this.caseList = res.list || []
this.$refs.caseRef.tableTotal = res.total
})
},
handleTabClick() {
......
......@@ -147,9 +147,9 @@ export default {
watch: {
process: {
handler(val) {
console.log(val)
if (val[0] === false) {
this.taskList = [{ batchNo: 1, ...taskData, ...{ isFinish: false } }]
this.findMerchantStaffList()
this.customerKey = []
}
},
......@@ -250,21 +250,6 @@ export default {
},
handleSelectionChange(val, item) {
item.staffList = val
item.staffList = item.staffList.map(item => {
return {
lastStaffFlag: item.lastCustomerNum ? 1 : 0,
lastCustomerNum: item.lastCustomerNum,
merchantId: item.merchantNo,
staffPhone: item.staffPhone,
staffName: item.staffName,
staffUuid: item.uuid,
id: item.id,
messageContent: item.messageContent,
registerStatus: item.registerStatus,
talkId: item.talkId,
createdBy: item.createdBy
}
})
},
//邀请人员注册
showRegister() {
......@@ -297,6 +282,7 @@ export default {
console.log(this.taskList[this.batchNo].tableData)
this.taskList[this.batchNo].tableData[this.selectIndex].talkId = this.configForm.talkId
this.taskList[this.batchNo].tableData[this.selectIndex].messageContent = this.configForm.messageContent.replace(/广汇汽车/, this.$globalState.session.merchantName)
console.log(this.taskList)
},
handleCancel() {
......@@ -315,6 +301,23 @@ export default {
key: item.key
}
})
customerRequestList.forEach(item => {
item.staffList = item.staffList.map(item => {
return {
lastStaffFlag: item.lastCustomerNum ? 1 : 0,
lastCustomerNum: item.lastCustomerNum,
merchantId: item.merchantNo,
staffPhone: item.staffPhone,
staffName: item.staffName,
staffUuid: item.uuid,
id: item.id,
messageContent: item.messageContent,
registerStatus: item.registerStatus,
talkId: item.talkId,
createdBy: item.createdBy
}
})
})
console.log(customerRequestList)
if (this.vaildTask())
this.setProcess({
......
......@@ -60,7 +60,7 @@ export default {
}
params = { ...params, ...this.process[k] }
}
console.log(params)
this.loading = true
const {
backgroundHeight,
detail: { backgroundImage },
......@@ -69,11 +69,11 @@ export default {
const url = await this.createMain(backgroundHeight, backgroundImage, draggableList)
params.subscribe = this.subscribe
params.backgroundImage = url
this.loading = true
this.$apis.marketing
.createSuperMarketing(params)
.then(res => {
if (res) {
this.loading = false
this.init()
this.$message.success('操作成功')
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!