Commit 7aef01cb by 前端

更新3.3.1代码

1 parent 67360416
...@@ -398,7 +398,6 @@ export default { ...@@ -398,7 +398,6 @@ export default {
}, },
// 预览回显事件 // 预览回显事件
previewForm(val) { previewForm(val) {
console.log(val)
const value = this.$common.utils.deepClone(val) const value = this.$common.utils.deepClone(val)
if (value[0] && !value[0].attContent) value.splice(0, 1) if (value[0] && !value[0].attContent) value.splice(0, 1)
this.previewVal = value this.previewVal = value
......
...@@ -271,6 +271,26 @@ export default { ...@@ -271,6 +271,26 @@ export default {
tableOption: true, tableOption: true,
tableColumns: [ tableColumns: [
{ {
label: '浏览量(次)',
prop: 'viewAmount',
addHtml: 'linkText',
width: 140
},
{
label: '访客',
prop: 'fansAmount',
addHtml: 'linkText'
},
{
label: '分享',
prop: 'shareAmount',
addHtml: 'linkText'
},
{
label: '销量',
prop: 'saleAmount'
},
{
label: '活动名称', label: '活动名称',
prop: 'activityName', prop: 'activityName',
width: 220 width: 220
...@@ -280,12 +300,7 @@ export default { ...@@ -280,12 +300,7 @@ export default {
prop: 'activityImg', prop: 'activityImg',
addHtml: 'activityImg' addHtml: 'activityImg'
}, },
{
label: '浏览量(次)',
prop: 'viewAmount',
addHtml: 'linkText',
width: 140
},
{ {
label: '进账', label: '进账',
prop: 'income', prop: 'income',
...@@ -308,20 +323,6 @@ export default { ...@@ -308,20 +323,6 @@ export default {
} }
}, },
{ {
label: '访客',
prop: 'fansAmount',
addHtml: 'linkText'
},
{
label: '分享',
prop: 'shareAmount',
addHtml: 'linkText'
},
{
label: '销量',
prop: 'saleAmount'
},
{
label: '秒杀价(元)', label: '秒杀价(元)',
name: 'activityPrice', name: 'activityPrice',
width: 140, width: 140,
......
...@@ -50,7 +50,6 @@ export default { ...@@ -50,7 +50,6 @@ export default {
created() { created() {
this.routeInfo = Object.keys(this.$route.query).length ? this.$route.query : this.$common.utils.storage.get('sopInfo') this.routeInfo = Object.keys(this.$route.query).length ? this.$route.query : this.$common.utils.storage.get('sopInfo')
console.log(this.routeInfo)
}, },
methods: { methods: {
...@@ -58,6 +57,7 @@ export default { ...@@ -58,6 +57,7 @@ export default {
this.activeName = obj.activeName this.activeName = obj.activeName
}, },
handleInfoConfirm(info) { handleInfoConfirm(info) {
this.eventObj.addOrEdit == 'add' ? this.$refs.baseInfoRef.editForm.eventList.push(info.baseInfo) : this.$set(this.$refs.baseInfoRef.editForm.eventList, this.eventIndex, info.baseInfo) this.eventObj.addOrEdit == 'add' ? this.$refs.baseInfoRef.editForm.eventList.push(info.baseInfo) : this.$set(this.$refs.baseInfoRef.editForm.eventList, this.eventIndex, info.baseInfo)
this.$refs.baseInfoRef.parentCustomerObj.phone = info.predictCountObj.phone this.$refs.baseInfoRef.parentCustomerObj.phone = info.predictCountObj.phone
this.$refs.baseInfoRef.parentCustomerObj.qiwei = info.predictCountObj.qiwei this.$refs.baseInfoRef.parentCustomerObj.qiwei = info.predictCountObj.qiwei
......
...@@ -57,6 +57,12 @@ export default { ...@@ -57,6 +57,12 @@ export default {
type: 'input', type: 'input',
isClear: true, isClear: true,
maxlength: 11 maxlength: 11
},
{
label: '企微名称',
name: 'nickName',
type: 'input',
isClear: true,
} }
], ],
// 表格 // 表格
...@@ -80,6 +86,14 @@ export default { ...@@ -80,6 +86,14 @@ export default {
} }
}, },
{ {
label: '企微名称',
prop: 'nickNameList',
width: '130px',
formatter: cellValue => {
return cellValue.nickNameList[0] && cellValue.nickNameList[0].nickName || '-'
}
},
{
label: '客户手机号', label: '客户手机号',
prop: 'customerPhone', prop: 'customerPhone',
width: '130px', width: '130px',
...@@ -197,16 +211,20 @@ export default { ...@@ -197,16 +211,20 @@ export default {
var selectIds = currentList.map(item => item.id) var selectIds = currentList.map(item => item.id)
var selectedIds = val.map(item => item.id) var selectedIds = val.map(item => item.id)
var tempList = [] var tempList = []
val.forEach(item => { val.forEach((item,index) => {
if (!selectIds.includes(item.id) && tableIds.includes(item.id) && this.selectedCustomerList.length < this.maxCustNum) { if (!selectIds.includes(item.id) && tableIds.includes(item.id) && this.selectedCustomerList.length < this.maxCustNum) {
this.selectedCustomerList.push(item) this.selectedCustomerList.push(item)
} }
if (item.nickNameList.length){
this.selectedCustomerList[index].customerNickName = item.nickNameList[0].nickName || ''
}
}) })
this.selectedCustomerList.forEach(item => { this.selectedCustomerList.forEach(item => {
if (selectedIds.includes(item.id) || !tableIds.includes(item.id)) { if (selectedIds.includes(item.id) || !tableIds.includes(item.id)) {
tempList.push(item) tempList.push(item)
} }
}) })
this.selectedCustomerList = tempList this.selectedCustomerList = tempList
this.recoverySelected() this.recoverySelected()
}, },
......
...@@ -79,19 +79,19 @@ export default { ...@@ -79,19 +79,19 @@ export default {
click: this.handleEnd click: this.handleEnd
} }
}, },
{ // {
type: 'el-button', // type: 'el-button',
name: '查看', // name: '查看',
attrs: { // attrs: {
type: 'text' // type: 'text'
}, // },
condition: row => { // condition: row => {
return row.sopStatus == 3 // return row.sopStatus == 3
}, // },
listeners: { // listeners: {
click: row => this.handleEdit('look', row) // click: row => this.handleEdit('look', row)
} // }
}, // },
// { // {
// type: 'el-button', // type: 'el-button',
// name: '复制', // name: '复制',
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!