| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192 | 
							- 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,
 
-       turnOverOptions: [],
 
-       form: {
 
-         turnOver: ""
 
-       },
 
-       loading: false,
 
-       exportLoading: false,
 
-       tableData: [],
 
-       tableHeader: [
 
-         { label: '住院号', prop: 'visitNo', width: '110' },
 
-         { label: '病人姓名', prop: 'patientName', width: '90' },
 
-         { label: '性别', prop: 'sex', width: '80' },
 
-         { label: '手机号', prop: 'mobile', width: '130' },
 
-         { label: '身份证号', prop: 'idcard', width: '170' },
 
-         { label: '费别', prop: 'rateTypeName', width: '90' },
 
-         { label: '建床科室', prop: 'sickVisitDeptName', width: '90' },
 
-         { label: '护理等级', prop: 'sickTendLevelName', width: '90' },
 
-         { label: '病情', prop: 'sickStateName', width: '110' },
 
-         { label: '建床诊断', prop: 'sickDiagnoseCodeName', width: '110' },
 
-         { label: '建床日期', prop: 'buildingTime', width: '170' },
 
-         { label: '建床天数', prop: 'budildDays', width: '90' },
 
-         { label: '撤床日期', prop: 'withdrawalTime', width: '130' },
 
-         { label: '撤床诊断', prop: 'bedWithdrawDiagnoseName', width: '130' },
 
-         { label: '转归情况', prop: 'turnOver', width: '110' }
 
-       ],
 
-       dialogShow: false,
 
-       settlementInfo: {
 
-         name: '黄小蕾',
 
-         yibao: 'dk',
 
-         pay: '1049'
 
-       },
 
-       dialogTable: [],
 
-       dialogHeader: [
 
-         { label: '结算时间', prop: 'SETTLE_TIME', width: '160' },
 
-         { label: '结算状态', prop: 'SETTLE_STATUS_NAME', width: '80' },
 
-         { label: '金额', prop: 'COST', width: '80' },
 
-         { label: '自付', prop: 'CHARGE', width: '80' },
 
-         { label: '优惠金额', prop: 'PREFER_PAYMENT', width: '80' },
 
-         { label: '减免金额', prop: 'DERATE_PAYMENT', width: '80' },
 
-         { label: '单位支付', prop: 'COMPANY_PAYMENT', width: '80' },
 
-         { label: '医保支付', prop: 'INSUR_PAYMENT', width: '80' },
 
-         { label: '结算总预交金', prop: 'SETTLE_SUM_PREPAY', width: '120' },
 
-         { label: '结算时收退款', prop: 'SETTLE_SICK_PREPAY', width: '120' },
 
-         { label: '结算后余额', prop: 'SETTLE_SICK_BALANCE', width: '120' },
 
-         { label: '结算号', prop: 'SETTLE_NO', width: '80' },
 
-         { label: '就诊科室', prop: 'VISIT_DEPT_NAME', width: '100' },
 
-         { label: '收费科室', prop: 'SETTLE_DEPT_NAME', width: '100' }
 
-       ],
 
-       page: 1,
 
-       size: 10,
 
-       total: 0
 
-     }
 
-   },
 
-   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)
 
-       }
 
-     },
 
-     getList() {
 
-       var vm = this
 
-       this.loading = true
 
-       var params = {
 
-         ...this.form,
 
-         page: this.page,
 
-         pageSize: this.size
 
-       }
 
-       if (this.yearType == '1') {
 
-         params.startDate = this.chooseYear + '-01-01 00:00'
 
-         params.endDate = this.chooseYear + '-12-31 23:59'
 
-       } else {
 
-         if (this.chooseTime) {
 
-           params.startDate = this.chooseTime[0] + ' 00:00'
 
-           params.endDate = this.chooseTime[1]+ ' 23:59'
 
-         }
 
-       }
 
-       httpRequest.get('statistics/bed/getPatientFamilyBedRecordStatistics', { data: params }).then(function (res) {
 
-         if (res.status == 200) {
 
-           vm.tableData = res.detailModelList
 
-           vm.total = res.totalCount
 
-         }
 
-         vm.loading = false
 
-       })
 
-     },
 
-     queryDate() {
 
-       this.page = 1
 
-       this.getList()
 
-     },
 
-     exportTable() {
 
-       var vm = this
 
-       var params = {
 
-         ...this.form,
 
-         page: this.page,
 
-         pageSize: this.size
 
-       }
 
-       if (this.yearType == '1') {
 
-         params.startDate = this.chooseYear + '-01-01 00:00'
 
-         params.endDate = this.chooseYear + '-12-31 23:59'
 
-       } else {
 
-         if (this.chooseTime) {
 
-           params.startDate = this.chooseTime[0] + ' 00:00'
 
-           params.endDate = this.chooseTime[1]+ ' 23:59'
 
-         }
 
-       }
 
-       this.exportLoading = true
 
-       var fileName = `患者情况${new Date().getTime()}.xls`
 
-       httpRequest.downLoadFileForAjax('statistics/bed/exportGatientFamilyBedRecordStatistics', fileName, params).then(function () {
 
-         vm.exportLoading = false
 
-       })
 
-     },
 
-     eliminateClick() {
 
-       this.form = {
 
-         turnOver: ""
 
-       }
 
-       this.yearType = '1'
 
-       this.chooseYear = new Date().getFullYear()
 
-       this.chooseTime = null
 
-     },
 
-     closeDialog() {
 
-       this.dialogShow = false
 
-     },
 
-     previewRecord(row) {
 
-       var vm = this
 
-       this.dialogShow = true
 
-       vm.dialogTable = []
 
-       vm.settlementInfo = {}
 
-       // doctor/familyBed/getFamilyBedSettleRecord?bedRecordCode=008d17ac9111439fab54f27c4e7f8376
 
-       httpRequest.get('doctor/familyBed/getFamilyBedSettleRecord', { data: { bedRecordCode: row.code } }).then(function (res) {
 
-         if (res.status == 200) {
 
-           vm.dialogTable = res.data
 
-           var pay = 0
 
-           
 
-           for(var item of res.data){
 
-             pay += item.COST
 
-           }
 
-           vm.settlementInfo = {
 
-             name: row.patientName,
 
-             yibao: row.cardNo,
 
-             pay: pay
 
-           }
 
-         }
 
-       })
 
-     },
 
-     getDictData() {
 
-       var vm = this
 
-       statisticAPI.getDictByDictName({ name: 'jkcopd_disease_conversion' }).then(function (res) {
 
-         vm.turnOverOptions = [{ value: '全部', code:'' }]
 
-         vm.turnOverOptions = vm.turnOverOptions.concat(res.list)
 
-       })
 
-     },
 
-     handleCurrentChange(val) {
 
-       this.page = val
 
-       this.getList()
 
-     },
 
-     handleSizeChange(val) {
 
-       this.size = val
 
-       this.getList()
 
-     }
 
-   },
 
-   mounted() {
 
-     this.initTime()
 
-     this.getDictData()
 
-     this.getList()
 
-   }
 
- })
 
 
  |