|
|
|
@ -131,6 +131,16 @@ |
|
|
|
|
v-hasPermi="['invoiceall:invoiceallyhdj:export']" |
|
|
|
|
>导出</el-button> |
|
|
|
|
</el-col> |
|
|
|
|
<el-col :span="1.5"> |
|
|
|
|
<el-button |
|
|
|
|
type="#409EFF" |
|
|
|
|
plain |
|
|
|
|
icon="el-icon-caret-right" |
|
|
|
|
size="mini" |
|
|
|
|
@click="routerFreedom" |
|
|
|
|
v-hasPermi="['invoiceall:invoiceallyhdj:routerFreedom']" |
|
|
|
|
>自主授权</el-button> |
|
|
|
|
</el-col> |
|
|
|
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar> |
|
|
|
|
</el-row> |
|
|
|
|
|
|
|
|
@ -288,6 +298,7 @@ import { |
|
|
|
|
qrcodeMethod, |
|
|
|
|
encrypt |
|
|
|
|
} from "@/api/digital/registered"; |
|
|
|
|
import router from "@/router"; |
|
|
|
|
|
|
|
|
|
export default { |
|
|
|
|
name: "Invoiceallyhdj", |
|
|
|
@ -412,6 +423,9 @@ export default { |
|
|
|
|
this.getList(); |
|
|
|
|
}, |
|
|
|
|
methods: { |
|
|
|
|
routerFreedom() { |
|
|
|
|
this.$router.push("/auth") |
|
|
|
|
}, |
|
|
|
|
/** 查询金四-用户登记列表 */ |
|
|
|
|
getList() { |
|
|
|
|
this.loading = true; |
|
|
|
@ -486,31 +500,33 @@ export default { |
|
|
|
|
//登记方法 |
|
|
|
|
registered(row) { |
|
|
|
|
this.reset(); |
|
|
|
|
|
|
|
|
|
getCompanyservice(row.identity).then(resp=>{ |
|
|
|
|
//请求成功 |
|
|
|
|
if(resp.code==200 && resp.data != null && resp.data != ""){ |
|
|
|
|
this.convertRegistedParam(row,true) |
|
|
|
|
const requestBody = { |
|
|
|
|
key: resp.data.secret, |
|
|
|
|
order: JSON.stringify(this.registeredParams), |
|
|
|
|
} |
|
|
|
|
encrypt(requestBody).then(res => { |
|
|
|
|
if (res.code == 200 && res.data != null && res.data != "") { |
|
|
|
|
registeredMethod(res.data,row.identity).then(response => { |
|
|
|
|
if (response.code == 200){ |
|
|
|
|
this.$message.success('请求登记成功') |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
}else if (res.data == null || res.data == ""){ |
|
|
|
|
this.$message.error('报文加密失败') |
|
|
|
|
this.$modal.confirm('请确认:登记identity为'+row.identity+',登记方式为'+row.dlfs+',登记身份为'+row.dlsf+'?').then(() => { |
|
|
|
|
getCompanyservice(row.identity).then(resp=>{ |
|
|
|
|
//请求成功 |
|
|
|
|
if(resp.code==200 && resp.data != null && resp.data != ""){ |
|
|
|
|
this.convertRegistedParam(row,true) |
|
|
|
|
const requestBody = { |
|
|
|
|
key: resp.data.secret, |
|
|
|
|
order: JSON.stringify(this.registeredParams), |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
}else if(resp.data == null || resp.data == "") { |
|
|
|
|
this.$message.error('请检查企业ID配置') |
|
|
|
|
} |
|
|
|
|
encrypt(requestBody).then(res => { |
|
|
|
|
if (res.code == 200 && res.data != null && res.data != "") { |
|
|
|
|
registeredMethod(res.data,row.identity).then(response => { |
|
|
|
|
if (response.code == 200){ |
|
|
|
|
this.$message.success('请求登记成功') |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
}else if (res.data == null || res.data == ""){ |
|
|
|
|
this.$message.error('报文加密失败') |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
}else if(resp.data == null || resp.data == "") { |
|
|
|
|
this.$message.error('请检查企业ID配置') |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
}) |
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
/** 人脸识别 */ |
|
|
|
|
qrcode(row){ |
|
|
|
@ -534,7 +550,7 @@ export default { |
|
|
|
|
this.$message.error('登记失败') |
|
|
|
|
} |
|
|
|
|
}else { |
|
|
|
|
this.$message.error('登记失败') |
|
|
|
|
this.$message.error(response.msg) |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
}else if (res.data == null || res.data == ""){ |
|
|
|
|