Commit e07e865d by 王志慧

feat

1 parent 713adbc5
...@@ -64,7 +64,12 @@ export default { ...@@ -64,7 +64,12 @@ export default {
this.switchList.saReport.forEach(i => { this.switchList.saReport.forEach(i => {
this.params.find(data => { this.params.find(data => {
if (this[data].switchType == i.switchType) { if (this[data].switchType == i.switchType) {
this[data] = i this[data] = {
actionReportType: i.actionReportType,
switchStatus: i.switchStatus,
switchText: i.switchText,
switchType: i.switchType
}
this[data].switchStatus = this[data].switchStatus == 'Y' ? true : false this[data].switchStatus = this[data].switchStatus == 'Y' ? true : false
} }
}) })
......
...@@ -70,7 +70,7 @@ export default { ...@@ -70,7 +70,7 @@ export default {
], ],
params: ['wordType'], params: ['wordType'],
mapList: { mapList: {
销售顾问: '${销售顾问用户名}', 销售顾问: '${employeeName}',
客户姓名: '${customerName}', 客户姓名: '${customerName}',
车型: '${carType}', 车型: '${carType}',
订单总金额: '${totalPrice}', 订单总金额: '${totalPrice}',
...@@ -104,7 +104,12 @@ export default { ...@@ -104,7 +104,12 @@ export default {
this.switchList.wordReport.forEach(i => { this.switchList.wordReport.forEach(i => {
this.params.find(data => { this.params.find(data => {
if (this[data].switchType == i.switchType) { if (this[data].switchType == i.switchType) {
this[data] = i this[data] = {
actionReportType: i.actionReportType,
switchStatus: i.switchStatus,
switchText: i.switchText,
switchType: i.switchType
}
} }
}) })
}) })
......
...@@ -54,7 +54,12 @@ export default { ...@@ -54,7 +54,12 @@ export default {
this.switchList.zhanReport.forEach(i => { this.switchList.zhanReport.forEach(i => {
this.params.find(data => { this.params.find(data => {
if (this[data].switchType == i.switchType) { if (this[data].switchType == i.switchType) {
this[data] = i this[data] = {
actionReportType: i.actionReportType,
switchStatus: i.switchStatus,
switchText: i.switchText,
switchType: i.switchType
}
this[data].switchStatus = this[data].switchStatus == 'Y' ? true : false this[data].switchStatus = this[data].switchStatus == 'Y' ? true : false
} }
}) })
......
...@@ -79,7 +79,7 @@ export default { ...@@ -79,7 +79,7 @@ export default {
isDialogVisible(val) { isDialogVisible(val) {
if (val) { if (val) {
this.$nextTick(() => { this.$nextTick(() => {
this.$refs.verbalRef&&this.$refs.verbalRef.update(this.verbalType.switchText) this.$refs.verbalRef && this.$refs.verbalRef.update(this.verbalType.switchText)
}) })
} }
} }
...@@ -92,7 +92,12 @@ export default { ...@@ -92,7 +92,12 @@ export default {
this.switchList.saPerReport.forEach(i => { this.switchList.saPerReport.forEach(i => {
this.params.find(data => { this.params.find(data => {
if (this[data].switchType == i.switchType) { if (this[data].switchType == i.switchType) {
this[data] = i this[data] = {
actionReportType: i.actionReportType,
switchStatus: i.switchStatus,
switchText: i.switchText,
switchType: i.switchType
}
this[data].switchStatus = this[data].switchStatus == 'Y' ? true : false this[data].switchStatus = this[data].switchStatus == 'Y' ? true : false
} }
}) })
...@@ -102,7 +107,7 @@ export default { ...@@ -102,7 +107,7 @@ export default {
this.isDialogVisible = false this.isDialogVisible = false
let switchList = [] let switchList = []
this.params.forEach(data => { this.params.forEach(data => {
if(data =='verbalType') this[data].switchText = this.$refs.verbalRef.getTextValue() if (data == 'verbalType') this[data].switchText = this.$refs.verbalRef.getTextValue()
switchList.push(this[data]) switchList.push(this[data])
}) })
console.log(switchList) console.log(switchList)
...@@ -190,7 +195,6 @@ export default { ...@@ -190,7 +195,6 @@ export default {
/deep/ .el-form-item__content { /deep/ .el-form-item__content {
width: 448px; width: 448px;
} }
} }
} }
</style> </style>
...@@ -54,7 +54,12 @@ export default { ...@@ -54,7 +54,12 @@ export default {
this.switchList.scheduleReport.forEach(i => { this.switchList.scheduleReport.forEach(i => {
this.params.find(data => { this.params.find(data => {
if (this[data].switchType == i.switchType) { if (this[data].switchType == i.switchType) {
this[data] = i this[data] = {
actionReportType: i.actionReportType,
switchStatus: i.switchStatus,
switchText: i.switchText,
switchType: i.switchType
}
this[data].switchStatus = this[data].switchStatus == 'Y' ? true : false this[data].switchStatus = this[data].switchStatus == 'Y' ? true : false
} }
}) })
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!