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

outpatientRecord.vue 26KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718
  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:150px;" 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-select v-model="is_put_on_record" style="width:160px;" placeholder="请选择" @change="changeStatus">-->
  16. <!--<el-option-->
  17. <!--v-for="item,index in datas"-->
  18. <!--:key="index"-->
  19. <!--:label="item.name"-->
  20. <!--:value="item.id">-->
  21. <!--</el-option>-->
  22. <!--</el-select>-->
  23. </div>
  24. <!--<el-button size="small" type="primary" @click="dialogFormVisible = t 。rue">医保对账</el-button>-->
  25. </div>
  26. <el-table :data="tableData" border style="width: 100%;" :row-style="{ color: '#303133' }"
  27. :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
  28. v-loading="patientLoading"
  29. highlight-current-row>
  30. <el-table-column align="center" prop="name" label="流水号">
  31. <template slot-scope="scope">{{scope.row.record.trt_dcla_detl_sn}}</template>
  32. </el-table-column>
  33. <el-table-column align="center" prop="name" label="时间">
  34. <template slot-scope="scope" v-if="scope.row.record.ctime > 0">{{getTimes(scope.row.record.ctime)}}</template>
  35. </el-table-column>
  36. <el-table-column align="center" prop="name" label="姓名">
  37. <template slot-scope="scope">{{scope.row.name}}</template>
  38. </el-table-column>
  39. <el-table-column align="center" prop="name" label="人员编号">
  40. <template slot-scope="scope">
  41. <div>{{scope.row.record.psn_no}}</div>
  42. </template>
  43. </el-table-column>
  44. <el-table-column align="center" prop="name" label="联系电话">
  45. <template slot-scope="scope">{{scope.row.phone}}</template>
  46. </el-table-column>
  47. <el-table-column align="center" prop="name" label="地址">
  48. <template slot-scope="scope">
  49. {{scope.row.homel__address}}
  50. </template>
  51. </el-table-column>
  52. <!-- <el-table-column align="center" prop="name" width="160" label="鉴定定点医药机构编码">-->
  53. <!-- <template slot-scope="scope">-->
  54. <!-- <el-input v-model="hospital_code"></el-input>-->
  55. <!-- </template>-->
  56. <!-- </el-table-column>-->
  57. <!-- <el-table-column align="center" prop="name" width="160" label="鉴定定点医药机构">-->
  58. <!-- <template slot-scope="scope">-->
  59. <!-- <el-input v-model="hospital_name"></el-input>-->
  60. <!-- </template>-->
  61. <!-- </el-table-column>-->
  62. <el-table-column align="center" prop="name" label="医生">
  63. <template slot-scope="scope">
  64. <el-select v-model="scope.row.record.doctor_id" placeholder="请选择"
  65. @change="changeDoctor(scope.row,scope.row.record.doctor_id)">
  66. <el-option
  67. v-for="(item,index) in doctorList"
  68. :key="index"
  69. :label="item.user_name"
  70. :value="item.admin_user_id">
  71. </el-option>
  72. </el-select>
  73. </template>
  74. </el-table-column>
  75. <el-table-column align="center" prop="name" label="科室">
  76. <template slot-scope="scope">
  77. <el-select style="margin-right:5px;width:140px;" v-model="scope.row.record.department_id"
  78. placeholder="请选择">
  79. <el-option
  80. v-for="(item,index) in department"
  81. :key="index"
  82. :label="item.name"
  83. :value="item.id">
  84. </el-option>
  85. </el-select>
  86. </template>
  87. </el-table-column>
  88. <el-table-column align="center" prop="name" label="险种类型">
  89. <template slot-scope="scope">
  90. <div v-if="scope.row.record.insutype == '310'">职工基本医疗保险</div>
  91. <div v-if="scope.row.record.insutype == '320'">公务员医疗补助</div>
  92. <div v-if="scope.row.record.insutype == '330'">大额医疗费用补助</div>
  93. <div v-if="scope.row.record.insutype == '340'">离休人员医疗保障</div>
  94. <div v-if="scope.row.record.insutype == '390'">城乡居民基本医疗保险</div>
  95. <div v-if="scope.row.record.insutype == '392'">城乡居民大病医疗保险</div>
  96. <div v-if="scope.row.record.insutype == '510'">生育保险</div>
  97. </template>
  98. </el-table-column>
  99. <el-table-column align="center" prop="name" label="疾病类型" width="100">
  100. <template slot-scope="scope">
  101. <el-select filterable style="width:100%;" v-model="scope.row.record.sick_type" placeholder="请选择">
  102. <el-option
  103. v-for="(item,index) in sick"
  104. :key="index"
  105. :label="item.class_name"
  106. :value="item.id">
  107. </el-option>
  108. </el-select>
  109. </template>
  110. </el-table-column>
  111. <el-table-column prop="date" label="操作" width="80" align="center" fixed="right">
  112. <template slot-scope="scope">
  113. <el-button type="primary" size="small" icon="el-icon-tickets" v-if="scope.row.record.is_cancel == 0 ||scope.row.record.is_cancel == 2" >
  114. <span @click="putOnRecord(1,scope.row)">备案</span>
  115. </el-button>
  116. <el-button type="danger" size="small" icon="el-icon-tickets" v-if="scope.row.record.is_cancel == 1" >
  117. <span @click="putOnRecord(2,scope.row)">撤消</span>
  118. </el-button>
  119. <el-button type="primary" size="small" icon="el-icon-tickets" v-if="scope.row.record.is_cancel == 1" >
  120. <span @click="putOnRecord(3,scope.row)">查看备案信息</span>
  121. </el-button>
  122. <el-button type="primary" size="small" icon="el-icon-tickets" >
  123. <span @click="putOnRecord(4,scope.row)">删除</span>
  124. </el-button>
  125. </template>
  126. </el-table-column>
  127. </el-table>
  128. <el-dialog title="备案" :visible.sync="dialogFormVisible">
  129. <el-form label-width="100px">
  130. <el-form-item label="险种类型" >
  131. <el-select v-model="insutype_value" placeholder="请选择" style="width: 200px;">
  132. <el-option
  133. v-for="item in insutypes"
  134. :key="item.value"
  135. :label="item.label"
  136. :value="item.value">
  137. </el-option>
  138. </el-select>
  139. </el-form-item>
  140. <el-form-item label="鉴定医院名称" >
  141. <el-input v-model="hospital_name"></el-input>-->
  142. </el-form-item>
  143. <el-form-item label="鉴定医院机构编码" >
  144. <el-input v-model="hospital_code"></el-input>-->
  145. </el-form-item>
  146. <el-form-item label="医院鉴定日期" >
  147. <el-date-picker
  148. v-model="check_date"
  149. prefix-icon="el-icon-date"
  150. :editable="false"
  151. style="width: 100%;"
  152. type="date"
  153. placeholder="选择开始时间"
  154. align="right"
  155. format="yyyy-MM-dd"
  156. value-format="yyyy-MM-dd">
  157. </el-date-picker>
  158. </el-form-item>
  159. <el-form-item label="开始时间" >
  160. <el-date-picker
  161. v-model="start_date"
  162. prefix-icon="el-icon-date"
  163. :editable="false"
  164. style="width: 100%;"
  165. type="date"
  166. placeholder="选择开始时间"
  167. align="right"
  168. format="yyyy-MM-dd"
  169. value-format="yyyy-MM-dd">
  170. </el-date-picker>
  171. </el-form-item>
  172. <el-form-item label="结束时间" >
  173. <el-date-picker
  174. v-model="end_date"
  175. prefix-icon="el-icon-date"
  176. :editable="false"
  177. style="width: 100%;"
  178. type="date"
  179. placeholder="选择结束时间"
  180. align="right"
  181. format="yyyy-MM-dd"
  182. value-format="yyyy-MM-dd">
  183. </el-date-picker>
  184. </el-form-item>
  185. </el-form>
  186. <div slot="footer" class="dialog-footer">
  187. <el-button @click="dialogFormVisible = false">取 消</el-button>
  188. <el-button type="primary" @click="confirm">确 定</el-button>
  189. </div>
  190. </el-dialog>
  191. </div>
  192. <el-pagination
  193. @size-change="handleSizeChange"
  194. @current-change="handleCurrentChange"
  195. :page-sizes="[10, 50, 100]"
  196. :page-size="10"
  197. background
  198. style="margin-top:20px;float: right"
  199. layout="total, sizes, prev, pager, next, jumper"
  200. :total="total"
  201. >
  202. </el-pagination>
  203. </div>
  204. </template>
  205. <script>
  206. import BreadCrumb from '@/xt_pages/components/bread-crumb'
  207. import { getAllDoctorList, getInitData, getRecordList,deleteNCDSRecord } from '@/api/his/his'
  208. import { uParseTime } from '@/utils/tools'
  209. import { fetchAllAdminUsers } from '@/api/doctor'
  210. import axios from 'axios'
  211. export default {
  212. components: {
  213. BreadCrumb
  214. },
  215. data() {
  216. return {
  217. is_put_on_record:0,
  218. start_date:'',
  219. end_date:"",
  220. check_date:"",
  221. hospital_code:"",
  222. hospital_name:"",
  223. datas: [
  224. {
  225. id: 0,
  226. name: '全部'
  227. }, {
  228. id: 1,
  229. name: '已备案'
  230. }, {
  231. id: 2,
  232. name: '未备案'
  233. }
  234. ],
  235. currentObject: null,
  236. crumbs: [
  237. { path: false, name: '门诊收费' },
  238. { path: false, name: '医保费用对照' }
  239. ],
  240. tableData: [],
  241. doctorList: [],
  242. department: [],
  243. patientLoading: false,
  244. sick: [],
  245. limit: 10,
  246. insutype_value:"",
  247. psn_no:"",
  248. page: 1,
  249. dialogFormVisible: false,
  250. total: 0,
  251. adminUserOptions: [],
  252. start_time: '',
  253. end_time: '',
  254. insutype: '',
  255. check_type: '',
  256. keywords: '',
  257. options: [
  258. {
  259. value: 1,
  260. label: '总账'
  261. }, {
  262. value: 2,
  263. label: '明细'
  264. }
  265. ],
  266. insutype_arr: [
  267. {
  268. value: '310',
  269. label: '职工基本医疗保险'
  270. }, {
  271. value: '320',
  272. label: '公务员医疗补助'
  273. }, {
  274. value: '330',
  275. label: '大额医疗费用补助'
  276. }, {
  277. value: '340',
  278. label: '离休人员医疗保障'
  279. },
  280. {
  281. value: '390',
  282. label: '城乡居民基本医疗保险'
  283. }, {
  284. value: '392',
  285. label: '城乡居民大病医疗保险'
  286. }, {
  287. value: '510',
  288. label: '生育保险'
  289. }
  290. ],
  291. insutypes: [
  292. {
  293. value: '310',
  294. label: '职工基本医疗保险'
  295. }, {
  296. value: '320',
  297. label: '公务员医疗补助'
  298. }, {
  299. value: '330',
  300. label: '大额医疗费用补助'
  301. }, {
  302. value: '340',
  303. label: '离休人员医疗保障'
  304. },
  305. {
  306. value: '390',
  307. label: '城乡居民基本医疗保险'
  308. }, {
  309. value: '392',
  310. label: '城乡居民大病医疗保险'
  311. }, {
  312. value: '510',
  313. label: '生育保险'
  314. }
  315. ]
  316. }
  317. },
  318. methods: {
  319. changeStatus(id){
  320. this.keywords = "";
  321. this.getList()
  322. },
  323. getGdybPatientInfo(){
  324. let params ={
  325. id_card_no:this.currentObject.id_card_no,
  326. admin_user_id: this.$store.getters.xt_user.user.id,
  327. };
  328. var that = this;
  329. axios.get('http://127.0.0.1:9532/api/patient/info', {
  330. params: params
  331. })
  332. .then(function(response) {
  333. if (response.data.state == 0) {
  334. that.$message.error(response.data.msg);
  335. return false
  336. } else {
  337. if(response.data.data.failed_code == -10){
  338. // that.$message.error(response.data.data.msg)
  339. that.$confirm(response.data.data.msg, '医保错误信息', {
  340. confirmButtonText: '确 定',
  341. type: 'warning'
  342. }).then(() => {
  343. }).catch(() => {
  344. })
  345. }else{
  346. that.dialogFormVisible = true;
  347. that.insutypes = [];
  348. that.psn_no = response.data.data.info.output.baseinfo.psn_no;
  349. for (let i =0; i < response.data.data.info.output.insuinfo.length; i++){
  350. let obj = {
  351. value:response.data.data.info.output.insuinfo[i].insutype,
  352. label:""
  353. };
  354. for(let b = 0; b < that.insutype_arr.length; b++){
  355. if(that.insutype_arr[b].value == response.data.data.info.output.insuinfo[i].insutype){
  356. obj.label = that.insutype_arr[b].label
  357. }
  358. }
  359. if(response.data.data.info.output.insuinfo[i].psn_insu_stas == 1){
  360. obj.label = obj.label
  361. }else{
  362. obj.label = obj.label +"(已暂停)"
  363. }
  364. that.insutypes.push(obj)
  365. }
  366. }
  367. }
  368. })
  369. .catch(function(error) {
  370. })
  371. },
  372. putOnRecord(type, row) {
  373. if (type == 1) {
  374. this.currentObject = row;
  375. this.getGdybPatientInfo()
  376. } else if(type == 2) {
  377. this.$confirm('是否撤销备案', '撤销备案', {
  378. confirmButtonText: '确 定',
  379. cancelButtonText: '取 消',
  380. type: 'warning'
  381. }).then(() => {
  382. let params = {
  383. 'id': row.record.id,
  384. 'admin_user_id': this.$store.getters.xt_user.user.id
  385. };
  386. var that = this;
  387. axios.get('http://127.0.0.1:9532/api/psn/ncds/unputonrecord', {
  388. params: params
  389. })
  390. .then(function(response) {
  391. if (response.data.state == 0) {
  392. that.$message.error(response.data.msg);
  393. return false
  394. } else {
  395. if(response.data.data.failed_code == -10){
  396. // that.$message.error(response.data.data.msg)
  397. that.$confirm(response.data.data.msg, '医保错误信息', {
  398. confirmButtonText: '确 定',
  399. type: 'warning'
  400. }).then(() => {
  401. }).catch(() => {
  402. })
  403. }else{
  404. row.record.is_cancel = 2;
  405. that.$message({ message: '撤销成功', type: 'success' })
  406. }
  407. }
  408. })
  409. .catch(function(error) {
  410. })
  411. }).catch(() => {
  412. })
  413. }else if(type == 3){
  414. let params = {
  415. 'id': row.record.id,
  416. 'admin_user_id': this.$store.getters.xt_user.user.id
  417. };
  418. var that = this;
  419. axios.get('http://127.0.0.1:9532/api/psn/info', {
  420. params: params
  421. })
  422. .then(function(response) {
  423. if (response.data.state == 0) {
  424. that.$message.error(response.data.msg);
  425. return false
  426. } else {
  427. if(response.data.data.failed_code == -10){
  428. // that.$message.error(response.data.data.msg)
  429. that.$confirm(response.data.data.msg, '医保错误信息', {
  430. confirmButtonText: '确 定',
  431. type: 'warning'
  432. }).then(() => {
  433. }).catch(() => {
  434. })
  435. }else{
  436. that.$confirm(response.data.data.result, '医保信息', {
  437. confirmButtonText: '确 定',
  438. type: 'warning'
  439. }).then(() => {
  440. }).catch(() => {
  441. })
  442. }
  443. }
  444. })
  445. .catch(function(error) {
  446. })
  447. }else if(type == 4){
  448. this.$confirm("是否删除", '删除', {
  449. confirmButtonText: '确 定',
  450. type: 'warning'
  451. }).then(() => {
  452. let params = {
  453. id: row.record.id,
  454. }
  455. deleteNCDSRecord(params).then(response => {
  456. if (response.data.state == 0) {
  457. this.$message.error(response.data.msg);
  458. return false
  459. } else {
  460. this.getList()
  461. }
  462. })
  463. }).catch(() => {
  464. })
  465. }
  466. },
  467. changeDoctor(row, id) {
  468. for (let i = 0; i < this.doctorList.length; i++) {
  469. if (id == this.doctorList[i].admin_user_id) {
  470. if (this.doctorList[i].department_id == 0) {
  471. row.record.department_id = ''
  472. } else {
  473. row.record.department_id = this.doctorList[i].department_id
  474. }
  475. }
  476. }
  477. },
  478. getInitData() {
  479. getInitData().then(response => {
  480. if (response.data.state == 0) {
  481. this.$message.error(response.data.msg);
  482. return false
  483. } else {
  484. this.doctorList = response.data.data.doctors;
  485. this.department = response.data.data.department;
  486. this.sick = response.data.data.sick
  487. }
  488. })
  489. },
  490. getSickName(id) {
  491. },
  492. confirm() {
  493. if(this.currentObject.record.doctor_id == '' || this.currentObject.record.doctor_id == 0){
  494. this.$message.error("请选择医生");
  495. return
  496. }
  497. if(this.currentObject.record.department_id == '' || this.currentObject.record.department_id == 0){
  498. this.$message.error("请选择科室");
  499. return
  500. }
  501. if(this.currentObject.record.sick_type == '' || this.currentObject.record.sick_type == 0){
  502. this.$message.error("请选择疾病类型");
  503. return
  504. }
  505. if(this.currentObject.record.insutype_value == '' || this.currentObject.record.insutype_value == 0){
  506. this.$message.error("请选择险种");
  507. return
  508. }
  509. if(this.start_date == '' || this.start_date == 0){
  510. this.$message.error("请选择开始时间");
  511. return
  512. }
  513. if(this.end_date == '' || this.end_date == 0){
  514. this.$message.error("请选择结束时间");
  515. return
  516. }
  517. if(this.check_date == '' || this.check_date == 0){
  518. this.$message.error("请选择鉴定时间");
  519. return
  520. }
  521. let params = {
  522. record_type: 0,
  523. patient_id: this.currentObject.id,
  524. insutype: this.insutype_value,
  525. start_time: this.start_date,
  526. end_time: this.end_date,
  527. check_time: this.check_date,
  528. psn_no: this.psn_no,
  529. sick_id: this.currentObject.record.sick_type,
  530. doctor_id: this.currentObject.record.doctor_id,
  531. department_id:this.currentObject.record.department_id,
  532. admin_user_id: this.$store.getters.xt_user.user.id,
  533. hospital_name:this.hospital_name,
  534. hospital_code: this.hospital_code,
  535. };
  536. var that = this;
  537. axios.get('http://127.0.0.1:9532/api/psn/ncds/putonrecord', {
  538. params: params
  539. })
  540. .then(function(response) {
  541. if (response.data.state == 0) {
  542. that.$message.error(response.data.msg);
  543. return false
  544. } else {
  545. if(response.data.data.failed_code == -10){
  546. // that.$message.error(response.data.data.msg)
  547. that.$confirm(response.data.data.msg, '医保错误信息', {
  548. confirmButtonText: '确 定',
  549. type: 'warning'
  550. }).then(() => {
  551. }).catch(() => {
  552. })
  553. }else{
  554. that.$message.success("备案成功");
  555. that.dialogFormVisible = false;
  556. for (let i = 0; i < that.tableData.length; i++) {
  557. if (that.tableData[i].id == that.currentObject.id) {
  558. that.tableData[i].record.is_cancel =response.data.data.result.is_cancel;
  559. that.tableData[i].record.id = response.data.data.result.id;
  560. that.tableData[i].record.trt_dcla_detl_sn = response.data.data.result.trt_dcla_detl_sn;
  561. that.tableData[i].record.psn_no = response.data.data.result.psn_no;
  562. that.tableData[i].record.doctor_id = response.data.data.result.doctor_id;
  563. that.tableData[i].record.department_id = response.data.data.result.department_id;
  564. that.tableData[i].record.ctime = response.data.data.result.ctime;
  565. that.tableData[i].record.insutype = response.data.data.result.insutype;
  566. that.tableData[i].record.sick_type = response.data.data.result.sick_type
  567. }
  568. }
  569. }
  570. }
  571. })
  572. .catch(function(error) {
  573. })
  574. },
  575. getInsutype(type) {
  576. },
  577. fetchAllAdminUsers() {
  578. fetchAllAdminUsers().then(response => {
  579. if (response.data.state == 1) {
  580. this.adminUserOptions = response.data.data.users
  581. }
  582. })
  583. },
  584. getName(admin_user_id) {
  585. for (let i = 0; i < this.adminUserOptions.length; i++) {
  586. if (this.adminUserOptions[i].id == admin_user_id) {
  587. return this.adminUserOptions[i].name
  588. }
  589. }
  590. },
  591. getTimes(time) {
  592. return uParseTime(time, '{y}-{m}-{d}')
  593. },
  594. getList() {
  595. let params = {
  596. 'page': this.page,
  597. 'limit': this.limit,
  598. 'keywords': this.keywords,
  599. 'is_put_on_record':this.is_put_on_record
  600. };
  601. this.tableData = [];
  602. this.patientLoading = true;
  603. getRecordList(params).then(response => {
  604. if (response.data.state == 0) {
  605. this.patientLoading = false;
  606. this.$message.error(response.data.msg);
  607. return false
  608. } else {
  609. this.patientLoading = false;
  610. this.tableData = response.data.data.list;
  611. this.total = response.data.data.total;
  612. for (let i = 0; i < this.tableData.length; i++) {
  613. if (this.tableData[i].record.doctor_id == 0) {
  614. this.tableData[i].record.doctor_id = ''
  615. }
  616. if (this.tableData[i].record.department_id == 0) {
  617. this.tableData[i].record.department_id = ''
  618. }
  619. if (this.tableData[i].record.sick_type == 0) {
  620. this.tableData[i].record.sick_type = ''
  621. }
  622. }
  623. }
  624. })
  625. },
  626. handleSizeChange(limit) {
  627. this.limit = limit;
  628. this.getList()
  629. },
  630. handleCurrentChange(page) {
  631. this.page = page;
  632. this.getList()
  633. }, searchAction() {
  634. this.getList()
  635. }
  636. },
  637. created() {
  638. this.getList();
  639. this.getInitData();
  640. this.fetchAllAdminUsers()
  641. }
  642. }
  643. </script>