123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 |
- var template = ''
- $.ajax('../../../component/statistics/BuildBed/index.html', {
- data: {},
- dataType: 'html',
- cache: false,
- timeout: 60000,
- async: false,
- error: function (res) {},
- success: function (res) {
- template = res
- }
- })
- Vue.component('build-bed', {
- template: template,
- props: [],
- data: function () {
- return {
- years: [],
- yearType: '1',
- chooseYear: null,
- chooseTime: null,
- form:{},
- tableData: [],
- tableHeader: [
- {label: '病人姓名',prop: 'b'},
- {label: '性别',prop: 'c'},
- {label: '年龄',prop: 'c'},
- {label: '手机号',prop: 'd'},
- {label: '身份证号',prop: 'e'},
- {label: '住院号',prop: 'a'},
- {label: '护理等级',prop: 'a'},
- {label: '病情',prop: 'a'},
- {label: '主诊断',prop: 'a'},
- {label: '责任医师',prop: 'a'},
- {label: '上级医师',prop: 'a'},
- {label: '主营护士',prop: 'a'},
- {label: '床位名称',prop: 'a'},
- {label: '建床时间',prop: 'a'},
- ]
- }
- },
- methods: {
- initTime() {
- var vm = this
- var now = new Date()
- vm.nowyear = vm.chooseYear = now.getFullYear()
- vm.years = []
- for (i = vm.nowyear; i >= 2013; i--) {
- vm.years.push(i)
- }
- },
- queryDate(){},
- exportTable(){},
- eliminateClick(){
- this.yearType = '1'
- this.chooseYear = new Date().getFullYear()
- this.chooseTime = null
- this.form = {}
- },
- closeDialog(){
- this.dialogShow = false
- },
- previewRecord(row){
- this.dialogShow = true
- }
- },
- mounted() {
- this.initTime()
- }
- })
|