LIJU 4 周之前
父节点
当前提交
79fbd06332
共有 2 个文件被更改,包括 50 次插入17 次删除
  1. 9 0
      src/api/medical-insurance/si-inpatient.js
  2. 41 17
      src/views/medical-insurance/inpatient/InHospFeeUpload.vue

+ 9 - 0
src/api/medical-insurance/si-inpatient.js

@@ -49,6 +49,15 @@ export function multipleUpload(data) {
   })
 }
 
+export function injuryMultipleUpload(data) {
+  return request({
+    url: '/siZy/injuryMultipleUpload',
+    method: 'post',
+    showLoading: false,
+    data,
+  })
+}
+
 export function pairNegativeFee(data) {
   return request({
     url: '/siZy/pairNegativeFee',

+ 41 - 17
src/views/medical-insurance/inpatient/InHospFeeUpload.vue

@@ -221,6 +221,7 @@ import { nullPatient } from "@/utils/validate";
 import {
   hospitalizationPreSettlement,
   multipleUpload,
+  injuryMultipleUpload,
   pairNegativeFee,
   revokeUploadFees,
   uploadFeeDetail,
@@ -403,24 +404,47 @@ const uploadFees = () => {
 
 const userInfo = useUserStore().userInfo;
 const doSingleInjuryUpload = () => {
-  patient.value.sid = userInfo.sid;
-  inpatientCostUpload(patient.value)
-    .then(res => {
-      fetchProjectFees();
-      fetchMedicineFees();
-      patient.value.chargeYb = res.fundPay;
-      ElMessageBox.alert(res, "成功", {
-        type: "success",
-        confirmButtonText: "确定",
-      });
-      getPatientInfo(patient.value.inpatientNo).then(res => {
-        setBaseinfo(res);
-      });
+  let list = [
+    {
+      inpatientNo: patient.value.inpatientNo,
+      admissTimes: patient.value.admissTimes,
+      ledgerSn: patient.value.ledgerSn,
+      sid: userInfo.sid,
+      mdtrtId: patient.value.mdtrtId,
+      medType: patient.value.medType,
+      injurySerialNo: patient.value.injurySerialNo,
+    },
+  ];
+  injuryMultipleUpload(list).then((res) => {
+    ElMessageBox.alert(res, '成功', {
+      type: 'success',
+      confirmButtonText: '确定',
+    }).then(() => {
+      sendAMessage('closeProgress')
+      if (!nullPatient(false)) {
+        fetchProjectFees();
+        fetchMedicineFees();
+      }
     })
-    .catch(() => {
-      fetchProjectFees();
-      fetchMedicineFees();
-    });
+  });
+  // patient.value.sid = userInfo.sid;
+  // inpatientCostUpload(patient.value)
+  //   .then(res => {
+  //     fetchProjectFees();
+  //     fetchMedicineFees();
+  //     patient.value.chargeYb = res.fundPay;
+  //     ElMessageBox.alert(res, "成功", {
+  //       type: "success",
+  //       confirmButtonText: "确定",
+  //     });
+  //     getPatientInfo(patient.value.inpatientNo).then(res => {
+  //       setBaseinfo(res);
+  //     });
+  //   })
+  //   .catch(() => {
+  //     fetchProjectFees();
+  //     fetchMedicineFees();
+  //   });
 };
 
 const doSingleNormalUpload = () => {