|
|
|
@ -83,20 +83,22 @@ export default { |
|
|
|
}, |
|
|
|
// 客户授信 |
|
|
|
onCustomerCredit() { |
|
|
|
if (this.$store.state.supplierInfo == null) { |
|
|
|
if (this.$store.state.supplierInfo.id == null) { |
|
|
|
// 未完善企业store 里面 supplierInfo == null |
|
|
|
this.dialogTitle = '您还未完善企业信息' |
|
|
|
this.dialogContent = '请先完善企业基本信息才能对客户进行' |
|
|
|
this.confirmText = '去完善' |
|
|
|
this.dialogType = 1 |
|
|
|
this.$refs.popup.open() |
|
|
|
} else if (this.$store.state.supplierInfo.fddEnterpriseStatus == 1) { |
|
|
|
return |
|
|
|
} else if (!this.$store.state.supplierInfo.fddEnterpriseStatus || this.$store.state.supplierInfo.fddEnterpriseStatus == 1) { |
|
|
|
// 未电子签 supplierInfo.fddEnterpriseStatus == 1 |
|
|
|
this.dialogTitle = '未认证电子签约' |
|
|
|
this.dialogContent = '客户授信过程需要进行电子合同签订,请先进行认证' |
|
|
|
this.confirmText = '去认证' |
|
|
|
this.dialogType = 2 |
|
|
|
this.$refs.popup.open() |
|
|
|
return |
|
|
|
} else if (!this.$store.state.supplierInfo.isVip) { |
|
|
|
// 开通vip supplierInfo 新增了一个isVip字段 |
|
|
|
this.dialogTitle = '未开通VIP' |
|
|
|
@ -104,6 +106,7 @@ export default { |
|
|
|
this.confirmText = '去开通' |
|
|
|
this.dialogType = 3 |
|
|
|
this.$refs.popup.open() |
|
|
|
return |
|
|
|
} else { |
|
|
|
let info = this.$refs.basicInformationRef.getCompanyInfo() |
|
|
|
if (info.id) { |
|
|
|
@ -137,10 +140,12 @@ export default { |
|
|
|
}) |
|
|
|
break |
|
|
|
case 3: |
|
|
|
go2('mine') |
|
|
|
break |
|
|
|
default: |
|
|
|
break |
|
|
|
} |
|
|
|
this.$refs.popup.close() |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|