Browse Source

Merge branch 'fix_bug' into preview

# Conflicts:
#	src/views/modules/base/smartImport/cpts/createdTask.vue
feature
mk 2 years ago
parent
commit
d4424e9225
  1. 16
      src/views/components/editResi.vue
  2. 11
      src/views/components/resiExpand/editExpand.vue
  3. 2
      src/views/modules/base/smartImport/cpts/completeTask.vue
  4. 27
      src/views/modules/base/smartImport/cpts/createdTask.vue
  5. 2
      src/views/modules/base/smartImport/index.vue
  6. 2
      src/views/modules/portrayal/jumin/index.vue

16
src/views/components/editResi.vue

@ -1049,10 +1049,6 @@ export default {
economyDto: { economyDto: {
monthIncome: null, // monthIncome: null, //
}, },
subsistenceAllowanceDto: {
reasons: null,
category: [],
},
}, },
orgOption:[], orgOption:[],
footerInputList: [ footerInputList: [
@ -1475,7 +1471,7 @@ export default {
{ {
label: "子女死亡日期", label: "子女死亡日期",
itemType: "datepicker1", itemType: "datepicker1",
formName: "certificateDate", formName: "childDeathDate",
pformName: "specialSupportDto", pformName: "specialSupportDto",
opction: [], opction: [],
}, },
@ -1636,7 +1632,6 @@ export default {
this.getOrgTreeList(this.form.resideInfoDtos[i].agencyId,i); this.getOrgTreeList(this.form.resideInfoDtos[i].agencyId,i);
} }
this.form = { ...res.data.data }; this.form = { ...res.data.data };
this.form.baseInfoDto.idNum = this.$route.params.idNum; this.form.baseInfoDto.idNum = this.$route.params.idNum;
this.form.baseInfoDto.mobile = this.$route.params.mobile; this.form.baseInfoDto.mobile = this.$route.params.mobile;
if (!res.data.data.familyInfoDto) { if (!res.data.data.familyInfoDto) {
@ -1670,6 +1665,12 @@ export default {
specialCategoryCodes: [], specialCategoryCodes: [],
}; };
} }
if (!res.data.data.subsistenceAllowanceDto) {
this.form.subsistenceAllowanceDto = {
reasons: [],
category:null ,
};
}
if (!res.data.data.unemployedDto) { if (!res.data.data.unemployedDto) {
this.form.unemployedDto = { this.form.unemployedDto = {
originWorkUnit: null, // originWorkUnit: null, //
@ -1709,7 +1710,7 @@ export default {
formData.partyOrgIdPath || null; formData.partyOrgIdPath || null;
} }
this.footerInputList[i].children[index].value = this.footerInputList[i].children[index].value =
formData[formName] || null; formData[formName] != null?formData[formName]:null
this.footerInputList[i].children[index].id = this.footerInputList[i].children[index].id =
formData.id; formData.id;
} }
@ -2201,7 +2202,6 @@ export default {
// //
submitExpand(_form, { changId, changPid, changType }) { submitExpand(_form, { changId, changPid, changType }) {
if (changType == "checkbox") { if (changType == "checkbox") {
this.form[changPid] = {};
this.form[changPid][changId] = []; this.form[changPid][changId] = [];
this.form[changPid][changId].push(..._form[changPid][changId]); this.form[changPid][changId].push(..._form[changPid][changId]);
} else { } else {

11
src/views/components/resiExpand/editExpand.vue

@ -119,6 +119,7 @@ export default {
disabilityDesc: null, disabilityDesc: null,
guardianFlag: null, guardianFlag: null,
guardianName: null, guardianName: null,
guardianMobile:null,
specialSkillFlag: null, specialSkillFlag: null,
workCapacityFlag: null workCapacityFlag: null
}, },
@ -142,8 +143,8 @@ export default {
}, },
// //
subsistenceAllowanceDto: { subsistenceAllowanceDto: {
reasons: null, reasons: [],
category: [] category:null ,
}, },
// 退 // 退
veteranDto: { veteranDto: {
@ -179,7 +180,6 @@ export default {
volunteerDto: { volunteerDto: {
volunteerCategory: [] volunteerCategory: []
}, },
}, },
casProps: { casProps: {
value: 'id', value: 'id',
@ -234,7 +234,6 @@ export default {
}, },
showForm() { showForm() {
this.$nextTick(() => { this.$nextTick(() => {
// console.log(this.formList,'formList');
// console.log(this.form,'form'); // console.log(this.form,'form');
const promises = this.formList.forEach((item) => { const promises = this.formList.forEach((item) => {
item.form.map(async (group) => { item.form.map(async (group) => {
@ -248,8 +247,8 @@ export default {
this.partyOrgIdPath = item.orgPath.split(':')[0] this.partyOrgIdPath = item.orgPath.split(':')[0]
await this.getOrgTree() await this.getOrgTree()
this.form[item.pformName][item.formName] = item.value || null this.form[item.pformName][item.formName] = item.value || null
} else { } else{
this.form[item.pformName][item.formName] = item.value || null this.form[item.pformName][item.formName] = item.value != null?item.value:null;
} }
if (item.opctionUrl) { if (item.opctionUrl) {
try { try {

2
src/views/modules/base/smartImport/cpts/completeTask.vue

@ -45,7 +45,7 @@
<i class="el-icon-download" style="margin-left: 16px;"></i> <i class="el-icon-download" style="margin-left: 16px;"></i>
<a <a
v-if="resultDescFile" v-if="resultDescFile"
:href="this.resultDescFile" :href="resultDescFile"
target="_blank" target="_blank"
style="color: #ff4d4f; cursor: pointer" style="color: #ff4d4f; cursor: pointer"
>下载结果说明</a >下载结果说明</a

27
src/views/modules/base/smartImport/cpts/createdTask.vue

@ -84,6 +84,7 @@
<div class="content_box"> <div class="content_box">
<div class="left"> <div class="left">
<el-upload <el-upload
v-if="fileList.length === 0"
:headers="$getElUploadHeaders()" :headers="$getElUploadHeaders()"
name="processFile" name="processFile"
action="uploadUlr" action="uploadUlr"
@ -98,6 +99,12 @@
<i class="el-icon-upload" style="font-size: 58px; color: #c5c9d1"></i> <i class="el-icon-upload" style="font-size: 58px; color: #c5c9d1"></i>
<div class="el-upload__text" v-html="$t('upload.text')"></div> <div class="el-upload__text" v-html="$t('upload.text')"></div>
</el-upload> </el-upload>
<section v-else class="uploadList">
<div v-for="file in fileList" :key="file.id" :file="file" style="display: flex; align-items: center">
<span>{{ file.name }}</span>
<i class="el-icon-close" @click="removeFile(file)" style="cursor: pointer;"></i>
</div>
</section>
</div> </div>
<div class="right"> <div class="right">
<p>4上传按导入模板整理后的excel数据文件</p> <p>4上传按导入模板整理后的excel数据文件</p>
@ -157,7 +164,7 @@
<template slot-scope="scope"> <template slot-scope="scope">
<span <span
:class="[ :class="[
scope.row.itemGroupId && scope.row.itemGroupId != '' scope.row.itemId && scope.row.itemId != ''
? '' ? ''
: 'font_color_red', : 'font_color_red',
]" ]"
@ -171,7 +178,7 @@
label="对应到" label="对应到"
min-width="50" min-width="50"
> >
<template slot-scope="scope"><span v-if="scope.row.itemGroupId"> =></span> </template> <template slot-scope="scope"><span v-if="scope.row.itemId"> =></span> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="itemGroupId" prop="itemGroupId"
@ -255,7 +262,8 @@ export default {
dataListLoading: false, dataListLoading: false,
dataList: [], dataList: [],
groupList: [], groupList: [],
fileCode: null, fileCode:null,
fileList:[]
}; };
}, },
props: {}, props: {},
@ -379,6 +387,7 @@ export default {
const { fileName, url } = res.data.data; const { fileName, url } = res.data.data;
this.createdFileName = fileName; this.createdFileName = fileName;
this.createdFileUrl = url; this.createdFileUrl = url;
this.fileList.push({name:fileName,url:url})
this.checkExtractExcelHead(); this.checkExtractExcelHead();
} else { } else {
this.$message.error(res.data.msg); this.$message.error(res.data.msg);
@ -392,6 +401,9 @@ export default {
}); });
this.$refs.upload.clearFiles(); this.$refs.upload.clearFiles();
}, },
removeFile(){
this.fileList = [];
},
// //
async handleExportModuleAll() { async handleExportModuleAll() {
let url = "/actual/base/residentBaseInfo/import/download-template"; let url = "/actual/base/residentBaseInfo/import/download-template";
@ -512,5 +524,14 @@ export default {
@import "@/assets/scss/buttonstyle.scss"; @import "@/assets/scss/buttonstyle.scss";
@import "@/assets/scss/modules/management/detail-main.scss"; @import "@/assets/scss/modules/management/detail-main.scss";
@import "@/assets/scss/pages/smartImport.scss"; @import "@/assets/scss/pages/smartImport.scss";
.uploadList{
width: 99%;
height: 180px;
border: 1px dashed #ccc;
border-radius: 5px;
display: flex;
justify-content: center;
align-items: center;
}
</style> </style>

2
src/views/modules/base/smartImport/index.vue

@ -199,6 +199,8 @@ export default {
handleClose() { handleClose() {
this.pageType = "list"; this.pageType = "list";
this.processStatus = null; this.processStatus = null;
this.pageNo = 1;
this.getTableData();
}, },
// //
handleOk(type) { handleOk(type) {

2
src/views/modules/portrayal/jumin/index.vue

@ -1077,7 +1077,7 @@ export default {
{ {
label: "子女死亡日期", label: "子女死亡日期",
itemType: "datepicker1", itemType: "datepicker1",
formName: "certificateDate", formName: "childDeathDate",
opction: [], opction: [],
}, },
{ {

Loading…
Cancel
Save