From 163e1b0c944efb54da53eee59400677e5d67f0dc Mon Sep 17 00:00:00 2001
From: liuyg <376836862@qq.com>
Date: Fri, 27 Aug 2021 19:37:10 +0800
Subject: [PATCH] 备案证

---
 src/views/licenseApproval/crossRegion.vue |   71 +++++++++++++++++++++++++++++++++--
 1 files changed, 66 insertions(+), 5 deletions(-)

diff --git a/src/views/licenseApproval/crossRegion.vue b/src/views/licenseApproval/crossRegion.vue
index bb22e0b..4ef9aaf 100644
--- a/src/views/licenseApproval/crossRegion.vue
+++ b/src/views/licenseApproval/crossRegion.vue
@@ -2,7 +2,7 @@
  * @Author:liu
  * @Date: 2021-08-26 16:59:35 
  * @Last Modified by: liu
- * @Last Modified time: 2021-08-27 11:32:40
+ * @Last Modified time: 2021-08-27 19:36:17
  */
 
 
@@ -58,6 +58,14 @@
             v-if="row.type == '2'"
             >备案审批
           </el-button>
+          <el-button
+            icon="el-icon-edit"
+            :size="size"
+            :type="type"
+            @click.stop="viewLicense(row)"
+            v-if="row.type == '0'"
+            >打印备案证
+          </el-button>
         </template>
         <template class="tdtype" slot-scope="{ row }" slot="type">
           <el-tag class="dtype">
@@ -71,7 +79,58 @@
         </template>
       </avue-crud>
     </basic-container>
-
+    <div
+      v-if="dialogVisible"
+      class="dialogVisibles"
+      :class="classStyle == 'print' ? 'printstyle' : ''"
+    >
+      <div
+        id="licence_box"
+        :class="classStyle == 'print' ? 'printstyle' : ''"
+        ref="licence"
+      >
+        <div class="licence" id="licence" v-if="dialogVisible">
+          <div class="licence-head">备案证</div>
+          <div class="head-tid">
+            洪公保服务
+            <span class="fontStyle">{{
+              licenceData.row.organizationcode
+            }}</span>
+            号
+          </div>
+          <div class="licence-main">
+            <div
+              class="l-m-once"
+              v-for="(item, index, key) in licenceData.chiden"
+              :key="key"
+            >
+              <span class="l-m-o-title"> {{ index }}: </span>
+              <span class="l-m-r-once">{{ item }}</span>
+            </div>
+          </div>
+          <div class="licence-bottom">发证机关(南昌市公安局)</div>
+          <div class="l-bottom">
+            发证日期
+            <span class="l-b-t">{{
+              licenceData.row.permitime.slice(0, 4)
+            }}</span
+            >年
+            <span class="l-b-t">{{
+              licenceData.row.permitime.slice(5, 7)
+            }}</span>
+            月
+            <span class="l-b-t">{{
+              licenceData.row.permitime.slice(8, 10)
+            }}</span>
+            日
+          </div>
+        </div>
+        <span slot="footer" class="dialog-footer no-print PrintBut">
+          <el-button type="primary" @click="Print">打 印</el-button>
+          <el-button type="primary" @click="closePrint"> 取 消 </el-button>
+        </span>
+      </div>
+    </div>
     <el-dialog
       title=""
       :visible.sync="dialogVisiblecc"
@@ -89,8 +148,8 @@
           v-model="textareaShenpi"
         ></textarea>
         <div class="but">
-          <el-button @click="closecc">通过</el-button>
-          <el-button type="primary" @click="subcc">不通过</el-button>
+          <el-button type="danger" @click="subcc">不通过</el-button>
+          <el-button type="primary" @click="closecc">通过</el-button>
         </div>
       </div>
     </el-dialog>
@@ -181,6 +240,8 @@
           {
             label: "法定代表人",
             prop: "representative",
+            search: true,
+            searchLabelWidth: 90,
             width: 82,
             rules: [
               {
@@ -412,7 +473,7 @@
           // },
           {
             label: "许可类型",
-            search: true,
+            // search: true,
             hide: true,
             prop: "ptype",
             type: "select",

--
Gitblit v1.9.3