|
|
|
@ -260,16 +260,10 @@ export default { |
|
|
|
}, |
|
|
|
// 工厂是否完善企业信息 |
|
|
|
hasComplete() { |
|
|
|
let type = this.$store.state.companyInfo.enterpriseType |
|
|
|
// 个人用户 |
|
|
|
if (type == enterpriseType.PERSONAL) { |
|
|
|
if (this.$store.state.companyInfo.id) { |
|
|
|
return true |
|
|
|
} |
|
|
|
// 工厂用户 |
|
|
|
if (type == enterpriseType.PRINT_PACKAGE_FACTORY) { |
|
|
|
return this.companyInfo.legalPersonIdCardNo ? true : false |
|
|
|
} |
|
|
|
return true |
|
|
|
return false |
|
|
|
}, |
|
|
|
hasLogin() { |
|
|
|
return this.$store.state.qnToken != '' |
|
|
|
@ -361,7 +355,7 @@ export default { |
|
|
|
content: '请先完善公司信息', |
|
|
|
success: (res) => { |
|
|
|
if (res.confirm) { |
|
|
|
go2('enterprise-info-edit') |
|
|
|
go2('enterprise-info') |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
|