|
@@ -203,6 +203,11 @@ export default {
|
|
|
saving: false
|
|
saving: false
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
|
|
+ computed: {
|
|
|
|
|
+ selectedNames: function() {
|
|
|
|
|
+ return this.selectedDiseases.map(function(d) { return d.name })
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
onLoad: function() {
|
|
onLoad: function() {
|
|
|
var now = new Date()
|
|
var now = new Date()
|
|
|
var y = now.getFullYear()
|
|
var y = now.getFullYear()
|
|
@@ -371,13 +376,19 @@ export default {
|
|
|
lipids.push({ name: '总胆固醇', value: parseFloat(this.lipidCholesterol), unit: 'mmol/L', note: '' })
|
|
lipids.push({ name: '总胆固醇', value: parseFloat(this.lipidCholesterol), unit: 'mmol/L', note: '' })
|
|
|
}
|
|
}
|
|
|
var diseases = []
|
|
var diseases = []
|
|
|
- this.diseaseNames.forEach(function(name) {
|
|
|
|
|
- diseases.push({ name: name, note: '' })
|
|
|
|
|
|
|
+ this.selectedDiseases.forEach(function(item) {
|
|
|
|
|
+ var d = { name: item.name }
|
|
|
|
|
+ if (item.diagnosedAt) d.diagnosedAt = item.diagnosedAt
|
|
|
|
|
+ diseases.push(d)
|
|
|
})
|
|
})
|
|
|
var meds = []
|
|
var meds = []
|
|
|
this.medRows.forEach(function(item) {
|
|
this.medRows.forEach(function(item) {
|
|
|
if (item.name) {
|
|
if (item.name) {
|
|
|
- meds.push({ name: item.name, time: item.time || '' })
|
|
|
|
|
|
|
+ var m = { name: item.name }
|
|
|
|
|
+ if (item.startDate) m.startDate = item.startDate
|
|
|
|
|
+ if (item.durationText) m.durationText = item.durationText
|
|
|
|
|
+ if (item.time) m.time = item.time
|
|
|
|
|
+ meds.push(m)
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
var payload = {}
|
|
var payload = {}
|
|
@@ -426,6 +437,23 @@ export default {
|
|
|
.hs-tip-text { font-size: 26rpx; color: #8A6D3B; line-height: 1.6; }
|
|
.hs-tip-text { font-size: 26rpx; color: #8A6D3B; line-height: 1.6; }
|
|
|
.form-section { margin: 0 30rpx 24rpx; background: #fff; border-radius: 16rpx; padding: 24rpx; }
|
|
.form-section { margin: 0 30rpx 24rpx; background: #fff; border-radius: 16rpx; padding: 24rpx; }
|
|
|
.form-title { font-size: 30rpx; font-weight: bold; color: #333; margin-bottom: 20rpx; }
|
|
.form-title { font-size: 30rpx; font-weight: bold; color: #333; margin-bottom: 20rpx; }
|
|
|
|
|
+.disease-group { margin-bottom: 8rpx; }
|
|
|
|
|
+.group-head { display: flex; align-items: center; justify-content: space-between; padding: 12rpx 0; }
|
|
|
|
|
+.group-title { font-size: 28rpx; font-weight: bold; color: #333; }
|
|
|
|
|
+.group-arrow { font-size: 24rpx; color: #999; }
|
|
|
|
|
+.risk-badge { margin-left: 6rpx; color: #E64340; font-size: 24rpx; }
|
|
|
|
|
+.selected-area { margin-top: 16rpx; padding: 16rpx; background: #FFF7E6; border-radius: 12rpx; }
|
|
|
|
|
+.selected-title { font-size: 26rpx; color: #8A6D3B; margin-bottom: 8rpx; }
|
|
|
|
|
+.sel-row { display: flex; align-items: center; justify-content: space-between; padding: 10rpx 0; border-bottom: 1rpx solid #F0E6D0; }
|
|
|
|
|
+.sel-name { font-size: 28rpx; color: #333; flex: 1; }
|
|
|
|
|
+.sel-diag { font-size: 26rpx; color: #F97316; }
|
|
|
|
|
+.sel-del { font-size: 30rpx; color: #E64340; margin-left: 16rpx; }
|
|
|
|
|
+.med-row { border: 1rpx solid #F0F0F0; border-radius: 12rpx; padding: 16rpx; margin-bottom: 16rpx; }
|
|
|
|
|
+.med-line { display: flex; align-items: center; margin-bottom: 12rpx; }
|
|
|
|
|
+.med-line:last-child { margin-bottom: 0; }
|
|
|
|
|
+.med-picker { font-size: 26rpx; color: #F97316; padding: 8rpx 16rpx; background: #F5F7FA; border-radius: 10rpx; }
|
|
|
|
|
+.med-forget { font-size: 26rpx; color: #999; margin-left: 16rpx; }
|
|
|
|
|
+.med-duration { font-size: 26rpx; color: #8A6D3B; }
|
|
|
.form-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20rpx; }
|
|
.form-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20rpx; }
|
|
|
.form-label { font-size: 28rpx; color: #555; }
|
|
.form-label { font-size: 28rpx; color: #555; }
|
|
|
.form-input { flex: 1; margin-left: 30rpx; height: 68rpx; background: #F5F7FA; border-radius: 10rpx; padding: 0 20rpx; font-size: 28rpx; text-align: right; }
|
|
.form-input { flex: 1; margin-left: 30rpx; height: 68rpx; background: #F5F7FA; border-radius: 10rpx; padding: 0 20rpx; font-size: 28rpx; text-align: right; }
|