eb8495eb by renchao@pashanhoo.com

style:打印申请书

1 parent 2d9b694d
...@@ -137,7 +137,6 @@ export default { ...@@ -137,7 +137,6 @@ export default {
137 //根据编号获取对应信息 137 //根据编号获取对应信息
138 getPrintTemplateByCode({ tmpno: Vue.prototype.BASE_API.adapter }).then(res => { 138 getPrintTemplateByCode({ tmpno: Vue.prototype.BASE_API.adapter }).then(res => {
139 if (res.code === 200) { 139 if (res.code === 200) {
140 getPrintTemplateByCode({ tmpno: Vue.prototype.BASE_API.adapter + '-2' }).then(res1 => {
141 getPrintApplicationForm(this.currentSelectProps.bsmSldy).then(infoRes => { 140 getPrintApplicationForm(this.currentSelectProps.bsmSldy).then(infoRes => {
142 if (infoRes.code === 200) { 141 if (infoRes.code === 200) {
143 let LODOP = getLodop(document.getElementById('LODOP_OB'), document.getElementById('LODOP_EM')); 142 let LODOP = getLodop(document.getElementById('LODOP_OB'), document.getElementById('LODOP_EM'));
...@@ -148,22 +147,12 @@ export default { ...@@ -148,22 +147,12 @@ export default {
148 LODOP.SET_PRINT_STYLEA(key, "CONTENT", infoRes.result[key]); 147 LODOP.SET_PRINT_STYLEA(key, "CONTENT", infoRes.result[key]);
149 } 148 }
150 149
151 // 手动分页
152 LODOP.NewPage();
153
154 // 装载第二个模板并设置数据
155 LODOP.ADD_PRINT_DATA("ProgramData", res1.result.tmpcontent);
156 for (let key in res1.result) {
157 LODOP.SET_PRINT_STYLEA(key, "CONTENT", res1.result[key]);
158 }
159
160 // 进行预览 150 // 进行预览
161 LODOP.PREVIEW(); 151 LODOP.PREVIEW();
162 } else { 152 } else {
163 this.$message.error(infoRes.message); 153 this.$message.error(infoRes.message);
164 } 154 }
165 }); 155 });
166 });
167 } else { 156 } else {
168 this.$message.error(res.message); 157 this.$message.error(res.message);
169 } 158 }
......