From c7d1019afa81fa999caef45283afa0b36a76ef84 Mon Sep 17 00:00:00 2001 From: huxuejian Date: Fri, 4 Sep 2026 16:34:50 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=9C=AC=E6=AC=A1=E5=B0=B1=E8=AF=8A?= =?UTF-8?q?=E7=B1=BB=E5=9E=8B=20=E6=A0=B7=E5=BC=8F=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/consult/disease-description.vue | 34 +++++++++++++-------------- store/order.js | 18 ++++++++++++-- 2 files changed, 33 insertions(+), 19 deletions(-) diff --git a/pages/consult/disease-description.vue b/pages/consult/disease-description.vue index 08489d3..d8689e4 100644 --- a/pages/consult/disease-description.vue +++ b/pages/consult/disease-description.vue @@ -5,28 +5,28 @@ 就诊人:{{ form.name }} {{ form.sex }} {{ form.age ? `${form.age}岁` : '' }} - + 本次就诊类型 - - - + + + + + 请描述您的病情 + :adjust-position="false" @click.stop @focus="showDescriptionGuess" @input="handleDescriptionInput" + @blur="hideDescriptionGuess" @keyboardheightchange="handleKeyboardHeightChange"> - @@ -363,16 +363,17 @@ onUnload(() => { } .med-type-options { + margin-top: 20rpx; display: flex; align-items: center; - justify-content: flex-end; + flex-wrap: wrap; flex: 1; } .med-type-option { display: flex; align-items: center; - margin-left: 24rpx; + margin-right: 24rpx; font-size: 28rpx; white-space: nowrap; } @@ -593,7 +594,6 @@ onUnload(() => { .med-type-options { width: 100%; justify-content: space-between; - margin-top: 20rpx; } .med-type-option { diff --git a/store/order.js b/store/order.js index c807c55..68289f7 100644 --- a/store/order.js +++ b/store/order.js @@ -5,7 +5,7 @@ import userStore from "./user"; import { toast } from "@/utils/widget"; const orderSource = 'ALIPAY_MINI'; const hospitalId = process.env.HOSPITAL_ID; -import { getDrugMatchedDisease } from "@/utils/api"; +import { getDrugMatchedDisease } from "@/utils/api"; const FeeType = ['YB', 'ZF']; @@ -164,6 +164,20 @@ export default defineStore("orderStore", () => { return; } const tmbxx = Array.isArray(hisArchive.tmbxx) ? hisArchive.tmbxx : []; + // const tmbxx = [ + // { + // "med_type": "140201", + // "diseType": "特病", + // "dise_codg": "M01600", + // "dise_name": "糖尿病" + // }, + // { + // "med_type": "140104", + // "diseType": "慢病", + // "dise_codg": "M03900", + // "dise_name": "高血压" + // } + // ] medTypeList.value = [outpatientMedType, ...tmbxx]; const profile = patientList.value.find((i) => i.socialno === socialno); regFee.value = 0; @@ -276,7 +290,7 @@ export default defineStore("orderStore", () => { return; } const res = await getDrugMatchedDisease({ drugIds }); - const diseases = res && Array.isArray(res.list) ? res.list.filter(i=> typeof i === "string" && i.trim()) : []; + const diseases = res && Array.isArray(res.list) ? res.list.filter(i => typeof i === "string" && i.trim()) : []; const newDiseases = diseases.filter(i => !order.value.diseases.includes(i)); order.value.diseases = [...order.value.diseases, ...newDiseases]; }