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 {
InvoicingReport: [],
wordReport: [],
regionalOperationsReport: [],
lightModifyReport: [],
extendedRevenueReport: [],
sceneReport: []
},
......@@ -179,6 +180,7 @@ export default {
InvoicingReportValue: [],
wordReportValue: [],
regionalOperationsReportValue: [],
lightModifyReportValue: [],
extendedRevenueReportValue: [],
sceneReportValue: []
},
......@@ -215,6 +217,10 @@ export default {
attr: 'regionalOperationsReport',
type: 25
},
{
attr: 'lightModifyReport',
type: 34
},
{
attr: 'extendedRevenueReport',
type: 26
......@@ -282,6 +288,12 @@ export default {
eyeIcon: ''
},
{
label: '轻改区域日报',
storageList: 'lightModifyReportValue',
componentName: '',
eyeIcon: ''
},
{
label: '延保门店产值及个人成交报表',
storageList: 'extendedRevenueReportValue',
componentName: '',
......@@ -387,6 +399,7 @@ export default {
InvoicingReportValue: [{ name: '' }],
wordReportValue: [{ name: '' }],
regionalOperationsReportValue: [{ name: '' }],
lightModifyReportValue: [{ name: '' }],
extendedRevenueReportValue: [{ name: '' }],
sceneReportValue: [{ name: '' }]
}
......@@ -424,6 +437,7 @@ export default {
employeeBadgeReport: [],
InvoicingReport: [],
regionalOperationsReport: [],
lightModifyReport: [],
extendedRevenueReport: [],
sceneReport: []
}
......@@ -436,6 +450,7 @@ export default {
InvoicingReportValue: [],
wordReportValue: [],
regionalOperationsReportValue: [],
lightModifyReportValue: [],
extendedRevenueReportValue: [],
sceneReportValue: []
}
......@@ -504,6 +519,7 @@ export default {
employeeBadgeReportValue: [{ name: '' }],
wordReportValue: [{ name: '' }],
regionalOperationsReportValue: [{ name: '' }],
lightModifyReportValue: [{ name: '' }],
extendedRevenueReportValue: [{ name: '' }],
sceneReportValue: [{ name: '' }]
}
......@@ -523,7 +539,7 @@ export default {
InvoicingReport: [],
wordReport: [],
regionalOperationsReport: [],
extendedRevenueReport: [],
lightModifyReport: [],
sceneReport: []
}
}
......@@ -549,6 +565,7 @@ export default {
InvoicingReport: [],
wordReport: [],
regionalOperationsReport: [],
lightModifyReport: [],
extendedRevenueReport: [],
sceneReport: []
}
......
......@@ -5,7 +5,7 @@
销售日报配置
</div>
<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>
<!--
<el-form ref="form" :model="form" label-width="154px">
......@@ -32,6 +32,11 @@ export default {
dailyReportStaffList: [],
randomCheckStaffList: []
},
editChildRef: 'editChildRef',
rules: {
dailyReportStaffList: [{ required: true, message: '请选择日报人员名单', trigger: 'change' }],
randomCheckStaffList: [{ required: true, message: '请选择抽检人员名单', trigger: 'change' }]
},
editFormData: [
{
label: '所属企业',
......@@ -135,31 +140,35 @@ export default {
if (this.loading) {
return true
}
this.loading = true
var params = {
dailyReportStaffList: [],
randomCheckStaffList: []
}
const attrList = ['dailyReportStaffList', 'randomCheckStaffList']
attrList.forEach(item => {
this.editForm[item].forEach(k => {
params[item].push({
staffUuid: k,
staffName: this.baseData.staffList.find(n => n.staffUuid == k).staffName
this.$refs.showSearch.$refs[this.editChildRef].validate(valid => {
if (valid) {
this.loading = true
var params = {
dailyReportStaffList: [],
randomCheckStaffList: []
}
const attrList = ['dailyReportStaffList', 'randomCheckStaffList']
attrList.forEach(item => {
this.editForm[item].forEach(k => {
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(res)
this.$message({
message: res.code == '0' ? '配置成功!' : res.message,
type: res.code == '0' ? 'success' : 'error'
})
console.log(params, 'params')
this.$apis.salesDaily.saveSalesDailyConfig(params).then(res => {
console.log(res)
this.$message({
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!