index.js 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. var template = ''
  2. $.ajax('../../../component/statistics/Referral/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('referral', {
  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: 'a'},
  32. {label: '建床日期',prop: 'a'},
  33. {label: '建床天数',prop: 'a'},
  34. {label: '撤床日期',prop: 'a'},
  35. {label: '撤床诊断',prop: 'a'},
  36. {label: '转归情况',prop: 'a'},
  37. ],
  38. dialogShow: true,
  39. settlementInfo: {
  40. name:'黄小蕾',
  41. yibao: 'dk',
  42. pay: '1049'
  43. },
  44. dialogTable: [],
  45. dialogHeader: [
  46. {label: '结算时间',prop: 'a',width: '120'},
  47. {label: '结算状态',prop: 'a',width:'80'},
  48. {label: '金额',prop: 'a',width: '80'},
  49. {label: '自付',prop: 'a',width: '80'},
  50. {label: '优惠金额',prop: 'a',width: '80'},
  51. {label: '减免金额',prop: 'a',width: '80'},
  52. {label: '单位支付',prop: 'a',width: '80'},
  53. {label: '医保支付',prop: 'a',width: '80'},
  54. {label: '结算总预交金',prop: 'a',width: '120'},
  55. {label: '结算时收退款',prop: 'a',width: '120'},
  56. {label: '结算后余额',prop: 'a',width: '120'},
  57. {label: '结算号',prop: 'a',width: '80'},
  58. {label: '就诊科室',prop: 'a',width: '80'},
  59. {label: '收费科室',prop: 'a',width: '80'},
  60. ]
  61. }
  62. },
  63. methods: {
  64. initTime() {
  65. var vm = this
  66. var now = new Date()
  67. vm.nowyear = vm.chooseYear = now.getFullYear()
  68. vm.years = []
  69. for (i = vm.nowyear; i >= 2013; i--) {
  70. vm.years.push(i)
  71. }
  72. },
  73. queryDate(){},
  74. exportTable(){},
  75. eliminateClick(){
  76. this.turnStatus = null
  77. this.name = ""
  78. this.yearType = '1'
  79. this.chooseYear = new Date().getFullYear()
  80. this.chooseTime = null
  81. },
  82. closeDialog(){
  83. this.dialogShow = false
  84. },
  85. previewRecord(row){
  86. this.dialogShow = true
  87. }
  88. },
  89. mounted() {
  90. this.initTime()
  91. }
  92. })