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 @@
-
+
-