|
@@ -1154,7 +1154,6 @@ export default {
|
|
|
},
|
|
|
personal: {
|
|
|
handler(newVal, oldVal) {
|
|
|
- console.log(newVal,'personal')
|
|
|
if (newVal.outwardStaff) {
|
|
|
this.outwardStaffTip = false;
|
|
|
} else {
|
|
@@ -1692,9 +1691,11 @@ export default {
|
|
|
this.target = res.data;
|
|
|
//如果没有单价,则只用总价。 个贷多套有这情况
|
|
|
if (this.target.price==null || this.target.price===0){
|
|
|
- let amount = Decimal(this.target.amount);
|
|
|
- let wan = Decimal(10000);
|
|
|
- this.target.amount = utils.roundToDecimalPlace(amount.div(wan),2);
|
|
|
+ if (this.target.amount){
|
|
|
+ let amount = Decimal(this.target.amount);
|
|
|
+ let wan = Decimal(10000);
|
|
|
+ this.target.amount = utils.roundToDecimalPlace(amount.div(wan),2);
|
|
|
+ }
|
|
|
}
|
|
|
this.linkAttributes.acreage = this.target.acreage;
|
|
|
if (res.data.isOnline) {
|
|
@@ -1705,7 +1706,7 @@ export default {
|
|
|
this.linkAttributes.location = this.target.houseCertificate.location;
|
|
|
}
|
|
|
if (res.data.landCertificate) {
|
|
|
- this.target.landCertificate = JSON.parse(res.data.landCertificate) ;
|
|
|
+ this.target.landCertificate = JSON.parse(res.data.landCertificate)
|
|
|
}
|
|
|
if (res.data.immovableCertificate) {
|
|
|
this.target.immovableCertificate = JSON.parse(res.data.immovableCertificate);
|