index.js 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. var template = ''
  2. $.ajax('../../../component/statistics/BedCheck/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('bed-check', {
  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: 'a'},
  26. {label: '患者姓名',prop: 'b'},
  27. {label: '性别',prop: 'c'},
  28. {label: '年龄',prop: 'd'},
  29. {label: '建床日期',prop: 'a'},
  30. {label: '计划查床时间',prop: 'a'},
  31. {label: '完成时间',prop: 'a'},
  32. {label: '查床人员',prop: 'a'},
  33. {label: '服务内容',prop: 'a'},
  34. ],
  35. dialogShow: true,
  36. info: {
  37. name:'黄小蕾',
  38. sex: '1',
  39. age: '60岁',
  40. zhuyuan: '38593246',
  41. phone: '12223456789',
  42. checkTime: '2024-04-09 10:00:00',
  43. serviceContent: '上门服务',
  44. },
  45. }
  46. },
  47. methods: {
  48. initTime() {
  49. var vm = this
  50. var now = new Date()
  51. vm.nowyear = vm.chooseYear = now.getFullYear()
  52. vm.years = []
  53. for (i = vm.nowyear; i >= 2013; i--) {
  54. vm.years.push(i)
  55. }
  56. },
  57. queryDate(){},
  58. exportTable(){},
  59. eliminateClick(){
  60. this.turnStatus = null
  61. this.name = ""
  62. this.yearType = '1'
  63. this.chooseYear = new Date().getFullYear()
  64. this.chooseTime = null
  65. },
  66. closeDialog(){
  67. this.dialogShow = false
  68. },
  69. previewRecord(row){
  70. this.dialogShow = true
  71. }
  72. },
  73. mounted() {
  74. this.initTime()
  75. }
  76. })