From d2611ee5cb26997b5902b0be82c10c3d1fe4a86c Mon Sep 17 00:00:00 2001
From: liuyg <376836862@qq.com>
Date: Wed, 22 Sep 2021 10:38:06 +0800
Subject: [PATCH] Merge branch 'master' of http://s16s652780.51mypc.cn:49896/r/zhba_regulatory_ys

---
 src/views/qualificationExamination/paymentInquiry.vue |   87 +++++++++++++++++++++++++++++++++++--------
 1 files changed, 70 insertions(+), 17 deletions(-)

diff --git a/src/views/qualificationExamination/paymentInquiry.vue b/src/views/qualificationExamination/paymentInquiry.vue
index ba7c33e..d7b074a 100644
--- a/src/views/qualificationExamination/paymentInquiry.vue
+++ b/src/views/qualificationExamination/paymentInquiry.vue
@@ -71,6 +71,18 @@
                 </el-tag>
             </template>
 
+            <!-- 自定义按钮 -->
+            <template slot="menuLeft">
+              <el-button
+                type="success"
+                size="small"
+                plain
+                icon="el-icon-upload2"
+                @click="handleImport"
+                >缴费凭证批量上传
+              </el-button>
+            </template>
+
         </avue-crud>
         <el-dialog
             title="预览"
@@ -79,6 +91,19 @@
             class="see-img-box"
             >
             <div class="img" :style="{ background: imgUrl }"></div>
+        </el-dialog>
+        <el-dialog
+              title="缴费凭证批量上传"
+              append-to-body
+              :visible.sync="excelBox"
+              width="555px"
+            >
+            <avue-form
+              :option="excelOption"
+              v-model="excelForm"
+              :upload-after="uploadAfter"
+            >
+            </avue-form>
         </el-dialog>
     </basic-container>
 </template>
@@ -127,6 +152,27 @@
             query: {},
             loading: true,
             imgSee: false,
+            excelBox: false,
+            excelForm: {},
+            excelOption: {
+                submitBtn: false,
+                emptyBtn: false,
+                column: [
+                {
+                    label: "模板上传",
+                    prop: "excelFile",
+                    type: "upload",
+                    drag: true,
+                    loadText: "模板上传中,请稍等",
+                    span: 24,
+                    propsHttp: {
+                    res: "data",
+                    },
+                    tip: "请上传 zip 压缩文件",
+                    action: "/api/blade-resource/oss/endpoint/put-file-exam-payment-zip",
+                }
+                ],
+            },
             page: {
                 pageSize: 10,
                 currentPage: 1,
@@ -154,23 +200,6 @@
                 dialogClickModal: false,
 
                 column: [
-                    // {
-                    //     label: "缴费类型",
-                    //     prop: "type",
-                    //     dicData:[
-                    //       {
-                    //         label:"公司缴费",
-                    //         value: 1
-                    //       },
-                    //       {
-                    //         label:"个人缴费",
-                    //         value: 2
-                    //       }
-                    //     ],
-                    //     searchSpan: 4,
-                    //     search: true,
-                    //     type: "select",
-                    // },
                     {
                         label: "缴费人",
                         prop: "realName",
@@ -182,6 +211,7 @@
                         prop: "idCardNo",
                         search:true,
                         searchSpan:4,
+                        width:150
                     },
                     {
                         label: "性别",
@@ -207,6 +237,19 @@
                         prop: "deptName",
                         search:true,
                         searchSpan:6,
+                        width:200
+                    },
+                    {
+                        label: "报考证件类型",
+                        prop: "paperType"
+                    },
+                    {
+                        label: "报名时间",
+                        prop: "applyTime",
+                        type: "datetime",
+                        format: "yyyy-MM-dd HH:mm:ss",
+                        valueFormat: "yyyy-MM-dd HH:mm:ss",
+                        width:150
                     },
                     {
                         label: "缴费状态",
@@ -254,6 +297,7 @@
                             },
                         ],
                     },
+                    
                 ],
             },
             data: [
@@ -428,6 +472,15 @@
 
             this.imgSee = true;
         },
+        handleImport() {
+            this.excelBox = true;
+        },
+        uploadAfter(res, done, loading, column) {
+            window.console.log(column);
+            this.excelBox = false;
+            this.refreshChange();
+            done();
+        },
         // onLoad(page, params = {}) {
         //   // this.loading = false;
         //   this.loading = true;

--
Gitblit v1.9.3