Commit 7aef01cb by 前端

更新3.3.1代码

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