Merge branch 'dev' of http://yun.pashanhoo.com:9090/bdc/bdcdj-web into dev
Showing
6 changed files
with
128 additions
and
30 deletions
| ... | @@ -2,5 +2,5 @@ | ... | @@ -2,5 +2,5 @@ |
| 2 | "TITLE": "不动产登记系统", | 2 | "TITLE": "不动产登记系统", |
| 3 | "SERVERAPI": "/bdcdj", | 3 | "SERVERAPI": "/bdcdj", |
| 4 | "IDCARDURL": "http://127.0.0.1:33088/function=get_idcard&readnew=0", | 4 | "IDCARDURL": "http://127.0.0.1:33088/function=get_idcard&readnew=0", |
| 5 | "adapter": "dysqs" | 5 | "adapter": "dysqs-630222" |
| 6 | } | 6 | } |
| ... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
| 1 | /* | 1 | /* |
| 2 | * @Description: | 2 | * @Description: |
| 3 | * @Autor: renchao | 3 | * @Autor: renchao |
| 4 | * @LastEditTime: 2023-11-16 13:58:50 | 4 | * @LastEditTime: 2023-11-22 13:42:26 |
| 5 | */ | 5 | */ |
| 6 | import { mapGetters } from 'vuex' | 6 | import { mapGetters } from 'vuex' |
| 7 | import { defaultParameters } from "../../views/ywbl/ywsq/javascript/publicDefaultPar"; | 7 | import { defaultParameters } from "../../views/ywbl/ywsq/javascript/publicDefaultPar"; |
| ... | @@ -19,7 +19,7 @@ export default { | ... | @@ -19,7 +19,7 @@ export default { |
| 19 | }, | 19 | }, |
| 20 | mounted () { | 20 | mounted () { |
| 21 | window.addEventListener('keydown', this.handkeyCode, true)//开启监听键盘按下事件 | 21 | window.addEventListener('keydown', this.handkeyCode, true)//开启监听键盘按下事件 |
| 22 | // this.handleSearch() | 22 | this.handleSearch() |
| 23 | }, | 23 | }, |
| 24 | methods: { | 24 | methods: { |
| 25 | /** | 25 | /** | ... | ... |
| 1 | <!-- | 1 | <!-- |
| 2 | * @Description: | 2 | * @Description: |
| 3 | * @Autor: renchao | 3 | * @Autor: renchao |
| 4 | * @LastEditTime: 2023-09-01 08:20:51 | 4 | * @LastEditTime: 2023-11-21 16:30:43 |
| 5 | --> | 5 | --> |
| 6 | <template> | 6 | <template> |
| 7 | <el-form ref="ruleForm" :model="ruleForm" label-width="100px" :rules="rules"> | 7 | <el-form ref="ruleForm" :model="ruleForm" label-width="100px" :rules="rules"> |
| ... | @@ -67,7 +67,8 @@ | ... | @@ -67,7 +67,8 @@ |
| 67 | tmpname: '', | 67 | tmpname: '', |
| 68 | tmpfont: '', | 68 | tmpfont: '', |
| 69 | tmpfontsize: '', | 69 | tmpfontsize: '', |
| 70 | tmpcontent: '' | 70 | tmpcontent: '', //模板1 |
| 71 | tmpcontent2: '', //模板2 | ||
| 71 | }, | 72 | }, |
| 72 | rules: { | 73 | rules: { |
| 73 | tmpno: [ | 74 | tmpno: [ |
| ... | @@ -83,7 +84,6 @@ | ... | @@ -83,7 +84,6 @@ |
| 83 | if (JSON.stringify(this.formData) != "{}") this.getDetailInfo(this.formData) | 84 | if (JSON.stringify(this.formData) != "{}") this.getDetailInfo(this.formData) |
| 84 | }, | 85 | }, |
| 85 | methods: { | 86 | methods: { |
| 86 | //表单提交 | ||
| 87 | /** | 87 | /** |
| 88 | * @description: 表单提交 | 88 | * @description: 表单提交 |
| 89 | * @author: renchao | 89 | * @author: renchao |
| ... | @@ -104,7 +104,6 @@ | ... | @@ -104,7 +104,6 @@ |
| 104 | } | 104 | } |
| 105 | }); | 105 | }); |
| 106 | }, | 106 | }, |
| 107 | //新增 | ||
| 108 | /** | 107 | /** |
| 109 | * @description: 新增 | 108 | * @description: 新增 |
| 110 | * @author: renchao | 109 | * @author: renchao | ... | ... |
src/views/workflow/components/dialog/sqs.vue
0 → 100644
| 1 | <!-- | ||
| 2 | * @Description: | ||
| 3 | * @Autor: renchao | ||
| 4 | * @LastEditTime: 2023-11-22 17:09:14 | ||
| 5 | --> | ||
| 6 | <template> | ||
| 7 | <div style="text-align:center"> | ||
| 8 | <el-button type="primary" @click="handlePrint(1)">打印第1页</el-button> | ||
| 9 | <el-button type="primary" @click="handlePrint(2)">打印第2页</el-button> | ||
| 10 | <!-- 打印模板需要此模块 --> | ||
| 11 | <object | ||
| 12 | id="LODOP_OB" | ||
| 13 | classid="clsid:2105C259-1E0C-4534-8141-A753534CB4CA" | ||
| 14 | v-show="false"> | ||
| 15 | <embed | ||
| 16 | id="LODOP_EM" | ||
| 17 | type="application/x-print-lodop" | ||
| 18 | width="820" | ||
| 19 | height="450" | ||
| 20 | pluginspage="install_lodop32.exe" /> | ||
| 21 | </object> | ||
| 22 | </div> | ||
| 23 | </template> | ||
| 24 | <script> | ||
| 25 | import Vue from 'vue' | ||
| 26 | import { getLodop } from "@/utils/LodopFuncs"; | ||
| 27 | import { getPrintTemplateByCode } from "@/api/print"; | ||
| 28 | import { getPrintApplicationForm } from "@/api/workFlow.js"; | ||
| 29 | export default { | ||
| 30 | props: { | ||
| 31 | formData: { | ||
| 32 | type: Object, | ||
| 33 | default: () => { | ||
| 34 | return {} | ||
| 35 | } | ||
| 36 | } | ||
| 37 | }, | ||
| 38 | data () { | ||
| 39 | return { | ||
| 40 | } | ||
| 41 | }, | ||
| 42 | methods: { | ||
| 43 | handlePrint (val) { | ||
| 44 | if (val == 1) { | ||
| 45 | getPrintTemplateByCode({ tmpno: Vue.prototype.BASE_API.adapter }).then(res => { | ||
| 46 | if (res.code === 200) { | ||
| 47 | getPrintApplicationForm(this.formData.bsmSldy).then(infoRes => { | ||
| 48 | if (infoRes.code === 200) { | ||
| 49 | let LODOP = getLodop(document.getElementById('LODOP_OB'), document.getElementById('LODOP_EM')); | ||
| 50 | |||
| 51 | // 装载第一个模板并设置数据 | ||
| 52 | LODOP.ADD_PRINT_DATA("ProgramData", res.result.tmpcontent); | ||
| 53 | for (let key in infoRes.result) { | ||
| 54 | LODOP.SET_PRINT_STYLEA(key, "CONTENT", infoRes.result[key]); | ||
| 55 | } | ||
| 56 | |||
| 57 | // 进行预览 | ||
| 58 | LODOP.PREVIEW(); | ||
| 59 | } else { | ||
| 60 | this.$message.error(infoRes.message); | ||
| 61 | } | ||
| 62 | }); | ||
| 63 | } else { | ||
| 64 | this.$message.error(res.message); | ||
| 65 | } | ||
| 66 | }) | ||
| 67 | } else { | ||
| 68 | getPrintTemplateByCode({ tmpno: Vue.prototype.BASE_API.adapter + '-2' }).then(res => { | ||
| 69 | if (res.code === 200) { | ||
| 70 | getPrintApplicationForm(this.formData.bsmSldy).then(infoRes => { | ||
| 71 | if (infoRes.code === 200) { | ||
| 72 | let LODOP = getLodop(document.getElementById('LODOP_OB'), document.getElementById('LODOP_EM')); | ||
| 73 | |||
| 74 | // 装载第一个模板并设置数据 | ||
| 75 | LODOP.ADD_PRINT_DATA("ProgramData", res.result.tmpcontent); | ||
| 76 | for (let key in infoRes.result) { | ||
| 77 | LODOP.SET_PRINT_STYLEA(key, "CONTENT", infoRes.result[key]); | ||
| 78 | } | ||
| 79 | |||
| 80 | // 进行预览 | ||
| 81 | LODOP.PREVIEW(); | ||
| 82 | } else { | ||
| 83 | this.$message.error(infoRes.message); | ||
| 84 | } | ||
| 85 | }); | ||
| 86 | } else { | ||
| 87 | this.$message.error(res.message); | ||
| 88 | } | ||
| 89 | }) | ||
| 90 | } | ||
| 91 | |||
| 92 | } | ||
| 93 | } | ||
| 94 | } | ||
| 95 | </script> | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
| 1 | /* | 1 | /* |
| 2 | * @Description: | 2 | * @Description: |
| 3 | * @Autor: renchao | 3 | * @Autor: renchao |
| 4 | * @LastEditTime: 2023-11-20 15:24:10 | 4 | * @LastEditTime: 2023-11-22 17:05:55 |
| 5 | */ | 5 | */ |
| 6 | import Vue from 'vue' | 6 | import Vue from 'vue' |
| 7 | import { getPrintTemplateByCode } from "@/api/print"; | 7 | import { getPrintTemplateByCode } from "@/api/print"; |
| ... | @@ -134,28 +134,32 @@ export default { | ... | @@ -134,28 +134,32 @@ export default { |
| 134 | this.$popupDialog("证书修改", "workflow/components/dialog/zsxg", { bsmSlsq: this.bsmSlsq, }, '55%', true) | 134 | this.$popupDialog("证书修改", "workflow/components/dialog/zsxg", { bsmSlsq: this.bsmSlsq, }, '55%', true) |
| 135 | break; | 135 | break; |
| 136 | case "B6": | 136 | case "B6": |
| 137 | this.$popupDialog("打印申请书", "workflow/components/dialog/sqs", | ||
| 138 | { bsmSldy: this.currentSelectProps.bsmSldy }, '30%', true | ||
| 139 | ) | ||
| 137 | //根据编号获取对应信息 | 140 | //根据编号获取对应信息 |
| 138 | getPrintTemplateByCode({ tmpno: 'dysqs' }).then(res => { | 141 | // getPrintTemplateByCode({ tmpno: Vue.prototype.BASE_API.adapter }).then(res => { |
| 139 | if (res.code == 200) { | 142 | // if (res.code === 200) { |
| 140 | getPrintApplicationForm(this.currentSelectProps.bsmSldy).then(async infoRes => { | 143 | // getPrintApplicationForm(this.currentSelectProps.bsmSldy).then(infoRes => { |
| 141 | if (infoRes.code == 200) { | 144 | // if (infoRes.code === 200) { |
| 142 | console.log(adapter({ name: 2 })); | 145 | // let LODOP = getLodop(document.getElementById('LODOP_OB'), document.getElementById('LODOP_EM')); |
| 143 | //打开模板设计 | 146 | |
| 144 | // let LODOP = getLodop(document.getElementById('LODOP_OB'), document.getElementById('LODOP_EM')); | 147 | // // 装载第一个模板并设置数据 |
| 145 | // LODOP.ADD_PRINT_DATA("ProgramData", res.result.tmpcontent); //装载模板 | 148 | // LODOP.ADD_PRINT_DATA("ProgramData", res.result.tmpcontent); |
| 146 | // //todo 调取后端接口获取数据 循环set | 149 | // for (let key in infoRes.result) { |
| 147 | // for (let key in infoRes.result) { | 150 | // LODOP.SET_PRINT_STYLEA(key, "CONTENT", infoRes.result[key]); |
| 148 | // LODOP.SET_PRINT_STYLEA(key, "CONTENT", infoRes.result[key]); | 151 | // } |
| 149 | // } | 152 | |
| 150 | // LODOP.PREVIEW(); | 153 | // // 进行预览 |
| 151 | } else { | 154 | // LODOP.PREVIEW(); |
| 152 | this.$message.error(infoRes.message) | 155 | // } else { |
| 153 | } | 156 | // this.$message.error(infoRes.message); |
| 154 | }) | 157 | // } |
| 155 | } else { | 158 | // }); |
| 156 | this.$message.error(res.message) | 159 | // } else { |
| 157 | } | 160 | // this.$message.error(res.message); |
| 158 | }) | 161 | // } |
| 162 | // }) | ||
| 159 | break; | 163 | break; |
| 160 | case "B7": | 164 | case "B7": |
| 161 | this.$popupDialog("证书领取", "workflow/components/dialog/zslq", | 165 | this.$popupDialog("证书领取", "workflow/components/dialog/zslq", | ... | ... |
-
Please register or sign in to post a comment