Procházet zdrojové kódy

优化门诊相关

xiaochan před 1 měsícem
rodič
revize
47c72e953c

+ 22 - 20
src/views/med-tec-mod/MenZhenXiangMu.vue

@@ -33,33 +33,33 @@
           </el-option>
         </el-select>
         <el-button icon="Search" type="primary" @click="getMzPatientClick">
-          查询</el-button
-        >
+          查询
+        </el-button>
         <el-button icon="Search" type="primary" @click="kuaiSuChaZhaoClick">
-          快速查找</el-button
-        >
+          快速查找
+        </el-button>
         <el-button
           icon="Search"
           type="warning"
           @click="chaoZuoZhiNanDialog = true"
         >
-          操作指南</el-button
-        >
+          操作指南
+        </el-button>
         <el-button icon="Upload" type="success" @click="baoCunClick">
-          保存</el-button
-        >
+          保存
+        </el-button>
       </div>
       <div>
         <el-tag effect="dark" size="large">患者姓名: {{ patient.name }}</el-tag>
         <el-tag effect="dark" size="large" type="warning"
-          >性别:{{ cptSex(patient.sex) }}</el-tag
-        >
+          >性别:{{ cptSex(patient.sex) }}
+        </el-tag>
         <el-tag effect="dark" size="large"
-          >出生日期: {{ patient.birthDay }}</el-tag
-        >
+          >出生日期: {{ patient.birthDay }}
+        </el-tag>
         <el-tag effect="dark" size="large" type="warning"
-          >诊疗卡: {{ patient.icCardNo }}</el-tag
-        >
+          >诊疗卡: {{ patient.icCardNo }}
+        </el-tag>
       </div>
     </header>
 
@@ -131,9 +131,9 @@
             ></el-table-column>
             <el-table-column label="申请号" prop="reqNo">
               <template #default="scope">
-                <el-button type="success" @click="getMingXiClick(scope.row)">{{
-                  scope.row.reqNo
-                }}</el-button>
+                <el-button type="success" @click="getMingXiClick(scope.row)"
+                  >{{ scope.row.reqNo }}
+                </el-button>
               </template>
             </el-table-column>
           </el-table-column>
@@ -204,7 +204,7 @@
         </el-form-item>
         <el-form-item label="申请医生:">
           <img
-            :src="`http://172.16.32.167:8077/doctorSignatureImage/${detailsDialog.details.req_doctor}.png`"
+            :src="`/doctorSignatureImage/${detailsDialog.details.req_doctor}.png`"
             :alt="detailsDialog.details.req_doctor_name"
           />
         </el-form-item>
@@ -227,7 +227,7 @@
     </div>
   </el-dialog>
 
-  <el-dialog v-model="itemDetailDialog" title="详情" width="60%">
+  <el-dialog v-model="itemDetailDialog" title="详情" width="95%">
     <div style="display: flex; height: 60vh">
       <div style="flex: 1; width: 0">
         <el-table
@@ -265,7 +265,7 @@
           </el-table-column>
         </el-table>
       </div>
-      <div style="width: 300px; margin-left: 4px">
+      <div style="width: 40%; margin-left: 4px">
         <el-table :data="yaoPinData" height="100%" highlight-current-row stripe>
           <el-table-column label="药品信息">
             <el-table-column
@@ -274,6 +274,8 @@
               width="210"
             ></el-table-column>
             <el-table-column label="数量" prop="quantity"></el-table-column>
+            <el-table-column label="组号" prop="groupOrder"></el-table-column>
+            <el-table-column label="单词用量" prop="drugQuan"></el-table-column>
           </el-table-column>
         </el-table>
       </div>

+ 2 - 7
src/views/mz-emr/emr-v2/comp/right/MzChuFang.vue

@@ -61,14 +61,9 @@ function referencePrescriptionDetails(paste = false) {
   if (select.length === 0) {
     BizException(ExceptionEnum.MESSAGE_ERROR, "请选择一条数据");
   }
-  const func = new Function("row", chuFang.prescription.quote);
+  const func = new Function("value", chuFang.prescription.quote);
 
-  let msg = "";
-
-  select.forEach((i, index) => {
-    const data = func(i);
-    msg += `${index + 1}、${data}\n`;
-  });
+  const msg = func(select);
 
   const tmpData = {
     type: "text",

+ 39 - 0
src/views/mz-emr/emr-v2/index.tsx

@@ -486,3 +486,42 @@ export const useMzEmrStore = () => {
 
 export const useMzEmrStoreKey = "useMzEmrStoreKey";
 export type UseMzEmrStoreType = ReturnType<typeof useMzEmrStore>;
+
+function test(value: any[]) {
+  const 类型 = ["西药", "治疗费", "检验", "检查"];
+
+  const grouping = {};
+  value.forEach(i => {
+    const key = i.类型;
+    if (grouping[key]) {
+      grouping[key].push(i);
+    } else {
+      grouping[key] = [i];
+    }
+  });
+
+  let msg = "";
+
+  类型.forEach(lxitem => {
+    const 分组数据 = grouping[lxitem];
+    msg += `【${lxitem}】\n`;
+    分组数据.forEach((row, index) => {
+      if (lxitem === "药品") {
+        msg += `${index}、${row.name} ${row.规格} X ${row.数量}${row.包装单位} 用法:${row.给药方式} ${row.单次剂量}${row.单位} ${row.频率} ${row.天}天 `;
+      } else {
+        msg += `${index}、${row.name}`;
+      }
+    });
+    delete grouping[lxitem];
+  });
+
+  for (let key in grouping) {
+    msg += `【${key}】\n`;
+
+    grouping[key].forEach((row, index) => {
+      msg += `${index}、${row.name}`;
+    });
+  }
+
+  return msg;
+}