Compare commits

...
1 Commits
Author SHA1 Message Date
lik 4cbf6e7906 feat(admin): 订单详情与编辑支持病历与诉求字段 2026-11-05 22:01:48 +08:00
3 changed files with 39 additions and 3 deletions
+15
View File
@@ -136,6 +136,21 @@
</view> </view>
</view> </view>
<!-- 病历与诉求 -->
<view class="info-section" wx:if="{{order.inquiry.medicalHistory || order.inquiry.demand}}">
<text class="section-title">病历与诉求</text>
<view class="info-card">
<view class="note-block" wx:if="{{order.inquiry.medicalHistory}}">
<text class="note-label">病历</text>
<text class="note-content">{{order.inquiry.medicalHistory}}</text>
</view>
<view class="note-block" wx:if="{{order.inquiry.demand}}">
<text class="note-label">诉求</text>
<text class="note-content">{{order.inquiry.demand}}</text>
</view>
</view>
</view>
<!-- 备注信息 --> <!-- 备注信息 -->
<view class="info-section" wx:if="{{order.notes.patientNote || order.notes.escortNote || order.notes.medicalSummary}}"> <view class="info-section" wx:if="{{order.notes.patientNote || order.notes.escortNote || order.notes.medicalSummary}}">
<text class="section-title">备注信息</text> <text class="section-title">备注信息</text>
+14 -3
View File
@@ -22,7 +22,8 @@ Page({
schedule: { date: '', startTime: '08:30' }, schedule: { date: '', startTime: '08:30' },
escort: { serviceId: -1, serviceName: '' }, escort: { serviceId: -1, serviceName: '' },
payment: { totalFee: '', method: '' }, payment: { totalFee: '', method: '' },
notes: { patientNote: '' } notes: { patientNote: '' },
inquiry: { medicalHistory: '', demand: '' }
}, },
// 省份选项来自服务目录的 areas,后端下单按同一份配置校验 // 省份选项来自服务目录的 areas,后端下单按同一份配置校验
provinces: [], provinces: [],
@@ -216,7 +217,11 @@ Page({
method: (order.payment && order.payment.method) || '', method: (order.payment && order.payment.method) || '',
paid: !!(order.payment && order.payment.status === 'paid') paid: !!(order.payment && order.payment.status === 'paid')
}, },
notes: { patientNote: (order.notes && order.notes.patientNote) || '' } notes: { patientNote: (order.notes && order.notes.patientNote) || '' },
inquiry: {
medicalHistory: (order.inquiry && order.inquiry.medicalHistory) || '',
demand: (order.inquiry && order.inquiry.demand) || ''
}
} }
}, () => { this.syncProvinces(); this.syncMethodLabel() }) }, () => { this.syncProvinces(); this.syncMethodLabel() })
}) })
@@ -439,6 +444,10 @@ Page({
}, },
notes: { notes: {
patientNote: form.notes.patientNote patientNote: form.notes.patientNote
},
inquiry: {
medicalHistory: form.inquiry.medicalHistory,
demand: form.inquiry.demand
} }
} }
@@ -489,7 +498,9 @@ Page({
'payment.method': form.payment.method || '', 'payment.method': form.payment.method || '',
'payment.paidFee': form.payment.paid ? (form.payment.totalFee ? Number(form.payment.totalFee) : 0) : 0, 'payment.paidFee': form.payment.paid ? (form.payment.totalFee ? Number(form.payment.totalFee) : 0) : 0,
'payment.status': form.payment.paid ? 'paid' : 'unpaid', 'payment.status': form.payment.paid ? 'paid' : 'unpaid',
'notes.patientNote': form.notes.patientNote 'notes.patientNote': form.notes.patientNote,
'inquiry.medicalHistory': form.inquiry.medicalHistory,
'inquiry.demand': form.inquiry.demand
} }
this.setData({ submitting: true }) this.setData({ submitting: true })
+10
View File
@@ -125,6 +125,16 @@
</picker> </picker>
</view> </view>
<view class="field field-textarea">
<text class="field-label">病历</text>
<textarea class="field-area" placeholder="请输入病历信息(选填)" value="{{form.inquiry.medicalHistory}}" data-key="inquiry.medicalHistory" bindinput="onInput" />
</view>
<view class="field field-textarea">
<text class="field-label">诉求</text>
<textarea class="field-area" placeholder="请输入陪诊诉求(选填)" value="{{form.inquiry.demand}}" data-key="inquiry.demand" bindinput="onInput" />
</view>
<view class="field field-textarea"> <view class="field field-textarea">
<text class="field-label">备注</text> <text class="field-label">备注</text>
<textarea class="field-area" placeholder="请输入备注信息(选填)" value="{{form.notes.patientNote}}" data-key="notes.patientNote" bindinput="onInput" /> <textarea class="field-area" placeholder="请输入备注信息(选填)" value="{{form.notes.patientNote}}" data-key="notes.patientNote" bindinput="onInput" />