瀏覽代碼

医保科室匹配时存储医保科室名称

lighter 9 月之前
父節點
當前提交
1466f86aac
共有 2 個文件被更改,包括 13 次插入16 次删除
  1. 2 2
      src/api/dictionary/yi-bao-ke-shi-pi-pei.js
  2. 11 14
      src/views/dictionary/YiBaoKeShiPiPei.vue

+ 2 - 2
src/api/dictionary/yi-bao-ke-shi-pi-pei.js

@@ -15,10 +15,10 @@ export function getYiBaoKeShi() {
   })
 }
 
-export function piPeiKeShi(benYuanCode, yiBaoCode, flag) {
+export function piPeiKeShi(benYuanCode, yiBaoCode, yiBaoName, flag) {
   return request({
     url: '/yiBaoKeShi/piPeiKeShi',
     method: 'get',
-    params: { benYuanCode, yiBaoCode, flag },
+    params: { benYuanCode, yiBaoCode, yiBaoName, flag },
   })
 }

+ 11 - 14
src/views/dictionary/YiBaoKeShiPiPei.vue

@@ -163,24 +163,21 @@ const keShiPiPeiClick = () => {
           dangerouslyUseHTMLString: true,
           type: 'warning',
         }
-    )
-        .then(() => {
-          piPeiKeShi(benYuanRadio.value.code, yiBaoRadio.value.code, 1).then((res) => {
-            for (let i = 0; i < benYuanKeShiTable.value.length; i++) {
-              if (benYuanKeShiTable.value[i].code === benYuanRadio.value.code) {
-                benYuanKeShiTable.value.splice(i, 1)
-              }
-            }
-            chongZhi()
-          })
-        })
-        .catch((e) => {
-        })
+    ).then(() => {
+      piPeiKeShi(benYuanRadio.value.code, yiBaoRadio.value.code, yiBaoRadio.value.name, 1).then((res) => {
+        for (let i = 0; i < benYuanKeShiTable.value.length; i++) {
+          if (benYuanKeShiTable.value[i].code === benYuanRadio.value.code) {
+            benYuanKeShiTable.value.splice(i, 1)
+          }
+        }
+        chongZhi()
+      })
+    }).catch((e) => {})
   }
 }
 
 const shanChuPiPei = (index, row) => {
-  piPeiKeShi(row.code, row.siCaty, 2).then((res) => {
+  piPeiKeShi(row.code, row.siCaty, row.siCaty,2).then((res) => {
     benYuanKeShiTable.value.splice(index, 1)
   })
 }