mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-10 19:46:43 +08:00
健康告知页面未展开的告知内容无法校验必选问题处理
This commit is contained in:
@@ -464,6 +464,13 @@ export default {
|
|||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
this.showFlag = false
|
this.showFlag = false
|
||||||
|
that.impartDTOS.map(it => {
|
||||||
|
it.impartItemDTOS.map(itm => {
|
||||||
|
if (itm.impartCode == '2b') {
|
||||||
|
itm.impartAnswer = '1'
|
||||||
|
}
|
||||||
|
})
|
||||||
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -481,7 +488,7 @@ export default {
|
|||||||
return y + m + d + h + minute + second
|
return y + m + d + h + minute + second
|
||||||
},
|
},
|
||||||
// 获取告知消息,
|
// 获取告知消息,
|
||||||
information() {
|
async information() {
|
||||||
let that = this
|
let that = this
|
||||||
let data = {
|
let data = {
|
||||||
productCodes: JSON.parse(localStorage.chooseProductCodes),
|
productCodes: JSON.parse(localStorage.chooseProductCodes),
|
||||||
@@ -489,9 +496,15 @@ export default {
|
|||||||
platform: 'app',
|
platform: 'app',
|
||||||
type: '2'
|
type: '2'
|
||||||
}
|
}
|
||||||
information(data).then(res => {
|
await information(data).then(res => {
|
||||||
// console.log(res)
|
// console.log(res)
|
||||||
if (res.result == '0') {
|
if (res.result == '0') {
|
||||||
|
this.$toast.loading({
|
||||||
|
duration: 0,
|
||||||
|
forbidClick: true,
|
||||||
|
loadingType: 'spinner',
|
||||||
|
message: '加载中……'
|
||||||
|
})
|
||||||
res.productImpartLstDTO.impartDTOS.map(item => {
|
res.productImpartLstDTO.impartDTOS.map(item => {
|
||||||
item.impartItemDTOS.map(im => {
|
item.impartItemDTOS.map(im => {
|
||||||
im.isSelect =
|
im.isSelect =
|
||||||
@@ -552,15 +565,24 @@ export default {
|
|||||||
that.impartDTOS = res.productImpartLstDTO.impartDTOS
|
that.impartDTOS = res.productImpartLstDTO.impartDTOS
|
||||||
that.isShowList()
|
that.isShowList()
|
||||||
//投被同人时候判断
|
//投被同人时候判断
|
||||||
this.activeNames.push(res.productImpartLstDTO.impartDTOS.length)
|
that.impartDTOS.map((item, index) => {
|
||||||
|
that.activeNames.push(index+1)
|
||||||
|
})
|
||||||
} else {
|
} else {
|
||||||
that.impartDTOS = res.productImpartLstDTO.impartDTOS
|
that.impartDTOS = res.productImpartLstDTO.impartDTOS
|
||||||
that.isShowList()
|
that.isShowList()
|
||||||
//投被不同人时候判断
|
//投被不同人时候判断
|
||||||
this.activeNames.push(res.productImpartLstDTO.impartDTOS.length)
|
that.impartDTOS.map((item, index) => {
|
||||||
|
that.activeNames.push(index+1)
|
||||||
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
// 此处重新折叠面板,避免未展开的面板中 健康告知内容无法校验必选的问题
|
||||||
|
this.activeNames = [this.impartDTOS.length];
|
||||||
|
setTimeout(()=>{
|
||||||
|
this.$toast.clear()
|
||||||
|
},800)
|
||||||
},
|
},
|
||||||
// 下一步
|
// 下一步
|
||||||
next() {
|
next() {
|
||||||
|
|||||||
Reference in New Issue
Block a user