From a4b4e9a30f72cedc39c6ffa6d68c711c08f9aca0 Mon Sep 17 00:00:00 2001 From: "bai.jinyan" Date: Wed, 30 Jun 2021 10:24:18 +0800 Subject: [PATCH] =?UTF-8?q?=E5=81=A5=E5=BA=B7=E5=91=8A=E7=9F=A5=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E6=9C=AA=E5=B1=95=E5=BC=80=E7=9A=84=E5=91=8A=E7=9F=A5?= =?UTF-8?q?=E5=86=85=E5=AE=B9=E6=97=A0=E6=B3=95=E6=A0=A1=E9=AA=8C=E5=BF=85?= =?UTF-8?q?=E9=80=89=E9=97=AE=E9=A2=98=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/ebiz/sale/NotifyingMessage.vue | 30 ++++++++++++++++++++---- 1 file changed, 26 insertions(+), 4 deletions(-) diff --git a/src/views/ebiz/sale/NotifyingMessage.vue b/src/views/ebiz/sale/NotifyingMessage.vue index c75f384c8..ca18618f1 100644 --- a/src/views/ebiz/sale/NotifyingMessage.vue +++ b/src/views/ebiz/sale/NotifyingMessage.vue @@ -464,6 +464,13 @@ export default { }) } else { 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 }, // 获取告知消息, - information() { + async information() { let that = this let data = { productCodes: JSON.parse(localStorage.chooseProductCodes), @@ -489,9 +496,15 @@ export default { platform: 'app', type: '2' } - information(data).then(res => { + await information(data).then(res => { // console.log(res) if (res.result == '0') { + this.$toast.loading({ + duration: 0, + forbidClick: true, + loadingType: 'spinner', + message: '加载中……' + }) res.productImpartLstDTO.impartDTOS.map(item => { item.impartItemDTOS.map(im => { im.isSelect = @@ -552,15 +565,24 @@ export default { that.impartDTOS = res.productImpartLstDTO.impartDTOS that.isShowList() //投被同人时候判断 - this.activeNames.push(res.productImpartLstDTO.impartDTOS.length) + that.impartDTOS.map((item, index) => { + that.activeNames.push(index+1) + }) } else { that.impartDTOS = res.productImpartLstDTO.impartDTOS 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() {