|
@ -160,10 +160,17 @@ Vue.component('copd-patient-record', {
|
|
|
vm.getDictByDictName(item)
|
|
|
})
|
|
|
setTimeout(function(){
|
|
|
vm.getJkCopdPatientPage()
|
|
|
// vm.getJkCopdPatientPage()
|
|
|
},200)
|
|
|
|
|
|
},
|
|
|
watch:{
|
|
|
rangeCode(nv){
|
|
|
if(nv == 'hospital'){
|
|
|
this.initScope(5)
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
destroyed() {
|
|
|
EventBus.$off('copd-reset-select')
|
|
|
EventBus.$off('copd-reset-save')
|
|
@ -313,7 +320,7 @@ Vue.component('copd-patient-record', {
|
|
|
homeAPI.getDistrict(params).then(function (res) {
|
|
|
if (res.status == 200) {
|
|
|
vm[param + 'List'] = list.concat(res.list)
|
|
|
vm[param + 'Code'] = vm[param + 'List'][0].code
|
|
|
// vm[param + 'Code'] = vm[param + 'List'][0].code
|
|
|
// console.log(vm.areaList)
|
|
|
} else {
|
|
|
vm.$message.error(res.msg)
|
|
@ -327,6 +334,14 @@ Vue.component('copd-patient-record', {
|
|
|
})
|
|
|
},
|
|
|
exportTable() {
|
|
|
if(this.rangeCode == 'town' && this.areaCode == null){
|
|
|
this.$message.warning("请选择地区")
|
|
|
return
|
|
|
}
|
|
|
if(this.rangeCode == 'hospital' && this.communityCode == null){
|
|
|
this.$message.warning("请选择社区")
|
|
|
return
|
|
|
}
|
|
|
var vm = this
|
|
|
vm.daLoading = true
|
|
|
var params = {
|
|
@ -341,7 +356,7 @@ Vue.component('copd-patient-record', {
|
|
|
isLive: this.isLive,
|
|
|
firstOrg: this.firstOrg,
|
|
|
queryArea: this.areaCode,
|
|
|
queryHospital: this.communityCode,
|
|
|
queryHospital: this.communityCode == null?'':this.communityCode,
|
|
|
}
|
|
|
statisticAPI.exportJkCopdAchives(params, '居民档案.xls').then(function (res) {
|
|
|
vm.daLoading = false
|
|
@ -529,11 +544,13 @@ Vue.component('copd-patient-record', {
|
|
|
doctorName: this.doctorName,
|
|
|
isLive: this.isLive,
|
|
|
queryArea: this.areaCode,
|
|
|
queryHospital: this.communityCode,
|
|
|
firstOrg: this.firstOrg,
|
|
|
startTime: this.chooseYear == '全部' ? '' : this.chooseYear + '-01-01',
|
|
|
endTime: this.chooseYear == '全部' ? '' : this.chooseYear + '-12-31'
|
|
|
}
|
|
|
if(this.rangeCode == 'hospital'){
|
|
|
params.queryHospital = this.communityCode
|
|
|
}
|
|
|
statisticAPI.jkCopdAchivesPage(params).then(function (res) {
|
|
|
vm.totalCount = res.totalCount
|
|
|
vm.totalPage = res.totalPage
|
|
@ -665,6 +682,14 @@ Vue.component('copd-patient-record', {
|
|
|
})
|
|
|
},
|
|
|
standardExport() {
|
|
|
if(this.rangeCode == 'town' && this.areaCode == null){
|
|
|
this.$message.warning("请选择地区")
|
|
|
return
|
|
|
}
|
|
|
if(this.rangeCode == 'hospital' && this.communityCode == null){
|
|
|
this.$message.warning("请选择社区")
|
|
|
return
|
|
|
}
|
|
|
var vm = this
|
|
|
vm.exportStandardLoading = true
|
|
|
var params = {
|
|
@ -677,7 +702,7 @@ Vue.component('copd-patient-record', {
|
|
|
isLive: this.isLive,
|
|
|
queryArea: this.areaCode,
|
|
|
firstOrg: this.firstOrg,
|
|
|
queryHospital: this.communityCode,
|
|
|
queryHospital: this.communityCode == null?'':this.communityCode,
|
|
|
startTime: this.chooseYear == '全部' ? '' : this.chooseYear + '-01-01',
|
|
|
endTime: this.chooseYear == '全部' ? '' : this.chooseYear + '-12-31'
|
|
|
}
|