Commit 0cb2b871 by 前端

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

上线合并

See merge request !88
2 parents f8e2a6e9 4d824af1
...@@ -150,6 +150,7 @@ export default { ...@@ -150,6 +150,7 @@ export default {
InvoicingReport: [], InvoicingReport: [],
wordReport: [], wordReport: [],
regionalOperationsReport: [], regionalOperationsReport: [],
lightModifyReport: [],
extendedRevenueReport: [], extendedRevenueReport: [],
sceneReport: [] sceneReport: []
}, },
...@@ -179,6 +180,7 @@ export default { ...@@ -179,6 +180,7 @@ export default {
InvoicingReportValue: [], InvoicingReportValue: [],
wordReportValue: [], wordReportValue: [],
regionalOperationsReportValue: [], regionalOperationsReportValue: [],
lightModifyReportValue: [],
extendedRevenueReportValue: [], extendedRevenueReportValue: [],
sceneReportValue: [] sceneReportValue: []
}, },
...@@ -215,6 +217,10 @@ export default { ...@@ -215,6 +217,10 @@ export default {
attr: 'regionalOperationsReport', attr: 'regionalOperationsReport',
type: 25 type: 25
}, },
{
attr: 'lightModifyReport',
type: 34
},
{ {
attr: 'extendedRevenueReport', attr: 'extendedRevenueReport',
type: 26 type: 26
...@@ -282,6 +288,12 @@ export default { ...@@ -282,6 +288,12 @@ export default {
eyeIcon: '' eyeIcon: ''
}, },
{ {
label: '轻改区域日报',
storageList: 'lightModifyReportValue',
componentName: '',
eyeIcon: ''
},
{
label: '延保门店产值及个人成交报表', label: '延保门店产值及个人成交报表',
storageList: 'extendedRevenueReportValue', storageList: 'extendedRevenueReportValue',
componentName: '', componentName: '',
...@@ -387,6 +399,7 @@ export default { ...@@ -387,6 +399,7 @@ export default {
InvoicingReportValue: [{ name: '' }], InvoicingReportValue: [{ name: '' }],
wordReportValue: [{ name: '' }], wordReportValue: [{ name: '' }],
regionalOperationsReportValue: [{ name: '' }], regionalOperationsReportValue: [{ name: '' }],
lightModifyReportValue: [{ name: '' }],
extendedRevenueReportValue: [{ name: '' }], extendedRevenueReportValue: [{ name: '' }],
sceneReportValue: [{ name: '' }] sceneReportValue: [{ name: '' }]
} }
...@@ -424,6 +437,7 @@ export default { ...@@ -424,6 +437,7 @@ export default {
employeeBadgeReport: [], employeeBadgeReport: [],
InvoicingReport: [], InvoicingReport: [],
regionalOperationsReport: [], regionalOperationsReport: [],
lightModifyReport: [],
extendedRevenueReport: [], extendedRevenueReport: [],
sceneReport: [] sceneReport: []
} }
...@@ -436,6 +450,7 @@ export default { ...@@ -436,6 +450,7 @@ export default {
InvoicingReportValue: [], InvoicingReportValue: [],
wordReportValue: [], wordReportValue: [],
regionalOperationsReportValue: [], regionalOperationsReportValue: [],
lightModifyReportValue: [],
extendedRevenueReportValue: [], extendedRevenueReportValue: [],
sceneReportValue: [] sceneReportValue: []
} }
...@@ -504,6 +519,7 @@ export default { ...@@ -504,6 +519,7 @@ export default {
employeeBadgeReportValue: [{ name: '' }], employeeBadgeReportValue: [{ name: '' }],
wordReportValue: [{ name: '' }], wordReportValue: [{ name: '' }],
regionalOperationsReportValue: [{ name: '' }], regionalOperationsReportValue: [{ name: '' }],
lightModifyReportValue: [{ name: '' }],
extendedRevenueReportValue: [{ name: '' }], extendedRevenueReportValue: [{ name: '' }],
sceneReportValue: [{ name: '' }] sceneReportValue: [{ name: '' }]
} }
...@@ -523,7 +539,7 @@ export default { ...@@ -523,7 +539,7 @@ export default {
InvoicingReport: [], InvoicingReport: [],
wordReport: [], wordReport: [],
regionalOperationsReport: [], regionalOperationsReport: [],
extendedRevenueReport: [], lightModifyReport: [],
sceneReport: [] sceneReport: []
} }
} }
...@@ -549,6 +565,7 @@ export default { ...@@ -549,6 +565,7 @@ export default {
InvoicingReport: [], InvoicingReport: [],
wordReport: [], wordReport: [],
regionalOperationsReport: [], regionalOperationsReport: [],
lightModifyReport: [],
extendedRevenueReport: [], extendedRevenueReport: [],
sceneReport: [] sceneReport: []
} }
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
销售日报配置 销售日报配置
</div> </div>
<div class="config-wrap gl-form-page" v-loading="loading"> <div class="config-wrap gl-form-page" v-loading="loading">
<glsx-combi-form ref="showSearch" labelWidth="130px" :isBlock="true" :formObj="editForm" :formData="editFormData"></glsx-combi-form> <glsx-combi-form ref="showSearch" labelWidth="130px" :isBlock="true" :formRules="rules" :formRef="editChildRef" :formObj="editForm" :formData="editFormData"></glsx-combi-form>
</div> </div>
<!-- <!--
<el-form ref="form" :model="form" label-width="154px"> <el-form ref="form" :model="form" label-width="154px">
...@@ -32,6 +32,11 @@ export default { ...@@ -32,6 +32,11 @@ export default {
dailyReportStaffList: [], dailyReportStaffList: [],
randomCheckStaffList: [] randomCheckStaffList: []
}, },
editChildRef: 'editChildRef',
rules: {
dailyReportStaffList: [{ required: true, message: '请选择日报人员名单', trigger: 'change' }],
randomCheckStaffList: [{ required: true, message: '请选择抽检人员名单', trigger: 'change' }]
},
editFormData: [ editFormData: [
{ {
label: '所属企业', label: '所属企业',
...@@ -135,31 +140,35 @@ export default { ...@@ -135,31 +140,35 @@ export default {
if (this.loading) { if (this.loading) {
return true return true
} }
this.loading = true this.$refs.showSearch.$refs[this.editChildRef].validate(valid => {
var params = { if (valid) {
dailyReportStaffList: [], this.loading = true
randomCheckStaffList: [] var params = {
} dailyReportStaffList: [],
const attrList = ['dailyReportStaffList', 'randomCheckStaffList'] randomCheckStaffList: []
attrList.forEach(item => { }
this.editForm[item].forEach(k => { const attrList = ['dailyReportStaffList', 'randomCheckStaffList']
params[item].push({ attrList.forEach(item => {
staffUuid: k, this.editForm[item].forEach(k => {
staffName: this.baseData.staffList.find(n => n.staffUuid == k).staffName params[item].push({
staffUuid: k,
staffName: this.baseData.staffList.find(n => n.staffUuid == k).staffName
})
})
}) })
}) console.log(params, 'params')
}) this.$apis.salesDaily.saveSalesDailyConfig(params).then(res => {
console.log(params, 'params') console.log(res)
this.$apis.salesDaily.saveSalesDailyConfig(params).then(res => { this.$message({
console.log(res) message: res.code == '0' ? '配置成功!' : res.message,
this.$message({ type: res.code == '0' ? 'success' : 'error'
message: res.code == '0' ? '配置成功!' : res.message, })
type: res.code == '0' ? 'success' : 'error' })
}) .finally(() => {
this.loading = false
})
}
}) })
.finally(() => {
this.loading = false
})
} }
} }
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!