|
@ -109,6 +109,7 @@ Vue.component('lasc-progress', {
|
|
|
{ label: '同安区', value: '350212' },
|
|
|
{ label: '翔安区', value: '350213' }
|
|
|
]
|
|
|
this.getHospital()
|
|
|
} else if (selectedRole.code.length == 6) {
|
|
|
this.level = 2 // 区管理
|
|
|
this.areaOptions = [{ label: selectedRole.name.substring(0, 3), value: selectedRole.code }]
|
|
@ -207,7 +208,7 @@ Vue.component('lasc-progress', {
|
|
|
params.startTime = this.chooseTime[0]
|
|
|
params.endTime = this.chooseTime[1]
|
|
|
}
|
|
|
|
|
|
|
|
|
var fileName = `两癌筛查进度统计${new Date().getTime()}.xls`
|
|
|
httpRequest.downLoadFileForAjax('doctor/twoCancers/count/exportTwoCancerProgress', fileName, params).then(function () {
|
|
|
vm.$message.success('导出成功')
|
|
@ -248,24 +249,42 @@ Vue.component('lasc-progress', {
|
|
|
},
|
|
|
getHospital(code, flag = true) {
|
|
|
var vm = this
|
|
|
if (flag) {
|
|
|
delete this.form.hospital
|
|
|
delete this.form.team
|
|
|
}
|
|
|
var params = {
|
|
|
type: 5,
|
|
|
code: code
|
|
|
// if (flag) {
|
|
|
// delete this.form.hospital
|
|
|
// delete this.form.team
|
|
|
// }
|
|
|
// var params = {
|
|
|
// type: 5,
|
|
|
// code: code
|
|
|
// }
|
|
|
// if (!code) {
|
|
|
// params = {
|
|
|
// type: 6,
|
|
|
// code: '350200'
|
|
|
// }
|
|
|
// }
|
|
|
var data = {
|
|
|
town: code ? code : this.form.town ? this.form.town : '',
|
|
|
hospital: ''
|
|
|
}
|
|
|
if (!code) {
|
|
|
params = {
|
|
|
type: 6,
|
|
|
code: '350200'
|
|
|
|
|
|
httpRequest.get('doctor/twoCancers/count/hospitalList', { data }).then(function (res) {
|
|
|
vm.hospitalOptions = []
|
|
|
// vm.hospitalOptions = vm.hospitalOptions.concat(res.list)
|
|
|
if (res.status == 200) {
|
|
|
vm.hospitalOptions = [{ code: '', name: '全部' }]
|
|
|
res.data.forEach(item => {
|
|
|
vm.hospitalOptions.push({
|
|
|
name: item.hospital_name,
|
|
|
code: item.hospital
|
|
|
})
|
|
|
})
|
|
|
}
|
|
|
}
|
|
|
httpRequest.post('common/district', { data: params }).then(function (res) {
|
|
|
vm.hospitalOptions = [{ code: '', name: '全部' }]
|
|
|
vm.hospitalOptions = vm.hospitalOptions.concat(res.list)
|
|
|
})
|
|
|
// httpRequest.post('common/district', { data: params }).then(function (res) {
|
|
|
// vm.hospitalOptions = [{ code: '', name: '全部' }]
|
|
|
// vm.hospitalOptions = vm.hospitalOptions.concat(res.list)
|
|
|
// })
|
|
|
},
|
|
|
|
|
|
handleCurrentChange(val) {
|
|
@ -297,23 +316,23 @@ Vue.component('lasc-progress', {
|
|
|
} else if (selectedRole.code.length == 6) {
|
|
|
type = 2
|
|
|
}
|
|
|
statisticAPI
|
|
|
.hospitalsByType({
|
|
|
type: type,
|
|
|
code: selectedRole.code
|
|
|
})
|
|
|
.then(function (res) {
|
|
|
if (res.status == 200) {
|
|
|
vm.hospitalOptions = [{ name: '全部', code: '' }]
|
|
|
res.list.forEach(function (v) {
|
|
|
vm.hospitalOptions.push(v)
|
|
|
})
|
|
|
console.log('22222222222222222222', vm)
|
|
|
}
|
|
|
})
|
|
|
.catch(function (err) {
|
|
|
console.log(err, 'Errr')
|
|
|
})
|
|
|
// statisticAPI
|
|
|
// .hospitalsByType({
|
|
|
// type: type,
|
|
|
// code: selectedRole.code
|
|
|
// })
|
|
|
// .then(function (res) {
|
|
|
// if (res.status == 200) {
|
|
|
// vm.hospitalOptions = [{ name: '全部', code: '' }]
|
|
|
// res.list.forEach(function (v) {
|
|
|
// vm.hospitalOptions.push(v)
|
|
|
// })
|
|
|
// console.log('22222222222222222222', vm)
|
|
|
// }
|
|
|
// })
|
|
|
// .catch(function (err) {
|
|
|
// console.log(err, 'Errr')
|
|
|
// })
|
|
|
}
|
|
|
},
|
|
|
|