index.js 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. var template = ''
  2. $.ajax('../../../component/statistics/BuildBed/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('build-bed', {
  14. template: template,
  15. props: [],
  16. data: function () {
  17. return {
  18. years: [],
  19. yearType: '1',
  20. chooseYear: null,
  21. chooseTime: null,
  22. form:{},
  23. tableData: [],
  24. tableHeader: [
  25. {label: '病人姓名',prop: 'b'},
  26. {label: '性别',prop: 'c'},
  27. {label: '年龄',prop: 'c'},
  28. {label: '手机号',prop: 'd'},
  29. {label: '身份证号',prop: 'e'},
  30. {label: '住院号',prop: 'a'},
  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. {label: '床位名称',prop: 'a'},
  38. {label: '建床时间',prop: 'a'},
  39. ]
  40. }
  41. },
  42. methods: {
  43. initTime() {
  44. var vm = this
  45. var now = new Date()
  46. vm.nowyear = vm.chooseYear = now.getFullYear()
  47. vm.years = []
  48. for (i = vm.nowyear; i >= 2013; i--) {
  49. vm.years.push(i)
  50. }
  51. },
  52. queryDate(){},
  53. exportTable(){},
  54. eliminateClick(){
  55. this.yearType = '1'
  56. this.chooseYear = new Date().getFullYear()
  57. this.chooseTime = null
  58. this.form = {}
  59. },
  60. closeDialog(){
  61. this.dialogShow = false
  62. },
  63. previewRecord(row){
  64. this.dialogShow = true
  65. }
  66. },
  67. mounted() {
  68. this.initTime()
  69. }
  70. })