MedInsVerification.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539
  1. <template>
  2. <el-container>
  3. <el-header style="height: 35px">
  4. <el-select size="small" v-model="patient.medType" placeholder="请选择医疗类别" style="width: 145px">
  5. <el-option v-for="item in medTypes" :key="item.code" :label="item.name" :value="item.code"></el-option>
  6. </el-select>
  7. <el-select size="small" v-model="bizAppyType" placeholder="业务申请类型" style="width: 145px">
  8. <el-option v-for="item in bizAppyTypes" :key="item.code" :label="item.name" :value="item.code"></el-option>
  9. </el-select>
  10. <el-button style="margin-left: 10px" type="primary" icon="el-icon-location" @click="getPsnInsuinfo(0)">定点信息查询</el-button>
  11. <el-button style="margin-left: 10px" type="primary" icon="el-icon-tickets" @click="getPsnInsuinfo(1)">待遇检查</el-button>
  12. <el-button type="success" icon="el-icon-check" @click="getPsnInsuinfo(2)">审核通过</el-button>
  13. <el-button type="danger" icon="el-icon-close" @click="reject">审核不通过</el-button>
  14. <el-button type="primary" icon="el-icon-refresh-left" @click="showDrawer">取消医保登记审核</el-button>
  15. </el-header>
  16. <el-main>
  17. <div class="his-info">
  18. <el-tag>患者基本信息</el-tag>
  19. <el-descriptions :column="4" border>
  20. <el-descriptions-item>
  21. <template #label> 住院号 </template>
  22. {{ patient.inpatientNo }}
  23. </el-descriptions-item>
  24. <el-descriptions-item>
  25. <template #label> 住院次数 </template>
  26. {{ patient.admissTimes }}
  27. </el-descriptions-item>
  28. <el-descriptions-item>
  29. <template #label> 身份证号 </template>
  30. {{ patient.socialNo }}
  31. </el-descriptions-item>
  32. <el-descriptions-item>
  33. <template #label> 出生日期 </template>
  34. {{ patient.birthDate }}
  35. </el-descriptions-item>
  36. <el-descriptions-item>
  37. <template #label> 姓名 </template>
  38. {{ patient.name }}
  39. </el-descriptions-item>
  40. <el-descriptions-item>
  41. <template #label> 性别 </template>
  42. {{ patient.sex }}
  43. </el-descriptions-item>
  44. <el-descriptions-item>
  45. <template #label> 参保区划 </template>
  46. {{ patient.admdvs }}
  47. </el-descriptions-item>
  48. <el-descriptions-item>
  49. <template #label> 联系电话 </template>
  50. {{ patient.homeTel }}
  51. </el-descriptions-item>
  52. <el-descriptions-item>
  53. <template #label> 病区 </template>
  54. {{ patient.admissWardName }}
  55. </el-descriptions-item>
  56. <el-descriptions-item>
  57. <template #label> 小科室 </template>
  58. {{ patient.smallDeptName }}
  59. </el-descriptions-item>
  60. <el-descriptions-item>
  61. <template #label> 入院医生 </template>
  62. {{ patient.admissPhysicianName }}
  63. </el-descriptions-item>
  64. <el-descriptions-item>
  65. <template #label> 管床医生 </template>
  66. {{ patient.referPhysicianName }}
  67. </el-descriptions-item>
  68. <el-descriptions-item>
  69. <template #label> 床位 </template>
  70. {{ patient.bedNo }}
  71. </el-descriptions-item>
  72. <el-descriptions-item>
  73. <template #label> 入院日期 </template>
  74. {{ patient.admissDate }}
  75. </el-descriptions-item>
  76. <el-descriptions-item>
  77. <template #label> 登记日期 </template>
  78. {{ patient.ybRegisterDate }}
  79. </el-descriptions-item>
  80. </el-descriptions>
  81. </div>
  82. <div style="height: 8px"></div>
  83. <el-tag>医保入院诊断</el-tag>
  84. <el-table :data="zyInYbDiags" stripe>
  85. <el-table-column prop="diagNo" label="诊断序号"></el-table-column>
  86. <el-table-column prop="property" label="诊断属性"></el-table-column>
  87. <el-table-column prop="icdCode" label="诊断编码"></el-table-column>
  88. <el-table-column prop="icdText" label="诊断名称"></el-table-column>
  89. <el-table-column label="诊断类别">
  90. <template #default="scope">
  91. {{ getDiagTypeName(scope.row.diagType) }}
  92. </template>
  93. </el-table-column>
  94. <el-table-column prop="opDate" label="诊断时间"></el-table-column>
  95. </el-table>
  96. <div class="his-info mt10">
  97. <el-tag>科室备注信息</el-tag>
  98. <div class="remark">
  99. <el-input type="textarea" v-model="patient.remark" disabled></el-input>
  100. <el-row style="height: 28px; line-height: 28px">
  101. <el-col :span="2">录入人:</el-col>
  102. <el-col :span="4">{{ patient.inputName }}</el-col>
  103. <el-col :span="2">录入时间:</el-col>
  104. <el-col :span="4">{{ patient.inputDate }}</el-col>
  105. </el-row>
  106. </div>
  107. </div>
  108. <div class="his-info mt10">
  109. <el-tag>医保审核信息</el-tag>
  110. <div class="remark">
  111. <el-input type="textarea" v-model="patient.ybRemark" clearable></el-input>
  112. </div>
  113. </div>
  114. <el-drawer title="取消医保登记审核" :with-header="false" v-model="drawerVisible" direction="ltr" size="60%">
  115. <div style="height: 5px"></div>
  116. <el-button style="margin-left: 15px" type="primary" icon="el-icon-check" @click="beforeHandleRequest(2)">审核通过</el-button>
  117. <el-button style="margin-left: 15px" type="danger" icon="el-icon-close" @click="beforeHandleRequest(3)">审核不通过</el-button>
  118. <div style="margin: 0 20px; height: 550px">
  119. <el-table :data="cancelData" :height="tableHeight" stripe highlight-current-row @row-click="handleClickRow">
  120. <el-table-column prop="inpatientNo" label="住院号" width="80"></el-table-column>
  121. <el-table-column prop="admissTimes" label="次数" width="50"></el-table-column>
  122. <el-table-column label="姓名" width="85">
  123. <template #default="scope">
  124. <img style="width: 15px; height: 15px" :src="scope.row.sex === 1 ? maleIcon : femaleIcon" />
  125. {{ scope.row.name }}
  126. </template>
  127. </el-table-column>
  128. <el-table-column prop="remark" label="科室备注"></el-table-column>
  129. <el-table-column prop="inputName" label="备注人" width="80"></el-table-column>
  130. <el-table-column prop="inputDate" label="提交时间"></el-table-column>
  131. </el-table>
  132. </div>
  133. </el-drawer>
  134. <el-dialog title="人员信息" v-model="showPsnInsuinfo" width="65%">
  135. <el-tag>{{ injuryMode ? '工伤信息' : '参保信息' }}</el-tag>
  136. <div v-if="injuryMode">
  137. <el-table :data="injuryinfo" @row-click="handleClickInjuryinfo" stripe height="180">
  138. <el-table-column label="电脑号" prop="indiId"></el-table-column>
  139. <el-table-column label="工伤个人业务序号" prop="serialPers"></el-table-column>
  140. <el-table-column label="工伤认定号" prop="identifyCode"></el-table-column>
  141. <el-table-column label="认定申请时间" prop="identyDate"></el-table-column>
  142. <el-table-column label="受伤部位" prop="injuryPart"></el-table-column>
  143. <el-table-column label="报告时间" prop="reportDate"></el-table-column>
  144. <el-table-column label="事故发生时间" prop="accidentDate"></el-table-column>
  145. <el-table-column label="事故详细情况" prop="accidentDetail"></el-table-column>
  146. </el-table>
  147. </div>
  148. <div v-else>
  149. <el-table :data="psnBaseinfo.insuinfo" @row-click="handleClickInsuinfo" stripe height="180">
  150. <el-table-column label="余额" prop="balc"></el-table-column>
  151. <el-table-column label="险种类型" prop="insutypeName"></el-table-column>
  152. <el-table-column label="人员类别" prop="psnTypeName"></el-table-column>
  153. <el-table-column label="参保状态" prop="psnInsuStasName"></el-table-column>
  154. <el-table-column label="个人参保日期" prop="psnInsuDate"></el-table-column>
  155. <el-table-column label="暂停参保日期" prop="pausInsuDate"></el-table-column>
  156. <el-table-column label="公务员标志" prop="cvlservFlagName"></el-table-column>
  157. <el-table-column label="参保地医保区划" prop="insuplcAdmdvs"></el-table-column>
  158. <el-table-column label="参保地名称" prop="insuplcAdmdvsName"></el-table-column>
  159. <el-table-column label="单位名称" prop="empName"></el-table-column>
  160. </el-table>
  161. <div style="height: 16px"></div>
  162. <el-tag>身份信息</el-tag>
  163. <el-table :data="psnBaseinfo.idetinfo" stripe height="180">
  164. <el-table-column label="人员身份类别" prop="psnIdetTypeName"></el-table-column>
  165. <el-table-column label="人员类别等级" prop="psnTypeLv"></el-table-column>
  166. <el-table-column label="备注" prop="memo"></el-table-column>
  167. <el-table-column label="开始时间" prop="begntime"></el-table-column>
  168. <el-table-column label="结束时间" prop="endtime"></el-table-column>
  169. </el-table>
  170. </div>
  171. </el-dialog>
  172. <el-dialog title="人员待遇信息" v-model="showTrtInfos" width="65%">
  173. <el-table :data="trtInfos" stripe>
  174. <el-table-column label="人员编号" prop="psnNo"></el-table-column>
  175. <el-table-column label="待遇检查类型" prop="trtChkTypeName"></el-table-column>
  176. <el-table-column label="基金支付类型" prop="fundPayTypeName"></el-table-column>
  177. <el-table-column label="基金款项待遇享受标志" prop="trtEnjymntFlagName"></el-table-column>
  178. <el-table-column label="开始日期" prop="begndate"></el-table-column>
  179. <el-table-column label="结束日期" prop="enddate"></el-table-column>
  180. <el-table-column label="待遇检查结果" prop="trtChkRslt"></el-table-column>
  181. </el-table>
  182. </el-dialog>
  183. <el-dialog title="人员定点信息" v-model="showFixMedins" width="65%">
  184. <el-table :data="fixMedins" stripe>
  185. <el-table-column prop="psnNo" label="人员编号"></el-table-column>
  186. <el-table-column prop="insutypeName" label="险种类型"></el-table-column>
  187. <el-table-column prop="fixSrtNo" label="定点排序号"></el-table-column>
  188. <el-table-column prop="fixmedinsCode" label="定点医药机构编号"></el-table-column>
  189. <el-table-column prop="fixmedinsName" label="定点医药机构名称"></el-table-column>
  190. <el-table-column prop="begndate" label="开始日期"></el-table-column>
  191. <el-table-column prop="enddate" label="结束日期"></el-table-column>
  192. <el-table-column prop="memo" label="备注"></el-table-column>
  193. </el-table>
  194. </el-dialog>
  195. </el-main>
  196. </el-container>
  197. </template>
  198. <script>
  199. import { computed, onActivated, onDeactivated, onMounted, ref, watchEffect } from 'vue'
  200. import store from '@/store'
  201. import { cptSex } from '@/utils/computed'
  202. import maleIcon from '@/assets/male-icon.png'
  203. import femaleIcon from '@/assets/female-icon.png'
  204. import { approveYbsf, rejectYbsf, getUnhandledRequests, handleRequest } from '@/api/yibao/yb-verify'
  205. import { ElMessage, ElMessageBox } from 'element-plus'
  206. import { nullPatient } from '@/utils/validate'
  207. import { getBizAppyTypes, getMedTypesByFlag, getDiagTypes } from '@/api/medical-insurance/si-dict'
  208. import { checkPersonTreatment, obtainBasicPersonInfo, queryPersonnelAssignmentInfo } from '@/api/medical-insurance/si-query'
  209. import { getPersonBaseinfo, admissRegistration } from '@/api/medical-insurance/si-injury'
  210. import { admissRegister } from '@/api/medical-insurance/si-inpatient'
  211. import { getZyInYbDiags } from '@/api/yibao/patient'
  212. import { baseinfo } from '@/data/inpatient'
  213. export default {
  214. setup() {
  215. const patient = computed(() => {
  216. return baseinfo()
  217. })
  218. const drawerVisible = ref(false)
  219. const cancelData = ref([])
  220. const windowSize = store.state.app.windowSize
  221. const tableHeight = windowSize.h - 50
  222. const bizAppyType = ref(null)
  223. const bizAppyTypes = ref([])
  224. const psnBaseinfo = ref({})
  225. const fixMedins = ref([])
  226. const showFixMedins = ref(false)
  227. const trtInfos = ref([])
  228. const showTrtInfos = ref(false)
  229. const showPsnInsuinfo = ref(false)
  230. const insuRowClickFlag = ref(null)
  231. const zyInYbDiags = ref([])
  232. const medTypes = ref([])
  233. const injuryMode = computed(() => {
  234. return store.state.ptnt.injuryMode
  235. })
  236. const actived = ref(false)
  237. onActivated(() => {
  238. actived.value = true
  239. store.commit('app/setCurrentPageName', 'medInsVerification')
  240. })
  241. onDeactivated(() => {
  242. actived.value = false
  243. store.commit('app/setCurrentPageName', '')
  244. })
  245. watchEffect(() => {
  246. if (actived.value) {
  247. if (patient.value.inpatientNo) {
  248. getZyInYbDiags(patient.value.inpatientNo, patient.value.admissTimes).then((res) => {
  249. zyInYbDiags.value = res
  250. })
  251. }
  252. }
  253. })
  254. const injuryinfo = ref([])
  255. const getPsnInsuinfo = (flag) => {
  256. if (nullPatient()) {
  257. return
  258. }
  259. if (!patient.value.medType) {
  260. ElMessage({
  261. message: '请选择患者的医疗类别!',
  262. type: 'warning',
  263. showClose: true,
  264. })
  265. return
  266. }
  267. if (flag === 0) {
  268. if (!bizAppyType.value) {
  269. ElMessage({
  270. message: '请选择业务申请类型!',
  271. type: 'warning',
  272. showClose: true,
  273. })
  274. return
  275. }
  276. }
  277. if (injuryMode.value) {
  278. getPersonBaseinfo(patient.value).then((res) => {
  279. injuryinfo.value = res
  280. showPsnInsuinfo.value = true
  281. })
  282. } else {
  283. insuRowClickFlag.value = flag
  284. const param = {
  285. medType: patient.value.medType,
  286. patNo: patient.value.inpatientNo,
  287. times: patient.value.admissTimes,
  288. ledgerSn: patient.value.ledgerSn,
  289. socialNo: patient.value.socialNo,
  290. name: patient.value.name,
  291. admdvs: patient.value.admdvs,
  292. needSaving: 1,
  293. }
  294. obtainBasicPersonInfo(param).then((res) => {
  295. if (flag === 0) {
  296. const param = {
  297. patNo: patient.value.inpatientNo,
  298. times: patient.value.admissTimes,
  299. psnNo: res.psnNo,
  300. bizAppyType: bizAppyType.value,
  301. }
  302. queryPersonnelAssignmentInfo(param).then((res) => {
  303. fixMedins.value = res
  304. showFixMedins.value = true
  305. })
  306. } else {
  307. patient.value.psnNo = res.psnNo
  308. psnBaseinfo.value = res
  309. showPsnInsuinfo.value = true
  310. }
  311. })
  312. }
  313. }
  314. const handleClickInjuryinfo = (row) => {
  315. ElMessageBox.confirm('审核通过将直接进行医保入院登记,确定审核通过?', '提示', {
  316. type: 'warning',
  317. confirmButtonText: '确定',
  318. cancelButtonText: '取消',
  319. })
  320. .then(() => {
  321. const param = {
  322. baseinfo: patient.value,
  323. injuryinfo: row,
  324. }
  325. admissRegistration(param).then((res) => {
  326. approveYbsf(patient.value).then(() => {
  327. ElMessage({
  328. message: '审核已通过,医保入院登记成功。',
  329. type: 'success',
  330. duration: 2500,
  331. showClose: true,
  332. })
  333. showPsnInsuinfo.value = false
  334. })
  335. })
  336. })
  337. .catch(() => {})
  338. }
  339. const handleClickInsuinfo = (row) => {
  340. if (insuRowClickFlag.value === 1) {
  341. chkTrtmt(row)
  342. } else if (insuRowClickFlag.value === 2) {
  343. admRgstn(row)
  344. }
  345. }
  346. const chkTrtmt = (row) => {
  347. const param = {
  348. patNo: patient.value.inpatientNo,
  349. times: patient.value.admissTimes,
  350. psnNo: patient.value.psnNo,
  351. insutype: row.insutype,
  352. medType: patient.value.medType,
  353. begntime: patient.value.admissDate,
  354. }
  355. checkPersonTreatment(param).then((res) => {
  356. trtInfos.value = res
  357. showPsnInsuinfo.value = false
  358. showTrtInfos.value = true
  359. })
  360. }
  361. const admRgstn = (row) => {
  362. ElMessageBox.confirm('审核通过将直接进行医保入院登记,确定审核通过?', '提示', {
  363. type: 'warning',
  364. confirmButtonText: '确定',
  365. cancelButtonText: '取消',
  366. })
  367. .then(() => {
  368. patient.value.insutype = row.insutype
  369. patient.value.psnType = row.psnType
  370. patient.value.insuplcAdmdvs = row.insuplcAdmdvs
  371. patient.value.empName = row.empName
  372. admissRegister(patient.value).then(() => {
  373. approveYbsf(patient.value).then(() => {
  374. ElMessage({
  375. message: '审核已通过,医保入院登记成功。',
  376. type: 'success',
  377. duration: 2500,
  378. showClose: true,
  379. })
  380. showPsnInsuinfo.value = false
  381. })
  382. })
  383. })
  384. .catch(() => {})
  385. }
  386. const reject = () => {
  387. if (nullPatient()) {
  388. return
  389. }
  390. ElMessageBox.confirm('确定审核不通过?', '提示', {
  391. type: 'warning',
  392. })
  393. .then(() => {
  394. rejectYbsf(patient.value).then(() => {
  395. ElMessage({
  396. message: '操作成功。',
  397. type: 'success',
  398. duration: 2500,
  399. showClose: true,
  400. })
  401. })
  402. })
  403. .catch(() => {})
  404. }
  405. const showDrawer = () => {
  406. getUnhandledRequests(1).then((res) => {
  407. cancelData.value = res
  408. drawerVisible.value = true
  409. })
  410. }
  411. const selectedRow = ref({})
  412. const handleClickRow = (row) => {
  413. selectedRow.value = row
  414. }
  415. const beforeHandleRequest = (flag) => {
  416. if (!selectedRow.value.inpatientNo) {
  417. ElMessage({
  418. message: '请先选择患者',
  419. type: 'warning',
  420. duration: 2500,
  421. showClose: true,
  422. })
  423. } else {
  424. const title = flag === 2 ? '审核通过' : '审核不通过'
  425. let inputVal = flag === 2 ? '同意办理。' : ''
  426. ElMessageBox.prompt('请输入备注内容:', title, {
  427. confirmButtonText: '确定',
  428. cancelButtonText: '取消',
  429. inputValue: inputVal,
  430. })
  431. .then(({ value }) => {
  432. selectedRow.value.statusFlag = flag
  433. selectedRow.value.ybRemark = value
  434. handleRequest(selectedRow.value).then((res) => {
  435. ElMessage({
  436. message: '操作成功。',
  437. type: 'success',
  438. duration: 2500,
  439. showClose: true,
  440. })
  441. })
  442. })
  443. .catch(() => {})
  444. }
  445. }
  446. const diagTypes = ref([])
  447. const getDiagTypeName = (val) => {
  448. for (let i = 0; i < diagTypes.value.length; i++) {
  449. if (diagTypes.value[i].code === val) {
  450. return diagTypes.value[i].name
  451. }
  452. }
  453. }
  454. onMounted(() => {
  455. getMedTypesByFlag('hospitalization').then((res) => {
  456. medTypes.value = res
  457. })
  458. getBizAppyTypes().then((res) => {
  459. bizAppyTypes.value = res
  460. })
  461. getDiagTypes().then((res) => {
  462. diagTypes.value = res
  463. })
  464. })
  465. return {
  466. patient,
  467. zyInYbDiags,
  468. tableHeight,
  469. drawerVisible,
  470. injuryMode,
  471. injuryinfo,
  472. cancelData,
  473. maleIcon,
  474. femaleIcon,
  475. psnBaseinfo,
  476. showPsnInsuinfo,
  477. selectedRow,
  478. medTypes,
  479. bizAppyType,
  480. bizAppyTypes,
  481. fixMedins,
  482. showFixMedins,
  483. trtInfos,
  484. showTrtInfos,
  485. cptSex,
  486. getDiagTypeName,
  487. filterYesOrNo,
  488. getPsnInsuinfo,
  489. handleClickInsuinfo,
  490. handleClickInjuryinfo,
  491. reject,
  492. showDrawer,
  493. handleClickRow,
  494. beforeHandleRequest,
  495. }
  496. },
  497. }
  498. function filterYesOrNo(val) {
  499. if (val === '0') {
  500. return '否'
  501. } else if (val === '1') {
  502. return '是'
  503. }
  504. return ''
  505. }
  506. </script>
  507. <style scoped>
  508. .remark {
  509. padding: 5px 10px;
  510. }
  511. .mt10 {
  512. margin-top: 10px;
  513. }
  514. .yb-tag {
  515. padding: 5px 0 0 20px;
  516. }
  517. </style>