瀏覽代碼

判断问题

xiaochan 5 天之前
父節點
當前提交
870ba3891b
共有 3 個文件被更改,包括 14 次插入18 次删除
  1. 1 1
      src/auto-imports.d.ts
  2. 4 14
      src/components/xmlr/components/projectInput/FeeInput.vue
  3. 9 3
      src/components/xmlr/index.ts

+ 1 - 1
src/auto-imports.d.ts

@@ -65,6 +65,6 @@ declare global {
 // for type re-export
 declare global {
   // @ts-ignore
-  export type { Component, ComponentPublicInstance, ComputedRef, ExtractDefaultPropTypes, ExtractPropTypes, ExtractPublicPropTypes, InjectionKey, PropType, Ref, VNode, WritableComputedRef } from 'vue'
+  export type { Component, ComponentPublicInstance, ComputedRef, DirectiveBinding, ExtractDefaultPropTypes, ExtractPropTypes, ExtractPublicPropTypes, InjectionKey, PropType, Ref, MaybeRef, MaybeRefOrGetter, VNode, WritableComputedRef } from 'vue'
   import('vue')
 }

+ 4 - 14
src/components/xmlr/components/projectInput/FeeInput.vue

@@ -85,10 +85,6 @@ function handleSave() {
     chargeDate: dayjs(store.chargeDate).format("YYYY-MM-DD HH:mm:ss"),
   };
 
-  if (needRule(ruleName.财务)) {
-    shangChuanFeiYong.orderNo = 3;
-  }
-
   ElMessageBox.confirm(
     `住院号:${store.patInfo.inpatientNo}<br />姓名:${store.patInfo.name}<br />共:${saveData.value.length}条费用`,
     "请认真核对",
@@ -100,16 +96,10 @@ function handleSave() {
     }
   ).then(() => {
     xiangMuFeiYongShangChuan(shangChuanFeiYong).then(res => {
-      CyMessageBox.confirm({
-        message: "录入的药品中包含特殊药品是否生成医嘱",
-        type: "info",
-      })
-        .then(() => {
-          mutation.getDrugDetail(res);
-        })
-        .finally(() => {
-          saveProxy.clear();
-        });
+      if (props.orderNo === 3) {
+        mutation.getDrugDetail(res);
+      }
+      saveProxy.clear();
     });
   });
 }

+ 9 - 3
src/components/xmlr/index.ts

@@ -277,9 +277,15 @@ export const useXmlr = (props: XmlrProps, emits: UseDialogType.Emits) => {
         patNo: store.patInfo.inpatientNo,
         times: store.patInfo.admissTimes,
         detailNos,
-      }).then(res => {
-        // @ts-ignore
-        mutation.handleTransformationDrugDetail(res);
+      }).then(async res => {
+        if (res.length > 0) {
+          await CyMessageBox.confirm({
+            message: "录入的药品中包含特殊药品是否生成医嘱",
+            type: "info",
+          });
+          // @ts-ignore
+          mutation.handleTransformationDrugDetail(res);
+        }
       });
     },
     handleTransformationDrugDetail(value: DetailDrugFeeVo[]) {