mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-11 15:36:43 +08:00
[FIX]【自助入司优化】健康告知反显修复
This commit is contained in:
@@ -107,32 +107,14 @@ export default {
|
|||||||
})
|
})
|
||||||
agentAll({}).then(res => {
|
agentAll({}).then(res => {
|
||||||
if (res.result == '0') {
|
if (res.result == '0') {
|
||||||
if (res.content.ebizItemDtoLst.length == 0) {
|
this.getImpart(res.content.ebizItemDtoLst)
|
||||||
this.getImpart()
|
|
||||||
} else {
|
|
||||||
res.content.ebizItemDtoLst.map((item, index) => {
|
|
||||||
item.bigCode = 'A' + index + 1 //添加大标题标识
|
|
||||||
if (item.itemDtoLst) {
|
|
||||||
item.itemDtoLst.map((it, index) => {
|
|
||||||
it.impartAnswer = ''
|
|
||||||
it.smallCode = item.bigCode + index //添加小题目标识
|
|
||||||
})
|
|
||||||
}
|
|
||||||
})
|
|
||||||
if (localStorage.agentSex == 0) {
|
|
||||||
// //姓别为男不显示该题
|
|
||||||
// this.isDisabled = true
|
|
||||||
// res.content.ebizItemDtoLst.splice(7, 1)
|
|
||||||
}
|
|
||||||
this.impartDTOS = res.content.ebizItemDtoLst
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
this.$toast(res.resultMessage)
|
this.$toast(res.resultMessage)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
//获取健康告知列表
|
//获取健康告知列表
|
||||||
getImpart() {
|
getImpart(dataItemLst) {
|
||||||
let that = this
|
let that = this
|
||||||
let data = {
|
let data = {
|
||||||
// userModel: {
|
// userModel: {
|
||||||
@@ -150,14 +132,52 @@ export default {
|
|||||||
that.$toast.clear()
|
that.$toast.clear()
|
||||||
console.log(res)
|
console.log(res)
|
||||||
res.map((item, index) => {
|
res.map((item, index) => {
|
||||||
item.impartAnswer = ''
|
if (dataItemLst && dataItemLst.length > 0) {
|
||||||
item.impartRemark = ''
|
let showLst = dataItemLst.filter(itemC => {
|
||||||
item.bigCode = 'A' + index + 1 //添加大标题标识
|
return itemC.impartId == item.impartId && itemC.impartType == item.impartType
|
||||||
if (item.itemDtoLst) {
|
|
||||||
item.itemDtoLst.map((it, index) => {
|
|
||||||
it.impartAnswer = ''
|
|
||||||
it.smallCode = item.bigCode + index //添加小题目标识
|
|
||||||
})
|
})
|
||||||
|
if (showLst && showLst.length > 0) {
|
||||||
|
item.impartAnswer = showLst[0].impartAnswer
|
||||||
|
item.impartRemark = showLst[0].impartRemark
|
||||||
|
item.bigCode = 'A' + index + 1
|
||||||
|
if (item.itemDtoLst) {
|
||||||
|
item.itemDtoLst.map((it, index) => {
|
||||||
|
let showSubLst = showLst.filter(itemB => {
|
||||||
|
return itemB.impartNo == it.impartNo && itemB.impartType == it.impartType
|
||||||
|
})
|
||||||
|
if (showSubLst && showSubLst.length > 0) {
|
||||||
|
it.impartAnswer = showSubLst[0].impartAnswer
|
||||||
|
it.impartRemark = showSubLst[0].impartRemark
|
||||||
|
} else {
|
||||||
|
it.impartAnswer = ''
|
||||||
|
it.impartRemark = ''
|
||||||
|
}
|
||||||
|
it.smallCode = item.bigCode + index //添加小题目标识
|
||||||
|
})
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
item.impartAnswer = ''
|
||||||
|
item.impartRemark = ''
|
||||||
|
item.bigCode = 'A' + index + 1 //添加大标题标识
|
||||||
|
if (item.itemDtoLst) {
|
||||||
|
item.itemDtoLst.map((it, index) => {
|
||||||
|
it.impartAnswer = ''
|
||||||
|
it.impartRemark = ''
|
||||||
|
it.smallCode = item.bigCode + index //添加小题目标识
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
item.impartAnswer = ''
|
||||||
|
item.impartRemark = ''
|
||||||
|
item.bigCode = 'A' + index + 1 //添加大标题标识
|
||||||
|
if (item.itemDtoLst) {
|
||||||
|
item.itemDtoLst.map((it, index) => {
|
||||||
|
it.impartAnswer = ''
|
||||||
|
it.impartRemark = ''
|
||||||
|
it.smallCode = item.bigCode + index //添加小题目标识
|
||||||
|
})
|
||||||
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
if (localStorage.agentSex == 0) {
|
if (localStorage.agentSex == 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user