b4e7ac55 by renchao@pashanhoo.com

补充材料通知书

1 parent 613d6c87
......@@ -98,4 +98,18 @@ export function getPrintSupplementalMaterials (bsmSldy, data) {
method: 'post',
data
})
}
\ No newline at end of file
}
/**
* @description: 获取补充材料接收凭证
* @param {*} bsmSldy
* @author: renchao
*/
export function getPrintReceiveSupplementalMaterials (bsmSldy) {
return request({
url: SERVER.SERVERAPI + '/rest/print/applicationForms/getPrintReceiveSupplementalMaterials',
method: 'get',
params: {
bsmSldy: bsmSldy
}
})
}
......
/*
* @Description:
* @Autor: renchao
* @LastEditTime: 2024-02-23 10:25:42
* @LastEditTime: 2024-02-23 16:27:17
*/
import Vue from 'vue'
import { getPrintTemplateByCode, getPrintAcceptance } from "@/api/print";
import { getPrintTemplateByCode, getPrintAcceptance, getPrintReceiveSupplementalMaterials } from "@/api/print";
import { uploadUndo } from "@/api/clxx";
import { getLodop } from "@/utils/LodopFuncs";
import adapter from "@/utils/sqs/adapter";
......@@ -285,6 +285,43 @@ export default {
{ bsmSlsq: this.$route.query.bsmSlsq, bsmSldy: this.currentSelectProps.bsmSldy },
'70%', true)
break;
// 获取补充材料接收凭证
case "slpz":
getPrintTemplateByCode({ tmpno: 'bdcdjslpz' }).then(res => {
if (res.code === 200) {
getPrintAcceptance(this.currentSelectProps.bsmSldy).then(infoRes => {
if (infoRes.code === 200) {
if (infoRes.result.fileList && infoRes.result.fileList.length > 0) {
infoRes.result.fileList.forEach((it, index) => {
let key = index + 1
this.$set(infoRes.result, "file" + key, it.sjmc)
this.$set(infoRes.result, "file" + key + 'ys', it.ys)
})
}
let date = infoRes.result.sqrq
infoRes.result.sqnian = date.split(' ')[0].split('-')[0]
infoRes.result.sqyue = date.split(' ')[0].split('-')[1]
infoRes.result.sqri = date.split(' ')[0].split('-')[2]
console.log(infoRes.result)
let LODOP = getLodop(document.getElementById('LODOP_OB'), document.getElementById('LODOP_EM'));
// 装载第一个模板并设置数据
LODOP.ADD_PRINT_DATA("ProgramData", res.result.tmpcontent);
for (let key in infoRes.result) {
LODOP.SET_PRINT_STYLEA(key, "CONTENT", infoRes.result[key]);
}
// 进行预览
LODOP.PREVIEW();
} else {
this.$message.error(infoRes.message);
}
});
} else {
this.$message.error(res.message);
}
})
break;
}
},
/**
......
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2024-02-23 10:51:24
* @LastEditTime: 2024-02-26 09:04:04
-->
<template>
<div class="clmlmx-box">
......@@ -159,7 +159,9 @@
} else {
this.$message.error(infoRes.message);
}
});
}).catch(() => {
this.loading = false
})
} else {
this.loading = false
this.$message.error(res.message);
......