From 221f2c8203148124f6dc21ffda9b78d54aeadc7c Mon Sep 17 00:00:00 2001 From: lik Date: Thu, 5 Nov 2026 22:02:35 +0800 Subject: [PATCH] =?UTF-8?q?feat(escort):=20=E8=AE=B0=E5=BD=95=E8=AF=A6?= =?UTF-8?q?=E6=83=85=E9=A1=B5=E9=99=AA=E8=AF=8A=E9=9C=80=E6=B1=82=E6=94=B9?= =?UTF-8?q?=E4=B8=BA=E7=97=85=E5=8E=86=E4=B8=8E=E8=AF=89=E6=B1=82=E5=B9=B6?= =?UTF-8?q?=E6=94=AF=E6=8C=81=E7=BC=96=E8=BE=91=E4=BF=9D=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/escort/recorddetail.js | 31 +++++--- pages/escort/recorddetail.wxml | 140 +++++++++++++++++++-------------- pages/escort/recorddetail.wxss | 40 ++++++---- 3 files changed, 130 insertions(+), 81 deletions(-) diff --git a/pages/escort/recorddetail.js b/pages/escort/recorddetail.js index 1dd4014..e77a796 100644 --- a/pages/escort/recorddetail.js +++ b/pages/escort/recorddetail.js @@ -34,7 +34,8 @@ Page({ loadError: '', // 编辑全部收进底部弹窗:页面只读,表单只活在弹窗里,两个弹窗各自一个开关 showNotePopup: false, - editPatientNote: '', + editMedicalHistory: '', + editDemand: '', // 医院预约规则与下单页一致,均由订单关联的服务目录下发 showHospitalPopup: false, provinces: [], @@ -279,6 +280,8 @@ Page({ canPay, canSwitchPayChannel, patientNote: item.notes?.patientNote || '', + medicalHistory: item.inquiry?.medicalHistory || '', + demand: item.inquiry?.demand || '', escortNote: item.notes?.escortNote || '', medicalSummary: item.notes?.medicalSummary || '', status: displayStatus, @@ -450,28 +453,35 @@ Page({ }) }, - // ===== 陪诊需求编辑(底部弹窗) ===== + // ===== 病历与诉求编辑(底部弹窗) ===== - onEditPatientNote() { + onEditInquiry() { this.setData({ showNotePopup: true, - editPatientNote: this.data.record.patientNote || '' + editMedicalHistory: this.data.record.medicalHistory || '', + editDemand: this.data.record.demand || '' }) }, - onPatientNoteInput(e) { - this.setData({ editPatientNote: e.detail.value }) + onMedicalHistoryInput(e) { + this.setData({ editMedicalHistory: e.detail.value }) + }, + + onDemandInput(e) { + this.setData({ editDemand: e.detail.value }) }, onCancelEdit() { this.setData({ showNotePopup: false }) }, - onSavePatientNote() { - const note = this.data.editPatientNote.trim() + onSaveInquiry() { + const medicalHistory = this.data.editMedicalHistory.trim() + const demand = this.data.editDemand.trim() wx.showLoading({ title: '保存中...' }) API.escort.updateRecord(this.data.recordId, { - 'notes.patientNote': note + 'inquiry.medicalHistory': medicalHistory, + 'inquiry.demand': demand }) .then((res) => { wx.hideLoading() @@ -479,7 +489,8 @@ Page({ wx.showToast({ title: '保存成功', icon: 'success' }) this.setData({ showNotePopup: false, - 'record.patientNote': note + 'record.medicalHistory': medicalHistory, + 'record.demand': demand }) } else { wx.showToast({ title: res.msg || '保存失败', icon: 'none' }) diff --git a/pages/escort/recorddetail.wxml b/pages/escort/recorddetail.wxml index 117f046..7b48266 100644 --- a/pages/escort/recorddetail.wxml +++ b/pages/escort/recorddetail.wxml @@ -111,7 +111,9 @@ aria-role="button" aria-label="拨打就诊人电话" bindtap="onCallPatient" - >拨打 + > + + 服务 @@ -120,8 +122,7 @@ · 性别要求{{record.sexRequirementText}} - + 备注 @@ -175,36 +176,6 @@ - - - - - - 费用 - ¥{{record.totalFee}} - - {{record.paymentStatusText}} - - - - - - 支付方式 - {{record.payChannelText}} - 切换 - - - - + - {{record.status === 'completed' && (record.escortNote || record.medicalSummary) ? '服务结果' : (record.escortNote || record.medicalSummary ? '陪诊需求与记录' : '陪诊需求')}} - + {{record.status === 'completed' && (record.escortNote || record.medicalSummary) ? '服务结果' : (record.escortNote || record.medicalSummary ? '病历与诉求记录' : '病历与诉求')}} + 修改 - - 陪诊需求 - {{record.patientNote}} + + 病历 + {{record.medicalHistory}} + + + 诉求 + {{record.demand}} 陪诊记录 @@ -261,16 +236,53 @@ {{record.medicalSummary}} - + - 添加陪诊需求 + 添加病历与诉求 + + + + + + + + + 费用与支付 + + + + + + 费用 + ¥{{record.totalFee}} + + + {{record.paymentStatusText}} + + + + + + 支付方式 + {{record.payChannelText}} + 切换 + @@ -435,29 +447,43 @@ - + - + - 修改陪诊需求 + 修改病历与诉求 -