Browse Source

慢特病备案医师编码要使用医保赋码

lighter 2 months ago
parent
commit
7650cd0477

+ 5 - 1
src/views/medical-insurance/management/RecordManagement.vue

@@ -518,6 +518,7 @@ import {
 import {Export} from "@/utils/ExportExcel";
 import {searchData} from "@/api/inpatient/dictionary";
 import env from "@/utils/setting";
+import {xcMessage} from "@/utils/xiaochan-element-plus";
 
 const allRecordTypes = [
     { value: '2503', label: '慢特病备案' },
@@ -738,7 +739,10 @@ const searchPhysician = (queryString, cb) => {
     }
 }
 const handleSelectPhysician = (item) => {
-    tempMtbRecord.diagDrCodg = item.code
+    if (!item.ybCode) {
+      xcMessage.error('医师没有医保赋码!');
+    }
+    tempMtbRecord.diagDrCodg = item.ybCode
     tempMtbRecord.diagDrName = item.name
 }
 

+ 12 - 3
src/views/medical-insurance/outpatient/SpcChrRcd.vue

@@ -211,7 +211,13 @@
         <div style="display: flex">
           <div>医师姓名:</div>
           <div>
-            <el-autocomplete v-model="slwSpcChrRcd.diagDrName" :fetch-suggestions="searchPhysician" placeholder="请输入姓名" clearable @select="handleSelectPhysician">
+            <el-autocomplete
+                v-model="slwSpcChrRcd.diagDrName"
+                :fetch-suggestions="searchPhysician"
+                placeholder="请输入姓名"
+                clearable
+                @select="handleSelectPhysician"
+            >
               <template #default="{ item }">
                 <span style="color: #8492a6; font-size: 12px">{{ item.code }}</span>
                 <el-divider direction="vertical"></el-divider>
@@ -277,7 +283,6 @@
       <el-table-column prop="trtDclaDetlSn" label="备案流水号"></el-table-column>
     </el-table>
   </el-dialog>
-
 </template>
 
 <script>
@@ -290,6 +295,7 @@ import { formatDatetime, formatDate } from '@/utils/date'
 import { searchData } from '@/api/inpatient/dictionary'
 import { Export } from '../../../utils/ExportExcel'
 import PageLayer from "@/layout/PageLayer";
+import {xcMessage} from "@/utils/xiaochan-element-plus";
 export default {
   components: {PageLayer},
   setup() {
@@ -537,7 +543,10 @@ export default {
       }
     }
     const handleSelectPhysician = (item) => {
-      slwSpcChrRcd.value.diagDrCodg = item.code
+      if (!item.ybCode) {
+        xcMessage.error('医师没有医保赋码!');
+      }
+      slwSpcChrRcd.value.diagDrCodg = item.ybCode;
       slwSpcChrRcd.value.diagDrName = item.name
     }