Commit 70a8309c by chenwq

场景线索

1 parent 3c5585b0
...@@ -117,93 +117,34 @@ export default { ...@@ -117,93 +117,34 @@ export default {
// roomName: '' // roomName: ''
}, },
groupCofList: { groupCofList: {
// zhanReport: [],
// orderReport: [],
// saReport: [],
trainingReport: [], trainingReport: [],
// scheduleReport: [], sceneClue: []
// wordReport: [], },
// saasReport: [],
// viewReport: [],
// InvoicingReport: []
},
// switchList: {
// // xiReport: [],
// zhanReport: [{ switchType: 201, switchStatus: 'Y', actionReportType: 2 }],
// orderReport: [],
// viewReport: [],
// InvoicingReport: [],
// saReport: [
// { switchType: 401, switchStatus: 'Y', actionReportType: 4 },
// { switchType: 402, switchStatus: 'Y', actionReportType: 4 }
// ],
// saPerReport: [
// { switchType: 501, switchStatus: 'Y', actionReportType: 5 },
// { switchType: 502, switchStatus: 'Y', actionReportType: 5 },
// { switchType: 503, switchStatus: 'Y', actionReportType: 5 },
// { switchType: 504, switchStatus: 'Y', actionReportType: 5, switchText: '' }
// ],
// scheduleReport: [{ switchType: 601, switchStatus: 'Y', actionReportType: 6 }],
// wordReport: [{ switchType: 701, switchStatus: 'Y', actionReportType: 7, switchText: '' }]
// },
groupCofListInput: { groupCofListInput: {
// wordReportValue: [],
// orderReportValue: [],
// viewReportValue: [],
// InvoicingReportValue: [],
// saReportValue: [],
trainingReportValue: [], trainingReportValue: [],
// scheduleReportValue: [], sceneClueValue: [],
// zhanReportValue: [],
// saasReportValue: []
}, },
groupToType: [ groupToType: [
// {
// attr: 'xiReport',
// type: 1
// },
{ {
attr: 'trainingReport', attr: 'trainingReport',
type: 29 type: 29
}, },
// { {
// attr: 'orderReport', attr: 'sceneClue',
// type: 3 type: 27
// }, },
// {
// attr: 'saReport',
// type: 4
// },
// {
// attr: 'saPerReport',
// type: 5
// },
// {
// attr: 'scheduleReport',
// type: 6
// },
// {
// attr: 'wordReport',
// type: 7
// },
// {
// attr: 'saasReport',
// type: 8
// },
// {
// attr: 'viewReport',
// type: 9
// },
// {
// attr: 'InvoicingReport',
// type: 10
// }
], ],
buttetinList: [ buttetinList: [
{ {
label: '.培训日报', label: '.培训日报',
storageList: 'trainingReportValue', storageList: 'trainingReportValue',
componentName: '' componentName: ''
},
{
label: '.场景线索',
storageList: 'sceneClueValue',
componentName: ''
} }
] ]
} }
...@@ -278,7 +219,7 @@ export default { ...@@ -278,7 +219,7 @@ export default {
this.$apis.battle.activityreportWorktool({ cloudId: this.idBefEncryption }).then(res => { this.$apis.battle.activityreportWorktool({ cloudId: this.idBefEncryption }).then(res => {
this.selectGroupName = res.data.result || [] this.selectGroupName = res.data.result || []
// this.groupCofListInput = { wordReportValue: [{ name: '' }], orderReportValue: [{ name: '' }], viewReportValue: [{ name: '' }], InvoicingReportValue: [{ name: '' }], saReportValue: [{ name: '' }], trainingReportValue: [{ name: '' }], scheduleReportValue: [{ name: '' }], zhanReportValue: [{ name: '' }], saasReportValue: [{ name: '' }] } // this.groupCofListInput = { wordReportValue: [{ name: '' }], orderReportValue: [{ name: '' }], viewReportValue: [{ name: '' }], InvoicingReportValue: [{ name: '' }], saReportValue: [{ name: '' }], trainingReportValue: [{ name: '' }], scheduleReportValue: [{ name: '' }], zhanReportValue: [{ name: '' }], saasReportValue: [{ name: '' }] }
this.groupCofListInput = { trainingReportValue: [{ name: '' }] } this.groupCofListInput = { trainingReportValue: [{ name: '' }], sceneClueValue: [{ name: '' }] }
}) })
}, },
// 弹窗数据回显 // 弹窗数据回显
...@@ -304,16 +245,8 @@ export default { ...@@ -304,16 +245,8 @@ export default {
automaticName: '' automaticName: ''
} }
this.groupCofListInput = { this.groupCofListInput = {
// xiReportValue: [],
// wordReportValue: [],
// orderReportValue: [],
// saReportValue: [],
trainingReportValue: [], trainingReportValue: [],
// scheduleReportValue: [], sceneClueValue: [],
// zhanReportValue: [],
// viewReportValue: [],
// InvoicingReportValue: [],
// saasReportValue: []
} }
this.battleVisible = true this.battleVisible = true
// 编辑 // 编辑
...@@ -361,6 +294,7 @@ export default { ...@@ -361,6 +294,7 @@ export default {
// InvoicingReportValue: [{ name: '' }], // InvoicingReportValue: [{ name: '' }],
// saReportValue: [{ name: '' }], // saReportValue: [{ name: '' }],
trainingReportValue: [{ name: '' }], trainingReportValue: [{ name: '' }],
sceneClueValue: [{ name: '' }],
// scheduleReportValue: [{ name: '' }], // scheduleReportValue: [{ name: '' }],
// zhanReportValue: [{ name: '' }], // zhanReportValue: [{ name: '' }],
// saasReportValue: [{ name: '' }] // saasReportValue: [{ name: '' }]
...@@ -373,15 +307,8 @@ export default { ...@@ -373,15 +307,8 @@ export default {
this.groupList = res.data this.groupList = res.data
if (isReset) { if (isReset) {
this.groupCofList = { this.groupCofList = {
// zhanReport: [],
// orderReport: [],
// viewReport: [],
// InvoicingReport: [],
// saReport: [],
trainingReport: [], trainingReport: [],
// scheduleReport: [], sceneClue: []
// wordReport: [],
// saasReport: []
} }
} }
} }
...@@ -398,15 +325,8 @@ export default { ...@@ -398,15 +325,8 @@ export default {
automaticName: '' automaticName: ''
} }
this.groupCofList = { this.groupCofList = {
// zhanReport: [],
// orderReport: [],
// viewReport: [],
// InvoicingReport: [],
// saReport: [],
trainingReport: [], trainingReport: [],
// scheduleReport: [], sceneClue: []
// wordReport: [],
// saasReport: []
} }
}, },
async getDepartmentTree() { async getDepartmentTree() {
...@@ -501,21 +421,8 @@ export default { ...@@ -501,21 +421,8 @@ export default {
staffName: this.wechat.automaticName, staffName: this.wechat.automaticName,
groupMerchantId: this.config.merchantId, groupMerchantId: this.config.merchantId,
updatedBy: this.$globalState.session.accountName, updatedBy: this.$globalState.session.accountName,
// yqMerchantIdList: [],
groupConfigList: [], groupConfigList: [],
// merchantId: this.setectList[0]?.merchantId, }
// scene: 1
}
// let switchList = []
// let reportParams = ['saReport', 'zhanReport', 'orderReport', 'saPerReport', 'scheduleReport', 'wordReport', 'viewReport', 'InvoicingReport']
// reportParams.forEach(item => {
// switchList.push(...this.switchList[item])
// })
// switchList.map(item => (item.switchStatus = item.switchStatus ? 'Y' : 'N'))
// params.switchList = switchList
// this.setectList.forEach(item => {
// params.yqMerchantIdList.push(item.yqMerchantId)
// })
Object.keys(this.groupCofList).map(item => { Object.keys(this.groupCofList).map(item => {
let type = this.groupToType.find(k => k.attr == item).type let type = this.groupToType.find(k => k.attr == item).type
if (this.groupCofList[item].length) { if (this.groupCofList[item].length) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!