77053652 by renchao@pashanhoo.com

受理凭证

1 parent 39820f70
/*
* @Description: 模板管理
* @Autor: renchao
* @LastEditTime: 2023-05-16 16:02:32
* @LastEditTime: 2024-02-20 16:37:12
*/
import request from '@/utils/request'
......@@ -71,3 +71,18 @@ export function getPrintTemplateByCode (params) {
params: params
})
}
/**
* @description: 获取受理凭证
* @param {*} params
* @author: renchao
*/
export function getPrintAcceptance (bsmSldy) {
return request({
url: SERVER.SERVERAPI + '/rest/print/applicationForms/getPrintAcceptance',
method: 'get',
params: {
bsmSldy: bsmSldy
}
})
}
\ No newline at end of file
......
/*
* @Description:
* @Autor: renchao
* @LastEditTime: 2024-02-02 09:06:20
* @LastEditTime: 2024-02-20 16:37:27
*/
import Vue from 'vue'
import { getPrintTemplateByCode } from "@/api/print";
import { getPrintTemplateByCode, getPrintAcceptance } from "@/api/print";
import { uploadUndo } from "@/api/clxx";
import { getLodop } from "@/utils/LodopFuncs";
import adapter from "@/utils/sqs/adapter";
......@@ -77,7 +77,7 @@ export default {
*/
operation (item) {
//按钮 B0:选择不动产单元 B1:流程图 B2:材料分屏 B3:材料导入 B4:登记簿 B5:证书预览 B6:打印申请书 B7:证书领取 B8:楼盘表 B9:登簿,B10:打印回执 ZSXG: 证书修改
//操作按钮 登簿:record 转件:transfer 退回:back 退出:signout
//操作按钮 登簿:record 转件:transfer 退回:back 退出:signout 受理凭证 slpz
let that = this;
switch (item.value) {
case "B0":
......@@ -242,6 +242,38 @@ export default {
case "B-HLGXSJ":
this.$popupDialog("互联网数据共享", "sjgx/gbmhlgxsjgx/gbmhlgxsjgx", {}, '90%', true)
break;
// slpz 受理凭证
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)
})
}
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;
}
},
/**
......
......@@ -236,6 +236,7 @@
unClaimTask(this.$route.query.bsmSlsq, this.bestepid ? this.bestepid : '')
}
},
getPrintSlpz() {},
/**
* @description: 申请单元点击事件
* @param {*} index
......