Elizabeth's proactive approach involves introducing urinal toilet attachment , an ingenious concept that optimizes space and functionality.

costComparison.vue 24KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627
  1. <template>
  2. <div class="main-contain incomeStatistics">
  3. <div class="position">
  4. <bread-crumb :crumbs='crumbs'></bread-crumb>
  5. </div>
  6. <div class="app-container">
  7. <div style="display: flex;justify-content: space-between;margin-bottom:10px;">
  8. <div>
  9. <el-input size="small" style="width:130px;" v-model="keywords"
  10. class="filter-item"/>
  11. <el-button size="small" style="margin-left:10px;" class="filter-item" type="primary"
  12. @click="searchAction">
  13. 搜索
  14. </el-button>
  15. <el-date-picker v-model="query_start_time" prefix-icon="el-icon-date"
  16. @change="handleStartTimeChange" :editable="false" :clearable="false"
  17. style="width: 130px;" type="date" placeholder="选择开始日期"
  18. format="yyyy-MM-dd"
  19. value-format="yyyy-MM-dd"
  20. align="right"></el-date-picker>
  21. -
  22. <el-date-picker v-model="query_end_time" prefix-icon="el-icon-date"
  23. @change="handleEndTimeChange" :editable="false" :clearable="false"
  24. style="width: 130px;margin-right:10px;" type="date" placeholder="选择结束日期"
  25. format="yyyy-MM-dd"
  26. value-format="yyyy-MM-dd"
  27. align="right"></el-date-picker>
  28. <label class="title">险种<span class="name"></span> : </label>
  29. <el-select v-model="query_insutype" style="width:140px;margin-right:10px;" placeholder="请选择"
  30. @change="changeInsutype">
  31. <el-option
  32. v-for="item in insutypes"
  33. :key="item.value"
  34. :label="item.label"
  35. :value="item.value">
  36. </el-option>
  37. </el-select>
  38. <label class="title">清算类别<span class="name"></span> : </label>
  39. <el-select v-model="query_clr_type" style="width:100px;margin-right:10px;" placeholder="请选择"
  40. @change="changeClrType">
  41. <el-option
  42. v-for="item in clrOptions"
  43. :key="item.value"
  44. :label="item.label"
  45. :value="item.value">
  46. </el-option>
  47. </el-select>
  48. </div>
  49. </div>
  50. <div style="float: right;margin-bottom: 10px">
  51. <el-button size="small" type="primary" @click="dialogFormVisible = true">医保对账</el-button>
  52. <el-button size="small" type="primary" @click="getFormData">下载对账报表</el-button>
  53. </div>
  54. <el-table :data="tableData" border style="width: 100%;" :row-style="{ color: '#303133' }"
  55. :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
  56. highlight-current-row
  57. @select="selectCostInfo"
  58. @selection-change="changeCostInfoTableData"
  59. @select-all="changeAllCostInfoTableData"
  60. row-key="row_key"
  61. ref="multipleTable"
  62. >
  63. <el-table-column
  64. align="center"
  65. type="selection"
  66. width="55"
  67. ></el-table-column>
  68. <el-table-column
  69. prop="date"
  70. label="序号"
  71. width="60"
  72. align="center"
  73. type="index"
  74. >
  75. </el-table-column>
  76. <el-table-column align="center" prop="name" label="对账结果">
  77. <template slot-scope="scope">{{'平'}}</template>
  78. </el-table-column>
  79. <el-table-column align="center" prop="name" label="操作机构">
  80. <!--<template slot-scope="scope">{{// this.$store.getters.xt_user.org.org_name}}</template>-->
  81. </el-table-column>
  82. <el-table-column align="center" prop="name" label="对账申请人">
  83. <template slot-scope="scope">{{getName(scope.row.creator)}}</template>
  84. </el-table-column>
  85. <el-table-column align="center" prop="name" label="开始时间">
  86. <template slot-scope="scope">{{getTimes(scope.row.start_time)}}</template>
  87. </el-table-column>
  88. <el-table-column align="center" prop="name" label="结束时间">
  89. <template slot-scope="scope">{{getTimes(scope.row.end_time)}}</template>
  90. </el-table-column>
  91. <el-table-column align="center" prop="name" label="险种类型">
  92. <template slot-scope="scope">
  93. <div v-if="scope.row.insutype == '310'">职工基本医疗保险</div>
  94. <div v-if="scope.row.insutype == '320'">公务员医疗补助</div>
  95. <div v-if="scope.row.insutype == '330'">大额医疗费用补助</div>
  96. <div v-if="scope.row.insutype == '340'">离休人员医疗保障</div>
  97. <div v-if="scope.row.insutype == '390'">城乡居民基本医疗保险</div>
  98. <div v-if="scope.row.insutype == '392'">城乡居民大病医疗保险</div>
  99. <div v-if="scope.row.insutype == '510'">生育保险</div>
  100. </template>
  101. </el-table-column>
  102. <el-table-column align="center" prop="name" label="对账类型">
  103. <template slot-scope="scope">
  104. <div v-if="scope.row.check_type == 1">总账</div>
  105. <div v-if="scope.row.check_type == 2">明细</div>
  106. </template>
  107. </el-table-column>
  108. <el-table-column align="center" prop="name" label="清算经办机构">
  109. <template slot-scope="scope">{{getName(scope.row.creator)}}</template>
  110. </el-table-column>
  111. <el-table-column align="center" prop="name" label="定点医药机构医疗费总额(元)">
  112. <template slot-scope="scope">{{scope.row.setl_optins}}</template>
  113. </el-table-column>
  114. <el-table-column align="center" prop="name" label="医保中心医疗费总额(元)">
  115. <template slot-scope="scope">{{scope.row.cost_total}}</template>
  116. </el-table-column>
  117. <el-table-column align="center" prop="name" label="定点医药机构基金总额(元)">
  118. <template slot-scope="scope">{{scope.row.cost_total}}</template>
  119. </el-table-column>
  120. <el-table-column align="center" prop="name" label="医保中心基金总额(元)">
  121. <template slot-scope="scope">{{scope.row.func_total}}</template>
  122. </el-table-column>
  123. <el-table-column align="center" prop="name" label="定点医药机构个人账号总额(元)">
  124. <template slot-scope="scope">{{scope.row.func_total}}</template>
  125. </el-table-column>
  126. <el-table-column align="center" prop="name" label="医保中心个人账号总额(元)">
  127. <template slot-scope="scope">{{scope.row.psn_pay}}</template>
  128. </el-table-column>
  129. <el-table-column align="center" prop="name" label="定点医药机构结算笔数">
  130. <template slot-scope="scope">{{scope.row.psn_pay}}</template>
  131. </el-table-column>
  132. <el-table-column align="center" prop="name" label="医保中心结算笔数">
  133. <template slot-scope="scope">{{scope.row.num}}</template>
  134. </el-table-column>
  135. </el-table>
  136. <el-pagination
  137. @size-change="handleSizeChange"
  138. @current-change="handleCurrentChange"
  139. :page-sizes="[10, 50, 100]"
  140. :page-size="10"
  141. background
  142. style="margin-top:20px;float: right"
  143. layout="total, sizes, prev, pager, next, jumper"
  144. :total="total"
  145. >
  146. </el-pagination>
  147. <el-dialog title="医保对账" :visible.sync="dialogFormVisible">
  148. <el-form :model="form" label-width="100px">
  149. <el-form-item label="时间" label-width="100px">
  150. <el-date-picker v-model="start_time" prefix-icon="el-icon-date"
  151. @change="handleStartTimeChange" :editable="false" :clearable="false"
  152. style="width: 200px;" type="date" placeholder="选择开始日期"
  153. format="yyyy-MM-dd"
  154. value-format="yyyy-MM-dd"
  155. align="right"></el-date-picker>
  156. -
  157. <el-date-picker v-model="end_time" prefix-icon="el-icon-date"
  158. @change="handleEndTimeChange" :editable="false" :clearable="false"
  159. style="width: 200px;margin-right:10px;" type="date" placeholder="选择结束日期"
  160. format="yyyy-MM-dd"
  161. value-format="yyyy-MM-dd"
  162. align="right"></el-date-picker>
  163. </el-form-item>
  164. <el-form-item label="险种类型" :label-width="formLabelWidth">
  165. <el-select v-model="insutype" placeholder="请选择" style="width: 200px;">
  166. <el-option
  167. v-for="item in insutypes"
  168. :key="item.value"
  169. :label="item.label"
  170. :value="item.value">
  171. </el-option>
  172. </el-select>
  173. </el-form-item>
  174. <el-form-item label="对账类型" :label-width="formLabelWidth">
  175. <el-select v-model="check_type" placeholder="请选择" style="width: 200px;">
  176. <el-option
  177. v-for="item in options"
  178. :key="item.value"
  179. :label="item.label"
  180. :value="item.value">
  181. </el-option>
  182. </el-select>
  183. </el-form-item>
  184. </el-form>
  185. <div slot="footer" class="dialog-footer">
  186. <el-button @click="dialogFormVisible = false">取 消</el-button>
  187. <el-button type="primary" @click="confirm">确 定</el-button>
  188. </div>
  189. </el-dialog>
  190. </div>
  191. </div>
  192. </template>
  193. <script>
  194. import BreadCrumb from '@/xt_pages/components/bread-crumb'
  195. import {
  196. getCheckAccountFormData,
  197. getDoctorList,
  198. getExportConsumeDetailList,
  199. getHisOrderList,
  200. getList
  201. } from '@/api/his/his'
  202. import { uParseTime } from '@/utils/tools'
  203. import { fetchAllAdminUsers } from '@/api/doctor'
  204. import axios from 'axios'
  205. export default {
  206. components: {
  207. BreadCrumb
  208. },
  209. data() {
  210. return {
  211. form: {},
  212. crumbs: [
  213. { path: false, name: '门诊收费' },
  214. { path: false, name: '医保费用对照' }
  215. ],
  216. tableData: [],
  217. limit: 10,
  218. page: 1,
  219. dialogFormVisible: false,
  220. total: 0,
  221. adminUserOptions: [],
  222. start_time: '',
  223. end_time: '',
  224. insutype: '',
  225. check_type: '',
  226. keywords: '',
  227. query_start_time: '',
  228. query_end_time: '',
  229. selection:[],
  230. query_insutype: '',
  231. query_clr_type: '',
  232. fromData: [],
  233. options: [
  234. {
  235. value: 1,
  236. label: '总账'
  237. }, {
  238. value: 2,
  239. label: '明细'
  240. }
  241. ],
  242. clrOptions: [
  243. {
  244. value: '11',
  245. label: '门诊'
  246. }, {
  247. value: '21',
  248. label: '住院'
  249. }, {
  250. value: '41',
  251. label: '药店购药'
  252. }, {
  253. value: '99',
  254. label: '其他'
  255. }
  256. ],
  257. insutypes: [
  258. {
  259. value: '310',
  260. label: '职工基本医疗保险'
  261. }, {
  262. value: '320',
  263. label: '公务员医疗补助'
  264. }, {
  265. value: '330',
  266. label: '大额医疗费用补助'
  267. }, {
  268. value: '340',
  269. label: '离休人员医疗保障'
  270. },
  271. {
  272. value: '390',
  273. label: '城乡居民基本医疗保险'
  274. }, {
  275. value: '392',
  276. label: '城乡居民大病医疗保险'
  277. }, {
  278. value: '510',
  279. label: '生育保险'
  280. }
  281. // 1617724800
  282. ]
  283. }
  284. },
  285. methods: {
  286. changeInsutype() {
  287. let params = {
  288. 'page': 1,
  289. 'limit': 10,
  290. 'keywords': this.keywords,
  291. 'insutype': this.query_insutype,
  292. 'clr_type': "11",
  293. 'start_time': this.query_start_time,
  294. 'end_time': this.query_end_time,
  295. };
  296. this.tableData = [];
  297. getList(params).then(response => {
  298. if (response.data.state == 0) {
  299. this.$message.error(response.data.msg);
  300. return false
  301. } else {
  302. this.tableData = response.data.data.list;
  303. this.total = response.data.data.total
  304. }
  305. })
  306. }, changeClrType(val) {
  307. if (val != "11"){
  308. this.tableData = [];
  309. this.total = 0
  310. }else{
  311. let params = {
  312. 'page': 1,
  313. 'limit': 10,
  314. 'keywords': this.keywords,
  315. 'insutype': this.query_insutype,
  316. 'clr_type': "11",
  317. 'start_time': this.query_start_time,
  318. 'end_time': this.query_end_time,
  319. };
  320. this.tableData = [];
  321. getList(params).then(response => {
  322. if (response.data.state == 0) {
  323. this.$message.error(response.data.msg);
  324. return false
  325. } else {
  326. this.tableData = response.data.data.list;
  327. this.total = response.data.data.total
  328. }
  329. })
  330. }
  331. },
  332. handleStartTimeChange() {
  333. let params = {
  334. 'page': 1,
  335. 'limit': 10,
  336. 'keywords': this.keywords,
  337. 'insutype': "",
  338. 'clr_type': "11",
  339. 'start_time': this.query_start_time,
  340. 'end_time': this.query_end_time,
  341. };
  342. this.tableData = [];
  343. getList(params).then(response => {
  344. if (response.data.state == 0) {
  345. this.$message.error(response.data.msg);
  346. return false
  347. } else {
  348. this.tableData = response.data.data.list;
  349. this.total = response.data.data.total
  350. }
  351. })
  352. }, handleEndTimeChange() {
  353. let params = {
  354. 'page': 1,
  355. 'limit': 10,
  356. 'keywords': this.keywords,
  357. 'insutype': "",
  358. 'clr_type': "11",
  359. 'start_time': this.query_start_time,
  360. 'end_time': this.query_end_time,
  361. };
  362. this.tableData = [];
  363. getList(params).then(response => {
  364. if (response.data.state == 0) {
  365. this.$message.error(response.data.msg);
  366. return false
  367. } else {
  368. this.tableData = response.data.data.list;
  369. this.total = response.data.data.total
  370. }
  371. })
  372. },
  373. searchAction() {
  374. let params = {
  375. 'page': 1,
  376. 'limit': 10,
  377. 'keywords': this.keywords,
  378. 'insutype': "",
  379. 'clr_type': "11",
  380. 'start_time': "",
  381. 'end_time': "",
  382. };
  383. this.tableData = [];
  384. getList(params).then(response => {
  385. if (response.data.state == 0) {
  386. this.$message.error(response.data.msg);
  387. return false
  388. } else {
  389. this.tableData = response.data.data.list;
  390. this.total = response.data.data.total
  391. }
  392. })
  393. },
  394. selectCostInfo(selection, row) {
  395. this.selection = selection
  396. }, changeCostInfoTableData(val) {
  397. this.selection = val
  398. }, changeAllCostInfoTableData(selection) {
  399. this.selection = selection
  400. }, confirm() {
  401. if (this.check_type == 1) {
  402. let params = {
  403. start_time: this.start_time,
  404. end_time: this.end_time,
  405. insutype: this.insutype,
  406. clr_type: '11',
  407. admin_user_id:that.$store.getters.xt_user.user.id,
  408. };
  409. var that = this;
  410. axios.get('http://127.0.0.1:9532/api/checkaccount/get', {
  411. params: params
  412. })
  413. .then(function(response) {
  414. if (response.data.state == 0) {
  415. that.$message.error(response.data.msg);
  416. return false
  417. } else {
  418. var result_desc = '';
  419. if (response.data.data.stmt_rslt == 0) {
  420. result_desc = '对账平'
  421. } else if (response.data.data.stmt_rslt == 1) {
  422. result_desc = '中心多' + '\n' + response.data.data.stmt_rslt_dscr
  423. } else if (response.data.data.stmt_rslt == 2) {
  424. result_desc = '机构多' + '\n' + response.data.data.stmt_rslt_dscr
  425. }
  426. that.$alert(result_desc, '对账结果', {
  427. confirmButtonText: '确定',
  428. callback: action => {
  429. this.dialogFormVisible = false
  430. }
  431. });
  432. that.page = 1;
  433. that.limit = 10;
  434. that.keywords = '';
  435. that.query_start_time = '';
  436. that.query_end_time = '';
  437. that.query_insutype = '';
  438. that.query_clr_type = '';
  439. that.getList()
  440. }
  441. })
  442. .catch(function(error) {
  443. })
  444. } else {
  445. let params = {
  446. start_time: this.start_time,
  447. end_time: this.end_time
  448. };
  449. var that = this;
  450. axios.get('http://127.0.0.1:9532/api/checkdetailaccount/get', {
  451. params: params
  452. })
  453. .then(function(response) {
  454. if (response.data.state == 0) {
  455. that.$message.error(response.data.msg);
  456. return false
  457. } else {
  458. this.page = 1;
  459. this.limit = 10;
  460. this.keywords = '';
  461. this.getList()
  462. }
  463. })
  464. .catch(function(error) {
  465. })
  466. }
  467. },
  468. getInsutype(type) {
  469. },
  470. fetchAllAdminUsers() {
  471. fetchAllAdminUsers().then(response => {
  472. if (response.data.state == 1) {
  473. this.adminUserOptions = response.data.data.users
  474. }
  475. })
  476. },
  477. getName(admin_user_id) {
  478. for (let i = 0; i < this.adminUserOptions.length; i++) {
  479. if (this.adminUserOptions[i].id == admin_user_id) {
  480. return this.adminUserOptions[i].name
  481. }
  482. }
  483. },
  484. getTimes(time) {
  485. return uParseTime(time, '{y}-{m}-{d}')
  486. },
  487. getList() {
  488. let params = {
  489. 'page': this.page,
  490. 'limit': this.limit,
  491. 'keywords': this.keywords,
  492. 'insutype': this.query_insutype,
  493. 'clr_type': this.query_clr_type,
  494. 'start_time': this.query_start_time,
  495. 'end_time': this.query_end_time
  496. };
  497. this.tableData = [];
  498. getList(params).then(response => {
  499. if (response.data.state == 0) {
  500. this.$message.error(response.data.msg);
  501. return false
  502. } else {
  503. this.tableData = response.data.data.list;
  504. this.total = response.data.data.total
  505. }
  506. })
  507. },
  508. handleSizeChange(limit) {
  509. this.limit = limit;
  510. this.getList()
  511. },
  512. handleCurrentChange(page) {
  513. this.page = page;
  514. this.getList()
  515. }, getFormData() {
  516. if (this.selection.length == 0) {
  517. this.$message.error('请选择要下载的对账记录');
  518. return
  519. }
  520. let params = {
  521. 'start_time': this.getTimes(this.selection[0].start_time),
  522. 'end_time': this.getTimes(this.selection[0].end_time),
  523. 'insutype': this.selection[0].insutype
  524. };
  525. getCheckAccountFormData(params).then(response => {
  526. if (response.data.state == 0) {
  527. this.$message.error(response.data.msg);
  528. return false
  529. } else {
  530. this.fromData = response.data.data.list;
  531. var list = [];
  532. for (let i = 0; i < this.fromData.length; i++) {
  533. let obj = {
  534. '结算金额': this.fromData[i].medfee_sumamt,
  535. '姓名': this.fromData[i].psn_name,
  536. '身份证': this.fromData[i].id_card_no,
  537. '个人编号': this.fromData[i].psn_no,
  538. '门诊流水号': this.fromData[i].mdtrt_id,
  539. '挂号日期': this.getTimes(this.fromData[i].settle_accounts_date),
  540. '起付线': this.fromData[i].act_pay_dedc,
  541. '统筹基金': this.fromData[i].fund_pay_sumamt,
  542. '个人支付': this.fromData[i].psn_cash_pay,
  543. '个账支付': this.fromData[i].acct_pay,
  544. '现金支付': this.fromData[i].cash_pay,
  545. '总费用': this.fromData[i].sumamt,
  546. '冲销标志': '已结算'
  547. };
  548. list.push(obj)
  549. }
  550. var insutype_name = '';
  551. if (this.query_insutype == '310') {
  552. insutype_name = '职工基本医疗保险'
  553. } else if (this.query_insutype == '390') {
  554. insutype_name = '城乡居民基本医疗保险'
  555. }
  556. import('@/vendor/Export2Excel').then(excel => {
  557. const tHeader = ['结算金额', '姓名', '身份证', '个人编号', '门诊流水号', '挂号日期', '起付线', '统筹基金', '个人支付', '个账支付', '现金支付', '总费用', '冲销标志'];
  558. const filterVal = ['结算金额', '姓名', '身份证', '个人编号', '门诊流水号', '挂号日期', '起付线', '统筹基金', '个人支付', '个账支付', '现金支付', '总费用', '冲销标志'];
  559. const data = this.formatJson(filterVal, list);
  560. excel.export_json_to_excel({
  561. header: tHeader,
  562. data,
  563. filename:this.getTimes(this.selection[0].start_time)+ '~' + this.getTimes(this.selection[0].end_time)+ insutype_name + '对账报表'
  564. })
  565. })
  566. }
  567. })
  568. }, formatJson(filterVal, jsonData) {
  569. return jsonData.map(v => filterVal.map(j => v[j]))
  570. }
  571. },
  572. created() {
  573. this.getList();
  574. this.fetchAllAdminUsers()
  575. }
  576. }
  577. </script>