|
@@ -159,6 +159,7 @@
|
|
|
<el-checkbox-button label="HOUSE_CERTIFICATE" name="credentials">房产证</el-checkbox-button>
|
|
|
<el-checkbox-button label="LAND_CERTIFICATE" name="credentials">国土证</el-checkbox-button>
|
|
|
<el-checkbox-button label="IMMOVABLE_CERTIFICATE" name="credentials">不动产权证</el-checkbox-button>
|
|
|
+ <el-checkbox-button label="NONE" name="credentials">无资料</el-checkbox-button>
|
|
|
</el-checkbox-group>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
@@ -731,20 +732,31 @@
|
|
|
<el-tab-pane name="certificateInfo" class="pane-class" :lazy=true :disabled="!target.isOnline">
|
|
|
<span slot="label"><i class="el-icon-postcard"></i> 证件信息</span>
|
|
|
<el-tabs v-model="certificateInfo">
|
|
|
- <el-tab-pane name="houseCertificate" class="pane-class" :lazy=true>
|
|
|
+ <el-tab-pane name="CHANGE" class="pane-class" :lazy=true :disabled="!certificateCouldEdit">
|
|
|
+ <span slot="label" :style="certificateCouldEdit?'color:red':'color:RGB(168,168,168)'"><i class="el-icon-refresh"></i> 换证</span>
|
|
|
+ <div >
|
|
|
+ <el-checkbox-group v-model="changeCredentials" size="medium" style="float: left;">
|
|
|
+ <el-checkbox-button label="HOUSE_CERTIFICATE" name="credentials">房产证</el-checkbox-button>
|
|
|
+ <el-checkbox-button label="LAND_CERTIFICATE" name="credentials">国土证</el-checkbox-button>
|
|
|
+ <el-checkbox-button label="IMMOVABLE_CERTIFICATE" name="credentials">不动产权证</el-checkbox-button>
|
|
|
+ </el-checkbox-group>
|
|
|
+ <el-button type="danger" round style="float: left; margin-left: 20px;margin-top: 2px" @click="saveChangeCer()">确认换证</el-button>
|
|
|
+ </div>
|
|
|
+ </el-tab-pane>
|
|
|
+ <el-tab-pane name="HOUSE_CERTIFICATE" class="pane-class" :lazy=true v-if="houseShow">
|
|
|
<span slot="label"><i class="el-icon-postcard"></i> 房产证</span>
|
|
|
- <HouseCertificate @custom-event="getPersonalTarget()" :id="target.id" :linkAttributes="linkAttributes"
|
|
|
+ <HouseCertificate ref="houseComponent" @custom-event="getPersonalTarget()" :id="target.id" :linkAttributes="linkAttributes"
|
|
|
:houseCertificateObject="target.houseCertificate" :editStatus="certificateCouldEdit">
|
|
|
</HouseCertificate>
|
|
|
</el-tab-pane>
|
|
|
- <el-tab-pane name="landCertificate" class="pane-class" :lazy=true>
|
|
|
+ <el-tab-pane name="LAND_CERTIFICATE" class="pane-class" :lazy=true v-if="landShow">
|
|
|
<span slot="label"><i class="el-icon-postcard"></i> 国土证</span>
|
|
|
- <LandCertificate @custom-event="getPersonalTarget()" :id="target.id" :landCertificateObject="target.landCertificate"
|
|
|
- :editStatus="certificateCouldEdit"></LandCertificate>
|
|
|
+ <LandCertificate ref="landComponent" @custom-event="getPersonalTarget()" :id="target.id" :linkAttributes="linkAttributes"
|
|
|
+ :landCertificateObject="target.landCertificate" :editStatus="certificateCouldEdit"></LandCertificate>
|
|
|
</el-tab-pane>
|
|
|
- <el-tab-pane name="immovableCertificate" class="pane-class" :lazy=true>
|
|
|
+ <el-tab-pane name="IMMOVABLE_CERTIFICATE" class="pane-class" :lazy=true v-if="immovalbeShow">
|
|
|
<span slot="label"><i class="el-icon-postcard"></i> 不动产权证</span>
|
|
|
- <ImmovableCertificate @custom-event="getPersonalTarget()" :id="target.id" :linkAttributes="linkAttributes"
|
|
|
+ <ImmovableCertificate ref="immovComponent" @custom-event="getPersonalTarget()" :id="target.id" :linkAttributes="linkAttributes"
|
|
|
:immovableCertificateObject="target.immovableCertificate" :editStatus="certificateCouldEdit">
|
|
|
</ImmovableCertificate>
|
|
|
</el-tab-pane>
|
|
@@ -766,7 +778,7 @@
|
|
|
<el-tab-pane name="sellingAbilityInfo" class="pane-class" :lazy=true>
|
|
|
<span slot="label"><i class="el-icon-paperclip"></i> 变现能力</span>
|
|
|
<SellingAbilityInfo @custom-event="getPersonalTarget()" :id="target.id" :sellingAbilityInfoObject="target.sellingAbility"
|
|
|
- :editStatus="certificateCouldEdit"></SellingAbilityInfo>
|
|
|
+ :editStatus="certificateCouldEdit" :outWardStaffId="personal.outwardStaff"></SellingAbilityInfo>
|
|
|
</el-tab-pane>
|
|
|
</el-tabs>
|
|
|
</el-tab-pane>
|
|
@@ -1086,7 +1098,23 @@ export default {
|
|
|
} else {
|
|
|
this.outwardStaffTip = true;
|
|
|
}
|
|
|
- this.showCredentials();
|
|
|
+ this.certificateInfo = newVal.credentials[0];
|
|
|
+ if (newVal.credentials.includes("HOUSE_CERTIFICATE")){
|
|
|
+ this.houseShow = true;
|
|
|
+ }else{
|
|
|
+ this.houseShow = false;
|
|
|
+ }
|
|
|
+ if (newVal.credentials.includes("LAND_CERTIFICATE")){
|
|
|
+ this.landShow = true;
|
|
|
+ }else{
|
|
|
+ this.landShow = false;
|
|
|
+ }
|
|
|
+ if (newVal.credentials.includes("IMMOVABLE_CERTIFICATE")){
|
|
|
+ this.immovalbeShow = true;
|
|
|
+ }else{
|
|
|
+ this.immovalbeShow = false;
|
|
|
+ }
|
|
|
+ this.changeCredentials = newVal.credentials;
|
|
|
},
|
|
|
deep: true
|
|
|
},
|
|
@@ -1167,6 +1195,23 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
deep: true,
|
|
|
+ },
|
|
|
+ certificateInfo:{
|
|
|
+ handler(){
|
|
|
+ this.$nextTick(()=>{
|
|
|
+ if (this.$refs.immovComponent){
|
|
|
+ this.$refs.immovComponent.refreshLinkAttributes();
|
|
|
+
|
|
|
+ }
|
|
|
+ if (this.$refs.houseComponent){
|
|
|
+ this.$refs.houseComponent.refreshLinkAttributes();
|
|
|
+ }
|
|
|
+ if (this.$refs.landComponent){
|
|
|
+ this.$refs.landComponent.refreshLinkAttributes();
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
+ immediate:true
|
|
|
}
|
|
|
},
|
|
|
computed: {
|
|
@@ -1266,7 +1311,7 @@ export default {
|
|
|
outwardStaffTip: true,
|
|
|
certificateName: null,
|
|
|
otherInfo: 'entityInfo',
|
|
|
- certificateInfo: 'houseCertificate',
|
|
|
+ certificateInfo: null,
|
|
|
target: {
|
|
|
id: null,
|
|
|
personalId: null,
|
|
@@ -1405,13 +1450,6 @@ export default {
|
|
|
},
|
|
|
calculating: false,
|
|
|
decideProductionTypeDialog: false,
|
|
|
- showCred: {
|
|
|
- showHouseCer: false,
|
|
|
- showLandCer: false,
|
|
|
- showImmovableCer: false,
|
|
|
- showleaseCer: false,
|
|
|
- showIdCer: false
|
|
|
- },
|
|
|
linkAttributes: {
|
|
|
location: null,
|
|
|
bailor1: null,
|
|
@@ -1479,7 +1517,11 @@ export default {
|
|
|
inRingBuilding:null,
|
|
|
outRingBuilding:null,
|
|
|
remark:null
|
|
|
- }
|
|
|
+ },
|
|
|
+ houseShow:false,
|
|
|
+ immovalbeShow:false,
|
|
|
+ landShow:false,
|
|
|
+ changeCredentials:[]
|
|
|
|
|
|
}
|
|
|
},
|
|
@@ -1520,6 +1562,7 @@ export default {
|
|
|
if (this.personal.evaluateAim === '抵押') {
|
|
|
this.linkAttributes.ownerName = this.personal.bailorA;
|
|
|
}
|
|
|
+
|
|
|
this.nodeBusinessInfo.ccId = this.personal.clienteleId;
|
|
|
}
|
|
|
})
|
|
@@ -1589,26 +1632,7 @@ export default {
|
|
|
this.getScene();
|
|
|
}
|
|
|
},
|
|
|
- showCredentials() {
|
|
|
- this.showCred = {};
|
|
|
- this.personal.credentials.forEach(element => {
|
|
|
- if (element === 'HOUSE_CERTIFICATE') {
|
|
|
- this.showCred.showHouseCer = true;
|
|
|
- }
|
|
|
- if (element === 'LAND_CERTIFICATE') {
|
|
|
- this.showCred.showLandCer = true;
|
|
|
- }
|
|
|
- if (element === 'IMMOVABLE_CERTIFICATE') {
|
|
|
- this.showCred.showImmovableCer = true;
|
|
|
- }
|
|
|
- if (element === 'LEASE_CONTRACT') {
|
|
|
- this.showCred.showleaseCer = true;
|
|
|
- }
|
|
|
- if (element === 'IDENTITY_CARD') {
|
|
|
- this.showCred.showIdCer = true;
|
|
|
- }
|
|
|
- });
|
|
|
- },
|
|
|
+
|
|
|
getWorkflowLogs() {
|
|
|
let param = {
|
|
|
businessId: this.personalId,
|
|
@@ -1653,18 +1677,68 @@ export default {
|
|
|
callback(verify);
|
|
|
return;
|
|
|
}
|
|
|
- // case "GENERATE_STATEMENT":
|
|
|
- // if (this.statementProd == null || this.statementProd.files.length === 0) {
|
|
|
- // this.$notify({
|
|
|
- // title: '提示',
|
|
|
- // message: '请生成或上传房地产意见书后,再提交流程',
|
|
|
- // type: 'error',
|
|
|
- // duration: 3000
|
|
|
- // });
|
|
|
- // verify.state = false;
|
|
|
- // }
|
|
|
- // callback(verify);
|
|
|
- // return;
|
|
|
+ case "GENERATE_STATEMENT":
|
|
|
+ case "WRITE_REPORT":
|
|
|
+ case "WRITE_LETTER":
|
|
|
+ if (this.isOnline) {
|
|
|
+ let ok = true;
|
|
|
+ this.personal.credentials.forEach(item=>{
|
|
|
+ if (item=== 'HOUSE_CERTIFICATE' && !this.target.houseCertificate){
|
|
|
+ this.$notify({
|
|
|
+ title: '提示',
|
|
|
+ message: '请先完成房产证信息录入再提交,否则请切换为线下流程。',
|
|
|
+ type: 'error',
|
|
|
+ duration: 2000
|
|
|
+ });
|
|
|
+ ok = false;
|
|
|
+ }
|
|
|
+ if (item=== 'LAND_CERTIFICATE' && !this.target.landCertificate){
|
|
|
+ this.$notify({
|
|
|
+ title: '提示',
|
|
|
+ message: '请先完成国土证信息录入再提交,否则请切换为线下流程。',
|
|
|
+ type: 'error',
|
|
|
+ duration: 2000
|
|
|
+ });
|
|
|
+ ok = false;
|
|
|
+ }
|
|
|
+ if (item=== 'IMMOVABLE_CERTIFICATE' && !this.target.immovableCertificate ){
|
|
|
+ this.$notify({
|
|
|
+ title: '提示',
|
|
|
+ message: '请先完成不动产权证信息录入再提交,否则请切换为线下流程。',
|
|
|
+ type: 'error',
|
|
|
+ duration: 2000
|
|
|
+ });
|
|
|
+ ok = false;
|
|
|
+ }
|
|
|
+ })
|
|
|
+ if (ok && nodeCode === 'GENERATE_STATEMENT' && (this.statementProd == null || this.statementProd.files.length === 0)) {
|
|
|
+ this.$notify({
|
|
|
+ title: '提示',
|
|
|
+ message: '请生成意见书,再提交流程',
|
|
|
+ type: 'error',
|
|
|
+ duration: 2000
|
|
|
+ });
|
|
|
+ }
|
|
|
+ if (ok && nodeCode === 'WRITE_REPORT' && (this.technicReportProd == null || this.technicReportProd.files.length === 0)) {
|
|
|
+ this.$notify({
|
|
|
+ title: '提示',
|
|
|
+ message: '请生成报告,再提交流程',
|
|
|
+ type: 'error',
|
|
|
+ duration: 2000
|
|
|
+ });
|
|
|
+ }
|
|
|
+ if (ok && nodeCode === 'WRITE_LETTER' && (this.letterReprotProd == null || this.letterReprotProd.files.length === 0)) {
|
|
|
+ this.$notify({
|
|
|
+ title: '提示',
|
|
|
+ message: '请生成复评函,再提交流程',
|
|
|
+ type: 'error',
|
|
|
+ duration: 2000
|
|
|
+ });
|
|
|
+ }
|
|
|
+ verify.state = false;
|
|
|
+ }
|
|
|
+ callback(verify);
|
|
|
+ return;
|
|
|
case "REVIEW_STATEMENT":
|
|
|
if (this.statementProd==null || this.statementProd.checkState === '待审核') {
|
|
|
verify.state = false;
|
|
@@ -1702,8 +1776,6 @@ export default {
|
|
|
// callback(verify);
|
|
|
// return;
|
|
|
case "CHECK_REPORT":
|
|
|
- console.log(this.technicReportProd)
|
|
|
- console.log(this.finalReprotProd)
|
|
|
if (this.technicReportProd.checkState==null || this.finalReprotProd.checkState==null ||
|
|
|
this.technicReportProd.checkState === '待审核' || this.finalReprotProd.checkState === '待审核') {
|
|
|
verify.state = false;
|
|
@@ -1929,21 +2001,6 @@ export default {
|
|
|
this.decideProductionTypeDialog = false;
|
|
|
this.commit("PASS");
|
|
|
},
|
|
|
- selectHouse() {
|
|
|
- this.showCred.showHouseCer = !this.showCred.showHouseCer;
|
|
|
- },
|
|
|
- selectLand() {
|
|
|
- this.showCred.showLandCer = !this.showCred.showLandCer;
|
|
|
- },
|
|
|
- selectImmovable() {
|
|
|
- this.showCred.showImmovableCer = !this.showCred.showImmovableCer;
|
|
|
- },
|
|
|
- selectLease() {
|
|
|
- this.showCred.showleaseCer = !this.showCred.showleaseCer;
|
|
|
- },
|
|
|
- selectIdCard() {
|
|
|
- this.showCred.showIdCer = !this.showCred.showIdCer;
|
|
|
- },
|
|
|
genProductionFile(tag) {
|
|
|
const certificates = this.personal.credentials
|
|
|
for (let i in certificates) {
|
|
@@ -2350,7 +2407,29 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
-
|
|
|
+ saveChangeCer(){
|
|
|
+ this.$confirm('是否确定需要换证。换证之后,已录入的证件信息将被清空。请确认?', '提示', {
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ type: 'warning'
|
|
|
+ }).then(()=>{
|
|
|
+ const personal = new Object();
|
|
|
+ personal.id = this.personal.id;
|
|
|
+ personal.credentials = JSON.stringify(this.changeCredentials);
|
|
|
+ this.$api.personal.changeCredentials(personal).then(res => {
|
|
|
+ if (res.code === 200) {
|
|
|
+ this.$notify({
|
|
|
+ title: '成功',
|
|
|
+ message: '换证成功',
|
|
|
+ type: 'success',
|
|
|
+ duration: 2000
|
|
|
+ });
|
|
|
+ this.getPersonal();
|
|
|
+ }
|
|
|
+ })
|
|
|
+ })
|
|
|
+
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
</script>
|
|
@@ -2450,5 +2529,6 @@ export default {
|
|
|
font-size: 12px;
|
|
|
color: green;
|
|
|
}
|
|
|
+
|
|
|
</style>
|
|
|
|