Quellcode durchsuchen

补录和登记的费用生成分开做

lighter vor 2 Jahren
Ursprung
Commit
aea283ec6d

+ 8 - 0
src/api/medical-insurance/si-outpatient.js

@@ -48,6 +48,14 @@ export function insertSiMzFees(data) {
   })
 }
 
+export function insertSiMzFeesForSupplement(data) {
+  return request({
+    url: '/siMz/insertSiMzFeesForSupplement',
+    method: 'post',
+    data,
+  })
+}
+
 export function deleteMzReceipt(data) {
   return request({
     url: '/siMz/deleteMzReceipt',

+ 11 - 14
src/views/medical-insurance/outpatient/MzSpltryRcrd.vue

@@ -163,7 +163,7 @@ import {
   deleteAllMzReceipts,
   getHistoryMzReceipts,
   getHistoryReceiptDetail,
-  insertSiMzFees,
+  insertSiMzFeesForSupplement,
   outpatientPreSettlement,
   outpatientRegistration,
   revokeOutpatientFeeDetails,
@@ -381,20 +381,17 @@ export default {
         type: 'warning',
         confirmButtonText: '生成',
         cancelButtonText: '取消',
-      })
-          .then(() => {
-            insertSiMzFees(currentReceipts.value).then(() => {
-              currentRow.value.status = '1'
-              ElMessage({
-                message: '已成功生成医保处方。',
-                type: 'success',
-                duration: 2500,
-                showClose: true,
-              })
-            })
-          })
-          .catch(() => {
+      }).then(() => {
+        insertSiMzFeesForSupplement(currentReceipts.value).then(() => {
+          currentRow.value.status = '1'
+          ElMessage({
+            message: '已成功生成医保处方。',
+            type: 'success',
+            duration: 2500,
+            showClose: true,
           })
+        })
+      }).catch(() => {})
     }
 
     const matnDises = ref([])