index.js 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. var template = ''
  2. $.ajax('../../../component/statistics/PatientSituation/index.html', {
  3. data: {},
  4. dataType: 'html',
  5. cache: false,
  6. timeout: 60000,
  7. async: false,
  8. error: function (res) {},
  9. success: function (res) {
  10. template = res
  11. }
  12. })
  13. Vue.component('patient-situation', {
  14. template: template,
  15. props: [],
  16. data: function () {
  17. return {
  18. years: [],
  19. yearType: '1',
  20. chooseYear: null,
  21. chooseTime: null,
  22. turnStatus: null,
  23. turnStatusOptions: [],
  24. name: '',
  25. tableData: [],
  26. tableHeader: [
  27. { label: '住院号', prop: 'a' },
  28. { label: '病人姓名', prop: 'b' },
  29. { label: '性别', prop: 'c' },
  30. { label: '手机号', prop: 'd' },
  31. { label: '身份证号', prop: 'e' },
  32. { label: '费别', prop: 'a' },
  33. { label: '建床科室', prop: 'a' },
  34. { label: '护理等级', prop: 'a' },
  35. { label: '病情', prop: 'a' },
  36. { label: '建床诊断', prop: 'a' },
  37. { label: '建床日期', prop: 'a' },
  38. { label: '建床天数', prop: 'a' },
  39. { label: '撤床日期', prop: 'a' },
  40. { label: '撤床诊断', prop: 'a' },
  41. { label: '转归情况', prop: 'a' }
  42. ],
  43. dialogShow: false,
  44. settlementInfo: {
  45. name: '黄小蕾',
  46. yibao: 'dk',
  47. pay: '1049'
  48. },
  49. dialogTable: [],
  50. dialogHeader: [
  51. { label: '结算时间', prop: 'a', width: '120' },
  52. { label: '结算状态', prop: 'a', width: '80' },
  53. { label: '金额', prop: 'a', width: '80' },
  54. { label: '自付', prop: 'a', width: '80' },
  55. { label: '优惠金额', prop: 'a', width: '80' },
  56. { label: '减免金额', prop: 'a', width: '80' },
  57. { label: '单位支付', prop: 'a', width: '80' },
  58. { label: '医保支付', prop: 'a', width: '80' },
  59. { label: '结算总预交金', prop: 'a', width: '120' },
  60. { label: '结算时收退款', prop: 'a', width: '120' },
  61. { label: '结算后余额', prop: 'a', width: '120' },
  62. { label: '结算号', prop: 'a', width: '80' },
  63. { label: '就诊科室', prop: 'a', width: '80' },
  64. { label: '收费科室', prop: 'a', width: '80' }
  65. ]
  66. }
  67. },
  68. methods: {
  69. initTime() {
  70. var vm = this
  71. var now = new Date()
  72. vm.nowyear = vm.chooseYear = now.getFullYear()
  73. vm.years = []
  74. for (i = vm.nowyear; i >= 2013; i--) {
  75. vm.years.push(i)
  76. }
  77. },
  78. queryDate() {},
  79. exportTable() {},
  80. eliminateClick() {
  81. this.turnStatus = null
  82. this.name = ''
  83. this.yearType = '1'
  84. this.chooseYear = new Date().getFullYear()
  85. this.chooseTime = null
  86. },
  87. closeDialog() {
  88. this.dialogShow = false
  89. },
  90. previewRecord(row) {
  91. this.dialogShow = true
  92. },
  93. getDictData() {
  94. var vm = this
  95. statisticAPI.getDictByDictName({ name: 'jkcopd_disease_conversion' }).then(function (res) {
  96. vm.turnStatusOptions = [{ label: '全部', value: '' }]
  97. vm.turnStatusOptions = vm.turnStatusOptions.concat(res.list)
  98. })
  99. }
  100. },
  101. mounted() {
  102. this.initTime()
  103. this.getDictData()
  104. }
  105. })