|
@ -23,11 +23,12 @@ Vue.component('lasc-patient', {
|
|
serviceRecordVisable: false,
|
|
serviceRecordVisable: false,
|
|
yearType: '1',
|
|
yearType: '1',
|
|
chooseYear: null,
|
|
chooseYear: null,
|
|
|
|
chooseTime1:null,
|
|
chooseTime: null,
|
|
chooseTime: null,
|
|
formDialogVisible: true,
|
|
formDialogVisible: true,
|
|
rangeOptions: [
|
|
rangeOptions: [
|
|
{ label: '区', value: 'town' },
|
|
|
|
{ label: '社区', value: 'hospital' }
|
|
|
|
|
|
{ label: '区', value: '1' },
|
|
|
|
{ label: '社区', value: '2' }
|
|
],
|
|
],
|
|
areaOptions: [
|
|
areaOptions: [
|
|
{ label: '思明区', value: '350203' },
|
|
{ label: '思明区', value: '350203' },
|
|
@ -40,7 +41,7 @@ Vue.component('lasc-patient', {
|
|
hospitalOptions: [],
|
|
hospitalOptions: [],
|
|
teamOptions: [],
|
|
teamOptions: [],
|
|
form: {
|
|
form: {
|
|
range: 'town'
|
|
|
|
|
|
range: '1'
|
|
},
|
|
},
|
|
loading: false,
|
|
loading: false,
|
|
exportLoading: false,
|
|
exportLoading: false,
|
|
@ -99,21 +100,20 @@ Vue.component('lasc-patient', {
|
|
this.level = 2 // 区管理
|
|
this.level = 2 // 区管理
|
|
this.areaOptions = [{ label: selectedRole.name.substring(0, 3), value: selectedRole.code }]
|
|
this.areaOptions = [{ label: selectedRole.name.substring(0, 3), value: selectedRole.code }]
|
|
this.form = {
|
|
this.form = {
|
|
range: 'town',
|
|
|
|
area: selectedRole.code
|
|
|
|
|
|
range: '1',
|
|
|
|
town: selectedRole.code
|
|
}
|
|
}
|
|
this.getHospital(selectedRole.code)
|
|
this.getHospital(selectedRole.code)
|
|
} else {
|
|
} else {
|
|
this.level = 3 // 社区管理
|
|
this.level = 3 // 社区管理
|
|
this.rangeOptions = [
|
|
this.rangeOptions = [
|
|
{ label: '社区', value: 'hospital' },
|
|
|
|
{ label: '团队', value: 'team' }
|
|
|
|
|
|
{ label: '社区', value: '2' }
|
|
]
|
|
]
|
|
this.areaOptions = [{ label: selectedRole.name.substring(0, 3), value: selectedRole.code.substring(0, 6) }]
|
|
this.areaOptions = [{ label: selectedRole.name.substring(0, 3), value: selectedRole.code.substring(0, 6) }]
|
|
this.hospitalOptions = [{ name: selectedRole.name, code: selectedRole.code }]
|
|
this.hospitalOptions = [{ name: selectedRole.name, code: selectedRole.code }]
|
|
this.form = {
|
|
this.form = {
|
|
range: 'hospital',
|
|
|
|
area: selectedRole.code.substring(0, 6),
|
|
|
|
|
|
range: '2',
|
|
|
|
town: selectedRole.code.substring(0, 6),
|
|
hospital: selectedRole.code
|
|
hospital: selectedRole.code
|
|
}
|
|
}
|
|
this.getTeam(selectedRole.code)
|
|
this.getTeam(selectedRole.code)
|
|
@ -133,7 +133,7 @@ Vue.component('lasc-patient', {
|
|
},
|
|
},
|
|
resetArea() {
|
|
resetArea() {
|
|
if (this.level == 1) {
|
|
if (this.level == 1) {
|
|
delete this.form.area
|
|
|
|
|
|
delete this.form.town
|
|
delete this.form.hospital
|
|
delete this.form.hospital
|
|
delete this.form.team
|
|
delete this.form.team
|
|
} else if (this.level == 2) {
|
|
} else if (this.level == 2) {
|
|
@ -154,15 +154,20 @@ Vue.component('lasc-patient', {
|
|
var params = {
|
|
var params = {
|
|
...this.form,
|
|
...this.form,
|
|
page: this.page,
|
|
page: this.page,
|
|
size: this.size
|
|
|
|
|
|
size: this.size,
|
|
|
|
timeType: this.yearType,
|
|
}
|
|
}
|
|
if (this.yearType == '1') {
|
|
|
|
params.startDate = this.chooseYear + '-01-01'
|
|
|
|
params.endDate = this.chooseYear + '-12-31'
|
|
|
|
} else {
|
|
|
|
if (this.chooseTime) {
|
|
|
|
params.startDate = this.chooseTime[0]
|
|
|
|
params.endDate = this.chooseTime[1]
|
|
|
|
|
|
console.log('11111111111111111',this)
|
|
|
|
if (this.yearType && this.yearType==1) {
|
|
|
|
if(this.chooseTime){
|
|
|
|
params.startTime = this.chooseTime[0]
|
|
|
|
params.endTime = this.chooseTime[1]
|
|
|
|
}
|
|
|
|
|
|
|
|
} else if(this.yearType && this.yearType==2) {
|
|
|
|
if (this.chooseTime1) {
|
|
|
|
params.startTime = this.chooseTime1[0]
|
|
|
|
params.endTime = this.chooseTime1[1]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
@ -188,15 +193,20 @@ Vue.component('lasc-patient', {
|
|
var params = {
|
|
var params = {
|
|
...this.form,
|
|
...this.form,
|
|
page: this.page,
|
|
page: this.page,
|
|
pageSize: this.size
|
|
|
|
|
|
size: this.size,
|
|
|
|
timeType: this.yearType,
|
|
}
|
|
}
|
|
if (this.yearType == '1') {
|
|
|
|
params.startDate = this.chooseYear + '-01-01'
|
|
|
|
params.endDate = this.chooseYear + '-12-31'
|
|
|
|
} else {
|
|
|
|
if (this.chooseTime) {
|
|
|
|
params.startDate = this.chooseTime[0]
|
|
|
|
params.endDate = this.chooseTime[1]
|
|
|
|
|
|
console.log('11111111111111111',this)
|
|
|
|
if (this.yearType && this.yearType==1) {
|
|
|
|
if(this.chooseTime){
|
|
|
|
params.startTime = this.chooseTime[0]
|
|
|
|
params.endTime = this.chooseTime[1]
|
|
|
|
}
|
|
|
|
|
|
|
|
} else if(this.yearType && this.yearType==2) {
|
|
|
|
if (this.chooseTime1) {
|
|
|
|
params.startTime = this.chooseTime1[0]
|
|
|
|
params.endTime = this.chooseTime1[1]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
this.exportLoading = true
|
|
this.exportLoading = true
|