补充材料通知书
Showing
3 changed files
with
58 additions
and
5 deletions
| ... | @@ -98,4 +98,18 @@ export function getPrintSupplementalMaterials (bsmSldy, data) { | ... | @@ -98,4 +98,18 @@ export function getPrintSupplementalMaterials (bsmSldy, data) { |
| 98 | method: 'post', | 98 | method: 'post', |
| 99 | data | 99 | data |
| 100 | }) | 100 | }) |
| 101 | } | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
| 101 | } | ||
| 102 | /** | ||
| 103 | * @description: 获取补充材料接收凭证 | ||
| 104 | * @param {*} bsmSldy | ||
| 105 | * @author: renchao | ||
| 106 | */ | ||
| 107 | export function getPrintReceiveSupplementalMaterials (bsmSldy) { | ||
| 108 | return request({ | ||
| 109 | url: SERVER.SERVERAPI + '/rest/print/applicationForms/getPrintReceiveSupplementalMaterials', | ||
| 110 | method: 'get', | ||
| 111 | params: { | ||
| 112 | bsmSldy: bsmSldy | ||
| 113 | } | ||
| 114 | }) | ||
| 115 | } | ... | ... |
| 1 | /* | 1 | /* |
| 2 | * @Description: | 2 | * @Description: |
| 3 | * @Autor: renchao | 3 | * @Autor: renchao |
| 4 | * @LastEditTime: 2024-02-23 10:25:42 | 4 | * @LastEditTime: 2024-02-23 16:27:17 |
| 5 | */ | 5 | */ |
| 6 | import Vue from 'vue' | 6 | import Vue from 'vue' |
| 7 | import { getPrintTemplateByCode, getPrintAcceptance } from "@/api/print"; | 7 | import { getPrintTemplateByCode, getPrintAcceptance, getPrintReceiveSupplementalMaterials } from "@/api/print"; |
| 8 | import { uploadUndo } from "@/api/clxx"; | 8 | import { uploadUndo } from "@/api/clxx"; |
| 9 | import { getLodop } from "@/utils/LodopFuncs"; | 9 | import { getLodop } from "@/utils/LodopFuncs"; |
| 10 | import adapter from "@/utils/sqs/adapter"; | 10 | import adapter from "@/utils/sqs/adapter"; |
| ... | @@ -285,6 +285,43 @@ export default { | ... | @@ -285,6 +285,43 @@ export default { |
| 285 | { bsmSlsq: this.$route.query.bsmSlsq, bsmSldy: this.currentSelectProps.bsmSldy }, | 285 | { bsmSlsq: this.$route.query.bsmSlsq, bsmSldy: this.currentSelectProps.bsmSldy }, |
| 286 | '70%', true) | 286 | '70%', true) |
| 287 | break; | 287 | break; |
| 288 | // 获取补充材料接收凭证 | ||
| 289 | case "slpz": | ||
| 290 | getPrintTemplateByCode({ tmpno: 'bdcdjslpz' }).then(res => { | ||
| 291 | if (res.code === 200) { | ||
| 292 | getPrintAcceptance(this.currentSelectProps.bsmSldy).then(infoRes => { | ||
| 293 | if (infoRes.code === 200) { | ||
| 294 | if (infoRes.result.fileList && infoRes.result.fileList.length > 0) { | ||
| 295 | infoRes.result.fileList.forEach((it, index) => { | ||
| 296 | let key = index + 1 | ||
| 297 | this.$set(infoRes.result, "file" + key, it.sjmc) | ||
| 298 | this.$set(infoRes.result, "file" + key + 'ys', it.ys) | ||
| 299 | }) | ||
| 300 | } | ||
| 301 | let date = infoRes.result.sqrq | ||
| 302 | infoRes.result.sqnian = date.split(' ')[0].split('-')[0] | ||
| 303 | infoRes.result.sqyue = date.split(' ')[0].split('-')[1] | ||
| 304 | infoRes.result.sqri = date.split(' ')[0].split('-')[2] | ||
| 305 | console.log(infoRes.result) | ||
| 306 | let LODOP = getLodop(document.getElementById('LODOP_OB'), document.getElementById('LODOP_EM')); | ||
| 307 | |||
| 308 | // 装载第一个模板并设置数据 | ||
| 309 | LODOP.ADD_PRINT_DATA("ProgramData", res.result.tmpcontent); | ||
| 310 | for (let key in infoRes.result) { | ||
| 311 | LODOP.SET_PRINT_STYLEA(key, "CONTENT", infoRes.result[key]); | ||
| 312 | } | ||
| 313 | |||
| 314 | // 进行预览 | ||
| 315 | LODOP.PREVIEW(); | ||
| 316 | } else { | ||
| 317 | this.$message.error(infoRes.message); | ||
| 318 | } | ||
| 319 | }); | ||
| 320 | } else { | ||
| 321 | this.$message.error(res.message); | ||
| 322 | } | ||
| 323 | }) | ||
| 324 | break; | ||
| 288 | } | 325 | } |
| 289 | }, | 326 | }, |
| 290 | /** | 327 | /** | ... | ... |
| 1 | <!-- | 1 | <!-- |
| 2 | * @Description: | 2 | * @Description: |
| 3 | * @Autor: renchao | 3 | * @Autor: renchao |
| 4 | * @LastEditTime: 2024-02-23 10:51:24 | 4 | * @LastEditTime: 2024-02-26 09:04:04 |
| 5 | --> | 5 | --> |
| 6 | <template> | 6 | <template> |
| 7 | <div class="clmlmx-box"> | 7 | <div class="clmlmx-box"> |
| ... | @@ -159,7 +159,9 @@ | ... | @@ -159,7 +159,9 @@ |
| 159 | } else { | 159 | } else { |
| 160 | this.$message.error(infoRes.message); | 160 | this.$message.error(infoRes.message); |
| 161 | } | 161 | } |
| 162 | }); | 162 | }).catch(() => { |
| 163 | this.loading = false | ||
| 164 | }) | ||
| 163 | } else { | 165 | } else { |
| 164 | this.loading = false | 166 | this.loading = false |
| 165 | this.$message.error(res.message); | 167 | this.$message.error(res.message); | ... | ... |
-
Please register or sign in to post a comment