feat(admin): 订单详情与编辑支持病历与诉求字段
This commit is contained in:
@@ -22,7 +22,8 @@ Page({
|
||||
schedule: { date: '', startTime: '08:30' },
|
||||
escort: { serviceId: -1, serviceName: '' },
|
||||
payment: { totalFee: '', method: '' },
|
||||
notes: { patientNote: '' }
|
||||
notes: { patientNote: '' },
|
||||
inquiry: { medicalHistory: '', demand: '' }
|
||||
},
|
||||
// 省份选项来自服务目录的 areas,后端下单按同一份配置校验
|
||||
provinces: [],
|
||||
@@ -216,7 +217,11 @@ Page({
|
||||
method: (order.payment && order.payment.method) || '',
|
||||
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() })
|
||||
})
|
||||
@@ -439,6 +444,10 @@ Page({
|
||||
},
|
||||
notes: {
|
||||
patientNote: form.notes.patientNote
|
||||
},
|
||||
inquiry: {
|
||||
medicalHistory: form.inquiry.medicalHistory,
|
||||
demand: form.inquiry.demand
|
||||
}
|
||||
}
|
||||
|
||||
@@ -489,7 +498,9 @@ Page({
|
||||
'payment.method': form.payment.method || '',
|
||||
'payment.paidFee': form.payment.paid ? (form.payment.totalFee ? Number(form.payment.totalFee) : 0) : 0,
|
||||
'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 })
|
||||
|
||||
Reference in New Issue
Block a user