فهرست منبع

优化打印问题以及医嘱的领量可以自主修改

xiaochan 3 هفته پیش
والد
کامیت
02d2b92071

+ 16 - 2
src/components/print-poisonous-hemp/PrintPoisonousHempTemplate.vue

@@ -6,6 +6,8 @@ import { cptSex } from "@/utils/computed";
 import Pr from "@/assets/prescription.png";
 import { useVuePrint } from "@/utils/cy-use/useVuePrint";
 import dayjs from "dayjs";
+import { stringIsBlank } from "@/utils/blank-utils";
+import { xcMessage } from "@/utils/xiaochan-element-plus";
 
 const props = defineProps<{
   data: PrintOrderVo;
@@ -140,7 +142,11 @@ defineExpose({
         <el-button
           @click="
             () => {
-              printFunc();
+              if (stringIsBlank(state.data.diagnose)) {
+                xcMessage.error('诊断不能为空');
+              } else {
+                printFunc();
+              }
             }
           "
           >打印
@@ -386,7 +392,7 @@ defineExpose({
                               type="number"
                             />mg 按医疗垃圾处理&nbsp;&nbsp;&nbsp;
                           </span>
-                          <span>
+                          <span :class="item.dropAmt ? '' : 'print-none'">
                             双人签名:<span
                               style="width: 90pt; display: inline-block"
                               class="print-poisonous-hemp__tag--underline"
@@ -443,6 +449,14 @@ defineExpose({
                   style="width: 23%"
                 ></div>
               </div>
+              <div style="height: 4pt"></div>
+              <div style="display: flex">
+                <div>领药人:</div>
+                <div
+                  class="print-poisonous-hemp__tag--underline"
+                  style="width: 23%"
+                ></div>
+              </div>
               <div style="margin: 5pt 0; border-top: 0.75pt solid #000"></div>
               <div>说明:根据《处方管理办法》,本处方开具当日有效。</div>
             </div>

+ 0 - 1
src/components/zhu-yuan-yi-sheng/YzTag.vue

@@ -136,7 +136,6 @@ const pathList = ref([
     disable: true,
   },
 ]);
-const fileName = ref("v1.1.0");
 
 const activation = (val, frequCode = "") => {
   if (router.currentRoute.value.href === val) {

+ 15 - 23
src/components/zhu-yuan-yi-sheng/yi-zhu-lu-ru/yz-edit/YzEditor.vue

@@ -58,29 +58,18 @@
         </div>
         <div>
           领量:
-          <template v-if="queryParam.frequCode === 'takeMedicine'">
-            <el-input-number
-              style="width: 60px"
-              ref="drugQuanRef"
-              @keydown="drugQuanChange"
-              v-model="yiZhuData.drugQuan"
-              :min="1"
-              :controls="false"
-            />
-            <span style="color: red">{{ yiZhuData.miniUnitName }}</span>
-          </template>
-          <template v-else-if="yiZhuData.serial === '00'">
-            <el-input-number
-              style="width: 60px"
-              v-model="yiZhuData.drugQuan"
-              :min="0"
-              :controls="false"
-            />
-          </template>
-          <template v-else>
-            {{ yiZhuData.drugQuan }}
-            {{ yiZhuData.miniUnitName }}
-          </template>
+          <el-input-number
+            style="width: 40px"
+            ref="drugQuanRef"
+            class="el-input-number__no-controls"
+            @keydown="drugQuanChange"
+            v-model="yiZhuData.drugQuan"
+            :min="1"
+            :controls="false"
+          />
+          <span style="color: red" v-if="yiZhuData.frequCode !== 'ONCE'">{{
+            yiZhuData.miniUnitName
+          }}</span>
         </div>
       </div>
       <div class="yz_input__box">
@@ -756,6 +745,9 @@ const jiSuanLingLiang = async val => {
   if (yiZhuData.value.selfBuy === "4") {
     return;
   }
+  if (yiZhuData.value.serial === "00") {
+    return;
+  }
   if (jiLiangValue.value <= 0) {
     return;
   }