|
@@ -165,7 +165,7 @@
|
|
|
<el-dialog title="输入认证" center :visible.sync="editRzcode" >
|
|
|
<el-form label-width="120px" ref="elAdd">
|
|
|
<el-form-item label="认证编号">
|
|
|
- <el-input v-model="info.rzCode" type="text"></el-input>
|
|
|
+ <el-input v-model="info.rzCode" type="text" disabled></el-input>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
<div class="dialog-footer" slot="footer">
|
|
@@ -265,15 +265,23 @@
|
|
|
this.$message.errorMsg("考试未通过", 2)
|
|
|
return;
|
|
|
}
|
|
|
- this.info.tmpRzCode = this.info.rzCode
|
|
|
- this.editRzcode = true
|
|
|
+ let {id, rzCode} = this.info
|
|
|
+ // this.editRzcode = true
|
|
|
+ httpServer('Cert.printCert', {rzCode, id}).then( res => {
|
|
|
+ if( res.code == 200 ){
|
|
|
+ this.editRzcode = false;
|
|
|
+ this.info.tmpRzCode="";
|
|
|
+ window.open( res.data.url )
|
|
|
+ }
|
|
|
+ })
|
|
|
},
|
|
|
cancelRzCode(){
|
|
|
this.info.rzCode= this.info.tmpRzCode;
|
|
|
this.editRzcode = false;
|
|
|
},
|
|
|
doAddRzCode(){
|
|
|
- let {rzCode, id} = this.info;
|
|
|
+ let {type, rzCode, id} = this.info;
|
|
|
+ if( !rzCode ) rzCode = "sm"+id
|
|
|
httpServer('Cert.printCert', {rzCode, id}).then( res => {
|
|
|
if( res.code == 200 ){
|
|
|
this.editRzcode = false;
|