|
|
@ -54,6 +54,73 @@ |
|
|
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
</div> |
|
|
|
<div> |
|
|
|
<el-form-item label="所属房屋"> |
|
|
|
<div class="resi-cell-value"> |
|
|
|
<div class="resi-cell-col"> |
|
|
|
<el-form-item prop="villageId"> |
|
|
|
<el-select v-model.trim="formData.villageId" |
|
|
|
placeholder="小区" |
|
|
|
size="small" |
|
|
|
clearable |
|
|
|
class="resi-cell-select" |
|
|
|
@change="handleChangeV"> |
|
|
|
<el-option v-for="item in optionsV" |
|
|
|
:key="item.value" |
|
|
|
:label="item.label" |
|
|
|
:value="item.value"> |
|
|
|
</el-option> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item prop="buildId"> |
|
|
|
<el-select v-model.trim="formData.buildId" |
|
|
|
placeholder="楼号" |
|
|
|
:disabled="!this.formData.villageId" |
|
|
|
size="small" |
|
|
|
clearable |
|
|
|
class="resi-cell-select resi-cell-select-middle list_item_width_1" |
|
|
|
@change="handleChangeB"> |
|
|
|
<el-option v-for="item in optionsB" |
|
|
|
:key="item.value" |
|
|
|
:label="item.label" |
|
|
|
:value="item.value"> |
|
|
|
</el-option> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item prop="unitId"> |
|
|
|
<el-select v-model.trim="formData.unitId" |
|
|
|
placeholder="单元" |
|
|
|
size="small" |
|
|
|
:disabled="!this.formData.buildId" |
|
|
|
clearable |
|
|
|
class="resi-cell-select resi-cell-select-middle list_item_width_1" |
|
|
|
@change="handleChangeD"> |
|
|
|
<el-option v-for="item in optionsD" |
|
|
|
:key="item.value" |
|
|
|
:label="item.label" |
|
|
|
:value="item.value"> |
|
|
|
</el-option> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item prop="homeId"> |
|
|
|
<el-select v-model.trim="formData.homeId" |
|
|
|
placeholder="房号" |
|
|
|
:disabled="!this.formData.unitId" |
|
|
|
size="small" |
|
|
|
clearable |
|
|
|
class="resi-cell-select resi-cell-select-middle list_item_width_1"> |
|
|
|
<el-option v-for="item in optionsH" |
|
|
|
:key="item.value" |
|
|
|
:label="item.label" |
|
|
|
:value="item.value"> |
|
|
|
</el-option> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
</el-form-item> |
|
|
|
<el-button style="margin-left:30px" |
|
|
|
size="small" |
|
|
|
class="diy-button--search" |
|
|
@ -140,18 +207,31 @@ |
|
|
|
label="身份证" |
|
|
|
min-width="170"> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="allName" |
|
|
|
header-align="center" |
|
|
|
align="center" |
|
|
|
label="所属房屋" |
|
|
|
min-width="170"> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="vaccinationCount" |
|
|
|
header-align="center" |
|
|
|
align="center" |
|
|
|
label="接种针次" |
|
|
|
width="100"> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="reason" |
|
|
|
header-align="center" |
|
|
|
align="center" |
|
|
|
show-overflow-tooltip |
|
|
|
label="关注原因" |
|
|
|
min-width="230"> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="remark" |
|
|
|
header-align="center" |
|
|
|
align="center" |
|
|
|
show-overflow-tooltip |
|
|
|
label="备注" |
|
|
|
min-width="230"> |
|
|
|
min-width="200"> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="lastInformTime" |
|
|
|
header-align="center" |
|
|
@ -319,7 +399,16 @@ export default { |
|
|
|
mobile: '', |
|
|
|
idCard: '', |
|
|
|
vaccinationCount: '', |
|
|
|
villageId: '', |
|
|
|
buildId: '', |
|
|
|
unitId: '', |
|
|
|
homeId: '' |
|
|
|
}, |
|
|
|
optionsV: [], |
|
|
|
optionsB: [], |
|
|
|
optionsH: [], |
|
|
|
optionsD: [], |
|
|
|
|
|
|
|
veroNumList: [], |
|
|
|
|
|
|
|
tableData: [], |
|
|
@ -345,6 +434,8 @@ export default { |
|
|
|
this.$refs['ref_table'].doLayout() |
|
|
|
}, |
|
|
|
async mounted () { |
|
|
|
const { user } = this.$store.state |
|
|
|
this.agencyId = user.agencyId |
|
|
|
for (let i = 0; i < 11; i++) { |
|
|
|
let obj = { |
|
|
|
value: i + '', |
|
|
@ -352,7 +443,7 @@ export default { |
|
|
|
} |
|
|
|
this.veroNumList.push(obj) |
|
|
|
} |
|
|
|
|
|
|
|
this.getValiheList() |
|
|
|
await this.loadTable() |
|
|
|
}, |
|
|
|
|
|
|
@ -381,19 +472,121 @@ export default { |
|
|
|
|
|
|
|
this.analysisTableSelection() |
|
|
|
|
|
|
|
// this.tableData.forEach(item => { |
|
|
|
// if (item.time) { |
|
|
|
// let timeArray = item.time.split(' ') |
|
|
|
// item.time = timeArray[0] |
|
|
|
// } |
|
|
|
this.tableData.forEach(item => { |
|
|
|
if (!item.allName) { |
|
|
|
item.allName = '--' |
|
|
|
} |
|
|
|
item.roomShow = '' |
|
|
|
if (!item.villageName && !item.buildName && !item.unitName && !item.homeName) { |
|
|
|
item.roomShow = '--' |
|
|
|
} else { |
|
|
|
if (item.villageName) { |
|
|
|
item.roomShow = item.roomShow + item.villageName |
|
|
|
} |
|
|
|
if (item.buildName) { |
|
|
|
item.roomShow = item.roomShow + item.buildName |
|
|
|
} |
|
|
|
if (item.unitName) { |
|
|
|
item.roomShow = item.roomShow + item.unitName |
|
|
|
} |
|
|
|
if (item.villageName) { |
|
|
|
item.roomShow = item.roomShow + item.homeName |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
// }); |
|
|
|
|
|
|
|
}); |
|
|
|
} else { |
|
|
|
this.$message.error(msg) |
|
|
|
} |
|
|
|
this.tableLoading = false |
|
|
|
}, |
|
|
|
|
|
|
|
handleChangeV (val) { |
|
|
|
console.log('val', val) |
|
|
|
this.formData.buildId = '' |
|
|
|
this.formData.unitId = '' |
|
|
|
this.formData.homeId = '' |
|
|
|
this.getBuildList() |
|
|
|
this.getUniList() |
|
|
|
this.getHouseList() |
|
|
|
}, |
|
|
|
handleChangeB (val) { |
|
|
|
console.log('val', val) |
|
|
|
this.formData.unitId = '' |
|
|
|
this.formData.homeId = '' |
|
|
|
this.getUniList() |
|
|
|
this.getHouseList() |
|
|
|
}, |
|
|
|
handleChangeD () { |
|
|
|
this.formData.homeId = '' |
|
|
|
this.getHouseList() |
|
|
|
}, |
|
|
|
|
|
|
|
getValiheList () { |
|
|
|
const { user } = this.$store.state |
|
|
|
this.$http |
|
|
|
.post('/gov/org/icneighborhood/neighborhoodoption', { gridId: this.formData.GRID_ID, agencyId: user.agencyId }) |
|
|
|
.then(({ data: res }) => { |
|
|
|
if (res.code !== 0) { |
|
|
|
return this.$message.error(res.msg) |
|
|
|
} else { |
|
|
|
console.log('获取查询详情成功', res.data) |
|
|
|
this.optionsV = res.data |
|
|
|
} |
|
|
|
}) |
|
|
|
.catch(() => { |
|
|
|
return this.$message.error('网络错误') |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
getBuildList () { |
|
|
|
this.$http |
|
|
|
.post('/gov/org/icbuilding/buildingoption', { neighborHoodId: this.formData.villageId }) |
|
|
|
.then(({ data: res }) => { |
|
|
|
if (res.code !== 0) { |
|
|
|
return this.$message.error(res.msg) |
|
|
|
} else { |
|
|
|
console.log('获取查询详情成功', res.data) |
|
|
|
this.optionsB = res.data |
|
|
|
} |
|
|
|
}) |
|
|
|
.catch(() => { |
|
|
|
return this.$message.error('网络错误') |
|
|
|
}) |
|
|
|
}, |
|
|
|
getUniList () { |
|
|
|
this.$http |
|
|
|
.post('/gov/org/icbuildingunit/unitoption', { buildingId: this.formData.buildId }) |
|
|
|
.then(({ data: res }) => { |
|
|
|
if (res.code !== 0) { |
|
|
|
return this.$message.error(res.msg) |
|
|
|
} else { |
|
|
|
console.log('获取查询详情成功', res.data) |
|
|
|
this.optionsD = res.data |
|
|
|
} |
|
|
|
}) |
|
|
|
.catch(() => { |
|
|
|
return this.$message.error('网络错误') |
|
|
|
}) |
|
|
|
}, |
|
|
|
getHouseList () { |
|
|
|
this.$http |
|
|
|
.post('/gov/org/ichouse/houseoption', { unitId: this.formData.unitId }) |
|
|
|
.then(({ data: res }) => { |
|
|
|
if (res.code !== 0) { |
|
|
|
return this.$message.error(res.msg) |
|
|
|
} else { |
|
|
|
console.log('获取查询详情成功', res.data) |
|
|
|
this.optionsH = res.data |
|
|
|
} |
|
|
|
}) |
|
|
|
.catch(() => { |
|
|
|
return this.$message.error('网络错误') |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
handleSelectTable (selection, row) { |
|
|
|
|
|
|
|
row.isSel = !row.isSel |
|
|
@ -761,7 +954,7 @@ export default { |
|
|
|
}, |
|
|
|
computed: { |
|
|
|
tableHeight () { |
|
|
|
return this.$store.state.inIframe ? this.clientHeight - 360 + this.iframeHeight : this.clientHeight - 360 |
|
|
|
return this.$store.state.inIframe ? this.clientHeight - 415 + this.iframeHeight : this.clientHeight - 415 |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|