Browse Source

Merge branch 'dev-huji' of http://git.elinkit.com.cn:7070/r/epmet-oper-gov into dev-huji

shibei_master
13176889840 3 years ago
parent
commit
6b914b1f00
  1. 7
      src/views/modules/base/community/buildTable.vue
  2. 7
      src/views/modules/base/community/communityTable.vue
  3. 8
      src/views/modules/base/community/roomTable.vue
  4. 79
      src/views/modules/base/huji/chusheng/cpts/edit.vue

7
src/views/modules/base/community/buildTable.vue

@ -55,6 +55,7 @@
<el-button style=";margin-left:10px" <el-button style=";margin-left:10px"
class="diy-button--export" class="diy-button--export"
size="small" size="small"
:disabled="yihuyidangDisabled"
@click="handleExportYihuyidang()">导出一户一档</el-button> @click="handleExportYihuyidang()">导出一户一档</el-button>
</div> </div>
@ -227,6 +228,8 @@ export default {
formShow: false, formShow: false,
formTitle: '新增楼栋', formTitle: '新增楼栋',
yihuyidangDisabled: false,
} }
}, },
components: { components: {
@ -588,6 +591,7 @@ export default {
// //
handleExportYihuyidang () { handleExportYihuyidang () {
this.yihuyidangDisabled = true
let title = this.agencyObj.label let title = this.agencyObj.label
title = title + '-一户一档' title = title + '-一户一档'
let url = "/gov/org/house/exportHouseUser" let url = "/gov/org/house/exportHouseUser"
@ -604,16 +608,17 @@ export default {
} }
app.ajax.exportFilePost( app.ajax.exportFilePost(
url, url,
params, params,
(data, rspMsg) => { (data, rspMsg) => {
this.download(data, title + '.xls') this.download(data, title + '.xls')
this.yihuyidangDisabled = false
}, },
(rspMsg, data) => { (rspMsg, data) => {
this.$message.error(rspMsg); this.$message.error(rspMsg);
this.yihuyidangDisabled = false
} }
); );
}, },

7
src/views/modules/base/community/communityTable.vue

@ -79,6 +79,7 @@
<el-button style=";margin-left:10px" <el-button style=";margin-left:10px"
class="diy-button--export" class="diy-button--export"
size="small" size="small"
:disabled="yihuyidangDisabled"
@click="handleExportYihuyidang()">导出一户一档</el-button> @click="handleExportYihuyidang()">导出一户一档</el-button>
</div> </div>
@ -222,7 +223,8 @@ export default {
files: "", files: "",
fileName: "", fileName: "",
uploadUlr: window.SITE_CONFIG['apiURL'] + '/gov/org/neighborhood/import' uploadUlr: window.SITE_CONFIG['apiURL'] + '/gov/org/neighborhood/import',
yihuyidangDisabled: false,
} }
}, },
@ -569,6 +571,7 @@ export default {
// //
handleExportYihuyidang () { handleExportYihuyidang () {
this.yihuyidangDisabled = true
let title = this.agencyObj.label let title = this.agencyObj.label
title = title + '-一户一档' title = title + '-一户一档'
let url = "/gov/org/house/exportHouseUser" let url = "/gov/org/house/exportHouseUser"
@ -596,8 +599,10 @@ export default {
(data, rspMsg) => { (data, rspMsg) => {
this.download(data, title + '.xls') this.download(data, title + '.xls')
this.yihuyidangDisabled = false
}, },
(rspMsg, data) => { (rspMsg, data) => {
this.yihuyidangDisabled = false
this.$message.error(rspMsg); this.$message.error(rspMsg);
} }
); );

8
src/views/modules/base/community/roomTable.vue

@ -38,6 +38,7 @@
<el-button style=";margin-left:10px" <el-button style=";margin-left:10px"
class="diy-button--export" class="diy-button--export"
size="small" size="small"
:disabled="yihuyidangDisabled"
@click="handleExportYihuyidang()">导出一户一档</el-button> @click="handleExportYihuyidang()">导出一户一档</el-button>
</div> </div>
@ -235,7 +236,9 @@ export default {
value: '0', value: '0',
label: '自住' label: '自住'
}, },
] ],
yihuyidangDisabled: false,
} }
@ -609,6 +612,7 @@ export default {
// //
handleExportYihuyidang () { handleExportYihuyidang () {
this.yihuyidangDisabled = true
let title = this.agencyObj.label let title = this.agencyObj.label
title = title + '-一户一档' title = title + '-一户一档'
let url = "/gov/org/house/exportHouseUser" let url = "/gov/org/house/exportHouseUser"
@ -631,9 +635,11 @@ export default {
(data, rspMsg) => { (data, rspMsg) => {
this.download(data, title + '.xls') this.download(data, title + '.xls')
this.yihuyidangDisabled = false
}, },
(rspMsg, data) => { (rspMsg, data) => {
this.$message.error(rspMsg); this.$message.error(rspMsg);
this.yihuyidangDisabled = false
} }
); );
}, },

