From dc320cdb267322ac4bbc54e19f1f71114a638a68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=B9=E8=BE=89?= <814457906@qq.com> Date: Fri, 7 Apr 2023 14:29:23 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/appointmenttime/appointmenttime.vue | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/pages/appointmenttime/appointmenttime.vue b/pages/appointmenttime/appointmenttime.vue index 829e31f..e344f27 100644 --- a/pages/appointmenttime/appointmenttime.vue +++ b/pages/appointmenttime/appointmenttime.vue @@ -87,7 +87,7 @@ 失能情况 * - + 备注: @@ -188,6 +188,7 @@ } }, onShow() { + this.disablingCondition = null let that = this uni.$on('updata', function(data) { if (data.updata) { @@ -236,8 +237,15 @@ that.patientId = value //被护理人信息 getAppPatientList(that.patientId).then(response => { + if (response.data.disablingCondition == 'NOT_DISABLED') { + that.checkboxlist[1].checked = true + } else if (response.data.disablingCondition == 'DISABLED') { + that.checkboxlist[0].checked = true + that.disablingCondition = 'DISABLED' + } that.personInfo = response.data that.personInfo.address = response.data.areaName + response.data.address + that.orderlist.disablingCondition = response.data.disablingCondition }) } }, @@ -271,6 +279,7 @@ var that = this this.orderlist.consumableTotalPrice = null this.orderlist.orderChannel = 'WECHAT_APPLET' + this.orderlist.disablingReason = this.personInfo.disablingReason if (this.radio == 1) { this.$refs.uToast.show({ title: '请阅读用户协议并同意',