Commit c3f672eb by chenwq

sop冗余代码

1 parent 6fe43ba9
...@@ -22,7 +22,6 @@ ...@@ -22,7 +22,6 @@
<!-- <div v-show="editForm.customerInfoList.length != 0" class="customer-box m-t-10"> --> <!-- <div v-show="editForm.customerInfoList.length != 0" class="customer-box m-t-10"> -->
<div v-show="item.list.length != 0"> <div v-show="item.list.length != 0">
<div class="customer-box m-t-10"> <div class="customer-box m-t-10">
<!-- <div class="customer-title">{{ condLimitObj.hasQw ? '已加' : '没加' }}企微/{{ condLimitObj.hasPhone ? '有' : '没有' }}手机号:{{ editForm.customerInfoList.length }}人</div> -->
<div class="customer-title">{{ item.confName }}客户:预估{{ item.customerCount }}人</div> <div class="customer-title">{{ item.confName }}客户:预估{{ item.customerCount }}人</div>
<div :key="key" class="el-input-tag input-tag-wrapper"> <div :key="key" class="el-input-tag input-tag-wrapper">
<template v-if="item.confName == '标签'"> <template v-if="item.confName == '标签'">
...@@ -129,16 +128,6 @@ export default { ...@@ -129,16 +128,6 @@ export default {
3: 'coupon', 3: 'coupon',
4: 'nickname' 4: 'nickname'
}, },
// markCondLimitObj: {
// // 1-有;0-无
// hasPhone: -1,
// hasQw: -1
// },
// condLimitObj: {
// // 1-有;0-无
// hasPhone: 0,
// hasQw: 0
// },
parentCustomerObj: { parentCustomerObj: {
// 人群,标签,指定 // 人群,标签,指定
currentCustomerTypeName: '', currentCustomerTypeName: '',
...@@ -447,31 +436,6 @@ export default { ...@@ -447,31 +436,6 @@ export default {
}) })
}, },
// 恢复企微和手机号限制
// recoveryCondLimit() {
// var obj = this.editForm.customerInfoList[0]
// this.condLimitObj.hasQw = obj.isJoin
// this.condLimitObj.hasPhone = obj.customerPhone ? 1 : 0
// this.markCondLimitObj = {
// hasQw: this.condLimitObj.hasQw,
// hasPhone: this.condLimitObj.hasPhone
// }
// },
// changeCustomer(obj) {
// this.editForm.customerInfoList = obj.selectedCustomerList
// this.condLimitObj = obj.condLimitObj
// if (this.markCondLimitObj.hasQw != -1) {
// if (this.markCondLimitObj.hasQw != obj.condLimitObj.hasQw || this.markCondLimitObj.hasPhone != obj.condLimitObj.hasPhone) {
// this.editForm.eventList = []
// }
// }
// this.markCondLimitObj = {
// hasQw: this.condLimitObj.hasQw,
// hasPhone: this.condLimitObj.hasPhone
// }
// },
getCustomerByCrowdList() { getCustomerByCrowdList() {
var params = { var params = {
pageSize: 1, pageSize: 1,
...@@ -674,7 +638,6 @@ export default { ...@@ -674,7 +638,6 @@ export default {
item.isJoin == 1 && this.parentCustomerObj.parentPredictObj.qiwei++ item.isJoin == 1 && this.parentCustomerObj.parentPredictObj.qiwei++
}) })
} }
// this.$emit('handleTabChange', { activeName: 'editEvent', addOrEdit: addOrEdit, eventIndex: addOrEdit == 'add' ? '-1' : idx, condLimitObj: this.condLimitObj, info: { ...row, sopName: this.editForm.sopName } })
this.$emit('handleTabChange', { activeName: 'editEvent', addOrEdit: addOrEdit, eventIndex: addOrEdit == 'add' ? '-1' : idx, parentCustomerObj: this.parentCustomerObj, info: { ...row, sopName: this.editForm.sopName } }) this.$emit('handleTabChange', { activeName: 'editEvent', addOrEdit: addOrEdit, eventIndex: addOrEdit == 'add' ? '-1' : idx, parentCustomerObj: this.parentCustomerObj, info: { ...row, sopName: this.editForm.sopName } })
}, },
......
...@@ -161,16 +161,6 @@ export default { ...@@ -161,16 +161,6 @@ export default {
type: Array, type: Array,
default: () => [] default: () => []
} }
// condLimitObj: {
// type: Object,
// default: () => {
// return {
// // 1-有;0-无
// hasPhone: 0,
// hasQw: 0
// }
// }
// }
}, },
mounted() { mounted() {
...@@ -222,16 +212,6 @@ export default { ...@@ -222,16 +212,6 @@ export default {
this.$refs.customerRef.$refs[this.tableParams.mutiSelectName + 'MutiTable'].toggleRowSelection(this.tableList[idx], true) this.$refs.customerRef.$refs[this.tableParams.mutiSelectName + 'MutiTable'].toggleRowSelection(this.tableList[idx], true)
} }
}) })
// 找到不符合条件的,变为不可选
// this.tableParams.checkSelectVal = []
// if (this.selectedCustomerList.length) {
// this.tableList.forEach((row, idx) => {
// if (row.isJoin != this.condLimitObj.hasQw || !!row.customerPhone != this.condLimitObj.hasPhone) {
// this.tableParams.checkSelectVal.push(row.id)
// this.$refs.customerRef.$refs[this.tableParams.mutiSelectName + 'MutiTable'].toggleRowSelection(this.tableList[idx], false)
// }
// })
// }
if (this.selectedCustomerList.length >= 5) { if (this.selectedCustomerList.length >= 5) {
let tableIds = this.selectedCustomerList.map(item => item.id) let tableIds = this.selectedCustomerList.map(item => item.id)
console.log(tableIds) console.log(tableIds)
...@@ -247,15 +227,6 @@ export default { ...@@ -247,15 +227,6 @@ export default {
}) })
}, },
// dealCondLimit(val) {
// this.condLimitObj.hasQw = val ? val.isJoin : 0
// this.condLimitObj.hasPhone = val ? (val.customerPhone ? 1 : 0) : 0
// },
// handleClickTag() {
// this.$emit('handleChangeTag', { condLimitObj: this.condLimitObj, tagList: this.selectedLabelList, customerInfoList: this.selectedCustomerList, activeName: 'tag' })
// },
handleSelectionTable(val) { handleSelectionTable(val) {
// 未选客户时,筛选客户条件 // 未选客户时,筛选客户条件
// if (!this.selectedCustomerList.length) { // if (!this.selectedCustomerList.length) {
......
...@@ -426,16 +426,6 @@ export default { ...@@ -426,16 +426,6 @@ export default {
} }
} }
} }
// condLimitObj: {
// type: Object,
// default: () => {
// return {
// // 1-有;0-无
// hasPhone: 0,
// hasQw: 0
// }
// }
// }
}, },
components: { components: {
...@@ -454,14 +444,6 @@ export default { ...@@ -454,14 +444,6 @@ export default {
'editForm.reachesTypeSet'(newValue, oldValue) { 'editForm.reachesTypeSet'(newValue, oldValue) {
this.editForm.reachesTypeSet = limitPrice(newValue, oldValue, 5, 0, 1, 9999, 'zNumReg') this.editForm.reachesTypeSet = limitPrice(newValue, oldValue, 5, 0, 1, 9999, 'zNumReg')
} }
// 'editForm.object.additionalType'(val) {
// var idx = this.editFormDataChannel.findIndex(item => item.name == 'pushChannelType')
// this.editFormDataChannel[idx].optionList[0].isDisabled = val == '4' || !this.condLimitObj.hasQw
// this.editFormDataChannel[idx].optionList[1].isDisabled = val == '4' || !this.condLimitObj.hasPhone
// if (this.condLimitObj.hasQw) {
// this.editFormDataChannel[idx].optionList[2].isDisabled = [1, 2, 3].includes(val)
// }
// }
}, },
created() { created() {
...@@ -483,17 +465,6 @@ export default { ...@@ -483,17 +465,6 @@ export default {
}, },
methods: { methods: {
// limitQwPhone() {
// // 有企微 - 企业微信、微信朋友圈
// // 有手机号 - 短信
// var channelIdx = this.editFormDataChannel.findIndex(item => item.name == 'pushChannelType')
// // 企微
// this.editFormDataChannel[channelIdx].optionList[0].isDisabled = !this.condLimitObj.hasQw
// // 短信
// this.editFormDataChannel[channelIdx].optionList[1].isDisabled = !this.condLimitObj.hasPhone
// // 微信朋友圈
// this.editFormDataChannel[channelIdx].optionList[2].isDisabled = !this.condLimitObj.hasQw
// },
getOptionsList(formName, hasAll = true, refreshSigle) { getOptionsList(formName, hasAll = true, refreshSigle) {
if (refreshSigle) { if (refreshSigle) {
var item = this[formName].find(k => k.name == refreshSigle) var item = this[formName].find(k => k.name == refreshSigle)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!