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/cancellationOfFiling.vue |   10 +
 src/views/licenseApproval/securityTraining.vue     |   10 +
 src/views/licenseApproval/securityGuard.vue        |  108 +++++++++++++++++++-
 src/views/licenseApproval/securityPermit.vue       |   10 +
 src/views/licenseApproval/crossRegion.vue          |   71 +++++++++++++-
 src/views/licenseApproval/branchOffice.vue         |   71 +++++++++++++
 6 files changed, 250 insertions(+), 30 deletions(-)

diff --git a/src/views/licenseApproval/branchOffice.vue b/src/views/licenseApproval/branchOffice.vue
index 16a19ea..4c89b6c 100644
--- a/src/views/licenseApproval/branchOffice.vue
+++ b/src/views/licenseApproval/branchOffice.vue
@@ -2,7 +2,7 @@
  * @Author: liu
  * @Date: 2021-08-26 17:00:55 
  * @Last Modified by: liu
- * @Last Modified time: 2021-08-27 11:32:54
+ * @Last Modified time: 2021-08-27 19:26:20
  */
 
 
@@ -58,6 +58,14 @@
             @click.stop="rowDel(row)"
             >备案审批
           </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,6 +79,59 @@
         </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=""
@@ -89,8 +150,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 +242,8 @@
           {
             label: "法定代表人",
             prop: "representative",
+            searchLabelWidth: 90,
+            search: true,
             width: 82,
             rules: [
               {
@@ -412,7 +475,7 @@
           },
           {
             label: "许可类型",
-            search: true,
+            // search: true,
             hide: true,
             prop: "ptype",
             type: "select",
diff --git a/src/views/licenseApproval/cancellationOfFiling.vue b/src/views/licenseApproval/cancellationOfFiling.vue
index 5c95b0c..f712fa4 100644
--- a/src/views/licenseApproval/cancellationOfFiling.vue
+++ b/src/views/licenseApproval/cancellationOfFiling.vue
@@ -2,7 +2,7 @@
  * @Author: liu
  * @Date: 2021-08-26 17:00:04 
  * @Last Modified by: liu
- * @Last Modified time: 2021-08-27 11:32:53
+ * @Last Modified time: 2021-08-27 19:21:31
  */
 
 
@@ -89,8 +89,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 +181,8 @@
           {
             label: "法定代表人",
             prop: "representative",
+            searchLabelWidth: 90,
+            search: true,
             width: 82,
             rules: [
               {
@@ -374,7 +376,7 @@
           },
           {
             label: "许可类型",
-            search: true,
+            // search: true,
             hide: true,
             prop: "ptype",
             type: "select",
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",
diff --git a/src/views/licenseApproval/securityGuard.vue b/src/views/licenseApproval/securityGuard.vue
index 0ce32f4..3919185 100644
--- a/src/views/licenseApproval/securityGuard.vue
+++ b/src/views/licenseApproval/securityGuard.vue
@@ -2,7 +2,7 @@
  * @Author: liu
  * @Date: 2021-08-26 16:57:58 
  * @Last Modified by: liu
- * @Last Modified time: 2021-08-27 11:06:59
+ * @Last Modified time: 2021-08-27 19:35:04
  */
 
 
@@ -62,8 +62,16 @@
             icon="el-icon-edit"
             :size="size"
             :type="type"
-            v-show="row.type == 0"
             @click.stop="viewLicense(row)"
+            v-if="row.type == '0'"
+            >打印备案证
+          </el-button>
+          <el-button
+            icon="el-icon-edit"
+            :size="size"
+            :type="type"
+            v-show="row.type == 0"
+            @click.stop="viewLicensehuizhi(row)"
             >回执打印
           </el-button>
         </template>
@@ -79,7 +87,6 @@
         </template>
       </avue-crud>
     </basic-container>
-
     <div
       v-if="dialogVisible"
       class="dialogVisibles"
@@ -90,7 +97,64 @@
         :class="classStyle == 'print' ? 'printstyle' : ''"
         ref="licence"
       >
-        <div class="licence exam-box" id="licence" v-if="dialogVisible">
+        <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>
+
+    <div
+      v-if="dialogVisiblehuizhi"
+      class="dialogVisibles"
+      :class="classStyle == 'print' ? 'printstyle' : ''"
+    >
+      <div
+        id="licence_box"
+        :class="classStyle == 'print' ? 'printstyle' : ''"
+        ref="licencelicencehuizhi"
+      >
+        <div
+          class="licencehuizhi exam-box"
+          id="licencehuizhi"
+          v-if="dialogVisiblehuizhi"
+        >
           <h3>回执单</h3>
           <p>
             南昌市公安局已收到
@@ -110,8 +174,10 @@
           </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>
+          <el-button type="primary" @click="Printhuizhi">打 印</el-button>
+          <el-button type="primary" @click="closePrinthuizhi">
+            取 消
+          </el-button>
         </span>
       </div>
     </div>
@@ -133,8 +199,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>
@@ -158,6 +224,8 @@
 
       dialogVisiblecc: false, //许可证审核抽屉
       xukezData: {},
+
+      dialogVisiblehuizhi: false, //回执
 
       dialogVisible: false, //许可证抽屉
       licenceData: {
@@ -225,7 +293,9 @@
           {
             label: "法定代表人",
             prop: "representative",
+            search: true,
             width: 82,
+            searchLabelWidth: 90,
             rules: [
               {
                 required: true,
@@ -456,7 +526,7 @@
           },
           {
             label: "许可类型",
-            search: true,
+            // search: true,
             hide: true,
             prop: "ptype",
             type: "select",
@@ -540,6 +610,9 @@
   //     console.log(this.userInfo.dept_id);
   // },
   methods: {
+    Printhuizhi() {
+      this.$Print(this.$refs.licencehuizhi);
+    },
     Print() {
       this.$Print(this.$refs.licence);
     },
@@ -606,6 +679,12 @@
       this.textareaShenpi = "";
     },
 
+    viewLicensehuizhi() {
+      this.dialogVisiblehuizhi = true;
+    },
+    closePrinthuizhi() {
+      this.dialogVisiblehuizhi = false;
+    },
     viewLicense(row) {
       //查看许可证
       this.licenceData.row = row;
@@ -776,6 +855,17 @@
   flex-direction: column;
 }
 .licence {
+  width: 960px;
+  height: 648px;
+  background-color: #fff !important;
+  background-image: url("/img/permit/服务许可背景图.png");
+  background-size: 100% 100%;
+  background-repeat: no-repeat;
+  box-sizing: border-box;
+  padding: 10%;
+  color: #000;
+}
+.licencehuizhi {
   width: 800px;
   height: 348px;
   background-color: #fff !important;
diff --git a/src/views/licenseApproval/securityPermit.vue b/src/views/licenseApproval/securityPermit.vue
index 1024a9e..abf573e 100644
--- a/src/views/licenseApproval/securityPermit.vue
+++ b/src/views/licenseApproval/securityPermit.vue
@@ -3,7 +3,7 @@
  * @Author: liu
  * @Date: 2021-08-26 16:22:20 
  * @Last Modified by: liu
- * @Last Modified time: 2021-08-27 11:31:52
+ * @Last Modified time: 2021-08-27 19:20:28
  */
 
 <template>
@@ -201,8 +201,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>
@@ -293,6 +293,8 @@
           {
             label: "法定代表人",
             prop: "representative",
+            search: true,
+            searchLabelWidth: 90,
             width: 82,
             rules: [
               {
@@ -486,7 +488,7 @@
           },
           {
             label: "许可类型",
-            search: true,
+            // search: true,
             hide: true,
             prop: "ptype",
             type: "select",
diff --git a/src/views/licenseApproval/securityTraining.vue b/src/views/licenseApproval/securityTraining.vue
index 40647ab..cc4d6c1 100644
--- a/src/views/licenseApproval/securityTraining.vue
+++ b/src/views/licenseApproval/securityTraining.vue
@@ -2,7 +2,7 @@
  * @Author: liu
  * @Date: 2021-08-26 16:55:25 
  * @Last Modified by: liu
- * @Last Modified time: 2021-08-27 11:32:24
+ * @Last Modified time: 2021-08-27 11:45:56
  */
 
 
@@ -201,8 +201,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>
@@ -293,7 +293,9 @@
           {
             label: "法定代表人",
             prop: "representative",
+            search: true,
             width: 82,
+            searchLabelWidth: 90,
             rules: [
               {
                 required: true,
@@ -486,7 +488,7 @@
           },
           {
             label: "许可类型",
-            search: true,
+            // search: true,
             hide: true,
             prop: "ptype",
             type: "select",

--
Gitblit v1.9.3