|
@ -230,7 +230,7 @@ Vue.component('breast-cancer-patient', {
|
|
|
},
|
|
|
init() {
|
|
|
var selectedRole = JSON.parse(sessionStorage.getItem('selectedRole'))
|
|
|
if (selectedRole.code.indexOf('350200') > -1) {
|
|
|
if (selectedRole.code.indexOf('350200') > -1 || selectedRole.code.indexOf('8d94ce907e4d4356b68f6c5d4d0d6bc9') > -1) {
|
|
|
this.level = 1 // 市卫健委
|
|
|
this.areaOptions = [
|
|
|
{ label: '厦门市', value: '' },
|
|
@ -251,9 +251,7 @@ Vue.component('breast-cancer-patient', {
|
|
|
this.getHospital(selectedRole.code)
|
|
|
} else {
|
|
|
this.level = 3 // 社区管理
|
|
|
this.rangeOptions = [
|
|
|
{ label: '机构', value: '2' }
|
|
|
]
|
|
|
this.rangeOptions = [{ label: '机构', value: '2' }]
|
|
|
this.areaOptions = [{ label: selectedRole.name.substring(0, 3), value: selectedRole.code.substring(0, 6) }]
|
|
|
this.hospitalOptions = [{ name: selectedRole.name, code: selectedRole.code }]
|
|
|
this.form = {
|
|
@ -279,21 +277,20 @@ Vue.component('breast-cancer-patient', {
|
|
|
resetArea() {
|
|
|
if (this.level == 1) {
|
|
|
this.areaOptions.push({ label: '其他', value: 'other' })
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
getList() {
|
|
|
var vm = this
|
|
|
this.loading = true
|
|
|
var params = {
|
|
|
...this.form,
|
|
|
|
|
|
...this.form
|
|
|
}
|
|
|
if(this.form.range==3){
|
|
|
if(this.form.town&&this.form.town!='other'){
|
|
|
params.town=this.areaOptions.find(item=>item.value==this.form.town).label
|
|
|
if (this.form.range == 3) {
|
|
|
if (this.form.town && this.form.town != 'other') {
|
|
|
params.town = this.areaOptions.find(item => item.value == this.form.town).label
|
|
|
}
|
|
|
}
|
|
|
console.log('22222222222222222222',vm)
|
|
|
console.log('22222222222222222222', vm)
|
|
|
vm.tableData = []
|
|
|
if (this.chooseTime) {
|
|
|
params.startTime = this.chooseTime[0]
|
|
@ -353,7 +350,7 @@ Vue.component('breast-cancer-patient', {
|
|
|
this.yearType = '1'
|
|
|
this.chooseYear = new Date().getFullYear()
|
|
|
this.chooseTime = null
|
|
|
console.log('1111111111111111',this)
|
|
|
console.log('1111111111111111', this)
|
|
|
const now = new Date()
|
|
|
// 获取当前日期
|
|
|
const endDate = new Date()
|
|
@ -372,8 +369,8 @@ Vue.component('breast-cancer-patient', {
|
|
|
type: 5,
|
|
|
code: code
|
|
|
}
|
|
|
if(!code){
|
|
|
params={
|
|
|
if (!code) {
|
|
|
params = {
|
|
|
type: 6,
|
|
|
code: '350200'
|
|
|
}
|
|
@ -412,7 +409,7 @@ Vue.component('breast-cancer-patient', {
|
|
|
var params = {
|
|
|
...this.query,
|
|
|
range: (this.form && this.form.range) || '',
|
|
|
town: this.form.range==3?row.orgCode: (this.form && this.form.town) || ''
|
|
|
town: this.form.range == 3 ? row.orgCode : (this.form && this.form.town) || ''
|
|
|
}
|
|
|
vm.dialogTableData = []
|
|
|
if (this.chooseTime) {
|
|
@ -430,11 +427,11 @@ Vue.component('breast-cancer-patient', {
|
|
|
caseDataList() {
|
|
|
var vm = this
|
|
|
vm.dialogLoading = true
|
|
|
this.query.type = this.query.type.substring(0,this.query.type.length-1)+this.query.status
|
|
|
this.query.type = this.query.type.substring(0, this.query.type.length - 1) + this.query.status
|
|
|
var params = {
|
|
|
...this.query,
|
|
|
range: (this.form && this.form.range) || '',
|
|
|
town: this.form.range==3?row.orgCode: (this.form && this.form.town) || '',
|
|
|
town: this.form.range == 3 ? row.orgCode : (this.form && this.form.town) || '',
|
|
|
hospital: (this.form && this.form.hospital) || ''
|
|
|
}
|
|
|
vm.dialogTableData = []
|
|
@ -454,10 +451,10 @@ Vue.component('breast-cancer-patient', {
|
|
|
page: 1,
|
|
|
size: 10,
|
|
|
total: 0,
|
|
|
type:this.query.type,
|
|
|
orgCode:this.query.orgCode,
|
|
|
type: this.query.type,
|
|
|
orgCode: this.query.orgCode
|
|
|
}
|
|
|
this.visible=false
|
|
|
this.visible = false
|
|
|
},
|
|
|
dialogSearchFn() {
|
|
|
this.caseDataList()
|
|
@ -490,14 +487,14 @@ Vue.component('breast-cancer-patient', {
|
|
|
})
|
|
|
},
|
|
|
dialogResetFn() {
|
|
|
console.log('22222222222222',this)
|
|
|
|
|
|
console.log('22222222222222', this)
|
|
|
|
|
|
this.query = {
|
|
|
page: 1,
|
|
|
size: 10,
|
|
|
total: 0,
|
|
|
type:this.query.type,
|
|
|
orgCode:this.query.orgCode,
|
|
|
type: this.query.type,
|
|
|
orgCode: this.query.orgCode
|
|
|
}
|
|
|
this.caseDataList()
|
|
|
},
|