Commit 70a8309c by chenwq

场景线索

1 parent 3c5585b0
......@@ -117,93 +117,34 @@ export default {
// roomName: ''
},
groupCofList: {
// zhanReport: [],
// orderReport: [],
// saReport: [],
trainingReport: [],
// scheduleReport: [],
// wordReport: [],
// saasReport: [],
// viewReport: [],
// InvoicingReport: []
sceneClue: []
},
// 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: {
// wordReportValue: [],
// orderReportValue: [],
// viewReportValue: [],
// InvoicingReportValue: [],
// saReportValue: [],
trainingReportValue: [],
// scheduleReportValue: [],
// zhanReportValue: [],
// saasReportValue: []
sceneClueValue: [],
},
groupToType: [
// {
// attr: 'xiReport',
// type: 1
// },
{
attr: 'trainingReport',
type: 29
},
// {
// attr: 'orderReport',
// type: 3
// },
// {
// 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
// }
{
attr: 'sceneClue',
type: 27
},
],
buttetinList: [
{
label: '.培训日报',
storageList: 'trainingReportValue',
componentName: ''
},
{
label: '.场景线索',
storageList: 'sceneClueValue',
componentName: ''
}
]
}
......@@ -278,7 +219,7 @@ export default {
this.$apis.battle.activityreportWorktool({ cloudId: this.idBefEncryption }).then(res => {
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 = { trainingReportValue: [{ name: '' }] }
this.groupCofListInput = { trainingReportValue: [{ name: '' }], sceneClueValue: [{ name: '' }] }
})
},
// 弹窗数据回显
......@@ -304,16 +245,8 @@ export default {
automaticName: ''
}
this.groupCofListInput = {
// xiReportValue: [],
// wordReportValue: [],
// orderReportValue: [],
// saReportValue: [],
trainingReportValue: [],
// scheduleReportValue: [],
// zhanReportValue: [],
// viewReportValue: [],
// InvoicingReportValue: [],
// saasReportValue: []
sceneClueValue: [],
}
this.battleVisible = true
// 编辑
......@@ -361,6 +294,7 @@ export default {
// InvoicingReportValue: [{ name: '' }],
// saReportValue: [{ name: '' }],
trainingReportValue: [{ name: '' }],
sceneClueValue: [{ name: '' }],
// scheduleReportValue: [{ name: '' }],
// zhanReportValue: [{ name: '' }],
// saasReportValue: [{ name: '' }]
......@@ -373,15 +307,8 @@ export default {
this.groupList = res.data
if (isReset) {
this.groupCofList = {
// zhanReport: [],
// orderReport: [],
// viewReport: [],
// InvoicingReport: [],
// saReport: [],
trainingReport: [],
// scheduleReport: [],
// wordReport: [],
// saasReport: []
sceneClue: []
}
}
}
......@@ -398,15 +325,8 @@ export default {
automaticName: ''
}
this.groupCofList = {
// zhanReport: [],
// orderReport: [],
// viewReport: [],
// InvoicingReport: [],
// saReport: [],
trainingReport: [],
// scheduleReport: [],
// wordReport: [],
// saasReport: []
sceneClue: []
}
},
async getDepartmentTree() {
......@@ -501,21 +421,8 @@ export default {
staffName: this.wechat.automaticName,
groupMerchantId: this.config.merchantId,
updatedBy: this.$globalState.session.accountName,
// yqMerchantIdList: [],
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 => {
let type = this.groupToType.find(k => k.attr == item).type
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!