fix: 各种提交(日志相关、组件封装相关、订单相关
Some checks failed
CI / Test (ubuntu-latest) (push) Has been cancelled
CI / Test (windows-latest) (push) Has been cancelled
CI / Lint (ubuntu-latest) (push) Has been cancelled
CI / Lint (windows-latest) (push) Has been cancelled
CI / Check (ubuntu-latest) (push) Has been cancelled
CI / Check (windows-latest) (push) Has been cancelled
CodeQL / Analyze (javascript-typescript) (push) Has been cancelled
Deploy Website on push / Deploy Push Playground Ftp (push) Has been cancelled
Deploy Website on push / Deploy Push Docs Ftp (push) Has been cancelled
Deploy Website on push / Deploy Push Antd Ftp (push) Has been cancelled
Deploy Website on push / Deploy Push Element Ftp (push) Has been cancelled
Deploy Website on push / Deploy Push Naive Ftp (push) Has been cancelled
Release Drafter / update_release_draft (push) Has been cancelled
CI / CI OK (push) Has been cancelled
Lock Threads / action (push) Has been cancelled
Issue Close Require / close-issues (push) Has been cancelled
Close stale issues / stale (push) Has been cancelled
Some checks failed
CI / Test (ubuntu-latest) (push) Has been cancelled
CI / Test (windows-latest) (push) Has been cancelled
CI / Lint (ubuntu-latest) (push) Has been cancelled
CI / Lint (windows-latest) (push) Has been cancelled
CI / Check (ubuntu-latest) (push) Has been cancelled
CI / Check (windows-latest) (push) Has been cancelled
CodeQL / Analyze (javascript-typescript) (push) Has been cancelled
Deploy Website on push / Deploy Push Playground Ftp (push) Has been cancelled
Deploy Website on push / Deploy Push Docs Ftp (push) Has been cancelled
Deploy Website on push / Deploy Push Antd Ftp (push) Has been cancelled
Deploy Website on push / Deploy Push Element Ftp (push) Has been cancelled
Deploy Website on push / Deploy Push Naive Ftp (push) Has been cancelled
Release Drafter / update_release_draft (push) Has been cancelled
CI / CI OK (push) Has been cancelled
Lock Threads / action (push) Has been cancelled
Issue Close Require / close-issues (push) Has been cancelled
Close stale issues / stale (push) Has been cancelled
This commit is contained in:
@@ -16,6 +16,7 @@ import {
|
||||
getProcessRuleList,
|
||||
getProductListDoctorReception,
|
||||
} from '#/views/doctor/doctor-reception/api';
|
||||
import traditionalJson from '#/views/business/chat/config/traditional.json';
|
||||
|
||||
export const usePrescriptionStore = defineStore('prescription', () => {
|
||||
// 基础数据
|
||||
@@ -73,6 +74,11 @@ export const usePrescriptionStore = defineStore('prescription', () => {
|
||||
const isInitialized = ref(false);
|
||||
const isPatientInfoLoaded = ref(false);
|
||||
|
||||
const traditionalChineseMedicine = ref(traditionalJson);
|
||||
const diseasesSelected = ref();
|
||||
const methodSelected = ref();
|
||||
const syndromeSelected = ref();
|
||||
|
||||
// 获取localStorage key
|
||||
const getStorageKey = () =>
|
||||
`prescriptionData-chat-${currentRegisterId.value}`;
|
||||
@@ -590,6 +596,7 @@ export const usePrescriptionStore = defineStore('prescription', () => {
|
||||
|
||||
// 发送处方
|
||||
const sendPrescription = async (doctorSecondSignValue = 0) => {
|
||||
|
||||
if (currentDrugs.value.length === 0) {
|
||||
message.error('请选择药品');
|
||||
return false;
|
||||
@@ -625,7 +632,6 @@ export const usePrescriptionStore = defineStore('prescription', () => {
|
||||
message.error('医嘱不能为空');
|
||||
return false;
|
||||
}
|
||||
|
||||
try {
|
||||
await addWestPrescription({
|
||||
patient: activePatient.value,
|
||||
@@ -647,6 +653,10 @@ export const usePrescriptionStore = defineStore('prescription', () => {
|
||||
dosage: dosage.value,
|
||||
day_dosage: dayDosage.value,
|
||||
doctor_second_sign: doctorSecondSignValue,
|
||||
// 中医在线问诊所需的东西
|
||||
diseases_id: diseasesSelected.value,
|
||||
method_id: methodSelected.value,
|
||||
syndrome_id: syndromeSelected.value,
|
||||
}).then((res) => {
|
||||
message.success('处方已发送');
|
||||
sendMessage({
|
||||
@@ -798,5 +808,9 @@ export const usePrescriptionStore = defineStore('prescription', () => {
|
||||
syncToLocalStorage,
|
||||
loadFromLocalStorage,
|
||||
updateCurrentDrugs,
|
||||
traditionalChineseMedicine,
|
||||
diseasesSelected,
|
||||
methodSelected,
|
||||
syndromeSelected,
|
||||
};
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user