bug修改

This commit is contained in:
hanchaobo
2024-05-28 09:00:23 +08:00
parent 28663c1341
commit fea5e406b6
3 changed files with 166 additions and 159 deletions
@@ -270,7 +270,7 @@
</el-col>
<el-col :span="12" v-if="item.applicant.organizeFlag == 0">
<el-form-item label-width="140px" label="出生年月:" :prop="'applicant.' + index + '.applicant.birth'">
<el-date-picker disabled v-model="item.applicant.birth" type="date" placeholder="申请人出生年月日">
<el-date-picker v-model="item.applicant.birth" type="date" placeholder="申请人出生年月日">
</el-date-picker>
</el-form-item>
</el-col>
@@ -281,7 +281,7 @@
message: '请选择性别',
},
]">
<el-radio-group v-model="item.applicant.sex" disabled>
<el-radio-group v-model="item.applicant.sex">
<el-radio :label="'0'">男</el-radio>
<el-radio :label="'1'">女</el-radio>
</el-radio-group>
@@ -554,7 +554,7 @@
</el-col>
<el-col :span="12" v-if="item.res.organizeFlag == 0">
<el-form-item label-width="140px" label="出生年月:" :prop="'res.' + index + '.res.birth'">
<el-date-picker disabled v-model="item.res.birth" type="date" placeholder="被申请人出生年月日">
<el-date-picker v-model="item.res.birth" type="date" placeholder="被申请人出生年月日">
</el-date-picker>
</el-form-item>
</el-col>
@@ -565,7 +565,7 @@
message: '请选择性别',
},
]">
<el-radio-group v-model="item.res.sex" disabled>
<el-radio-group v-model="item.res.sex">
<el-radio :label="'0'">男</el-radio>
<el-radio :label="'1'">女</el-radio>
</el-radio-group>
@@ -820,7 +820,7 @@ export default {
"initpaymentArr",
"initpaymentArr1",
"queryParams",
"caseAttachList",
// "caseAttachList",
"columnValues",
"detailsAwardForm"
],
@@ -1086,147 +1086,112 @@ export default {
};
},
watch: {
formData: {
handler(val) {
this.activeName = "first"
this.formGrab.list = this.columnValues
this.caseAttachListArr = []
if (val) {
this.applicateArr = [];
this.quiltArr = [];
// this.formData = this.form;
this.fileList = [];
if (this.flag == "1" || this.flag == "0") {
// this.form2.paymentArr = this.initpaymentArr;
// this.form3.paymentArr1 = this.initpaymentArr1;
this.caseAttachList.forEach((item) => {
if (item.annexType == 2) {
this.applicateArr.push({
annexName: item.annexName,
annexPath: item.annexPath,
});
}
if (item.annexType == 6) {
this.quiltArr.push({
annexName: item.annexName,
annexPath: item.annexPath,
});
}
});
if (this.caseAttachList.length > 0) {
this.caseAttachListArr = this.caseAttachList
}
this.caseAttachList.forEach((item) => {
if (item.annexType == 2) {
this.fileList.push(item)
}
});
this.fileList.forEach((item) => {
item["name"] = item.annexName;
item["certificatePath"] = item.annexPath;
});
}
if (this.flag == "2") {
this.form2 = {
applicant: [
{
applicant: {
roleType: 1,
name: "",
idCard: "",
code: "",
phone: "",
compLegalPerson: "",
email: "",
home: "",
address: "",
idType: 0,
nationality: 1,
birth: "",
sex: "1",
operatorFlag: 1,
organizeFlag: 0,
},
applicantAgent: {
roleType: 2,
name: "",
idCard: "",
code: "",
phone: "",
compLegalPerson: "",
email: "",
home: "",
address: "",
idType: 0,
nationality: 1,
birth: "",
sex: "1",
operatorFlag: 1,
organizeFlag: 0,
},
},
],
res: [
{
res: {
roleType: 3,
name: "",
idCard: "",
code: "",
phone: "",
compLegalPerson: "",
email: "",
home: "",
address: "",
idType: 0,
nationality: 1,
birth: "",
sex: "0",
operatorFlag: 1,
organizeFlag: 0,
},
resAgent: {
roleType: 4,
name: "",
idCard: "",
code: "",
phone: "",
compLegalPerson: "",
email: "",
home: "",
address: "",
idType: 0,
nationality: 1,
birth: "",
sex: "",
operatorFlag: 1,
organizeFlag: 0,
}
}
]
}
this.form3.paymentArr1 = [
{
identityType: 2,
name: "",
identityNum: "",
contactTelphone: "",
email: "",
workAddress: "",
workTelphone: "",
contactAddress: "",
nameAgent: "",
contactTelphoneAgent: "",
contactAddressAgent: "",
},
];
}
}
},
deep: true,
},
visible(val) {
this.activeName = "first"
this.formGrab.list = this.columnValues
this.caseAttachListArr = []
if (val) {
this.applicateArr = [];
this.quiltArr = [];
this.fileList = [];
if (this.flag == "2") {
this.form2 = {
applicant: [
{
applicant: {
roleType: 1,
name: "",
idCard: "",
code: "",
phone: "",
compLegalPerson: "",
email: "",
home: "",
address: "",
idType: 0,
nationality: 1,
birth: "",
sex: "1",
operatorFlag: 1,
organizeFlag: 0,
},
applicantAgent: {
roleType: 2,
name: "",
idCard: "",
code: "",
phone: "",
compLegalPerson: "",
email: "",
home: "",
address: "",
idType: 0,
nationality: 1,
birth: "",
sex: "1",
operatorFlag: 1,
organizeFlag: 0,
},
},
],
res: [
{
res: {
roleType: 3,
name: "",
idCard: "",
code: "",
phone: "",
compLegalPerson: "",
email: "",
home: "",
address: "",
idType: 0,
nationality: 1,
birth: "",
sex: "0",
operatorFlag: 1,
organizeFlag: 0,
},
resAgent: {
roleType: 4,
name: "",
idCard: "",
code: "",
phone: "",
compLegalPerson: "",
email: "",
home: "",
address: "",
idType: 0,
nationality: 1,
birth: "",
sex: "",
operatorFlag: 1,
organizeFlag: 0,
}
}
]
}
this.form3.paymentArr1 = [
{
identityType: 2,
name: "",
identityNum: "",
contactTelphone: "",
email: "",
workAddress: "",
workTelphone: "",
contactAddress: "",
nameAgent: "",
contactTelphoneAgent: "",
contactAddressAgent: "",
},
];
}
}
if (val && (this.flag == "0" || this.flag == "1")) {
setTimeout(() => {
this.detailsAwardNum = this.detailsAwardForm;
@@ -1258,6 +1223,33 @@ export default {
item.resAgent = {}
}
})
this.caseAttachList = data.caseAttachList;
this.caseAttachList.forEach((item) => {
if (item.annexType == 2) {
this.applicateArr.push({
annexName: item.annexName,
annexPath: item.annexPath,
});
}
if (item.annexType == 6) {
this.quiltArr.push({
annexName: item.annexName,
annexPath: item.annexPath,
});
}
});
if (this.caseAttachList.length > 0) {
this.caseAttachListArr = this.caseAttachList
}
this.caseAttachList.forEach((item) => {
if (item.annexType == 2) {
this.fileList.push(item)
}
});
this.fileList.forEach((item) => {
item["name"] = item.annexName;
item["certificatePath"] = item.annexPath;
});
this.formData = data;
this.form2 = data.affiliate;
})
@@ -1308,7 +1300,7 @@ export default {
// 文件上传成功
handlSuccess(res, file) {
this.caseAttachListArr.push(
res.data,
res
);
},
// 文件超出个数限制时的钩子
@@ -1330,8 +1322,6 @@ export default {
return this.$confirm(`确定移除 ${file.name}?`);
},
handleRemove(file, fileList) {
console.log(file)
console.log(fileList)
console.log(this.caseAttachListArr)
this.caseAttachListArr = this.caseAttachListArr.filter(item => item.annexId != file.annexId)
// (this.caseAttachListArr = []),