Browse Source

2222222

shibei_master
dai 3 years ago
parent
commit
4b1eb2fd56
  1. 142
      src/views/modules/base/huji/chusheng/index.vue

142
src/views/modules/base/huji/chusheng/index.vue

@ -13,7 +13,7 @@
<div class="resi-cell-label">所属网格</div> <div class="resi-cell-label">所属网格</div>
<div class="resi-cell-value"> <div class="resi-cell-value">
<el-select <el-select
v-model.trim="form.gridId" v-model.trim="fmData.gridId"
placeholder="请选择" placeholder="请选择"
size="small" size="small"
clearable clearable
@ -36,7 +36,7 @@
<div class="resi-cell-label">所属房屋</div> <div class="resi-cell-label">所属房屋</div>
<div class="resi-cell-value"> <div class="resi-cell-value">
<el-select <el-select
v-model.trim="form.villageId" v-model.trim="fmData.villageId"
placeholder="请选择小区" placeholder="请选择小区"
size="small" size="small"
clearable clearable
@ -53,7 +53,7 @@
</el-option> </el-option>
</el-select> </el-select>
<el-select <el-select
v-model.trim="form.buildId" v-model.trim="fmData.buildId"
placeholder="楼号" placeholder="楼号"
size="small" size="small"
clearable clearable
@ -72,7 +72,7 @@
</el-option> </el-option>
</el-select> </el-select>
<el-select <el-select
v-model.trim="form.unitId" v-model.trim="fmData.unitId"
:disabled="changeBDisabled" :disabled="changeBDisabled"
placeholder="单元" placeholder="单元"
size="small" size="small"
@ -91,7 +91,7 @@
</el-option> </el-option>
</el-select> </el-select>
<el-select <el-select
v-model.trim="form.homeId" v-model.trim="fmData.homeId"
:disabled="changeDDisabled" :disabled="changeDDisabled"
placeholder="房号" placeholder="房号"
size="small" size="small"
@ -158,14 +158,22 @@
</el-form-item> </el-form-item>
<el-form-item label="享受福利" prop="remark"> <el-form-item label="享受福利" prop="remark">
<el-input <el-select
v-model="fmData.remark" v-model.trim="fmData.welfare"
class="resi-cell-input" placeholder="享受福利"
size="small" size="small"
clearable clearable
placeholder="请输入" style="width: 120px"
class="resi-cell-select"
> >
</el-input> <el-option
v-for="item in optionsWelfare"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</el-select>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
@ -230,9 +238,9 @@
class="resi-table" class="resi-table"
:height="maxTableHeight" :height="maxTableHeight"
> >
<el-table-column label="序号" type="index" align="center" width="50" /> <el-table-column label="序号" fixed="left" type="index" align="center" width="50" />
<el-table-column prop="name" label="姓名" align="center"> <el-table-column prop="name" fixed="left" label="姓名" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<a class="name-a" @click="handleWatch(scope.$index)"> <a class="name-a" @click="handleWatch(scope.$index)">
{{ scope.row.name }} {{ scope.row.name }}
@ -249,7 +257,7 @@
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="" prop="home"
label="所属房屋" label="所属房屋"
align="center" align="center"
:show-overflow-tooltip="true" :show-overflow-tooltip="true"
@ -276,10 +284,7 @@
<el-table-column prop="birthplace" align="center" label="出生地"> <el-table-column prop="birthplace" align="center" label="出生地">
</el-table-column> </el-table-column>
<el-table-column align="center" label="出生人父/母姓名"> <el-table-column prop="parentName" align="center" label="出生人父/母姓名">
<template slot-scope="scope">
<span> {{ scope.row.father }} / {{ scope.row.mother }} </span>
</template>
</el-table-column> </el-table-column>
<el-table-column prop="count" align="center" label="胎次"> <el-table-column prop="count" align="center" label="胎次">
@ -396,6 +401,21 @@ export default {
optionsD: [], optionsD: [],
optionsG: [], optionsG: [],
optionsWelfare: [
{
value: "",
label: "全部",
},
{
value: "1",
label: "是",
},
{
value: "0",
label: "否",
},
],
fmData: { fmData: {
gridId: "", gridId: "",
villageId: "", villageId: "",
@ -427,13 +447,13 @@ export default {
}, },
...mapGetters(["clientHeight", "iframeHeight"]), ...mapGetters(["clientHeight", "iframeHeight"]),
changeVDisabled() { changeVDisabled() {
return !this.form.villageId; return !this.fmData.villageId;
}, },
changeBDisabled() { changeBDisabled() {
return !this.form.buildId; return !this.fmData.buildId;
}, },
changeDDisabled() { changeDDisabled() {
return !this.form.unitId; return !this.fmData.unitId;
}, },
}, },
watch: { watch: {
@ -453,30 +473,43 @@ export default {
this.getTableData(); this.getTableData();
}, },
methods: { methods: {
handleChangeGrid(val) { handleClearVillage() {
console.log("val", val);
this.form.villageId = "";
this.form.buildId = ""; this.form.buildId = "";
this.form.homeId = "";
},
handleClearBuild() {
this.form.buildId = "";
this.form.unitId = "";
this.form.homeId = "";
},
handleClearDan() {
this.form.unitId = ""; this.form.unitId = "";
this.form.homeId = ""; this.form.homeId = "";
},
handleChangeGrid(val) {
console.log("val", val);
this.fmData.villageId = "";
this.fmData.buildId = "";
this.fmData.unitId = "";
this.fmData.homeId = "";
this.getValiheList(); this.getValiheList();
}, },
handleChangeV(val) { handleChangeV(val) {
console.log("val", val); console.log("val", val);
this.form.buildId = ""; this.fmData.buildId = "";
this.form.unitId = ""; this.fmData.unitId = "";
this.form.homeId = ""; this.fmData.homeId = "";
this.getBuildList(); this.getBuildList();
}, },
handleChangeB(val) { handleChangeB(val) {
console.log("val", val); console.log("val", val);
this.form.unitId = ""; this.fmData.unitId = "";
this.form.homeId = ""; this.fmData.homeId = "";
this.getUniList(); this.getUniList();
}, },
handleChangeD(val) { handleChangeD(val) {
console.log("val", val); console.log("val", val);
this.form.homeId = ""; this.fmData.homeId = "";
this.getHouseList(); this.getHouseList();
}, },
@ -503,7 +536,7 @@ export default {
const { user } = this.$store.state; const { user } = this.$store.state;
this.$http this.$http
.post("/gov/org/icneighborhood/neighborhoodoption", { .post("/gov/org/icneighborhood/neighborhoodoption", {
gridId: this.form.gridId, gridId: this.fmData.gridId,
agencyId: "", agencyId: "",
// agencyId: user.agencyId // agencyId: user.agencyId
}) })
@ -522,7 +555,7 @@ export default {
getBuildList() { getBuildList() {
this.$http this.$http
.post("/gov/org/icbuilding/buildingoption", { .post("/gov/org/icbuilding/buildingoption", {
neighborHoodId: this.form.villageId, neighborHoodId: this.fmData.villageId,
}) })
.then(({ data: res }) => { .then(({ data: res }) => {
if (res.code !== 0) { if (res.code !== 0) {
@ -539,7 +572,7 @@ export default {
getUniList() { getUniList() {
this.$http this.$http
.post("/gov/org/icbuildingunit/unitoption", { .post("/gov/org/icbuildingunit/unitoption", {
buildingId: this.form.buildId, buildingId: this.fmData.buildId,
}) })
.then(({ data: res }) => { .then(({ data: res }) => {
if (res.code !== 0) { if (res.code !== 0) {
@ -555,7 +588,7 @@ export default {
}, },
getHouseList() { getHouseList() {
this.$http this.$http
.post("/gov/org/ichouse/houseoption", { unitId: this.form.unitId }) .post("/gov/org/ichouse/houseoption", { unitId: this.fmData.unitId })
.then(({ data: res }) => { .then(({ data: res }) => {
if (res.code !== 0) { if (res.code !== 0) {
return this.$message.error(res.msg); return this.$message.error(res.msg);
@ -848,4 +881,47 @@ export default {
position: relative; position: relative;
overflow: visible; overflow: visible;
} }
.resi-cell {
display: flex;
align-items: center;
margin-bottom: 20px;
.resi-cell-label {
flex-shrink: 0;
// min-width: 70px;
box-sizing: border-box;
margin-right: 15px;
// text-align: right;
// line-height: 32;
}
.resi-cell-label1 {
width: max-content;
}
.resi-cell-value-radio {
display: flex;
align-items: center;
min-height: 32px;
}
.resi-cell-input {
width: 200px;
}
.resi-cell--daterange {
max-width: 260px;
}
.resi-cell-select {
width: 200px;
box-sizing: border-box;
margin-right: 10px;
&-middle {
width: 130px;
}
&-small {
width: 88px;
}
}
.resi-cell-select:last-child {
margin-right: 0;
}
}
</style> </style>

Loading…
Cancel
Save