'2.20-2
This commit is contained in:
@@ -499,13 +499,15 @@ export default {
|
||||
applicantEvidence: [], //申请人证据
|
||||
respondentEvidence: [], //被申请人证据
|
||||
buttonFlag: true,
|
||||
getUserInfoList: {}
|
||||
getUserInfoList: {},
|
||||
applicationFlag: null
|
||||
};
|
||||
},
|
||||
watch: {
|
||||
addModifyData(val) {
|
||||
if (val == 1) {
|
||||
this.title = "新增案件";
|
||||
this.getUserInfoFn();
|
||||
this.modelFlag = false;
|
||||
this.buttonFlag = true;
|
||||
this.formData = {
|
||||
@@ -533,48 +535,12 @@ export default {
|
||||
if (this.addModifyData != 1) {
|
||||
this.caseApplicationSelectByIdFn(this.caseData.id);
|
||||
}
|
||||
if (this.formData.affiliate.organizeFlag == 0) {
|
||||
this.formData.affiliate.applicationName = this.getUserInfoList.nickName;
|
||||
this.formData.affiliate.code = this.getUserInfoList.idCard;
|
||||
this.formData.affiliate.applicationEmail = this.getUserInfoList.email;
|
||||
this.formData.affiliate.applicationPhone = this.getUserInfoList.phonenumber;
|
||||
} else if (this.formData.affiliate.organizeFlag == 1) {
|
||||
this.formData.affiliate.nameAgent = this.getUserInfoList.nickName;
|
||||
this.formData.affiliate.agentEmail = this.getUserInfoList.email;
|
||||
this.formData.affiliate.contactTelphoneAgent = this.getUserInfoList.phonenumber;
|
||||
}
|
||||
}
|
||||
},
|
||||
formData: {
|
||||
handler(newVal) {
|
||||
if (newVal) {
|
||||
console.log('newVal========newVal==========newVal', newVal);
|
||||
if (newVal.affiliate.organizeFlag == 0) {
|
||||
this.formData.affiliate.applicationName = this.getUserInfoList.nickName;
|
||||
this.formData.affiliate.code = this.getUserInfoList.idCard;
|
||||
this.formData.affiliate.applicationEmail = this.getUserInfoList.email;
|
||||
this.formData.affiliate.applicationPhone = this.getUserInfoList.phonenumber;
|
||||
// this.formData.affiliate.nameAgent = '';
|
||||
// this.formData.affiliate.agentEmail = '';
|
||||
// this.formData.affiliate.contactTelphoneAgent = '';
|
||||
} else if (newVal.affiliate.organizeFlag == 1) {
|
||||
// this.formData.affiliate.applicationName = "";
|
||||
// this.formData.affiliate.code = "";
|
||||
// this.formData.affiliate.applicationEmail = "";
|
||||
// this.formData.affiliate.applicationPhone = "";
|
||||
this.formData.affiliate.nameAgent = this.getUserInfoList.nickName;
|
||||
this.formData.affiliate.agentEmail = this.getUserInfoList.email;
|
||||
this.formData.affiliate.contactTelphoneAgent = this.getUserInfoList.phonenumber;
|
||||
}
|
||||
}
|
||||
},
|
||||
deep: true, // 深度监听
|
||||
immediate: true, // 初始化监听
|
||||
}
|
||||
},
|
||||
created() {
|
||||
console.log(this.formData, "000000000000000000")
|
||||
this.getUserInfoFn();
|
||||
// this.getUserInfoFn();
|
||||
},
|
||||
methods: {
|
||||
/** 切换申请类型 */
|
||||
@@ -585,8 +551,11 @@ export default {
|
||||
/**获取申请人信息 */
|
||||
getUserInfoFn() {
|
||||
getUserInfo().then(res => {
|
||||
console.log(res, "信息信息信息信息信息信息信息信息信息信息信息信息信息信息");
|
||||
this.getUserInfoList = res.data;
|
||||
this.$set(this.formData.affiliate, "applicationName", this.getUserInfoList.nickName);
|
||||
this.$set(this.formData.affiliate, "code", this.getUserInfoList.idCard);
|
||||
this.$set(this.formData.affiliate, "applicationEmail", this.getUserInfoList.email);
|
||||
this.$set(this.formData.affiliate, "applicationPhone", this.getUserInfoList.phonenumber);
|
||||
})
|
||||
},
|
||||
/** 根据案件id获取对应信息 */
|
||||
@@ -680,6 +649,23 @@ export default {
|
||||
});
|
||||
},
|
||||
clearValidate(val) {
|
||||
if (val == 0) {
|
||||
this.$set(this.formData.affiliate, "applicationName", this.getUserInfoList.nickName);
|
||||
this.$set(this.formData.affiliate, "code", this.getUserInfoList.idCard);
|
||||
this.$set(this.formData.affiliate, "applicationEmail", this.getUserInfoList.email);
|
||||
this.$set(this.formData.affiliate, "applicationPhone", this.getUserInfoList.phonenumber);
|
||||
this.formData.affiliate.nameAgent = null;
|
||||
this.formData.affiliate.agentEmail = null;
|
||||
this.formData.affiliate.contactTelphoneAgent = null;
|
||||
} else if (val == 1) {
|
||||
this.$set(this.formData.affiliate, "nameAgent", this.getUserInfoList.nickName);
|
||||
this.$set(this.formData.affiliate, "agentEmail", this.getUserInfoList.email);
|
||||
this.$set(this.formData.affiliate, "contactTelphoneAgent", this.getUserInfoList.phonenumber);
|
||||
this.formData.affiliate.applicationName = null;
|
||||
this.formData.affiliate.code = null;
|
||||
this.formData.affiliate.applicationEmail = null;
|
||||
this.formData.affiliate.applicationPhone = null;
|
||||
}
|
||||
this.$refs["ruleForm"].clearValidate()
|
||||
},
|
||||
cancel() {
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
<el-descriptions-item label="案件标的">{{
|
||||
formPayDetail.caseSubjectAmount
|
||||
}}</el-descriptions-item>
|
||||
<el-descriptions-item label="案件应缴费用">{{
|
||||
<el-descriptions-item label="申请人应缴费用">{{
|
||||
formPayDetail.feePayable
|
||||
}}</el-descriptions-item>
|
||||
<el-descriptions-item label="被申请人">{{
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<div>
|
||||
<el-dialog :title="title" :visible="openDialog" @close="cancel" :destroy-on-close="true" center>
|
||||
<el-form ref="form" :model="form" label-width="140px">
|
||||
<el-form ref="form" :model="form" label-width="180px" :disabled="true">
|
||||
<el-form-item label="案件编号:" prop="caseNum">
|
||||
<el-input v-model="form.caseNum" placeholder="" :disabled="true"/>
|
||||
</el-form-item>
|
||||
@@ -12,7 +12,7 @@
|
||||
<el-input v-model="form.applicationName" placeholder="" />
|
||||
</el-form-item> -->
|
||||
<el-form-item label="缴费金额:" prop="feePayable">
|
||||
<el-input v-model="form.feePayable" :disabled="true"/>
|
||||
<el-input v-model="form.feePayable" />
|
||||
</el-form-item>
|
||||
<el-form-item label="申请人缴费凭证:" v-if="form.caseAttachList.length > 0">
|
||||
<div style="color: #104fad;cursor:pointer" v-for="(item, index) in form.caseAttachList" :key="index"
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
<el-descriptions-item label="案件标的">{{
|
||||
formResPayDetail.caseSubjectAmount
|
||||
}}</el-descriptions-item>
|
||||
<el-descriptions-item label="案件应缴费用">{{
|
||||
<el-descriptions-item label="被申请人应缴费用">{{
|
||||
formResPayDetail.feePayable
|
||||
}}</el-descriptions-item>
|
||||
<el-descriptions-item label="被申请人">{{
|
||||
|
||||
Reference in New Issue
Block a user