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: '请阅读用户协议并同意',