wxz 3 years ago
parent
commit
d6cd43726e
  1. 2
      src/js/dai/request.js
  2. 2
      src/router/index.js
  3. 278
      src/views/components/resiForm.vue
  4. 5
      src/views/modules/base/community/community.vue
  5. 5
      src/views/modules/base/community/communityExportInfo.vue
  6. 125
      src/views/modules/base/community/communityTable.vue
  7. 17
      src/views/modules/base/resi.vue
  8. 4
      src/views/modules/base/smartImport.vue
  9. 18
      src/views/modules/communityParty/partyOrg/orgTree.vue
  10. 6
      src/views/modules/cpts/base/index.vue

2
src/js/dai/request.js

@ -64,7 +64,7 @@ const request = curry(
};
const failFn = (err) => {
// console.log(`[request失败] ${url}`, data, err)
console.log(err);
// console.log(err);
reslove(
Object.assign({}, returnIniData, {
httpCode: "9999", //访问出现意外

2
src/router/index.js

@ -399,6 +399,8 @@ export function addDynamicRoute(routeParams, router) {
title: `${routeParams.title}`,
},
};
router.matcher = new Router().matcher
router.addRoutes([{
...moduleRoutes,
name: `main-dynamic__${dynamicRoute.name}`,

278
src/views/components/resiForm.vue

@ -1317,31 +1317,34 @@ export default {
await this.getHouseList()
await this.residentEduInfo(this.form.resiId)
},
getAllDict () {
//
this.getDictList()
//
this.getRelationship()
//
this.getEducation()
//
this.getdisabilityDict()
this.getdisabilityDictClass()
this.getillnessDict()
this.getchronicDict()
this.getHouseholdDict()
this.getMarriageDict()
this.getResideDict()
this.getSpouseDict()
this.getPartyDict()
this.getResidentDict()
this.getHousing()
this.getVolunteerDict()
this.gethobbyDict()
this.getWelfareDict()
this.getUnemployment()
this.getCareer()
async getAllDict() {
try {
await Promise.all([
this.getDictList(),
this.getRelationship(),
this.getEducation(),
this.getdisabilityDict(),
this.getdisabilityDictClass(),
this.getillnessDict(),
this.getchronicDict(),
this.getHouseholdDict(),
this.getMarriageDict(),
this.getResideDict(),
this.getSpouseDict(),
this.getPartyDict(),
this.getResidentDict(),
this.getHousing(),
this.getVolunteerDict(),
this.gethobbyDict(),
this.getWelfareDict(),
this.getUnemployment(),
this.getCareer()
]);
} catch (error) {
console.error("Error fetching dictionaries: ", error);
}
},
getGridList () {
const { user } = this.$store.state
this.$http.post('/gov/org/customergrid/gridoption', { agencyId: user.agencyId, purpose: 'addorupdate' }).then(({ data: res }) => {
@ -1372,237 +1375,67 @@ export default {
this.newForm.nation = val
},
async getdisabilityDict () {
try {
const { data } = await this.$http.post('sys/dict/data/dictlist', { 'dictType': 'disability_category_code' })
this.footerInputList.forEach(c => {
for (let i of c.children) {
if (i.formName == 'disabilityCategoryCode') {
i.opction = data.data
}
}
})
} catch (error) {
console.log(error, '获取残疾字典');
}
await this.getDictData('disability_category_code','disabilityCategoryCode')
},
async getVolunteerDict () {
try {
const { data } = await this.$http.post('sys/dict/data/dictlist', { 'dictType': 'VOLUNTEER_CATEGORY' })
this.footerInputList.forEach(c => {
for (let i of c.children) {
if (i.formName == 'volunteerCategory') {
i.opction = data.data
}
}
})
} catch (error) {
console.log(error, '获取志愿者字典');
}
await this.getDictData('VOLUNTEER_CATEGORY','volunteerCategory')
},
async gethobbyDict () {
try {
const { data } = await this.$http.post('sys/dict/data/dictlist', { 'dictType': 'SPECIAL_SKILL' })
this.footerInputList.forEach(c => {
for (let i of c.children) {
if (i.formName == 'hobbyCode') {
i.opction = data.data
}
}
})
} catch (error) {
console.log(error, '获取兴趣爱好字典');
}
await this.getDictData('SPECIAL_SKILL','hobbyCode')
},
async getdisabilityDictClass () {
try {
const { data } = await this.$http.post('sys/dict/data/dictlist', { 'dictType': 'disability_level' })
this.footerInputList.forEach(c => {
for (let i of c.children) {
if (i.formName == 'disabilityLevel') {
i.opction = data.data
}
}
})
} catch (error) {
console.log(error, '获取残疾等级字典');
}
await this.getDictData('disability_level','disabilityLevel')
},
async getillnessDict () {
try {
const { data } = await this.$http.post('sys/dict/data/dictlist', { 'dictType': 'illness_code' })
this.footerInputList.forEach(c => {
for (let i of c.children) {
if (i.formName == 'illnessCode') {
i.opction = data.data
}
}
})
} catch (error) {
console.log(error, '获取所患大病字典');
}
await this.getDictData('illness_code','illnessCode')
},
async getchronicDict () {
try {
const { data } = await this.$http.post('sys/dict/data/dictlist', { 'dictType': 'chronic_disease_code' })
this.footerInputList.forEach(c => {
for (let i of c.children) {
if (i.formName == 'chronicDiseaseCode') {
i.opction = data.data
}
}
})
} catch (error) {
console.log(error, '获取所患慢病字典');
}
await this.getDictData('chronic_disease_code','chronicDiseaseCode')
},
async getWelfareDict () {
try {
const { data } = await this.$http.post('sys/dict/data/dictlist', { 'dictType': 'welfare_post' })
this.footerInputList.forEach(c => {
for (let i of c.children) {
if (i.formName == 'jobPost') {
i.opction = data.data
}
}
})
} catch (error) {
console.log(error, '获取公益岗位字典');
}
await this.getDictData('welfare_post','jobPost')
},
async getUnemployment () {
try {
const { data } = await this.$http.post('sys/dict/data/dictlist', { 'dictType': 'unemployment_cause' })
this.footerInputList.forEach(c => {
for (let i of c.children) {
if (i.formName == 'unemploymentReason') {
i.opction = data.data
}
}
})
} catch (error) {
console.log(error, '获取失业原因字典');
}
await this.getDictData('unemployment_cause','unemploymentReason')
},
async getCareer () {
try {
const { data } = await this.$http.post('sys/dict/data/dictlist', { 'dictType': 'career_goals' })
this.footerInputList.forEach(c => {
for (let i of c.children) {
if (i.formName == 'employmentWish') {
i.opction = data.data
}
}
})
} catch (error) {
console.log(error, '获取就业愿望字典');
}
await this.getDictData('career_goals','employmentWish')
},
async getHouseholdDict () {
try {
const { data } = await this.$http.post('sys/dict/data/dictlist', { 'dictType': 'household_situation' })
this.footerInputList.forEach(c => {
for (let i of c.children) {
if (i.formName == 'householdSituation') {
i.opction = data.data
}
}
})
} catch (error) {
console.log(error, '获取人户状况字典');
}
await this.getDictData('household_situation','householdSituation')
},
async getMarriageDict () {
try {
const { data } = await this.$http.post('sys/dict/data/dictlist', { 'dictType': 'marriage' })
this.footerInputList.forEach(c => {
for (let i of c.children) {
if (i.formName == 'marriage') {
i.opction = data.data
}
}
})
} catch (error) {
console.log(error, '获取婚姻状况字典');
}
await this.getDictData('marriage','marriage')
},
async getResideDict () {
try {
const { data } = await this.$http.post('sys/dict/data/dictlist', { 'dictType': 'reside_situation' })
this.footerInputList.forEach(c => {
for (let i of c.children) {
if (i.formName == 'resideSituation') {
i.opction = data.data
}
}
})
} catch (error) {
console.log(error, '获取居住情况字典');
}
await this.getDictData('reside_situation','resideSituation')
},
async getPartyDict () {
await this.getDictData('party_job','partyJob')
},
async getSpouseDict () {
try {
const { data } = await this.$http.post('sys/dict/data/dictlist', { 'dictType': 'spouse_situation' })
this.footerInputList.forEach(c => {
for (let i of c.children) {
if (i.formName == 'spouseSituation') {
i.opction = data.data
}
}
})
} catch (error) {
console.log(error, '获取配偶情况字典');
}
await this.getDictData('spouse_situation','spouseSituation')
},
async getResidentDict () {
try {
const { data } = await this.$http.post('sys/dict/data/dictlist', { 'dictType': 'special_resident_category' })
console.log(data.data, 'see');
this.footerInputList.forEach(c => {
for (let i of c.children) {
if (i.formName == 'specialCategoryCode') {
i.opction = data.data
}
}
})
} catch (error) {
console.log(error, '获取配偶情况字典');
}
await this.getDictData('special_resident_category','specialCategoryCode')
},
async getPartyDict () {
//
async getDictData(dictType, formName) {
try {
const { data } = await this.$http.post('sys/dict/data/dictlist', { 'dictType': 'party_job' })
const { data } = await this.$http.post('sys/dict/data/dictlist', { 'dictType': dictType });
this.footerInputList.forEach(c => {
for (let i of c.children) {
if (i.formName == 'partyJob') {
i.opction = data.data
if (i.formName == formName) {
i.opction = data.data;
}
}
})
});
} catch (error) {
console.log(error, '获取职务字典');
console.log(error, `获取 ${dictType} 字典`);
}
},
getBuildList () {
this.$http.post('/actual/base/communityBuilding/buildingoption', { quartersId: this.form.villageId }).then(({ data: res }) => {
if (res.code !== 0) {
@ -1663,7 +1496,8 @@ export default {
},
checkNumberInput (itemj, itemk) {
if (isNaN(this.form[itemj][itemk])) {
if(this.form[itemj][itemk]){
if (isNaN(this.form[itemj][itemk])) {
this.$message.error("请输入数字");
this.form[itemj][itemk] = "";
} else {
@ -1671,6 +1505,8 @@ export default {
this.form[itemj][itemk]
);
}
}
},
handleChangeGrid (val) {
console.log('val', val)
@ -2282,7 +2118,7 @@ export default {
securityType: '',//
certificateDate: '',//yyyy-MM-dd
subsidyNum: '',//
subsidyAmount: '',//
subsidyAmount: null,//
}
this.newForm.ensureHouseDto = this.form.ensureHouseDto
}

5
src/views/modules/base/community/community.vue

@ -773,8 +773,7 @@ export default {
await nextTick(1000);
this.vDisabled = false;
this.bDisabled = false;
console.log(obj);
if (obj.level === "building") {
//
@ -816,8 +815,6 @@ export default {
this.getValiheList("", "");
this.treeIsOk = true
}
},

5
src/views/modules/base/community/communityExportInfo.vue

@ -160,6 +160,10 @@ export default {
type: Object,
default: () => { },
},
orgId: {
type:String,
default:''
}
},
components: {
checkBox,
@ -364,6 +368,7 @@ export default {
};
}),
},
orgId:this.orgId || ''
};
await this.$http({
method: "POST",

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

@ -210,8 +210,8 @@
formCode: 'community_info',
pageNo: pageNo,
pageSize: pageSize,
}" @close="handleDiyClose"></community-export-info>
conditions:queryConditions
}" :orgId="treeObj.id" @close="handleDiyClose"></community-export-info>
</el-dialog>
<baobiao ref="baobiao" />
@ -315,7 +315,7 @@ export default {
diyDialog: false,
// queryConditions: [],
queryConditions: [],
};
},
@ -362,38 +362,38 @@ export default {
async mounted() {
this.customerId = localStorage.getItem("customerId");
// this.displayedBaobiaoBtn = await this.$refs.baobiao.existsTemplate({
// elseParams: {
// categoryKeys: ['house_info'], categoryKey: 'house_info',
// }
// });
// this.getQueryConditions();
this.displayedBaobiaoBtn = await this.$refs.baobiao.existsTemplate({
elseParams: {
categoryKeys: ['house_info'], categoryKey: 'house_info',
}
});
this.getQueryConditions();
},
methods: {
// async getQueryConditions() {
// let params = {
// formCode: "community_info",
// customerId: this.$store.state.user.customerId,
// };
//
// const { data } = await this.$http.post(
// "/oper/customize/icform/queryItems",
// params
// );
//
// if (data.code === 0) {
// this.queryConditions = data.data.map((item) => {
// return {
// ...item,
// humpName: util.capitalToHump(item.columnName),
// };
// });
// console.log(this.queryConditions);
// } else {
// this.$message.error(data.msg);
// }
// },
async getQueryConditions() {
let params = {
formCode: "community_info",
customerId: this.$store.state.user.customerId,
};
const { data } = await this.$http.post(
"/oper/customize/icform/queryItems",
params
);
if (data.code === 0) {
this.queryConditions = data.data.map((item) => {
return {
...item,
humpName: util.capitalToHump(item.columnName),
};
});
console.log(this.queryConditions);
} else {
this.$message.error(data.msg);
}
},
reportForm() {
let paramMap = {
@ -774,67 +774,6 @@ export default {
} else {
this.$message.error(msg);
}
// if (code === 0) {
// //
// let dataTemp = [
// {
// childShowFlag: "0",
// customerId: "45687aa479955f9d06204d415238f7cc",
// display: false,
// formCode: "resi_base_info",
// formId: "20220422102809_1",
// groupCode: "jcxx",
// id: "45687aa479955f9d06204d415238f7cc_0",
// label: "",
// policyFlag: "1",
// sort: 0,
// supportAdd: false,
// tableName: "ic_resi_user"
// },
// {
// childShowFlag: "0",
// customerId: "45687aa479955f9d06204d415238f7cc",
// display: true,
// formCode: "resi_base_info",
// formId: "20220422102809_1",
// groupCode: "jyxx",
// id: "20220422102809_101",
// label: "",
// policyFlag: "1",
// sort: 1,
// supportAdd: false,
// tableName: "ic_resi_user",
// },
// {
// childShowFlag: "0",
// customerId: "45687aa479955f9d06204d415238f7cc",
// display: true,
// formCode: "resi_base_info",
// formId: "20220422102809_1",
// groupCode: "xqah",
// id: "20220422102809_102",
// label: "",
// policyFlag: "1",
// sort: 2,
// supportAdd: false,
// tableName: "ic_resi_user",
// }
// ]
// dataTemp.forEach((item) => {
// (async (id) => {
// // item.queryItemList = await this.getExportChildList(id)
// item.queryItemList = [];
// })(item.id);
// });
// this.exportList = [...dataTemp];
// this.$nextTick(() => {
// this.diyDialog = true;
// });
// console.log("getExportList----", this.exportList);
// } else {
// this.$message.error(msg);
// }
},
//
async handleExport() {

17
src/views/modules/base/resi.vue

@ -51,27 +51,27 @@
class="diy-button--white"
@click="diyExport"
plain>导出</el-button>
<el-button v-if="btnAuths.ic_resi_export"
<!-- <el-button v-if="btnAuths.ic_resi_export"
style="margin-left: 10px"
size="small"
class="diy-button--add"
@click=""
type="parimary"
plain>核对</el-button>
plain>核对</el-button> -->
<el-button v-if="
<!-- <el-button v-if="
btnAuths.ic_resi_smart_import && displayedBaobiaoBtn
"
style="margin-left: 10px"
size="small"
@click="reportForm"
class="diy-button--white">核对</el-button>
class="diy-button--white">核对</el-button> -->
<el-button style="margin-left: 10px"
v-if="btnAuths.ic_resi_batch_del"
size="small"
class="diy-button--white"
plain
class="diy-button--add"
type="parimary"
@click="deleteBatch">批量删除</el-button>
<!-- <el-button type="primary" size="small">下载人口模板</el-button> -->
</div>
@ -86,7 +86,6 @@
:height="tableHeight"
@select-all="selectAll"
@selection-change="selectionChange">
<!-- 为啥要谁都能删除居民? -->
<!-- :selectable="checkSelectable" -->
<el-table-column type="selection"
fixed="left"
@ -553,7 +552,7 @@ export default {
},
category: this.$route.query.category,
searchForm:{}
searchForm:{},
};
},
@ -1368,7 +1367,7 @@ export default {
this.handleSearchFrom()
}else{
this.$refs.myResiSearch.form.categoryKey = []
this.getTableData()
this.getTableData()
}
})
}

4
src/views/modules/base/smartImport.vue

@ -296,11 +296,9 @@ export default {
async getResident() {
try {
const { data } = await this.$http.post("sys/dict/data/dictlist", {
dictType: "resident_category",
dictType: "resident_category_import",
});
let myObject = { label: "基础信息", value: "BASEINFO" };
this.resiClass = data.data;
this.resiClass.unshift(myObject);
} catch (error) {
console.log(error, "获取居民类别字典");
}

18
src/views/modules/communityParty/partyOrg/orgTree.vue

@ -34,10 +34,13 @@
:data="partyOrgTree"
style="width: 100%"
row-key="id"
:key="tableKey"
border
lazy
:load="handleTreeNodeExpand"
:tree-props="{children: 'children', hasChildren: 'hasChildren'}">
:tree-props="{children: 'children', hasChildren: 'hasChildren'}"
ref="table"
>
<el-table-column
prop="partyOrgName"
@ -119,7 +122,8 @@ export default {
updateDlgShow: false, //
editDlgShow: false, //
partyOrgTree: [], //
expandedOrgId: []
expandedOrgId: [],
tableKey:''
}
},
components: {
@ -225,7 +229,7 @@ export default {
this.epmetResultResolver.success((data) => {
this.$message.success('删除成功');
this.handleLoadTreeRoot();
this.handleLoadTreeRoot(true);
}).parse(rst);
});
@ -245,15 +249,13 @@ export default {
/**
* 加载树根
*/
async handleLoadTreeRoot() {
async handleLoadTreeRoot(status) {
let url = "/actual/base/party/org/listPartyOrgTreeRoot";
let rst = await requestGet(url, {})
this.epmetResultResolver.success((data) => {
this.partyOrgTree.length = 0;
this.partyOrgTree.length = 0
this.partyOrgTree.push(data);
this.tableKey = new Date().getTime();
// 2
console.log(">>>>", this.partyOrgTree)
if (this.partyOrgTree.length > 0) {

6
src/views/modules/cpts/base/index.vue

@ -410,7 +410,7 @@ export default {
showSercahStatus:{
type: Boolean,
default: false,
}
},
},
data () {
@ -436,8 +436,8 @@ export default {
maxTableHeight () {
const { ref_search_height } = this;
return this.$store.state.inIframe
? this.clientHeight - ref_search_height - 265 + this.iframeHeight
: this.clientHeight - ref_search_height - 265;
? this.clientHeight - ref_search_height - 270 + this.iframeHeight
: this.clientHeight - ref_search_height - 270;
},
...mapGetters(["clientHeight", "iframeHeight"]),
},

Loading…
Cancel
Save