d7b91eb4 by jiaozeping@pashanhoo.com

登记薄查询

1 parent 6d377d9d
...@@ -32,6 +32,27 @@ export function getJdcxBysearch (data) { ...@@ -32,6 +32,27 @@ export function getJdcxBysearch (data) {
32 }) 32 })
33 } 33 }
34 34
35 // 导出数据-进度查询
36 export function exportJdcxExcel (params) {
37 return request({
38 url: SERVER.SERVERAPI + '/rest/zhcx/search/exportJdcxExcel',
39 method: 'post',
40 params,
41 responseType: 'blob'
42 })
43 }
44
45 // 导出数据-登记簿查询
46 export function exportdjbcxExcel (params) {
47 return request({
48 url: SERVER.SERVERAPI + '/rest/zhcx/search/exportdjbcxExcel',
49 method: 'post',
50 params,
51 responseType: 'blob'
52 })
53 }
54
55
35 /** 56 /**
36 * @description: 证书领取查询 57 * @description: 证书领取查询
37 * @param {*} data 58 * @param {*} data
......
...@@ -96,13 +96,16 @@ ...@@ -96,13 +96,16 @@
96 width: 300px; 96 width: 300px;
97 } 97 }
98 98
99 .el-button--small{
100 font-size: 14px;
101 }
99 102
100 .slxx_title { 103 .slxx_title {
101 border-bottom: 1px solid $borderColor; 104 border-bottom: 1px solid $borderColor;
102 padding-left: 10px; 105 padding-left: 10px;
103 padding-bottom: 5px; 106 padding-bottom: 5px;
104 margin-bottom: 5px; 107 margin-bottom: 5px;
105 margin-top: 5px; 108 margin-top: 10px;
106 font-size: 16px; 109 font-size: 16px;
107 font-weight: 500; 110 font-weight: 500;
108 color: #4a4a4a; 111 color: #4a4a4a;
......
...@@ -49,7 +49,7 @@ ...@@ -49,7 +49,7 @@
49 padding-left: 10px; 49 padding-left: 10px;
50 padding-bottom: 5px; 50 padding-bottom: 5px;
51 margin-bottom: 5px; 51 margin-bottom: 5px;
52 margin-top: 5px; 52 margin-top: 10px;
53 font-size: 16px; 53 font-size: 16px;
54 font-weight: 500; 54 font-weight: 500;
55 color: #4a4a4a; 55 color: #4a4a4a;
......
...@@ -79,6 +79,8 @@ ...@@ -79,6 +79,8 @@
79 <el-form-item> 79 <el-form-item>
80 <el-button @click="handleReset">重置</el-button> 80 <el-button @click="handleReset">重置</el-button>
81 <el-button type="primary" native-type="submit" @click="handleSearch">查询</el-button> 81 <el-button type="primary" native-type="submit" @click="handleSearch">查询</el-button>
82 <el-button @click="export_fun">导出</el-button>
83
82 </el-form-item> 84 </el-form-item>
83 </el-col> 85 </el-col>
84 </el-row> 86 </el-row>
...@@ -97,7 +99,7 @@ ...@@ -97,7 +99,7 @@
97 import { mapGetters } from "vuex"; 99 import { mapGetters } from "vuex";
98 import table from "@/utils/mixin/table"; 100 import table from "@/utils/mixin/table";
99 import { datas, sendThis } from "./djbcxdata"; 101 import { datas, sendThis } from "./djbcxdata";
100 import { getDjbBysearch } from "@/api/search.js"; 102 import { getDjbBysearch,exportdjbcxExcel } from "@/api/search.js";
101 import { getZrzListByBsmSlsq } from "@/api/workflow/zjgcdyFlow.js"; 103 import { getZrzListByBsmSlsq } from "@/api/workflow/zjgcdyFlow.js";
102 104
103 export default { 105 export default {
...@@ -202,7 +204,46 @@ ...@@ -202,7 +204,46 @@
202 zdbsm: item.zrzbsm, 204 zdbsm: item.zrzbsm,
203 onlyShow: true 205 onlyShow: true
204 }, '90%', true) 206 }, '90%', true)
207 },
208 // 导出
209 export_fun() {
210 this.$confirm(
211 `确认导出数据吗,是否继续?`,
212 "提示",
213 {
214 confirmButtonText: "确定",
215 cancelButtonText: "取消",
216 type: "warning",
205 } 217 }
218 )
219 .then(() => {
220 // 导出函数
221 this.dataExport({ ...this.queryForm });
222 })
223 .catch((err) => {
224
225 this.$message({
226 type: "info",
227 message: "已取消导出",
228 });
229 });
230 },
231 // 导出选中项
232 dataExport(arr) {
233 exportdjbcxExcel({ ...this.queryForm }).then((res) => {
234 // 下载后台传过来的流文件(excel)后解决乱码问题
235 const _a = document.createElement("a");
236 let blob = new Blob([res], { type: "application/vnd.ms-excel" });
237 _a.style.display = "none";
238 _a.href = URL.createObjectURL(blob);
239 // _a.download = res.headers['content-disposition'] // 下载后文件名
240 _a.download = "登记薄查询" + new Date().toLocaleString(); // 下载的文件名
241 document.body.appendChild(_a);
242 _a.click();
243 document.body.removeChild(_a);
244 });
245 },
246
206 } 247 }
207 } 248 }
208 </script> 249 </script>
......
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
40 </el-form-item> 40 </el-form-item>
41 </el-col> 41 </el-col>
42 <el-col :span="3" class="btnColRight"> 42 <el-col :span="3" class="btnColRight">
43 <el-button @click="handleReset">重置</el-button> 43 <!-- <el-button @click="handleReset">重置</el-button> -->
44 </el-col> 44 </el-col>
45 </el-row> 45 </el-row>
46 <el-row> 46 <el-row>
...@@ -72,7 +72,7 @@ ...@@ -72,7 +72,7 @@
72 <el-form-item> 72 <el-form-item>
73 <el-button @click="handleReset">重置</el-button> 73 <el-button @click="handleReset">重置</el-button>
74 <el-button type="primary" native-type="submit" @click="handleSearch">查询</el-button> 74 <el-button type="primary" native-type="submit" @click="handleSearch">查询</el-button>
75 <!-- <el-button @click="moreQueryClick">高级查询</el-button> --> 75 <el-button @click="export_fun">导出</el-button>
76 </el-form-item> 76 </el-form-item>
77 </el-col> 77 </el-col>
78 </el-row> 78 </el-row>
...@@ -91,7 +91,7 @@ ...@@ -91,7 +91,7 @@
91 import { mapGetters } from 'vuex' 91 import { mapGetters } from 'vuex'
92 import table from "@/utils/mixin/table"; 92 import table from "@/utils/mixin/table";
93 import { datas, sendThis } from "./jdcxdata"; 93 import { datas, sendThis } from "./jdcxdata";
94 import { getJdcxBysearch } from "@/api/search.js" 94 import { getJdcxBysearch,exportJdcxExcel } from "@/api/search.js"
95 export default { 95 export default {
96 name: "jdcx", 96 name: "jdcx",
97 components: {}, 97 components: {},
...@@ -170,7 +170,46 @@ ...@@ -170,7 +170,46 @@
170 ); 170 );
171 window.open(href, `workFrameView${item.bsmSlsq}`) 171 window.open(href, `workFrameView${item.bsmSlsq}`)
172 } 172 }
173 },
174 // 导出
175 export_fun() {
176 this.$confirm(
177 `确认导出数据吗,是否继续?`,
178 "提示",
179 {
180 confirmButtonText: "确定",
181 cancelButtonText: "取消",
182 type: "warning",
173 } 183 }
184 )
185 .then(() => {
186 // 导出函数
187 this.dataExport({ ...this.queryForm });
188 })
189 .catch((err) => {
190
191 this.$message({
192 type: "info",
193 message: "已取消导出",
194 });
195 });
196 },
197 // 导出选中项
198 dataExport(arr) {
199 exportJdcxExcel({ ...this.queryForm }).then((res) => {
200 // 下载后台传过来的流文件(excel)后解决乱码问题
201 const _a = document.createElement("a");
202 let blob = new Blob([res], { type: "application/vnd.ms-excel" });
203 _a.style.display = "none";
204 _a.href = URL.createObjectURL(blob);
205 // _a.download = res.headers['content-disposition'] // 下载后文件名
206 _a.download = "进度查询" + new Date().toLocaleString(); // 下载的文件名
207 document.body.appendChild(_a);
208 _a.click();
209 document.body.removeChild(_a);
210 });
211 },
212
174 } 213 }
175 } 214 }
176 </script> 215 </script>
......