12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273 |
- var template = ''
- $.ajax('../../../component/statistics/PlanService/index.html', {
- data: {},
- dataType: 'html',
- cache: false,
- timeout: 60000,
- async: false,
- error: function (res) {},
- success: function (res) {
- template = res
- }
- })
- Vue.component('plan-service', {
- template: template,
- props: [],
- data: function () {
- return {
- years: [],
- yearType: '1',
- chooseYear: null,
- chooseTime: null,
- form: {},
- tableData: [],
- tableHeader: [
- { label: '住院号', prop: 'a' },
- { label: '患者姓名', prop: 'b' },
- { label: '性别', prop: 'c' },
- { label: '年龄', prop: 'c' },
- { label: '建床日期', prop: 'a' },
- { label: '查床周期', prop: 'a' },
- { label: '查床开始日期', prop: 'a' },
- { label: '查床人员', prop: 'a' }
- ],
- dialogShow: true,
- planList: [
- { checkTime: '2024-11-01 9:30', patientName: '黄小蕾', checkPlanStatusName: '计划中', color: '#0099ff' },
- { checkTime: '2024-11-02 9:30', patientName: '黄小蕾', checkPlanStatusName: '已完成', color: '#099d09' },
- { checkTime: '2024-11-03 9:30', patientName: '黄小蕾', checkPlanStatusName: '计划超时', color: '#ff0000' },
- { checkTime: '2024-11-04 9:30', patientName: '黄小蕾', checkPlanStatusName: '计划中', color: '#0099ff' }
- ]
- }
- },
- 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.form = {}
- this.yearType = '1'
- this.chooseYear = new Date().getFullYear()
- this.chooseTime = null
- },
- closeDialog() {
- this.dialogShow = false
- },
- previewRecord(row) {
- this.dialogShow = true
- }
- },
- mounted() {
- this.initTime()
- }
- })
|