Commit e07e865d by 王志慧

feat

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