Browse Source

手术医生效验

lihong 2 years ago
parent
commit
4191d3356e

+ 12 - 0
src/api/medical-insurance/si-setl-upload.js

@@ -323,4 +323,16 @@ export function updateBmyBz(data) {
         method: 'post',
         data
     })
+}
+
+/**
+ * 检查医生医保编码
+ *
+ */
+export function validateYbCode(code) {
+    return request({
+        url: '/setlListUpld/validateYbCode',
+        method: 'get',
+        params: {code}
+    })
 }

+ 2 - 0
src/components/SelectStaffCode.vue

@@ -12,6 +12,8 @@
       <span style="color:#E6A23C">{{ item.deptName }}</span>
       <el-divider direction="vertical"></el-divider>
       <span style="color:#a5673f">{{ item.empTitName }}</span>
+      <el-divider direction="vertical"></el-divider>
+      <span style="color:#a5673f">{{ item.ybCode }}</span>
     </el-option>
   </el-select>
 </template>

+ 34 - 3
src/components/si-sheet-upload/jie-suan-dan-xiu-gai/JieSuanDanXiuGaiShouShu.vue

@@ -99,14 +99,15 @@
 <script name="JieSuanDanXiuGaiShouShu" setup>
 import SelectStaffCode from '@/components/SelectStaffCode.vue'
 import {maZuiFangShis, qks} from '../jieSuanDanXiuGai'
-import {shouShuBianMa} from '@/api/medical-insurance/si-setl-upload'
+import {shouShuBianMa,validateYbCode} from '@/api/medical-insurance/si-setl-upload'
 import {current} from '@/data/input-table-header'
 import {shortcuts} from '@/data/shortcuts.js'
 import {getDateRangeFormatDateTime} from '@/utils/date'
 import XcComboGrid from "@/components/xiao-chan/combo-grid/XcComboGrid";
 import InputAndTable from "@/components/input-table-query/InputAndTable";
 import XcSelect from "@/components/xiao-chan/select/XcSelect";
-
+import {stringIsBlank, stringNotBlank} from "../../../utils/blank-utils";
+import {ElMessage, ElMessageBox} from 'element-plus'
 const props = defineProps({
   data: {
     type: Object,
@@ -201,15 +202,45 @@ const addShouShuClick = async () => {
   let anstDateS = getDateRangeFormatDateTime(formShouShu.anstDate)
   formShouShu.anstStartDate = anstDateS.startTime
   formShouShu.anstEndDate = anstDateS.endTime
+
   if (!form) return
   try {
     await form.validate()
-    emit('addShouShuClick', formShouShu)
+    let flag = true
+    if(stringNotBlank(formShouShu.ssys)){
+        await  validateYbCode(formShouShu.ssys).then((res) => {
+          if(stringNotBlank(res)){
+            flag = false
+            return ElMessage.error(res)
+          }
+        })
+    }
+    if(stringNotBlank(formShouShu.mzys)){
+        await  validateYbCode(formShouShu.mzys).then((res) => {
+          if(stringNotBlank(res)){
+            flag = false
+            return ElMessage.error(res)
+          }
+        })
+    }
+    if(flag){
+      emit('addShouShuClick', formShouShu)
+    }
   } catch (e) {
     console.log(e)
   }
 }
 
+ const  jianchaysCode= async  (code) => {
+  let message = '';
+  await  validateYbCode(code).then((res) => {
+    message = res
+   })
+
+   return message
+ }
+
+
 onMounted(() => {
   if (props.data) {
     formShouShu = props.data