Commit d57a4862 by 前端

Merge branch 'SAAS+V5.8.3.6' into 'master'

上线合并

See merge request !93
2 parents b41603e0 c790e264
...@@ -55,7 +55,7 @@ ...@@ -55,7 +55,7 @@
:value="item.groupName"></el-option> :value="item.groupName"></el-option>
</el-select> </el-select>
<i class="el-icon-circle-plus" v-if="k == 0" <i class="el-icon-circle-plus" v-if="k == 0"
@click="addGroup(groupCofListInput[bulletin.storageList])"></i> @click="addGroup(groupCofListInput[bulletin.storageList], bulletin.maxGroup)"></i>
<i class="el-icon-remove" v-else @click="delGroup(groupCofListInput[bulletin.storageList], k)"></i> <i class="el-icon-remove" v-else @click="delGroup(groupCofListInput[bulletin.storageList], k)"></i>
</div> </div>
</div> </div>
...@@ -153,7 +153,8 @@ export default { ...@@ -153,7 +153,8 @@ export default {
equityOperationManagerMonthlyReport21: [], equityOperationManagerMonthlyReport21: [],
operationManagerMonthlyReport11: [], operationManagerMonthlyReport11: [],
equityOperationManagerMonthlyReport23: [], equityOperationManagerMonthlyReport23: [],
lightMerchantDailyReport: [] lightMerchantDailyReport: [],
lightMerchantOtherDailyReport: []
}, },
switchList: { switchList: {
// xiReport: [], // xiReport: [],
...@@ -181,6 +182,7 @@ export default { ...@@ -181,6 +182,7 @@ export default {
operationManagerMonthlyReport11: [], operationManagerMonthlyReport11: [],
equityOperationManagerMonthlyReport23: [], equityOperationManagerMonthlyReport23: [],
lightMerchantDailyReport: [], lightMerchantDailyReport: [],
lightMerchantOtherDailyReport: [],
saReport: [ saReport: [
{ switchType: 401, switchStatus: 'Y', actionReportType: 4 }, { switchType: 401, switchStatus: 'Y', actionReportType: 4 },
{ switchType: 402, switchStatus: 'Y', actionReportType: 4 } { switchType: 402, switchStatus: 'Y', actionReportType: 4 }
...@@ -223,7 +225,8 @@ export default { ...@@ -223,7 +225,8 @@ export default {
equityOperationManagerMonthlyReport21Value: [], equityOperationManagerMonthlyReport21Value: [],
operationManagerMonthlyReport11Value: [], operationManagerMonthlyReport11Value: [],
equityOperationManagerMonthlyReport23Value: [], equityOperationManagerMonthlyReport23Value: [],
lightMerchantDailyReportValue: [] lightMerchantDailyReportValue: [],
lightMerchantOtherDailyReportValue: []
}, },
groupToType: [ groupToType: [
// { // {
...@@ -345,6 +348,10 @@ export default { ...@@ -345,6 +348,10 @@ export default {
{ {
attr: 'lightMerchantDailyReport', attr: 'lightMerchantDailyReport',
type: 52 type: 52
},
{
attr: 'lightMerchantOtherDailyReport',
type: 56
} }
], ],
buttetinList: [ buttetinList: [
...@@ -510,10 +517,18 @@ export default { ...@@ -510,10 +517,18 @@ export default {
eyeIcon: '' eyeIcon: ''
}, },
{ {
label: '轻改门店日报', label: '轻改问界/鸿蒙门店日报',
storageList: 'lightMerchantDailyReportValue', storageList: 'lightMerchantDailyReportValue',
componentName: '', componentName: '',
eyeIcon: '' eyeIcon: '',
maxGroup: 200
},
{
label: '轻改其他品牌(含岚图)门店日报',
storageList: 'lightMerchantOtherDailyReportValue',
componentName: '',
eyeIcon: '',
maxGroup: 200
} }
] ]
} }
...@@ -552,7 +567,18 @@ export default { ...@@ -552,7 +567,18 @@ export default {
this.dialogComponent = componentName this.dialogComponent = componentName
this.isDialogVisible = true this.isDialogVisible = true
}, },
addGroup(group) { addGroup(group, maxGroup) {
if (maxGroup) {
const selectedCount = group.filter(i => i.name).length
if (selectedCount >= maxGroup) {
this.$message({
message: `最多选择${maxGroup}个群`,
type: 'warning',
customClass: 'message-Z-zinde'
})
return
}
}
group.push({ name: '' }) group.push({ name: '' })
}, },
delGroup(group, i) { delGroup(group, i) {
...@@ -615,7 +641,8 @@ export default { ...@@ -615,7 +641,8 @@ export default {
equityOperationManagerMonthlyReport21Value: [{ name: '' }], equityOperationManagerMonthlyReport21Value: [{ name: '' }],
operationManagerMonthlyReport11Value: [{ name: '' }], operationManagerMonthlyReport11Value: [{ name: '' }],
equityOperationManagerMonthlyReport23Value: [{ name: '' }], equityOperationManagerMonthlyReport23Value: [{ name: '' }],
lightMerchantDailyReportValue: [{ name: '' }] lightMerchantDailyReportValue: [{ name: '' }],
lightMerchantOtherDailyReportValue: [{ name: '' }]
} }
}) })
}, },
...@@ -671,7 +698,8 @@ export default { ...@@ -671,7 +698,8 @@ export default {
equityOperationManagerMonthlyReport21Value: [], equityOperationManagerMonthlyReport21Value: [],
operationManagerMonthlyReport11Value: [], operationManagerMonthlyReport11Value: [],
equityOperationManagerMonthlyReport23Value: [], equityOperationManagerMonthlyReport23Value: [],
lightMerchantDailyReportValue: [] lightMerchantDailyReportValue: [],
lightMerchantOtherDailyReportValue: []
} }
this.battleVisible = true this.battleVisible = true
// 编辑 // 编辑
...@@ -755,7 +783,8 @@ export default { ...@@ -755,7 +783,8 @@ export default {
equityOperationManagerMonthlyReport21Value: [{ name: '' }], equityOperationManagerMonthlyReport21Value: [{ name: '' }],
operationManagerMonthlyReport11Value: [{ name: '' }], operationManagerMonthlyReport11Value: [{ name: '' }],
equityOperationManagerMonthlyReport23Value: [{ name: '' }], equityOperationManagerMonthlyReport23Value: [{ name: '' }],
lightMerchantDailyReportValue: [{ name: '' }] lightMerchantDailyReportValue: [{ name: '' }],
lightMerchantOtherDailyReportValue: [{ name: '' }]
} }
} }
}, },
...@@ -793,7 +822,8 @@ export default { ...@@ -793,7 +822,8 @@ export default {
equityOperationManagerMonthlyReport21: [], equityOperationManagerMonthlyReport21: [],
operationManagerMonthlyReport11: [], operationManagerMonthlyReport11: [],
equityOperationManagerMonthlyReport23: [], equityOperationManagerMonthlyReport23: [],
lightMerchantDailyReport: [] lightMerchantDailyReport: [],
lightMerchantOtherDailyReport: []
} }
} }
} }
...@@ -838,7 +868,8 @@ export default { ...@@ -838,7 +868,8 @@ export default {
equityOperationManagerMonthlyReport21: [], equityOperationManagerMonthlyReport21: [],
operationManagerMonthlyReport11: [], operationManagerMonthlyReport11: [],
equityOperationManagerMonthlyReport23: [], equityOperationManagerMonthlyReport23: [],
lightMerchantDailyReport: [] lightMerchantDailyReport: [],
lightMerchantOtherDailyReport: []
} }
}, },
async getDepartmentTree() { async getDepartmentTree() {
...@@ -925,6 +956,18 @@ export default { ...@@ -925,6 +956,18 @@ export default {
}) })
return true return true
} }
const dailyReportAttrs = ['lightMerchantDailyReport', 'lightMerchantOtherDailyReport']
for (const attr of dailyReportAttrs) {
const count = this.groupCofList[attr].length + this.groupCofListInput[attr + 'Value'].filter(k => k.name).length
if (count > 200) {
this.$message({
message: '门店日报最多选择200个群',
type: 'error',
customClass: 'message-Z-zinde'
})
return true
}
}
var params = { var params = {
enterpriseMerchantId: this.config.merchantId, enterpriseMerchantId: this.config.merchantId,
enterpriseMerchantName: this.config.merchantName, enterpriseMerchantName: this.config.merchantName,
...@@ -938,7 +981,7 @@ export default { ...@@ -938,7 +981,7 @@ export default {
scene: 1 scene: 1
} }
let switchList = [] let switchList = []
let reportParams = ['saReport', 'zhanReport', 'orderReport', 'saPerReport', 'scheduleReport', 'wordReport', 'viewReport', 'InvoicingReport', 'storeReport', 'constructionReport', 'lightModifyReport', 'equityRegionalOperationsDaily', 'operationManagerDailyReport11', 'regionalOperationsReport', 'equityOperationManagerDailyReport23', 'equityRegionalManagerWeeklyReport21', 'regionalManagerWeeklyReport', 'equityRegionalManagerWeeklyReport23', 'equityOperationManagerWeeklyReport21', 'operationManagerWeeklyReport11', 'equityOperationManagerWeeklyReport23', 'regionalManagerMonthlyReport11', 'equityRegionalManagerMonthlyReport21', 'equityRegionalManagerMonthlyReport23', 'equityOperationManagerMonthlyReport21', 'operationManagerMonthlyReport11', 'equityOperationManagerMonthlyReport23', 'lightMerchantDailyReport'] let reportParams = ['saReport', 'zhanReport', 'orderReport', 'saPerReport', 'scheduleReport', 'wordReport', 'viewReport', 'InvoicingReport', 'storeReport', 'constructionReport', 'lightModifyReport', 'equityRegionalOperationsDaily', 'operationManagerDailyReport11', 'regionalOperationsReport', 'equityOperationManagerDailyReport23', 'equityRegionalManagerWeeklyReport21', 'regionalManagerWeeklyReport', 'equityRegionalManagerWeeklyReport23', 'equityOperationManagerWeeklyReport21', 'operationManagerWeeklyReport11', 'equityOperationManagerWeeklyReport23', 'regionalManagerMonthlyReport11', 'equityRegionalManagerMonthlyReport21', 'equityRegionalManagerMonthlyReport23', 'equityOperationManagerMonthlyReport21', 'operationManagerMonthlyReport11', 'equityOperationManagerMonthlyReport23', 'lightMerchantDailyReport', 'lightMerchantOtherDailyReport']
reportParams.forEach(item => { reportParams.forEach(item => {
switchList.push(...this.switchList[item]) switchList.push(...this.switchList[item])
}) })
......
...@@ -134,7 +134,8 @@ export default { ...@@ -134,7 +134,8 @@ export default {
[47, '#47.2.3运营主管月报模版>>'], [47, '#47.2.3运营主管月报模版>>'],
[48, '#48.2.1运营主管日报模版>>'], [48, '#48.2.1运营主管日报模版>>'],
[49, '#49.2.3运营主管日报模版>>'], [49, '#49.2.3运营主管日报模版>>'],
[52, '#50.轻改门店日报>>'] [52, '#50.轻改问界/鸿蒙门店日报>>'],
[56, '#51.轻改其他品牌(含岚图)门店日报>>']
]) ])
let txt = '' let txt = ''
cellValue.groupConfigList?.forEach(item => { cellValue.groupConfigList?.forEach(item => {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!