79
src/views/modules/base/huji/chusheng/cpts/edit.vue

@ -22,6 +22,7 @@
clearable clearable
class="resi-cell-select" class="resi-cell-select"
@change="handleChangeGrid" @change="handleChangeGrid"
:disabled="formType === 'edit'"
style="width: 250px" style="width: 250px"
> >
<el-option <el-option
@ -48,6 +49,7 @@
class="resi-cell-select" class="resi-cell-select"
@clear="handleClearVillage" @clear="handleClearVillage"
@change="handleChangeV" @change="handleChangeV"
:disabled="formType === 'edit'"
style="margin-right: 8px; width: 120px" style="margin-right: 8px; width: 120px"
> >
<el-option <el-option
@ -65,7 +67,7 @@
clearable clearable
style="margin-right: 8px; width: 120px" style="margin-right: 8px; width: 120px"
class="resi-cell-select" class="resi-cell-select"
:disabled="changeVDisabled" :disabled="changeVDisabled || formType === 'edit'"
@clear="handleClearBuild" @clear="handleClearBuild"
@change="handleChangeB" @change="handleChangeB"
> >
@ -79,7 +81,7 @@
</el-select> </el-select>
<el-select <el-select
v-model.trim="fmData.unitId" v-model.trim="fmData.unitId"
:disabled="changeBDisabled" :disabled="changeBDisabled || formType === 'edit'"
placeholder="单元" placeholder="单元"
size="small" size="small"
clearable clearable
@ -98,7 +100,7 @@
</el-select> </el-select>
<el-select <el-select
v-model.trim="fmData.homeId" v-model.trim="fmData.homeId"
:disabled="changeDDisabled" :disabled="changeDDisabled || formType === 'edit'"
placeholder="房号" placeholder="房号"
size="small" size="small"
clearable clearable
@ -128,17 +130,23 @@
show-word-limit show-word-limit
style="width: 200px; margin-right: 20px" style="width: 200px; margin-right: 20px"
placeholder="请输入姓名 " placeholder="请输入姓名 "
:disabled="formType === 'edit'"
v-model="fmData.name" v-model="fmData.name"
> >
</el-input> </el-input>
<el-checkbox v-model="fmData.isWelfare" true-label="1" false-label="0" <el-checkbox
v-model="fmData.isWelfare"
:disabled="formType === 'edit'"
true-label="1"
false-label="0"
>享受福利</el-checkbox >享受福利</el-checkbox
> >
<el-checkbox <el-checkbox
v-model="fmData.isCheck" v-model="fmData.isCheck"
true-label="1" true-label="1"
false-label="0" false-label="0"
:disabled="formType === 'edit'"
@change="checkResiAvailable" @change="checkResiAvailable"
>补充居民信息</el-checkbox >补充居民信息</el-checkbox
> >
@ -157,6 +165,7 @@
show-word-limit show-word-limit
placeholder="请输入手机号 " placeholder="请输入手机号 "
v-model="fmData.mobile" v-model="fmData.mobile"
:disabled="formType === 'edit'"
> >
</el-input> </el-input>
</el-form-item> </el-form-item>
@ -172,6 +181,7 @@
placeholder="请输入身份证号" placeholder="请输入身份证号"
v-model="fmData.idCard" v-model="fmData.idCard"
@blur="handleBlurId" @blur="handleBlurId"
:disabled="formType === 'edit'"
></el-input> ></el-input>
</el-form-item> </el-form-item>
@ -188,6 +198,7 @@
clearable clearable
style="width: 120px" style="width: 120px"
class="resi-cell-select" class="resi-cell-select"
:disabled="formType === 'edit'"
> >
<el-option <el-option
v-for="item in optionsGender" v-for="item in optionsGender"
@ -210,6 +221,7 @@
type="date" type="date"
placeholder="出生日期" placeholder="出生日期"
value-format="yyyy-MM-dd" value-format="yyyy-MM-dd"
:disabled="formType === 'edit'"
> >
</el-date-picker> </el-date-picker>
</el-form-item> </el-form-item>
@ -386,6 +398,7 @@ function iniFmData() {
idCard: "", idCard: "",
isWelfare: "0", //01 isWelfare: "0", //01
isCheck: "0", isCheck: "0",
isReplace: "0",
gender: "", gender: "",
birthplace: "", birthplace: "",
father: "", father: "",
@ -410,6 +423,7 @@ export default {
optionsH: [], optionsH: [],
optionsD: [], optionsD: [],
optionsG: [], optionsG: [],
optionsRelation: [],
optionsGender: [ optionsGender: [
{ {
value: "1", value: "1",
@ -420,9 +434,9 @@ export default {
label: "女", label: "女",
}, },
], ],
optionsRelation: [],
fmData: iniFmData(), fmData: iniFmData(),
checkResult: {},
}; };
}, },
components: {}, components: {},
@ -490,6 +504,7 @@ export default {
} }
); );
if (code === 0) { if (code === 0) {
this.checkResult = data;
if (!data.moveInstatus) { if (!data.moveInstatus) {
this.$message({ this.$message({
type: "error", type: "error",
@ -566,11 +581,10 @@ export default {
return this.$message.error(res.msg); return this.$message.error(res.msg);
} else { } else {
console.log("获取查询详情成功", res.data); console.log("获取查询详情成功", res.data);
if (res.data) {
this.optionsRelation = res.data; this.optionsRelation = res.data;
} }
}) }
.catch(() => {
return this.$message.error("网络错误");
}); });
}, },
@ -682,9 +696,6 @@ export default {
this.alreadyHaveMaster = false; this.alreadyHaveMaster = false;
} }
} }
})
.catch(() => {
return this.$message.error("网络错误");
}); });
}, },
@ -696,14 +707,18 @@ export default {
if (row) { if (row) {
// this.fmData = { ...this.fmData, ...row }; // this.fmData = { ...this.fmData, ...row };
this.getInfo(row.id); this.getInfo(row.id);
this.getValiheList();
this.getBuildList();
this.getUniList();
this.getHouseList();
} }
}, },
async getInfo(id) { async getInfo(id) {
const { data, code, msg } = await requestPost( const { data, code, msg } = await requestPost(
"/epmetuser/icBirthRecord", "/epmetuser/icBirthRecord/" + id,
{ {
id, // id,
} }
); );
if (code === 0) { if (code === 0) {
@ -738,13 +753,37 @@ export default {
let url = ""; let url = "";
if (this.formType === "add") { if (this.formType === "add") {
url = "/epmetuser/icBirthRecord/save"; url = "/epmetuser/icBirthRecord/save";
} else { } else if (this.formType === "edit") {
url = "/epmetuser/icBirthRecord/update"; url = "/epmetuser/icBirthRecord/update";
} else {
this.fmData.orgId = this.orgId; return;
}
const { fmData, checkResult } = this;
if (
fmData.isCheck == "1" &&
checkResult.resiHomeId != fmData.homeId &&
checkResult.status == "0"
) {
await this.$confirm(
"居民信息中房屋信息与当前选择房屋不一致,是否更新?",
"提示",
{
confirmButtonText: "更新",
cancelButtonText: "不更新",
type: "warning",
center: true,
}
)
.then(() => {
this.fmData.isReplace = "1";
})
.catch(() => {
this.fmData.isReplace = "0";
});
} }
const { data, code, msg } = await requestPost(url, this.fmData); const { data, code, msg } = await requestPost(url, fmData);
if (code === 0) { if (code === 0) {
this.$message({ this.$message({
@ -765,7 +804,11 @@ export default {
this.$emit("dialogCancle"); this.$emit("dialogCancle");
}, },
resetData() { resetData() {
this.orgId = ""; this.checkResult = {};
this.optionsB = [];
this.optionsH = [];
this.optionsD = [];
this.optionsRelation = [];
this.fmData = iniFmData(); this.fmData = iniFmData();
}, },
// //

Loading…
Cancel
Save