From da0e743bc5fa6dd3c9d66988809a4b179db57088 Mon Sep 17 00:00:00 2001
From: panliang <1163816051@qq.com>
Date: Mon, 25 Sep 2023 12:41:09 +0800
Subject: [PATCH] i
---
src/pages/record/detail.vue | 27 +++++++++++++++++++++++----
src/pages/record/form.vue | 21 ++++++++++++++-------
2 files changed, 37 insertions(+), 11 deletions(-)
diff --git a/src/pages/record/detail.vue b/src/pages/record/detail.vue
index d3a7c58..a0e4f33 100644
--- a/src/pages/record/detail.vue
+++ b/src/pages/record/detail.vue
@@ -70,7 +70,13 @@
rightIcon="edit-pen"
@click="toggleDatePicker('next_treat_at', 'datetime')"
/>
+
+
+
+
+
-
+ /> -->
+
@@ -160,7 +168,8 @@ export default {
type_id: '',
origin_price: '',
sell_price: '',
- notify_remarks: ''
+ notify_remarks: '',
+ is_notified: 0,
},
adminUser: {
key: '',
@@ -352,6 +361,13 @@ export default {
}
})
},
+ updateSwitch(e) {
+ this.update('is_notified', e).then(res => {
+ if (res.status == 0) {
+ this.info.is_notified = e
+ }
+ })
+ },
deleteRecord() {
uni.showModal({
title: '删除病历记录',
@@ -376,7 +392,10 @@ export default {
}, 1000)
}
})
- }
+ },
+ patientDetail() {
+ return uni.navigateTo({ url: `/pages/patient/detail?id=${this.info.patient_id}` })
+ },
}
}
diff --git a/src/pages/record/form.vue b/src/pages/record/form.vue
index ee00a8d..abfd36e 100644
--- a/src/pages/record/form.vue
+++ b/src/pages/record/form.vue
@@ -36,7 +36,7 @@
-
+
{{ form.content }}
@@ -47,30 +47,33 @@
-
+
{{ form.next_treat_at | date }}
请选择下次就诊时间
-
+
+
+
+
{{ adminUser.notify_user_name }}
请选择通知人
-
+
{{ form.notify_at | date('yyyy-MM-dd') }}
请选择通知时间
-
+
{{ currentUser.name }}
@@ -117,7 +120,8 @@ export default {
next_treat_at: '',
notify_user_id: '',
notify_at: '',
- notify_remarks: ''
+ notify_remarks: '',
+ is_notified: 1,
},
typeList: [],
patient: {},
@@ -284,6 +288,9 @@ export default {
},
confirmEditor(e) {
this.form.content = e
+ },
+ updateSwitch(e) {
+ this.form.is_notified = e
}
}
}