Browse Source

保障房 特扶联调

V1.0
jiangyuying 2 years ago
parent
commit
9f24e5b2b6
  1. 1
      src/views/components/resiForm.vue
  2. 639
      src/views/components/resiInfo.vue
  3. 158
      src/views/modules/base/residentManagement/housingNature/addForm.vue
  4. 7
      src/views/modules/base/residentManagement/housingNature/housingNature.vue
  5. 397
      src/views/modules/base/residentManagement/tefu/addForm.vue
  6. 15
      src/views/modules/base/residentManagement/tefu/tefuList.vue
  7. 966
      src/views/modules/home/index.vue

1
src/views/components/resiForm.vue

@ -2686,6 +2686,7 @@ export default {
this.newForm.idNum = this.form.idNum,
this.newForm.idType = this.form.idType,
this.newForm.nationality = this.form.nationality,
this.newForm.nation = this.form.nation,
this.newForm.gender = this.form.gender,
this.newForm.mobile = this.form.mobile,
this.newForm.partyFlag = this.form.partyFlag,

639
src/views/components/resiInfo.vue

File diff suppressed because it is too large

158
src/views/modules/base/residentManagement/housingNature/addForm.vue

@ -13,7 +13,7 @@
<div class="info-prop"
v-if="formType == 'detail'">
<span class="info-title-2">所属组织: </span>
<span>{{ formData.agencyName || "--" }}</span>
</div>
<el-form-item v-else
label="所属组织"
@ -157,7 +157,7 @@
<div class="info-prop"
v-if="formType == 'detail'">
<span class="info-title-2">民族: </span>
<span>{{ nationName || "--" }}</span>
<span>{{ nationName(formData.nation) }}</span>
</div>
<el-form-item :label-width="labelWidth"
label="民族"
@ -180,7 +180,7 @@
formData.localResidenceFlag != null
? formData.localResidenceFlag == 1
? "是"
: formData.gender == 2
: formData.localResidenceFlag == 0
? "否"
: "--"
: "--"
@ -242,7 +242,7 @@
<div class="info-prop"
v-if="formType == 'detail'">
<span class="info-title-2">所在社区: </span>
<span>{{ formData.liveCommunityName || "--" }}</span>
<span>{{ formData.liveCommunity || "--" }}</span>
</div>
<el-form-item :label-width="labelWidth"
label="所在社区"
@ -256,7 +256,8 @@
<div class="info-prop"
v-if="formType == 'detail'">
<span class="info-title-2">是否为低保: </span>
<span>{{ formData.subsistenceAllowanceFlag?formData.subsistenceAllowanceFlag=='1'?'是':formData.subsistenceAllowanceFlag=='0'?'否':'--':'--' }}</span>
<span>{{ formData.subsistenceAllowanceFlag==1?'是':formData.subsistenceAllowanceFlag==0?'否':'--' }}</span>
</div>
<el-form-item :label-width="labelWidth"
label="是否为低保"
@ -309,7 +310,7 @@
<div class="info-prop"
v-if="formType == 'detail'">
<span class="info-title-2">住房性质: </span>
<span>{{ formData.housingNatureName || "--" }}</span>
<span>{{ housingNatureName(formData.housingNature ) }}</span>
</div>
<el-form-item :label-width="labelWidth"
label="住房性质"
@ -432,7 +433,8 @@
<div class="div_btn">
<el-button size="small"
@click="handleCancle"> </el-button>
<el-button size="small"
<el-button v-if="formType!='detail'"
size="small"
type="primary"
:disabled="btnDisable"
@click="handleComfirm"> </el-button>
@ -445,6 +447,7 @@ import { Loading } from "element-ui"; // 引入Loading服务
import { requestPost, requestGet } from "@/js/dai/request";
import nextTick from "dai-js/tools/nextTick";
import { genderList, binaryOptionList, idTypeList } from "@/js/columns/constants";
import { isCard } from "@/utils/validate";
let loading; //
@ -468,64 +471,56 @@ export default {
labelWidth: '120px',
formData: {
// agencyId: '',
// name: "",
// mobile: "",
// idType: "",
// idNum: "",
// birthday: "",
// gender: null,
// nation: "",
// localResidenceFlag: null,
// placeOfDomicile: "",//
// currentResidence: "",//
// liveCommunity: '',//
// subsistenceAllowanceFlag: null,//
// landlordName: '',//
// landlordIdNum: '',//
// housingNature: '',//
// notificationRcvDate: '',//
// securityType: '',//
// certificateDate: '',//
// subsidyNum: '',//
// subsidyAmount: '',//
// remark: '', //
agencyId: "1582261714844827649",
birthday: "2023-08-01 00:00:00",
certificateDate: "2023-08-26",
currentResidence: "现居地址",
gender: "1",
housingNature: "1",
idNum: "370213198810101010",
idType: 1,
landlordIdNum: "370213187802232323",
landlordName: "房东姓名",
liveCommunity: "所在社区",
localResidenceFlag: 1,
mobile: "15111111111",
name: "王保障",
nation: "0",
notificationRcvDate: "2023-08-22",
placeOfDomicile: "户籍地址",
remark: "备注",
securityType: "保障类型",
subsidyAmount: "300",
subsidyNum: "23333",
subsistenceAllowanceFlag: 1,
agencyId: '',
name: "",
mobile: "",
idType: "",
idNum: "",
birthday: "",
gender: null,
nation: "",
localResidenceFlag: null,
placeOfDomicile: "",//
currentResidence: "",//
liveCommunity: '',//
subsistenceAllowanceFlag: null,//
landlordName: '',//
landlordIdNum: '',//
housingNature: '',//
notificationRcvDate: '',//
securityType: '',//
certificateDate: '',//
subsidyNum: '',//
subsidyAmount: '',//
remark: '', //
// agencyId: "1582261714844827649",
// birthday: "2023-08-01 00:00:00",
// certificateDate: "2023-08-26",
// currentResidence: "",
// gender: "1",
// housingNature: "1",
// idNum: "370213198810101010",
// idType: 1,
// landlordIdNum: "370213187802232323",
// landlordName: "",
// liveCommunity: "",
// localResidenceFlag: 1,
// mobile: "15111111111",
// name: "",
// nation: "0",
// notificationRcvDate: "2023-08-22",
// placeOfDomicile: "",
// remark: "",
// securityType: "",
// subsidyAmount: "300",
// subsidyNum: "23333",
// subsistenceAllowanceFlag: 1,
},
genderList,
binaryOptionList,
idTypeList,
dataRule: {
agencyId: [{ required: true, message: "所属组织不能为空", trigger: "bulr" }],
name: [{ required: true, message: "姓名不能为空", trigger: "bulr" }],
idNum: [{ required: true, message: "证件号不能为空", trigger: "bulr" }],
idType: [
{ required: true, message: "证件类型不能为空", trigger: "bulr" },
],
},
scopeId: "",
dicts: {
@ -598,6 +593,20 @@ export default {
}
});
},
nationName (val) {
let filtered = this.dicts.nationList.filter(
(item) => item.value == val
);
let str = filtered.length > 0 ? filtered[0].label : null;
return str ? str : "--";
},
housingNatureName (val) {
let filtered = this.dicts.housingNatureList.filter(
(item) => item.value == val
);
let str = filtered.length > 0 ? filtered[0].label : null;
return str ? str : "--";
},
async getDicts () {
try {
const requests = [
@ -689,6 +698,35 @@ export default {
}
},
},
computed: {
dataRule () {
let checkIdCard = (rule, value, callback) => {
if (value === "") {
callback(new Error("请输入证件号"));
} else {
if (!isCard(value)) {
callback(new Error("请输入正确的证件号"));
}
callback();
}
};
return {
agencyId: [{ required: true, message: "所属组织不能为空", trigger: "bulr" }],
name: [{ required: true, message: "姓名不能为空", trigger: "bulr" }],
idNum: [
{ required: true, message: "证件号不能为空", trigger: "bulr" },
{ required: true, validator: checkIdCard, trigger: "blur" },
],
idType: [
{ required: true, message: "证件类型不能为空", trigger: "bulr" },
],
}
},
},
};
</script>
@ -718,7 +756,7 @@ export default {
.info-prop {
margin-top: 29px;
.info-title-2 {
width: 100px;
width: 120px;
text-align: right;
display: inline-block;
padding-right: 10px;

7
src/views/modules/base/residentManagement/housingNature/housingNature.vue

@ -497,6 +497,9 @@ export default {
//
async handleEdit (row) {
this.addDiaTitle = "编辑";
this.formType = "edit";
this.showAdd = true;
this.$nextTick(() => {
this.$refs.ref_add_form.initForm("edit", row);
});
@ -534,12 +537,12 @@ export default {
},
//
async cancelFuwu (ids) {
const url = "/actual/base/resiHousingNature/delete";
const url = "/actual/base/resiCategorized/ensureHouse/deleteBatch";
let params = {
ids: ids
}
const { data, code, msg } = await requestPost(url, params);
const { data, code, msg } = await requestPost(url, ids);
if (code === 0) {
this.$message.success("删除成功!");
this.getTableData();

397
src/views/modules/base/residentManagement/tefu/addForm.vue

@ -13,7 +13,7 @@
<div class="info-prop"
v-if="formType == 'detail'">
<span class="info-title-2">所属组织: </span>
<span>{{ formData.agencyName || "--" }}</span>
</div>
<el-form-item v-else
label="所属组织"
@ -72,7 +72,7 @@
<div class="info-prop"
v-if="formType == 'detail'">
<span class="info-title-2">证件类型: </span>
<span>{{ formData.idTypeName || "--" }}</span>
<span>{{ idTypeName(formData.idType) }}</span>
</div>
<el-form-item :label-width="labelWidth"
label="证件类型"
@ -157,7 +157,7 @@
<div class="info-prop"
v-if="formType == 'detail'">
<span class="info-title-2">民族: </span>
<span>{{ nationName || "--" }}</span>
<span>{{ nationName(formData.nation) }}</span>
</div>
<el-form-item :label-width="labelWidth"
label="民族"
@ -180,7 +180,7 @@
formData.localResidenceFlag != null
? formData.localResidenceFlag == 1
? "是"
: formData.gender == 2
: formData.gender == 0
? "否"
: "--"
: "--"
@ -241,29 +241,18 @@
<el-col :span="12">
<div class="info-prop"
v-if="formType == 'detail'">
<span class="info-title-2">所在社区: </span>
<span>{{ formData.liveCommunityName || "--" }}</span>
</div>
<el-form-item :label-width="labelWidth"
label="所在社区"
v-else>
<el-input v-model="formData.liveCommunity"
placeholder="请输入"
clearable></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<div class="info-prop"
v-if="formType == 'detail'">
<span class="info-title-2">是否为低保: </span>
<span>{{ formData.subsistenceAllowanceFlag?formData.subsistenceAllowanceFlag=='1'?'是':formData.subsistenceAllowanceFlag=='0'?'否':'--':'--' }}</span>
<span class="info-title-2">婚姻状况: </span>
<span>{{ marriageName(formData.marriage) }}</span>
</div>
<el-form-item :label-width="labelWidth"
label="是否为低保"
label="婚姻状况"
v-else>
<el-select v-model="formData.subsistenceAllowanceFlag"
<el-select v-model="formData.marriage"
placeholder="请输入"
size="small"
class="u-item-width-normal"
clearable>
<el-option v-for="item in binaryOptionList"
<el-option v-for="item in dicts.marriageList"
:key="item.value"
:label="item.label"
:value="item.value">
@ -271,52 +260,51 @@
</el-select>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="12">
<div class="info-prop"
v-if="formType == 'detail'">
<span class="info-title-2">房东姓名: </span>
<span>{{ formData.landlordName || "--" }}</span>
<span class="info-title-2">银行卡号: </span>
<span>{{ formData.bankAccount||'--' }}</span>
</div>
<el-form-item :label-width="labelWidth"
label="房东姓名"
label="银行卡号"
v-else>
<el-input v-model="formData.landlordName"
<el-input v-model="formData.bankAccount"
placeholder="请输入"
clearable></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
</el-row>
<el-row>
<el-col :span="24">
<div class="info-prop"
v-if="formType == 'detail'">
<span class="info-title-2">房东身份证号: </span>
<span>{{ formData.landlordIdNum|| "--" }}</span>
<span class="info-title-2">备注: </span>
<span>{{ formData.remark || "--" }}</span>
</div>
<el-form-item :label-width="labelWidth"
label="房东身份证号"
label="备注"
class="wd-wr"
v-else>
<el-input v-model="formData.landlordIdNum"
<el-input v-model="formData.remark"
placeholder="请输入"
clearable></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="12">
<div class="info-prop"
v-if="formType == 'detail'">
<span class="info-title-2">住房性质: </span>
<span>{{ formData.housingNatureName || "--" }}</span>
<span class="info-title-2">特扶类别: </span>
<span>{{ specialSupportTypeName(formData.specialSupportType) }}</span>
</div>
<el-form-item :label-width="labelWidth"
label="住房性质"
label="特扶类别"
v-else>
<el-select v-model="formData.housingNature"
<el-select v-model="formData.specialSupportType"
clearable>
<el-option v-for="item in dicts.housingNatureList"
<el-option v-for="item in specialSupportTypeList"
:key="item.value"
:label="item.label"
:value="item.value">
@ -324,54 +312,67 @@
</el-select>
</el-form-item>
</el-col>
<el-col :span="12">
</el-row>
<el-row>
<el-col v-if="formData.specialSupportType==='2'"
:span="12">
<div class="info-prop"
v-if="formType == 'detail'">
<span class="info-title-2">领取通知书日期: </span>
<span>{{ formData.notificationRcvDate||'' }}</span>
<span class="info-title-2">子女姓名: </span>
<span>{{ formData.childName||'--' }}</span>
</div>
<el-form-item :label-width="labelWidth"
label="领取通知书日期"
label="子女姓名"
v-else>
<el-date-picker v-model="formData.notificationRcvDate"
type="date"
value-format="yyyy-MM-dd"
placeholder="选择日期"
style="width: 202px"
clearable>
</el-date-picker>
<el-input v-model="formData.childName"
placeholder="请输入"
clearable></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="12">
<el-col v-if="formData.specialSupportType"
:span="12">
<div class="info-prop"
v-if="formType == 'detail'">
<span class="info-title-2">保障类型: </span>
<span>{{ formData.securityType || "--" }}</span>
<span class="info-title-2">子女性别: </span>
<span>{{
formData.childGender
? formData.childGender == "1"
? "男"
: formData.childGender == "2"
? "女"
: "--"
: "--"
}}</span>
</div>
<el-form-item :label-width="labelWidth"
label="保障类型"
label="子女性别"
v-else>
<el-input v-model="formData.securityType"
placeholder="请输入"
clearable></el-input>
<el-select v-model="formData.childGender"
clearable>
<el-option v-for="item in genderList"
:key="item.value"
:label="item.label"
:value="item.value">
</el-option>
</el-select>
</el-form-item>
</el-col>
<el-col :span="12">
<el-col v-if="formData.specialSupportType==='1'"
:span="12">
<div class="info-prop"
v-if="formType == 'detail'">
<span class="info-title-2">发证日期: </span>
<span>{{ formData.certificateDate || "--" }}</span>
<span class="info-title-2">子女死亡日期: </span>
<span>{{ formData.childDeathDate||'' }}</span>
</div>
<el-form-item :label-width="labelWidth"
label="发证日期"
label="子女死亡日期"
v-else>
<el-date-picker v-model="formData.certificateDate"
<el-date-picker v-model="formData.childDeathDate"
type="date"
value-format="yyyy-MM-dd"
placeholder="发证日期"
placeholder="选择日期"
style="width: 202px"
clearable>
</el-date-picker>
@ -379,60 +380,54 @@
</el-col>
</el-row>
<el-row>
<el-row v-if="formData.specialSupportType==='2'">
<el-col :span="12">
<div class="info-prop"
v-if="formType == 'detail'">
<span class="info-title-2">补贴编号: </span>
<span>{{ formData.subsidyNum || "--" }}</span>
<span class="info-title-2">伤残类别: </span>
<span>{{ childDisabilityCategoryCodeName(formData.childDisabilityCategoryCode) }}</span>
</div>
<el-form-item :label-width="labelWidth"
label="补贴编号"
label="伤残类别"
v-else>
<el-input v-model="formData.subsidyNum"
placeholder="请输入"
clearable></el-input>
<el-select v-model="formData.childDisabilityCategoryCode"
clearable>
<el-option v-for="item in dicts.childDisabilityCategoryCodeList"
:key="item.value"
:label="item.label"
:value="item.value">
</el-option>
</el-select>
</el-form-item>
</el-col>
<el-col :span="12">
<div class="info-prop"
v-if="formType == 'detail'">
<span class="info-title-2">补贴金额: </span>
<span>{{ formData.subsidyAmount || "--" }}</span>
<span class="info-title-2">伤残等级: </span>
<span>{{ childDisabilityLevelName(formData.childDisabilityLevel) }}</span>
</div>
<el-form-item :label-width="labelWidth"
label="补贴金额"
label="伤残等级"
v-else>
<el-input v-model="formData.subsidyAmount"
placeholder="请输入"
clearable></el-input>
<el-select v-model="formData.childDisabilityLevel"
clearable>
<el-option v-for="item in dicts.childDisabilityLevelList"
:key="item.value"
:label="item.label"
:value="item.value">
</el-option>
</el-select>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<div class="info-prop"
v-if="formType == 'detail'">
<span class="info-title-2">备注: </span>
<span>{{ formData.remark || "--" }}</span>
</div>
<el-form-item :label-width="labelWidth"
label="备注"
class="wd-wr"
v-else>
<el-input v-model="formData.remark"
placeholder="请输入"
clearable></el-input>
</el-form-item>
</el-col>
</el-row>
</el-form>
</div>
<div class="div_btn">
<el-button size="small"
@click="handleCancle"> </el-button>
<el-button size="small"
<el-button v-if="formType!='detail'"
size="small"
type="primary"
:disabled="btnDisable"
@click="handleComfirm"> </el-button>
@ -445,6 +440,7 @@ import { Loading } from "element-ui"; // 引入Loading服务
import { requestPost, requestGet } from "@/js/dai/request";
import nextTick from "dai-js/tools/nextTick";
import { genderList, binaryOptionList, idTypeList } from "@/js/columns/constants";
import { isCard } from "@/utils/validate";
let loading; //
@ -468,73 +464,110 @@ export default {
labelWidth: '120px',
formData: {
// agencyId: '',
// name: "",
// mobile: "",
// idType: "",
// idNum: "",
// birthday: "",
// gender: null,
// nation: "",
// localResidenceFlag: null,
// placeOfDomicile: "",//
// currentResidence: "",//
// liveCommunity: '',//
// subsistenceAllowanceFlag: null,//
// landlordName: '',//
// landlordIdNum: '',//
// housingNature: '',//
// notificationRcvDate: '',//
// securityType: '',//
// certificateDate: '',//
// subsidyNum: '',//
// subsidyAmount: '',//
// remark: '', //
agencyId: "1582261714844827649",
birthday: "2023-08-01 00:00:00",
certificateDate: "2023-08-26",
currentResidence: "现居地址",
gender: "1",
housingNature: "1",
idNum: "370213198810101010",
idType: 1,
landlordIdNum: "370213187802232323",
landlordName: "房东姓名",
liveCommunity: "所在社区",
localResidenceFlag: 1,
mobile: "15111111111",
name: "王保障",
nation: "0",
notificationRcvDate: "2023-08-22",
placeOfDomicile: "户籍地址",
remark: "备注",
securityType: "保障类型",
subsidyAmount: "300",
subsidyNum: "23333",
subsistenceAllowanceFlag: 1,
agencyId: '',
name: "",
mobile: "",
idType: "",
idNum: "",
birthday: "",
gender: null,
nation: "",
localResidenceFlag: null,
placeOfDomicile: "",//
currentResidence: "",//
marriage: '',//
bankAccount: '', //
specialSupportType: '',//
childName: '',//
childGender: '',//
childDeathDate: '',//
childDisabilityCategoryCode: '',//
childDisabilityLevel: '',//
remark: '', //
// agencyId: "1582261714844827649",
// bankAccount: "33333",
// birthday: "2023-08-08 00:00:00",
// currentResidence: "",
// gender: "1",
// idNum: "211103199101010000",
// idType: 1,
// localResidenceFlag: 1,
// marriage: "weihun",
// mobile: "15111111111",
// nation: "1",
// placeOfDomicile: "",
// remark: "",
// specialSupportType: "1",
// name: "",
// childGender: "1",
// childDeathDate: "2023-08-24",
// specialSupportType: "2",
// name: "",
// childName: "",
// childGender: "1",
// childDisabilityCategoryCode: "",
// childDisabilityLevel: "",
},
genderList,
binaryOptionList,
idTypeList,
dataRule: {
agencyId: [{ required: true, message: "所属组织不能为空", trigger: "bulr" }],
name: [{ required: true, message: "姓名不能为空", trigger: "bulr" }],
idNum: [{ required: true, message: "证件号不能为空", trigger: "bulr" }],
idType: [
{ required: true, message: "证件类型不能为空", trigger: "bulr" },
],
},
scopeId: "",
specialSupportTypeList: [
{
value: '1',
label: '失独'
},
{
value: '2',
label: '伤残'
}
],
dicts: {
nationList: [],
housingNatureList: [],
childDisabilityCategoryCodeList: [],
childDisabilityLevelList: [],
marriageList: [],
},
};
},
computed: {
dataRule () {
let checkIdCard = (rule, value, callback) => {
if (value === "") {
callback(new Error("请输入证件号"));
} else {
if (!isCard(value)) {
callback(new Error("请输入正确的证件号"));
}
callback();
}
};
return {
agencyId: [{ required: true, message: "所属组织不能为空", trigger: "bulr" }],
name: [{ required: true, message: "姓名不能为空", trigger: "bulr" }],
idNum: [
{ required: true, message: "证件号不能为空", trigger: "bulr" },
{ required: true, validator: checkIdCard, trigger: "blur" },
],
idType: [{ required: true, message: "证件类型不能为空", trigger: "bulr" },],
childName: [{ required: true, message: "子女姓名不能为空", trigger: "bulr" },],
}
},
},
watch: {},
@ -555,7 +588,7 @@ export default {
await this.getDetail(this.scopeId);
},
async getDetail (categorizedResiId) {
const url = `/actual/base/resiCategorized/ensureHouse/detail/${categorizedResiId}`;
const url = `/actual/base/resiCategorized/specialSupport/detail/${categorizedResiId}`;
const { data, code, msg } = await requestGet(url);
if (code === 0) {
this.formData = { ...data };
@ -584,8 +617,8 @@ export default {
}
const url =
this.formType === "edit"
? "/actual/base/resiCategorized/ensureHouse/update"
: "/actual/base/resiCategorized/ensureHouse/create";
? "/actual/base/resiCategorized/specialSupport/update"
: "/actual/base/resiCategorized/specialSupport/create";
// console.log(this.formData)
// return false
const { data, code, msg } = await requestPost(url, this.formData);
@ -605,14 +638,22 @@ export default {
formCode: "resi_base_info",
}),
this.$http.post('sys/dict/data/dictlist', {
'dictType': 'disability_category_code'
}),
this.$http.post('sys/dict/data/dictlist', {
'dictType': 'disability_level'
}),
this.$http.post("sys/dict/data/dictlist", {
dictType: "house",
dictType: "marriage"
}),
];
const dictKeys = [
"nationList",
"housingNatureList",
"childDisabilityCategoryCodeList",
"childDisabilityLevelList",
"marriageList",
]; //
@ -628,6 +669,48 @@ export default {
console.log("获取字典失败: ", error);
}
},
nationName (val) {
let filtered = this.dicts.nationList.filter(
(item) => item.value == val
);
let str = filtered.length > 0 ? filtered[0].label : null;
return str ? str : "--";
},
marriageName (val) {
let filtered = this.dicts.marriageList.filter(
(item) => item.value == val
);
let str = filtered.length > 0 ? filtered[0].label : null;
return str ? str : "--";
},
idTypeName (val) {
let filtered = this.idTypeList.filter(
(item) => item.value == val
);
let str = filtered.length > 0 ? filtered[0].label : null;
return str ? str : "--";
},
specialSupportTypeName (val) {
let filtered = this.specialSupportTypeList.filter(
(item) => item.value == val
);
let str = filtered.length > 0 ? filtered[0].label : null;
return str ? str : "--";
},
childDisabilityLevelName (val) {
let filtered = this.dicts.childDisabilityLevelList.filter(
(item) => item.value == val
);
let str = filtered.length > 0 ? filtered[0].label : null;
return str ? str : "--";
},
childDisabilityCategoryCodeName (val) {
let filtered = this.dicts.childDisabilityCategoryCodeList.filter(
(item) => item.value == val
);
let str = filtered.length > 0 ? filtered[0].label : null;
return str ? str : "--";
},
getGridList () {
const { user } = this.$store.state
this.dataListLoading = true

15
src/views/modules/base/residentManagement/tefu/tefuList.vue

@ -242,7 +242,7 @@
<el-table-column prop="mobile"
align="center"
width="150"
width="120"
label="联系电话"
:show-overflow-tooltip="true">
</el-table-column>
@ -255,7 +255,7 @@
<el-table-column prop="placeOfDomicile"
align="center"
width="150"
width="80"
label="本地户籍"
:show-overflow-tooltip="true">
<template slot-scope="scope">
@ -294,7 +294,7 @@
<el-table-column prop="marriageName"
align="center"
width="100"
width="80"
label="婚姻状况"
:show-overflow-tooltip="true">
</el-table-column>
@ -306,7 +306,7 @@
</el-table-column>
<el-table-column prop="homeName"
align="center"
width="100"
width="150"
label="所属房屋"
:show-overflow-tooltip="true">
</el-table-column>
@ -516,6 +516,9 @@ export default {
//
async handleEdit (row) {
this.addDiaTitle = "编辑";
this.formType = "edit";
this.showAdd = true;
this.$nextTick(() => {
this.$refs.ref_add_form.initForm("edit", row);
});
@ -554,11 +557,11 @@ export default {
//
async cancelFuwu (ids) {
const url = "/actual/base/resiCategorized/specialSupport/delete";
const url = "/actual/base/resiCategorized/specialSupport/deleteBatch";
let params = {
ids: ids
}
const { data, code, msg } = await requestPost(url, params);
const { data, code, msg } = await requestPost(url, ids);
if (code === 0) {
this.$message.success("删除成功!");
this.getTableData();

966
src/views/modules/home/index.vue

@ -1,173 +1,218 @@
<template>
<div>
<div class="g-row">
<div class="g-row-left">
<div class="m-box m-search">
<div class="wrap">
<div class="title">
<span>社区查询</span>
</div>
<div class="tabs">
<div :class="{ 'z-on': searchData.type == 'jumin' }" @click="searchDataTab('jumin')">
查居民
</div>
<div :class="{ 'z-on': searchData.type == 'fangwu' }" @click="searchDataTab('fangwu')">
查房屋
</div>
</div>
<div class="search">
<div class="search-input">
<div class="input">
<input type="text" :placeholder="typePlaceholder[searchData.type]
" v-model="searchData.searchKey" @keyup.enter="handleClickSearchBtn" />
<div class="close-btn" v-if="searchData.searchKey != ''"
@click="searchData.searchKey = ''">
<img src="@/assets/img/shequ/close.png" />
</div>
</div>
<div class="btn" @click="handleClickSearchBtn">
查一下
</div>
</div>
</div>
</div>
</div>
<div class=" m-pan m-box">
<div class="header">
<img src="@/assets/images/index/title-icon-sqzl.png" />
<span>社区总览</span>
</div>
<div class="flex_box">
<div class="cnt">
<div class="cnt-left">
<div class="subtitle">
<img src="@/assets/images/index/i-sqjj.png" />
<span>社区简介</span>
</div>
<p>
{{ pandectData.deptName }}<span v-if="pandectData.gridCount">划分为{{
<div>
<div class="g-row">
<div class="g-row-left">
<div class="m-box m-search">
<div class="wrap">
<div class="title">
<span>社区查询</span>
</div>
<div class="tabs">
<div :class="{ 'z-on': searchData.type == 'jumin' }"
@click="searchDataTab('jumin')">
查居民
</div>
<div :class="{ 'z-on': searchData.type == 'fangwu' }"
@click="searchDataTab('fangwu')">
查房屋
</div>
</div>
<div class="search">
<div class="search-input">
<div class="input">
<input type="text"
:placeholder="typePlaceholder[searchData.type]
"
v-model="searchData.searchKey"
@keyup.enter="handleClickSearchBtn" />
<div class="close-btn"
v-if="searchData.searchKey != ''"
@click="searchData.searchKey = ''">
<img src="@/assets/img/shequ/close.png" />
</div>
</div>
<div class="btn"
@click="handleClickSearchBtn">
查一下
</div>
</div>
</div>
</div>
</div>
<div class=" m-pan m-box">
<div class="header">
<img src="@/assets/images/index/title-icon-sqzl.png" />
<span>社区总览</span>
</div>
<div class="flex_box">
<div class="cnt">
<div class="cnt-left">
<div class="subtitle">
<img src="@/assets/images/index/i-sqjj.png" />
<span>社区简介</span>
</div>
<p>
{{ pandectData.deptName }}<span v-if="pandectData.gridCount">划分为{{
pandectData.underCount }}{{
pandectData.underName
}}</span> 现有房屋{{ pandectData.homeCount }}自住房屋{{
}}</span> 现有房屋{{ pandectData.homeCount }}自住房屋{{
pandectData.selfStay
}}出租房屋{{
pandectData.rentOut
}}闲置房屋{{
pandectData.vacantHouse
}}现有居民{{pandectData.resiCount}}{{pandectData.totalResidents}}其中常住人口{{pandectData.permanentResiCount}}流动人口{{pandectData.floatingResiCount}}各类群体分布如下
</p>
</p>
<div class="subtitle">
<img src="@/assets/images/index/i-fxjg.png" />
<span>分析结果</span>
</div>
<div class="subtitle">
<img src="@/assets/images/index/i-fxjg.png" />
<span>分析结果</span>
</div>
<p class="hint" v-if="resiCategory.list.length > 0">
根据数据分析结果建议重点关注
<b>{{ resiCategory.list[0].name }}{{
<p class="hint"
v-if="resiCategory.list.length > 0">
根据数据分析结果建议重点关注
<b>{{ resiCategory.list[0].name }}{{
resiCategory.list[1].name
}}{{ resiCategory.list[2].name }}</b>
三类群体开展相关的社区服务和活动
</p>
</div>
<el-tabs v-model="activeName" style="width: calc(100% - 240px - 40px);margin-left: auto;">
<el-tab-pane label="居民分类统计" name="resi">
<div class="cnt-right">
<div class="list">
<div class="item" @click="handleClickCategory(item)" :key="item.code" v-for="(
三类群体开展相关的社区服务和活动
</p>
</div>
<el-tabs v-model="activeName"
style="width: calc(100% - 240px - 40px);margin-left: auto;">
<el-tab-pane label="居民分类统计"
name="resi">
<div class="cnt-right">
<div class="list">
<div class="item"
@click="handleClickCategory(item)"
:key="item.code"
v-for="(
item, index
) in resiCategory.list">
<div>
{{
<div>
{{
("0" + (index + 1)).substr(-2)
}}.
</div>
<div class="item-name">
{{ item.name }}
</div>
<div class="item-div"></div>
<div class="item-count">
{{ item.count }}
</div>
<div class="item-progress">
<b :style="{
</div>
<div class="item-name">
{{ item.name }}
</div>
<div class="item-div"></div>
<div class="item-count">
{{ item.count }}
</div>
<div class="item-progress">
<b :style="{
width: item.per + '%',
}"></b>
</div>
<div class="item-per">
{{ item.per }} %
</div>
</div>
</div>
</div>
</el-tab-pane>
<el-tab-pane label="智能预测" name="zhineng">
</el-tab-pane>
</el-tabs>
</div>
</div>
</div>
</div>
<div class="g-row-right">
<div class="m-box m-tx">
<div class="header">
<img
src="@/assets/images/index/title-icon-zntx.png"
/>
<span>智能提醒</span>
</div>
<div class="more" @click="toNoticePage">更多></div>
<div class="cnt" v-if="noticeData.length > 0">
<div @click="handleClickNotice(item)" class="item" :key="'notice' + item.targetId + index"
v-for="(item, index) in noticeData">
<div class="item_left">
<i class="i-tag" v-if="item.readFlag == 1">已读</i>
<i class="i-tag" v-else>未读</i>
</div>
<div class="item_right">
<div class="item-date">
{{ item.createdTime }}
</div>
<div class="item-title">
{{ item.content }}
</div>
</div>
</div>
</div>
<div class="cnt" v-else>
<div class="empty">
<img
src="~@/assets/images/shuju/renfang/index/empty.png"
/>
<span>暂无提醒</span>
</div>
</div>
</div>
<div class="m-box m-tb">
<div class="wrap">
<div class="header">
<img
src="@/assets/images/index/title-icon-zntb.png"
/>
<span>不满意事项月度趋势分析</span>
</div>
</div>
<!-- <div class="more">更多></div> -->
<div class="cnt">
<div id="my_chart" style="width: 100%;height: 230px; position: relative;top:-10px"></div>
</div>
</div>
</div>
</div>
<fastcall ref="fastcall" />
</div>
</div>
<div class="item-per">
{{ item.per }} %
</div>
</div>
</div>
</div>
</el-tab-pane>
<el-tab-pane label="智能预测"
name="zhineng">
<div class="cnt-right">
<div class="list">
<div class="item"
:key="item.code"
v-for="(
item, index
) in znycCategory.list">
<div>
{{
("0" + (index + 1)).substr(-2)
}}.
</div>
<div class="item-name">
{{ item.name }}
</div>
<div class="item-div"></div>
<div class="item-count">
{{ item.count }}
</div>
<div class="item-progress">
<b :style="{
width: item.per + '%',
}"></b>
</div>
<div class="item-per">
{{ item.per }} %
</div>
</div>
</div>
</div>
</el-tab-pane>
</el-tabs>
</div>
</div>
</div>
</div>
<div class="g-row-right">
<div class="m-box m-tx">
<div class="header">
<img src="@/assets/images/index/title-icon-zntx.png" />
<span>智能提醒</span>
</div>
<div class="more"
@click="toNoticePage">更多></div>
<div class="cnt"
v-if="noticeData.length > 0">
<div @click="handleClickNotice(item)"
class="item"
:key="'notice' + item.targetId + index"
v-for="(item, index) in noticeData">
<div class="item_left">
<i class="i-tag"
v-if="item.readFlag == 1">已读</i>
<i class="i-tag"
v-else>未读</i>
</div>
<div class="item_right">
<div class="item-date">
{{ item.createdTime }}
</div>
<div class="item-title">
{{ item.content }}
</div>
</div>
</div>
</div>
<div class="cnt"
v-else>
<div class="empty">
<img src="~@/assets/images/shuju/renfang/index/empty.png" />
<span>暂无提醒</span>
</div>
</div>
</div>
<div class="m-box m-tb">
<div class="wrap">
<div class="header">
<img src="@/assets/images/index/title-icon-zntb.png" />
<span>不满意事项月度趋势分析</span>
</div>
</div>
<!-- <div class="more">更多></div> -->
<div class="cnt">
<div id="my_chart"
style="width: 100%;height: 230px; position: relative;top:-10px"></div>
</div>
</div>
</div>
</div>
<fastcall ref="fastcall" />
</div>
</template>
<script>
import { requestPost, requestGet } from "@/js/dai/request";
@ -178,297 +223,336 @@ import fastcall from "@/views/modules/cpts/fastcall";
import * as echarts from 'echarts';
export default {
components: { fastcall },
data() {
return {
searchStatus: "ini", //ing over
searchData: {
type: "jumin",
searchKey: "",
},
typePlaceholder: {
jumin: "请输入姓名或联系电话或证件号",
fangwu: "请输入小区名称或楼栋名称",
xuqiu: "请输入需求人或需求内容或服务方",
},
resiCategory: {
loading: false,
total: "",
list: [],
},
orgData: {
id: "",
level: "agency",
},
pandectData: {
communityName: "",
streetName: "",
gridCount: "",
resiCount: "",
homeCount: "",
floatingResiCount: "",
permanentResiCount: "",
},
noticeData: [],
activeName: 'resi',
option: {
tooltip: {
trigger: 'axis'
},
legend: {
data: ['12345不满意数', '省满意调查不满意数', '社区自评不满意数'],
bottom: '10%',
icon: 'rect',
itemWidth: 20,
itemHeight: 5,
itemGap: 20,
},
grid: {
left: '3%',
right: '4%',
bottom: '25%',
containLabel: true
},
toolbox: {
// feature: {
// saveAsImage: {}
// }
},
xAxis: {
type: 'category',
boundaryGap: false,
data: ['1月', '2月', '3月', '4月', '5月', '6月', '7月']
},
yAxis: {
type: 'value'
},
series: [
{
name: '12345不满意数',
type: 'line',
stack: 'Total',
data: [120, 132, 101, 134, 90, 230, 210]
},
{
name: '省满意调查不满意数',
type: 'line',
stack: 'Total',
data: [220, 182, 191, 234, 290, 330, 310]
},
{
name: '社区自评不满意数',
type: 'line',
stack: 'Total',
data: [150, 232, 201, 154, 190, 330, 410]
}
]
},
myChart: {}
}
},
computed: {
maxTableHeight() {
// return this.clientHeight - 450;
return 420;
},
...mapGetters(["clientHeight"]),
},
watch: {
"searchData.searchKey": function (val) {
if (val == "") {
this.searchStatus = "ini";
}
},
$route: {
handler: function (newVal, oldVal) {
if (newVal.name == "home") {
this.getApiData();
}
},
deep: true,
immediate: true,
},
},
mounted() {
this.getApiData();
this.$nextTick(() => {
this.initChart()
})
console.log(
"dynamicMenuRoutes----------------------------",
this.$store.state.sidebarMenuList
);
},
methods: {
initChart() {
this.myChart = echarts.init(document.getElementById('my_chart'));
this.myChart.setOption(this.option)
window.addEventListener('resize', this.handleWindowResize);
},
handleWindowResize() {
if (this.myChart) {
this.myChart.resize();
}
},
searchDataTab(str) {
this.searchData.type = str;
},
handleClickCategory(item) {
this.$router.push({
name: "base-resi",
params: {
category: item.code
}
});
},
async readClearOne(item) {
console.log("item", item)
const url = `/message/intelligentMessage/msg/clearOne/?msgId=${item.id}`
const { data, code, msg } = await requestPost(url)
if (code == 0) {
this.getNoticeData()
} else if (code >= 8000) {
this.$message.error(msg)
}
},
handleClickNotice(item) {
const { msgType, targetId } = item;
this.readClearOne(item)
if (msgType == "community_house") {
this.$refs.fastcall.showHouseInfo(targetId);
} else if (msgType == "resident_base_info") {
this.$refs.fastcall.showResiInfo(targetId);
}
},
toNoticePage() {
this.$router.push({
path: "/main/home-notice",
});
},
toSearchPage(type, searchKey) {
this.$router.push({
path: "/main/shequ-chaxun"
});
localStorage.setItem('homeSearchType', type)
localStorage.setItem('homeSearchKey', searchKey)
},
handleClickSearchBtn(str) {
const {
searchData: { type, searchKey },
} = this;
if (str) {
this.toSearchPage(type, searchKey);
return
}
if (!searchKey) return this.$message.error("请输入搜索条件");
this.toSearchPage(type, searchKey);
},
async getApiData() {
await this.getOrgData();
this.getWarningList();
this.getPandectData();
this.getNoticeData();
},
//
async getOrgData() {
const url = "/gov/org/agency/maporg";
let params = {
orgId: "",
level: "",
};
const { data, code, msg } = await requestPost(url, params);
if (code === 0) {
this.orgData = data;
} else {
this.$message.error(msg);
}
},
//
async getPandectData() {
const url = "/actual/base/residentHouseMerge/communityOverview";
let params = {
// orgId: "",
// level: "",
};
const { data, code, msg } = await requestGet(url, params);
if (code === 0) {
if (data) {
this.pandectData = data;
}
} else {
this.$message.error(msg);
}
},
//
async getNoticeData() {
const url = "/message/intelligentMessage/list";
let params = {
last: "10",
};
const { data, code, msg } = await requestGet(url, params);
if (code === 0) {
if (data) {
this.noticeData = data;
}
} else {
this.$message.error(msg);
}
},
//
async getWarningList() {
const url = "/actual/base/resiCategory/categoryCountList";
let params = {
// id: this.orgData.id,
// level: "agency",
};
this.resiCategory.loading = true;
const { data, code, msg } = await requestGet(url, params);
this.resiCategory.loading = false;
if (code === 0) {
if (data) {
this.resiCategory.count = data.resiCount;
this.resiCategory.list = data.categoryList.map((item) => {
return {
code: item.categoryName,
name: resiCategoryMap[item.categoryName] || "",
count: item.categoryCount,
per: parseInt(
(100 * item.categoryCount) / data.resiCount
),
const: "const",
};
});
}
} else {
this.$message.error(msg);
}
},
},
components: { fastcall },
data () {
return {
searchStatus: "ini", //ing over
searchData: {
type: "jumin",
searchKey: "",
},
typePlaceholder: {
jumin: "请输入姓名或联系电话或证件号",
fangwu: "请输入小区名称或楼栋名称",
xuqiu: "请输入需求人或需求内容或服务方",
},
resiCategory: {
loading: false,
total: "",
list: [],
},
znycCategory: {
loading: false,
total: "",
list: [],
},
orgData: {
id: "",
level: "agency",
},
pandectData: {
communityName: "",
streetName: "",
gridCount: "",
resiCount: "",
homeCount: "",
floatingResiCount: "",
permanentResiCount: "",
},
noticeData: [],
activeName: 'resi',
option: {
tooltip: {
trigger: 'axis'
},
legend: {
data: ['12345不满意数', '省满意调查不满意数', '社区自评不满意数'],
bottom: '10%',
icon: 'rect',
itemWidth: 20,
itemHeight: 5,
itemGap: 20,
},
grid: {
left: '3%',
right: '4%',
bottom: '25%',
containLabel: true
},
toolbox: {
// feature: {
// saveAsImage: {}
// }
},
xAxis: {
type: 'category',
boundaryGap: false,
data: ['1月', '2月', '3月', '4月', '5月', '6月', '7月']
},
yAxis: {
type: 'value'
},
series: [
{
name: '12345不满意数',
type: 'line',
stack: 'Total',
data: [120, 132, 101, 134, 90, 230, 210]
},
{
name: '省满意调查不满意数',
type: 'line',
stack: 'Total',
data: [220, 182, 191, 234, 290, 330, 310]
},
{
name: '社区自评不满意数',
type: 'line',
stack: 'Total',
data: [150, 232, 201, 154, 190, 330, 410]
}
]
},
myChart: {}
}
},
computed: {
maxTableHeight () {
// return this.clientHeight - 450;
return 420;
},
...mapGetters(["clientHeight"]),
},
watch: {
"searchData.searchKey": function (val) {
if (val == "") {
this.searchStatus = "ini";
}
},
$route: {
handler: function (newVal, oldVal) {
if (newVal.name == "home") {
this.getApiData();
}
},
deep: true,
immediate: true,
},
},
mounted () {
this.getApiData();
this.$nextTick(() => {
this.initChart()
})
console.log(
"dynamicMenuRoutes----------------------------",
this.$store.state.sidebarMenuList
);
},
methods: {
initChart () {
this.myChart = echarts.init(document.getElementById('my_chart'));
this.myChart.setOption(this.option)
window.addEventListener('resize', this.handleWindowResize);
},
handleWindowResize () {
if (this.myChart) {
this.myChart.resize();
}
},
searchDataTab (str) {
this.searchData.type = str;
},
handleClickCategory (item) {
this.$router.push({
name: "base-resi",
params: {
category: item.code
}
});
},
async readClearOne (item) {
console.log("item", item)
const url = `/message/intelligentMessage/msg/clearOne/?msgId=${item.id}`
const { data, code, msg } = await requestPost(url)
if (code == 0) {
this.getNoticeData()
} else if (code >= 8000) {
this.$message.error(msg)
}
},
handleClickNotice (item) {
const { msgType, targetId } = item;
this.readClearOne(item)
if (msgType == "community_house") {
this.$refs.fastcall.showHouseInfo(targetId);
} else if (msgType == "resident_base_info") {
this.$refs.fastcall.showResiInfo(targetId);
}
},
toNoticePage () {
this.$router.push({
path: "/main/home-notice",
});
},
toSearchPage (type, searchKey) {
this.$router.push({
path: "/main/shequ-chaxun"
});
localStorage.setItem('homeSearchType', type)
localStorage.setItem('homeSearchKey', searchKey)
},
handleClickSearchBtn (str) {
const {
searchData: { type, searchKey },
} = this;
if (str) {
this.toSearchPage(type, searchKey);
return
}
if (!searchKey) return this.$message.error("请输入搜索条件");
this.toSearchPage(type, searchKey);
},
async getApiData () {
await this.getOrgData();
this.getWarningList();
this.getZnycList();
this.getPandectData();
this.getNoticeData();
},
//
async getOrgData () {
const url = "/gov/org/agency/maporg";
let params = {
orgId: "",
level: "",
};
const { data, code, msg } = await requestPost(url, params);
if (code === 0) {
this.orgData = data;
} else {
this.$message.error(msg);
}
},
//
async getPandectData () {
const url = "/actual/base/residentHouseMerge/communityOverview";
let params = {
// orgId: "",
// level: "",
};
const { data, code, msg } = await requestGet(url, params);
if (code === 0) {
if (data) {
this.pandectData = data;
}
} else {
this.$message.error(msg);
}
},
//
async getNoticeData () {
const url = "/message/intelligentMessage/list";
let params = {
last: "10",
};
const { data, code, msg } = await requestGet(url, params);
if (code === 0) {
if (data) {
this.noticeData = data;
}
} else {
this.$message.error(msg);
}
},
//
async getWarningList () {
const url = "/actual/base/resiCategory/categoryCountList";
let params = {
// id: this.orgData.id,
// level: "agency",
};
this.resiCategory.loading = true;
const { data, code, msg } = await requestGet(url, params);
this.resiCategory.loading = false;
if (code === 0) {
if (data) {
this.resiCategory.count = data.resiCount;
this.resiCategory.list = data.categoryList.map((item) => {
return {
code: item.categoryName,
name: resiCategoryMap[item.categoryName] || "",
count: item.categoryCount,
per: parseInt(
(100 * item.categoryCount) / data.resiCount
),
const: "const",
};
});
}
} else {
this.$message.error(msg);
}
},
//
async getZnycList () {
const url = "/actual/base/resiCategory/intelligentPredictioncategoryCountList";
// const url = "/actual/base/resiCategory/categoryCountList";
let params = {
// id: this.orgData.id,
// level: "agency",
};
this.znycCategory.loading = true;
const { data, code, msg } = await requestGet(url, params);
this.znycCategory.loading = false;
if (code === 0) {
if (data) {
this.znycCategory.count = data.resiCount;
this.znycCategory.list = data.categoryList.map((item) => {
return {
code: item.categoryName,
name: resiCategoryMap[item.categoryName] || "",
count: item.categoryCountNext,
// per: parseInt(
// (100 * item.categoryCount) / data.resiCount
// ),
per: item.change_ratio,
const: "const",
};
});
}
} else {
this.$message.error(msg);
}
},
},
};
</script>

Loading…
Cancel
Save