|
@ -61,10 +61,10 @@ Vue.component('copd-serve-num', {
|
|
|
tabledata: [],
|
|
|
tableHeader: [
|
|
|
{ label: '地区', prop: 'name', width: '90' },
|
|
|
{ label: '总患者人数', prop: 'sex', width: '90' },
|
|
|
{ label: '计划服务人数', prop: 'age', width: '90' },
|
|
|
{ label: '已服务人数', prop: 'mobile', width: '90' },
|
|
|
{ label: '服务完成度', prop: 'idcard', width: '90' }
|
|
|
{ label: '总患者人数', prop: 'patientNum', width: '90' },
|
|
|
{ label: '计划服务人数', prop: 'planNum', width: '90' },
|
|
|
{ label: '已服务人数', prop: 'serviceNum', width: '90' },
|
|
|
{ label: '服务完成度', prop: 'serviceProgress', width: '90' }
|
|
|
],
|
|
|
radio: '1',
|
|
|
fileList: [],
|
|
@ -83,6 +83,14 @@ Vue.component('copd-serve-num', {
|
|
|
},
|
|
|
|
|
|
methods: {
|
|
|
gotoDownLoad() {
|
|
|
const a = document.createElement('a')
|
|
|
a.style.display = 'none'
|
|
|
a.download = '模板.xlsx'
|
|
|
a.href = './template.xls'
|
|
|
a.target = '_blank'
|
|
|
a.click()
|
|
|
},
|
|
|
hospitalList() {
|
|
|
var vm = this
|
|
|
statisticAPI.hospitalList({ queryArea: vm.userRoleCode }).then(function (res) {
|
|
@ -232,31 +240,12 @@ Vue.component('copd-serve-num', {
|
|
|
exportTable() {
|
|
|
var vm = this
|
|
|
vm.daLoading = true
|
|
|
// var quotaStrs= this.bubbleSort(this.quotaStrArr)
|
|
|
this.quotaStrArr.sort(function (a, b) {
|
|
|
return a - b
|
|
|
})
|
|
|
var params = {
|
|
|
startTime: this.radio == 1 ? this.chooseYear + '-01-01' : this.startTime,
|
|
|
endTime: this.radio == 1 ? this.chooseYear + '-12-31' : this.endTime,
|
|
|
quotaStr: this.quotaStrArr.join(','),
|
|
|
range: this.rangeCode,
|
|
|
area: this.areaCode == '350200' ? '' : this.areaCode,
|
|
|
hospital: this.communityCode,
|
|
|
page: 1,
|
|
|
size: 50,
|
|
|
sex: this.sex,
|
|
|
firstVisitType: this.firstVisitType,
|
|
|
hasLung: this.hasLung,
|
|
|
hasCt: this.hasCt,
|
|
|
hasx: this.hasx,
|
|
|
hasBloodGas: this.hasBloodGas,
|
|
|
hasSmoke: this.hasSmoke,
|
|
|
hasDrink: this.hasDrink,
|
|
|
diseaseConversion: this.diseaseConversion,
|
|
|
age: this.age
|
|
|
year: this.chooseYear,
|
|
|
range: 1 || this.rangeCode,
|
|
|
area: this.areaCode == '350200' ? '' : this.areaCode
|
|
|
}
|
|
|
statisticAPI.exportManageInfo(params, '管理情况.xls').then(function (res) {
|
|
|
statisticAPI.exportServiceProgress(params, '服务人数配置及进度查询.xls').then(function (res) {
|
|
|
vm.daLoading = false
|
|
|
vm.$message({
|
|
|
message: '导出成功!',
|
|
@ -319,7 +308,26 @@ Vue.component('copd-serve-num', {
|
|
|
this.month = ''
|
|
|
}
|
|
|
},
|
|
|
search() {},
|
|
|
search() {
|
|
|
var vm = this
|
|
|
vm.daLoading = true
|
|
|
var params = {
|
|
|
year: this.chooseYear,
|
|
|
range: 1 || this.rangeCode,
|
|
|
area: this.areaCode == '350200' ? '' : this.areaCode
|
|
|
}
|
|
|
statisticAPI.getServiceProgress(params).then(function (res) {
|
|
|
vm.daLoading = false
|
|
|
if (res.status == 200) {
|
|
|
vm.tabledata = res.detailModelList
|
|
|
vm.totalCount = res.totalCount
|
|
|
vm.totalPage = res.totalPage
|
|
|
} else {
|
|
|
vm.$message.error(res.msg)
|
|
|
}
|
|
|
console.log(res, 'llllllllllllllllllllllllllllllll')
|
|
|
})
|
|
|
},
|
|
|
close(type) {
|
|
|
this.reset(type)
|
|
|
this.isProgressShow = false
|
|
@ -347,7 +355,7 @@ Vue.component('copd-serve-num', {
|
|
|
formData.append('file', vm.file)
|
|
|
// vm.initProgress()
|
|
|
httpRequest
|
|
|
.post('doctor/jkCopd/importExcel', {
|
|
|
.post('doctor/jkCopd/importPlanExcel', {
|
|
|
data: formData,
|
|
|
cache: false, //上传文件无需缓存
|
|
|
processData: false, //用于对data参数进行序列化处理 这里必须false
|
|
@ -355,10 +363,7 @@ Vue.component('copd-serve-num', {
|
|
|
})
|
|
|
.then(function (res) {
|
|
|
if (res.status == 200) {
|
|
|
vm.getJkCopdPatientPage()
|
|
|
vm.dicName.forEach(function (item) {
|
|
|
vm.getDictByDictName(item)
|
|
|
})
|
|
|
vm.search()
|
|
|
vm.daLoading = false
|
|
|
vm.isShow = false
|
|
|
vm.$message({
|
|
@ -407,6 +412,7 @@ Vue.component('copd-serve-num', {
|
|
|
// vm.receivingHospitalList = [{code:this.docInfo.hospital,name:this.docInfo.hospitalName}]
|
|
|
// this.hospital = this.docInfo.hospital
|
|
|
}
|
|
|
this.search()
|
|
|
|
|
|
EventBus.$on('copd-record-filter-change', function (event) {
|
|
|
vm.quotaStrArr = event
|