var template = '' $.ajax('../../../component/statistics/PatientSituation/index.html', { data: {}, dataType: 'html', cache: false, timeout: 60000, async: false, error: function (res) {}, success: function (res) { template = res } }) Vue.component('patient-situation', { template: template, props: [], data: function () { return { years: [], yearType: '1', chooseYear: null, chooseTime: null, turnStatus: null, turnStatusOptions: [], name: "", tableData: [], tableHeader: [ {label: '住院号',prop: 'a'}, {label: '病人姓名',prop: 'b'}, {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'}, {label: '转归情况',prop: 'a'}, ], dialogShow: false, settlementInfo: { name:'黄小蕾', yibao: 'dk', pay: '1049' }, dialogTable: [], dialogHeader: [ {label: '结算时间',prop: 'a',width: '120'}, {label: '结算状态',prop: 'a',width:'80'}, {label: '金额',prop: 'a',width: '80'}, {label: '自付',prop: 'a',width: '80'}, {label: '优惠金额',prop: 'a',width: '80'}, {label: '减免金额',prop: 'a',width: '80'}, {label: '单位支付',prop: 'a',width: '80'}, {label: '医保支付',prop: 'a',width: '80'}, {label: '结算总预交金',prop: 'a',width: '120'}, {label: '结算时收退款',prop: 'a',width: '120'}, {label: '结算后余额',prop: 'a',width: '120'}, {label: '结算号',prop: 'a',width: '80'}, {label: '就诊科室',prop: 'a',width: '80'}, {label: '收费科室',prop: 'a',width: '80'}, ] } }, 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.turnStatus = null this.name = "" this.yearType = '1' this.chooseYear = new Date().getFullYear() this.chooseTime = null }, closeDialog(){ this.dialogShow = false }, previewRecord(row){ this.dialogShow = true } }, mounted() { this.initTime() } })