-
+
{{
@@ -133,7 +148,13 @@ const decrypt = (str: string) => str; // 简单base64解码示例
}}
{{ drug?.number }} /g
-
煎服方法: {{ drug.use_way?.name || '煎服' }}
+
+
+ 方法:
+ {{
+ drug.use_way?.name || '煎服'
+ }}
+
@@ -186,23 +207,63 @@ const decrypt = (str: string) => str; // 简单base64解码示例
- {{ item.content?.doctor.name }}
+
![签名]()
+
{{ item.content?.doctor.name }}
- {{ item?.first_view_info?.name || '' }}
+
![签名]()
+
{{ item.pharmacist_info?.name }}
- {{ item.content?.doctor.name }}
+
![签名]()
+
{{ item.content?.doctor.name }}
- {{ item?.again_view_info?.name || '' }}
+
![签名]()
+
{{ item.pharmacist_info?.name }}
- {{ item.content?.doctor.name }}
+
![签名]()
+
{{ item.content?.doctor.name }}
@@ -212,7 +273,12 @@ const decrypt = (str: string) => str; // 简单base64解码示例
总价: ¥{{ item.total_pay_price }}
-
处方有效期: {{ item.valid_hours }}小时
+
+ 处方有效期: {{ item.valid_hours }}小时
+
+
+ {{ item.auro_expire_txt }}
+
diff --git a/apps/web-antd/src/views/doctor/doctor-reception/index.vue b/apps/web-antd/src/views/doctor/doctor-reception/index.vue
index 0b3e981f..921a1960 100644
--- a/apps/web-antd/src/views/doctor/doctor-reception/index.vue
+++ b/apps/web-antd/src/views/doctor/doctor-reception/index.vue
@@ -28,13 +28,13 @@ import {
Tag,
Textarea,
Timeline,
- TimelineItem,
+ TimelineItem, notification,
} from 'ant-design-vue';
import {debounce} from 'lodash-es'; // 或者使用自定义防抖函数
import {getRegisterStatus} from '#/util/tool';
import {
- addWestPrescription,
+ addWestPrescription, checkChineseMedicineConflictApi,
endOfDiagnosisApi,
getDrugUseList,
getMyStoreListApi,
@@ -381,6 +381,40 @@ const getCurrentDrugs = () => {
);
};
getCurrentDrugs();
+
+const doctorSecondSign = ref(0);
+const checkData = ref([]);
+/**
+ * 检查中药的相冲
+ */
+const checkChineseMedicineConflict = () => {
+ if (activeCategory.value === 2) {
+ // eslint-disable-next-line no-use-before-define
+ sendPrescription();
+ return;
+ }
+ notification.info({
+ message: '正在检查药物相冲',
+ duration: 1,
+ description: '正在检查药物相冲,请稍等...',
+ })
+ const names = currentDrugs.value.map((item) => item.drug_name);
+ checkChineseMedicineConflictApi({names: names}).then((res) => {
+ if (res.is_exist === true) {
+ checkData.value.message = res.message;
+ doctorSecondSignModal.value = true;
+ } else {
+ notification.success({
+ message: '检查成功',
+ duration: 3,
+ description: '暂无相冲药品',
+ })
+ // eslint-disable-next-line no-use-before-define
+ sendPrescription();
+ }
+ })
+ return;
+}
/**
* 发送处方
*/
@@ -455,6 +489,8 @@ const sendPrescription = () => {
dosage: dosage.value,
// 每日用药次数
day_dosage: dayDosage.value,
+ // 是否二次签名
+ doctor_second_sign: doctorSecondSign.value,
}).then(() => {
message.success('处方已发送');
// 清空当前数据
@@ -702,7 +738,10 @@ function updateChineseNumber() {
updateLocalStorage();
}
+// 新药品确认弹窗
const showNewDrugModal = ref(false);
+// 二次签名确认弹窗
+const doctorSecondSignModal = ref(false);
/**
* 在新的药品数量框失去焦点后弹出新药品弹窗
@@ -718,6 +757,12 @@ function newDrugModalOk() {
showNewDrugModal.value = false;
}
+function doctorSecondSignModalOk() {
+ doctorSecondSign.value = 1;
+ doctorSecondSignModal.value = false;
+ sendPrescription();
+}
+
function updateChineseNumberGoNewDrug(event: KeyboardEvent) {
if (event.key === 'Enter') {
updateLocalStorage();
@@ -773,7 +818,6 @@ const getDrugListByWesternModal = debounce(async (searchText = '') => {
/**
* 选择药品
- * @param id
*/
function selectNewDrugInfo() {
// 如果是新药品输入框,调用添加新药品方法
@@ -893,7 +937,6 @@ function searchOption(inputValue) {
/**
* 添加中药
- * @param inputValue
*/
function addDrugByChinese() {
// 如果是新药品输入框,调用添加新药品方法
@@ -1247,16 +1290,22 @@ watch(
{{ item.prescription_no }}
-