Просмотр исходного кода

workInjury 调用magic api 接口修改

LIJU 2 месяцев назад
Родитель
Сommit
32a5414608

+ 16 - 8
src/views/medical-insurance/inpatient/AdmRegistration.vue

@@ -986,7 +986,8 @@ const injurySicard = async () => {
     grouping: true,
   });
   try {
-    const response = await fetch('http://130.150.161.72:9206/thyy/api/public/injury/workinjury', {
+    //const response = await fetch('http://130.150.161.72:9206/thyy/api/public/injury/workinjury', {
+    const response = await fetch('http://localhost:9205/thyy/api/public/injury/workinjury', {  
       method: 'POST',
       headers: {
         'Content-Type': 'application/json',
@@ -1033,7 +1034,8 @@ const injurySicard = async () => {
             visit_type = match[3];
           }
         }
-        const responseTwo = await fetch('http://130.150.161.72:9206/thyy/api/public/injury/addWorkInjuryPatientRelation', {
+        //const responseTwo = await fetch('http://130.150.161.72:9206/thyy/api/public/injury/addWorkInjuryPatientRelation', {
+        const responseTwo = await fetch('http://localhost:9205/thyy/api/public/injury/addWorkInjuryPatientRelation', {  
           method: 'POST',
           headers: {
             'Content-Type': 'application/json',
@@ -1446,7 +1448,8 @@ const handleClickInjuryinfo = row => {
       }
       console.log("params22222222222222222222222222222222222222222222222222",params)
       try {
-        const response = await fetch('http://130.150.161.72:9206/thyy/api/public/injury/workinjury', {
+        //const response = await fetch('http://130.150.161.72:9206/thyy/api/public/injury/workinjury', {
+        const response = await fetch('http://localhost:9205/thyy/api/public/injury/workinjury', {  
           method: 'POST',
           headers: {
             'Content-Type': 'application/json',
@@ -1458,7 +1461,8 @@ const handleClickInjuryinfo = row => {
         if (result && result.code === 1 && result.data && result.data.code === 200 && result.data.data.infcode == '0') {
           //调用addOrEditTSiPatInfo接口
           try {
-            const responseThree = await fetch('http://130.150.161.72:9206/thyy/api/public/injury/addOrEditTSiPatInfo', {
+            //const responseThree = await fetch('http://130.150.161.72:9206/thyy/api/public/injury/addOrEditTSiPatInfo', {
+            const responseThree = await fetch('http://localhost:9205/thyy/api/public/injury/addOrEditTSiPatInfo', {  
               method: 'POST',
               headers: {
                 'Content-Type': 'application/json',
@@ -1525,7 +1529,8 @@ const handleClickInjuryinfo = row => {
           }
           //调用addWorkInjuryInterfaceLog接口
           try {
-            const responseTwo = await fetch('http://130.150.161.72:9206/thyy/api/public/injury/addWorkInjuryInterfaceLog', {
+            //const responseTwo = await fetch('http://130.150.161.72:9206/thyy/api/public/injury/addWorkInjuryInterfaceLog', {
+            const responseTwo = await fetch('http://localhost:9205/thyy/api/public/injury/addWorkInjuryInterfaceLog', {  
               method: 'POST',
               headers: {
                 'Content-Type': 'application/json',
@@ -1696,7 +1701,8 @@ const beforeCancelRegister = () => {
             grouping: true,
           });
           
-          fetch('http://130.150.161.72:9206/thyy/api/public/injury/workinjury', {
+          //fetch('http://130.150.161.72:9206/thyy/api/public/injury/workinjury', {
+          fetch('http://localhost:9205/thyy/api/public/injury/workinjury', {  
             method: 'POST',
             headers: {
               'Content-Type': 'application/json',
@@ -1707,7 +1713,8 @@ const beforeCancelRegister = () => {
           .then(result => {
             if (result && result.code === 1 && result.data && result.data.code === 200 && result.data.data.infcode == '0') {
               // 新增:调用本地表撤销同步接口
-              fetch('http://130.150.161.72:9206/thyy/api/public/injury/localTablesModifyForAdmissionCancellation', {
+              //fetch('http://130.150.161.72:9206/thyy/api/public/injury/localTablesModifyForAdmissionCancellation', {
+              fetch('http://localhost:9205/thyy/api/public/injury/localTablesModifyForAdmissionCancellation', {  
                 method: 'POST',
                 headers: {
                   'Content-Type': 'application/json',
@@ -1725,7 +1732,8 @@ const beforeCancelRegister = () => {
               .then(localResult => {
                 if (localResult && localResult.code === 1) {
                   // 调用addWorkInjuryInterfaceLog接口
-                  fetch('http://130.150.161.72:9206/thyy/api/public/injury/addWorkInjuryInterfaceLog', {
+                  //fetch('http://130.150.161.72:9206/thyy/api/public/injury/addWorkInjuryInterfaceLog', {
+                  fetch('http://localhost:9205/thyy/api/public/injury/addWorkInjuryInterfaceLog', {  
                     method: 'POST',
                     headers: {
                       'Content-Type': 'application/json',

+ 10 - 5
src/views/medical-insurance/inpatient/AdmissVerification.vue

@@ -349,7 +349,8 @@ const handleClickInjuryinfo = (row) => {
     }
 
     try {
-      const response = await fetch('http://130.150.161.72:9206/thyy/api/public/injury/workinjury', {
+      //const response = await fetch('http://130.150.161.72:9206/thyy/api/public/injury/workinjury', {
+      const response = await fetch('http://localhost:9205/thyy/api/public/injury/workinjury', {
         method: 'POST',
         headers: {
           'Content-Type': 'application/json',
@@ -360,7 +361,8 @@ const handleClickInjuryinfo = (row) => {
       if (result && result.code === 1 && result.data && result.data.code === 200 && result.data.data.infcode == '0') {
         // 调用 addOrEditTSiPatInfo 接口
         try {
-          const responseThree = await fetch('http://130.150.161.72:9206/thyy/api/public/injury/addOrEditTSiPatInfo', {
+          //const responseThree = await fetch('http://130.150.161.72:9206/thyy/api/public/injury/addOrEditTSiPatInfo', {
+          const responseThree = await fetch('http://localhost:9205/thyy/api/public/injury/addOrEditTSiPatInfo', {
             method: 'POST',
             headers: {
               'Content-Type': 'application/json',
@@ -428,7 +430,8 @@ const handleClickInjuryinfo = (row) => {
 
         // 调用 addWorkInjuryInterfaceLog 接口
         try {
-          const responseTwo = await fetch('http://130.150.161.72:9206/thyy/api/public/injury/addWorkInjuryInterfaceLog', {
+          //const responseTwo = await fetch('http://130.150.161.72:9206/thyy/api/public/injury/addWorkInjuryInterfaceLog', {
+          const responseTwo = await fetch('http://localhost:9205/thyy/api/public/injury/addWorkInjuryInterfaceLog', {
             method: 'POST',
             headers: {
               'Content-Type': 'application/json',
@@ -652,7 +655,8 @@ const injurySicard = async () => {
     grouping: true,
   })
   try {
-    const response = await fetch('http://130.150.161.72:9206/thyy/api/public/injury/workinjury', {
+    //const response = await fetch('http://130.150.161.72:9206/thyy/api/public/injury/workinjury', {
+    const response = await fetch('http://localhost:9205/thyy/api/public/injury/workinjury', {
       method: 'POST',
       headers: {
         'Content-Type': 'application/json',
@@ -697,7 +701,8 @@ const injurySicard = async () => {
             visit_type = match[3]
           }
         }
-        const responseTwo = await fetch('http://130.150.161.72:9206/thyy/api/public/injury/addWorkInjuryPatientRelation', {
+        //const responseTwo = await fetch('http://130.150.161.72:9206/thyy/api/public/injury/addWorkInjuryPatientRelation', {
+        const responseTwo = await fetch('http://localhost:9205/thyy/api/public/injury/addWorkInjuryPatientRelation', {
           method: 'POST',
           headers: {
             'Content-Type': 'application/json',