From db9e87b7f5f111f048e6d2221e7fea89df4f0a66 Mon Sep 17 00:00:00 2001
From: liuyg <376836862@qq.com>
Date: Wed, 04 Aug 2021 16:23:59 +0800
Subject: [PATCH] 适应打印

---
 src/views/permit/permit.vue | 1280 +++++++++++++++++++++++++++++----------------------------
 1 files changed, 645 insertions(+), 635 deletions(-)

diff --git a/src/views/permit/permit.vue b/src/views/permit/permit.vue
index b166847..8723927 100644
--- a/src/views/permit/permit.vue
+++ b/src/views/permit/permit.vue
@@ -1,116 +1,126 @@
 <template>
-    <basic-container class="permit">
-        <avue-crud :option="option"
-                   :table-loading="loading"
-                   :data="data"
-                   :page.sync="page"
-                   :permission="permissionList"
-                   :before-open="beforeOpen"
-                   v-model="form"
-                   ref="crud"
-                   @row-update="rowUpdate"
-                   @row-save="rowSave"
-                   @row-del="rowDel"
-                   @search-change="searchChange"
-                   @search-reset="searchReset"
-                   @selection-change="selectionChange"
-                   @current-change="currentChange"
-                   @size-change="sizeChange"
-                   @refresh-change="refreshChange"
-                   @on-load="onLoad"
-                   :row-style="rowStyle">
-            <template slot="menuLeft">
-                <el-button type="danger"
-                           size="small"
-                           icon="el-icon-delete"
-                           plain
-                           v-if="permission.permit_delete"
-                           @click="handleDelete">删 除
-                </el-button>
-            </template>
-            <template slot-scope="{ type, size, row }"
-                      slot="menu">
-                <el-button icon="icon-zhengjian"
-                           :size="size"
-                           :type="type"
-                           class="zhengJian-icon"
-                           @click.stop="handleCredentials(row)">附件查阅
-                </el-button>
-                <el-button icon="el-icon-edit"
-                           :size="size"
-                           :type="type"
-                           @click.stop="rowDel(row)"
-                           v-if="row.type == '2'">许可审批
-                </el-button>
-                <el-button icon="el-icon-edit"
-                           :size="size"
-                           :type="type"
-                           @click.stop="viewLicense(row)">查看许可证
-                </el-button>
-            </template>
-            <template class="tdtype"
-                      slot-scope="{ row }"
-                      slot="type">
-                <el-tag class="dtype">
-                    {{ row.type == "0" ? "通过" : row.type == "1" ? "不通过" : "待审核" }}
-                    <i class="gz"
-                       v-if="row.type == '0'"></i>
-                    <i class="yj"
-                       v-if="row.type == '1'"></i>
-                    <i class="zc"
-                       v-if="row.type == '2'"></i>
-                </el-tag>
-            </template>
-        </avue-crud>
-        <el-dialog :visible.sync="dialogVisible"
-                   :before-close="handleClose"
-                   :modal-append-to-body="false"
-                   width="1005px"
-                   top="10vh">
-            <div id='licence_box'>
-                <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="onceMain">
+  <basic-container class="permit">
+    <avue-crud
+      :option="option"
+      :table-loading="loading"
+      :data="data"
+      :page.sync="page"
+      :permission="permissionList"
+      :before-open="beforeOpen"
+      v-model="form"
+      ref="crud"
+      @row-update="rowUpdate"
+      @row-save="rowSave"
+      @row-del="rowDel"
+      @search-change="searchChange"
+      @search-reset="searchReset"
+      @selection-change="selectionChange"
+      @current-change="currentChange"
+      @size-change="sizeChange"
+      @refresh-change="refreshChange"
+      @on-load="onLoad"
+      :row-style="rowStyle"
+    >
+      <template slot="menuLeft">
+        <el-button
+          type="danger"
+          size="small"
+          icon="el-icon-delete"
+          plain
+          v-if="permission.permit_delete"
+          @click="handleDelete"
+          >删 除
+        </el-button>
+      </template>
+      <template slot-scope="{ type, size, row }" slot="menu">
+        <el-button
+          icon="icon-zhengjian"
+          :size="size"
+          :type="type"
+          class="zhengJian-icon"
+          @click.stop="handleCredentials(row)"
+          >附件查阅
+        </el-button>
+        <el-button
+          icon="el-icon-edit"
+          :size="size"
+          :type="type"
+          @click.stop="rowDel(row)"
+          v-if="row.type == '2'"
+          >许可审批
+        </el-button>
+        <el-button
+          icon="el-icon-edit"
+          :size="size"
+          :type="type"
+          @click.stop="viewLicense(row)"
+          >查看许可证
+        </el-button>
+      </template>
+      <template class="tdtype" slot-scope="{ row }" slot="type">
+        <el-tag class="dtype">
+          {{ row.type == "0" ? "通过" : row.type == "1" ? "不通过" : "待审核" }}
+          <i class="gz" v-if="row.type == '0'"></i>
+          <i class="yj" v-if="row.type == '1'"></i>
+          <i class="zc" v-if="row.type == '2'"></i>
+        </el-tag>
+      </template>
+    </avue-crud>
+    <el-dialog
+      :visible.sync="dialogVisible"
+      :before-close="handleClose"
+      :modal-append-to-body="false"
+      width="1005px"
+      top="10vh"
+    >
+      <div id="licence_box">
+        <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="onceMain">
           名称:
           <div class="fontStyle">{{ licenceData.enterprisename }}</div>
         </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>
+          <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>
+      </div>
 
-            <span slot="footer"
-                  class="dialog-footer">
-                <el-button type="primary"
-                           @click="Print">打 印</el-button>
-            </span>
-
-        </el-dialog>
-    </basic-container>
+      <span slot="footer" class="dialog-footer">
+        <el-button type="primary" @click="Print">打 印</el-button>
+      </span>
+    </el-dialog>
+  </basic-container>
 </template>
 
 <script>
@@ -118,578 +128,578 @@
 import { mapGetters } from "vuex";
 
 export default {
-    data () {
-        return {
-            dialogVisible: false, //许可证抽屉
-            licenceData: {
-                row: {},
-                chiden: {},
-            },
+  data() {
+    return {
+      dialogVisible: false, //许可证抽屉
+      licenceData: {
+        row: {},
+        chiden: {},
+      },
 
-            form: {},
-            query: {},
-            loading: true,
-            page: {
-                pageSize: 10,
-                currentPage: 1,
-                total: 0,
+      form: {},
+      query: {},
+      loading: true,
+      page: {
+        pageSize: 10,
+        currentPage: 1,
+        total: 0,
+      },
+      selectionList: [],
+      option: {
+        height: "auto",
+        calcHeight: 30,
+        excelBtn: true,
+        tip: false,
+        searchShowBtn: false,
+        searchShow: true,
+        searchMenuSpan: 8,
+        menuWidth: 320,
+        labelWidth: 130,
+        headerAlign: "center",
+        align: "center",
+        // border: false,
+        index: true,
+        viewBtn: true,
+        selection: true,
+        dialogClickModal: false,
+        column: [
+          {
+            label: "社会信用代码",
+            prop: "creditcode",
+            hide: true,
+            rules: [
+              {
+                required: true,
+                message: "请输入统一社会信用代码",
+                trigger: "blur",
+              },
+            ],
+          },
+          {
+            label: "企业名称",
+            search: true,
+            prop: "enterprisename",
+            overHidden: true,
+            width: 180,
+            rules: [
+              {
+                required: true,
+                message: "请输入企业名称",
+                trigger: "blur",
+              },
+            ],
+          },
+          {
+            label: "法定代表人",
+            prop: "representative",
+            rules: [
+              {
+                required: true,
+                message: "请输入法定代表人",
+                trigger: "blur",
+              },
+            ],
+          },
+          {
+            label: "成立日期",
+            prop: "establishtime",
+            type: "date",
+            format: "yyyy-MM-dd",
+            valueFormat: "yyyy-MM-dd",
+            rules: [
+              {
+                required: true,
+                message: "请输入成立日期",
+                trigger: "blur",
+              },
+            ],
+          },
+          {
+            label: "注册资本",
+            prop: "registeredcapital",
+            rules: [
+              {
+                required: true,
+                message: "请输入注册资本",
+                trigger: "blur",
+              },
+            ],
+          },
+          {
+            label: "组织机构代码",
+            prop: "organizationcode",
+            rules: [
+              {
+                required: true,
+                message: "请输入组织机构代码",
+                trigger: "blur",
+              },
+            ],
+          },
+          {
+            label: "工商注册号",
+            hide: true,
+            prop: "registrationnumber",
+            rules: [
+              {
+                required: true,
+                message: "请输入工商注册号",
+                trigger: "blur",
+              },
+            ],
+          },
+          {
+            label: "纳税人识别号",
+            prop: "identificationnumber",
+            rules: [
+              {
+                required: true,
+                message: "请输入纳税人识别号",
+                trigger: "blur",
+              },
+            ],
+          },
+          {
+            label: "企业类型",
+            hide: true,
+            prop: "enterprises",
+            rules: [
+              {
+                required: true,
+                message: "请输入企业类型",
+                trigger: "blur",
+              },
+            ],
+          },
+          {
+            label: "注册地址",
+            prop: "address",
+            overHidden: true,
+            rules: [
+              {
+                required: true,
+                message: "请输入注册地址",
+                trigger: "blur",
+              },
+            ],
+          },
+          {
+            label: "所属地区",
+            hide: true,
+            prop: "region",
+            rules: [
+              {
+                required: true,
+                message: "请输入所属地区",
+                trigger: "blur",
+              },
+            ],
+          },
+          {
+            label: "登记机关",
+            prop: "registration",
+            overHidden: true,
+            rules: [
+              {
+                required: true,
+                message: "请输入登记机关",
+                trigger: "blur",
+              },
+            ],
+          },
+          {
+            label: "所属行业",
+            hide: true,
+            prop: "industry",
+            rules: [
+              {
+                required: true,
+                message: "请输入所属行业",
+                trigger: "blur",
+              },
+            ],
+          },
+          {
+            label: "所属机构",
+            prop: "deptid",
+            addDisplay: false,
+            type: "select",
+            hide: true,
+            dicUrl: "/api/blade-system/dept/selectIn",
+            props: {
+              label: "deptname",
+              value: "deptid",
             },
-            selectionList: [],
-            option: {
-                height: "auto",
-                calcHeight: 30,
-                excelBtn: true,
-                tip: false,
-                searchShowBtn: false,
-                searchShow: true,
-                searchMenuSpan: 8,
-                menuWidth: 320,
-                labelWidth: 130,
-                headerAlign: "center",
-                align: "center",
-                // border: false,
-                index: true,
-                viewBtn: true,
-                selection: true,
-                dialogClickModal: false,
-                column: [
-                    {
-                        label: "社会信用代码",
-                        prop: "creditcode",
-                        hide: true,
-                        rules: [
-                            {
-                                required: true,
-                                message: "请输入统一社会信用代码",
-                                trigger: "blur",
-                            },
-                        ],
-                    },
-                    {
-                        label: "企业名称",
-                        search: true,
-                        prop: "enterprisename",
-                        overHidden: true,
-                        width: 180,
-                        rules: [
-                            {
-                                required: true,
-                                message: "请输入企业名称",
-                                trigger: "blur",
-                            },
-                        ],
-                    },
-                    {
-                        label: "法定代表人",
-                        prop: "representative",
-                        rules: [
-                            {
-                                required: true,
-                                message: "请输入法定代表人",
-                                trigger: "blur",
-                            },
-                        ],
-                    },
-                    {
-                        label: "成立日期",
-                        prop: "establishtime",
-                        type: "date",
-                        format: "yyyy-MM-dd",
-                        valueFormat: "yyyy-MM-dd",
-                        rules: [
-                            {
-                                required: true,
-                                message: "请输入成立日期",
-                                trigger: "blur",
-                            },
-                        ],
-                    },
-                    {
-                        label: "注册资本",
-                        prop: "registeredcapital",
-                        rules: [
-                            {
-                                required: true,
-                                message: "请输入注册资本",
-                                trigger: "blur",
-                            },
-                        ],
-                    },
-                    {
-                        label: "组织机构代码",
-                        prop: "organizationcode",
-                        rules: [
-                            {
-                                required: true,
-                                message: "请输入组织机构代码",
-                                trigger: "blur",
-                            },
-                        ],
-                    },
-                    {
-                        label: "工商注册号",
-                        hide: true,
-                        prop: "registrationnumber",
-                        rules: [
-                            {
-                                required: true,
-                                message: "请输入工商注册号",
-                                trigger: "blur",
-                            },
-                        ],
-                    },
-                    {
-                        label: "纳税人识别号",
-                        prop: "identificationnumber",
-                        rules: [
-                            {
-                                required: true,
-                                message: "请输入纳税人识别号",
-                                trigger: "blur",
-                            },
-                        ],
-                    },
-                    {
-                        label: "企业类型",
-                        hide: true,
-                        prop: "enterprises",
-                        rules: [
-                            {
-                                required: true,
-                                message: "请输入企业类型",
-                                trigger: "blur",
-                            },
-                        ],
-                    },
-                    {
-                        label: "注册地址",
-                        prop: "address",
-                        overHidden: true,
-                        rules: [
-                            {
-                                required: true,
-                                message: "请输入注册地址",
-                                trigger: "blur",
-                            },
-                        ],
-                    },
-                    {
-                        label: "所属地区",
-                        hide: true,
-                        prop: "region",
-                        rules: [
-                            {
-                                required: true,
-                                message: "请输入所属地区",
-                                trigger: "blur",
-                            },
-                        ],
-                    },
-                    {
-                        label: "登记机关",
-                        prop: "registration",
-                        overHidden: true,
-                        rules: [
-                            {
-                                required: true,
-                                message: "请输入登记机关",
-                                trigger: "blur",
-                            },
-                        ],
-                    },
-                    {
-                        label: "所属行业",
-                        hide: true,
-                        prop: "industry",
-                        rules: [
-                            {
-                                required: true,
-                                message: "请输入所属行业",
-                                trigger: "blur",
-                            },
-                        ],
-                    },
-                    {
-                        label: "所属机构",
-                        prop: "deptid",
-                        addDisplay: false,
-                        type: "select",
-                        hide: true,
-                        dicUrl: "/api/blade-system/dept/selectIn",
-                        props: {
-                            label: "deptname",
-                            value: "deptid",
-                        },
-                    },
-                    {
-                        label: "许可类型",
-                        search: true,
-                        prop: "ptype",
-                        type: "select",
-                        dicData: [
-                            {
-                                label: "保安服务许可",
-                                value: "0",
-                            },
-                            {
-                                label: "保安培训许可",
-                                value: "1",
-                            },
-                        ],
-                    },
-                    {
-                        label: "提交时间",
-                        prop: "permitime",
-                        overHidden: true,
-                        addDisplay: false,
-                        type: "date",
-                        format: "yyyy-MM-dd HH:mm:ss",
-                        valueFormat: "yyyy-MM-dd HH:mm:ss",
-                    },
-                    {
-                        label: "审核状态",
-                        prop: "type",
-                        addDisplay: false,
-                        type: "select",
-                        dicData: [
-                            {
-                                label: "通过",
-                                value: "0",
-                            },
-                            {
-                                label: "不通过",
-                                value: "1",
-                            },
-                            {
-                                label: "待审核",
-                                value: "2",
-                            },
-                        ],
-                    },
-                    {
-                        label: "经营范围",
-                        prop: "business",
-                        component: "AvueUeditor",
-                        hide: true,
-                        minRows: 6,
-                        span: 24,
-                        rules: [
-                            {
-                                required: true,
-                                message: "请输入经营范围",
-                                trigger: "blur",
-                            },
-                        ],
-                    },
-                ],
-            },
-            data: [],
-        };
+          },
+          {
+            label: "许可类型",
+            search: true,
+            prop: "ptype",
+            type: "select",
+            dicData: [
+              {
+                label: "保安服务许可",
+                value: "0",
+              },
+              {
+                label: "保安培训许可",
+                value: "1",
+              },
+            ],
+          },
+          {
+            label: "提交时间",
+            prop: "permitime",
+            overHidden: true,
+            addDisplay: false,
+            type: "date",
+            format: "yyyy-MM-dd HH:mm:ss",
+            valueFormat: "yyyy-MM-dd HH:mm:ss",
+          },
+          {
+            label: "审核状态",
+            prop: "type",
+            addDisplay: false,
+            type: "select",
+            dicData: [
+              {
+                label: "通过",
+                value: "0",
+              },
+              {
+                label: "不通过",
+                value: "1",
+              },
+              {
+                label: "待审核",
+                value: "2",
+              },
+            ],
+          },
+          {
+            label: "经营范围",
+            prop: "business",
+            component: "AvueUeditor",
+            hide: true,
+            minRows: 6,
+            span: 24,
+            rules: [
+              {
+                required: true,
+                message: "请输入经营范围",
+                trigger: "blur",
+              },
+            ],
+          },
+        ],
+      },
+      data: [],
+    };
+  },
+  computed: {
+    ...mapGetters(["permission", "userInfo"]),
+    permissionList() {
+      return {
+        addBtn: this.vaildData(this.permission.permit_add, false),
+        viewBtn: this.vaildData(this.permission.permit_view, false),
+        delBtn: this.vaildData(this.permission.permit_delete, false),
+        editBtn: this.vaildData(this.permission.permit_edit, false),
+      };
     },
-    computed: {
-        ...mapGetters(["permission", "userInfo"]),
-        permissionList () {
-            return {
-                addBtn: this.vaildData(this.permission.permit_add, false),
-                viewBtn: this.vaildData(this.permission.permit_view, false),
-                delBtn: this.vaildData(this.permission.permit_delete, false),
-                editBtn: this.vaildData(this.permission.permit_edit, false),
-            };
-        },
-        ids () {
-            let ids = [];
-            this.selectionList.forEach((ele) => {
-                ids.push(ele.id);
-            });
-            return ids.join(",");
-        },
+    ids() {
+      let ids = [];
+      this.selectionList.forEach((ele) => {
+        ids.push(ele.id);
+      });
+      return ids.join(",");
     },
-    // mounted() {
-    //     console.log(this.userInfo.dept_id);
-    // },
-    methods: {
-        Print () {
-            //打印
-            let subOutputRankPrint = document.getElementById("licence_box");
-            let newContent = subOutputRankPrint.innerHTML;
-            let oldContent = document.body.innerHTML;
-            document.body.innerHTML = newContent;
-            window.print();
-            window.location.reload();
-            document.body.innerHTML = oldContent;
+  },
+  // mounted() {
+  //     console.log(this.userInfo.dept_id);
+  // },
+  methods: {
+    Print() {
+      //打印
+      let subOutputRankPrint = document.getElementById("licence_box");
+      let newContent = subOutputRankPrint.innerHTML;
+      let oldContent = document.body.innerHTML;
+      document.body.innerHTML = newContent;
+      window.print();
+      window.location.reload();
+      document.body.innerHTML = oldContent;
+    },
+    handleCredentials(row) {
+      this.$router.push({
+        path: "/attach/index",
+        // redirect: { name: "foo" },
+        // query: { row: row },
+        query: { deptid: row.deptid, type: "0" },
+        // params: { row: row.identificationnumber },
+      });
+    },
+    rowSave(row, done, loading) {
+      row.deptid = this.userInfo.dept_id;
+      add(row).then(
+        () => {
+          this.onLoad(this.page);
+          this.$message({
+            type: "success",
+            message: "操作成功!",
+          });
+          done();
         },
-        handleCredentials (row) {
-            this.$router.push({
-                path: "/attach/index",
-                // redirect: { name: "foo" },
-                // query: { row: row },
-                query: { deptid: row.deptid, type: "0" },
-                // params: { row: row.identificationnumber },
-            });
+        (error) => {
+          loading();
+          window.console.log(error);
+        }
+      );
+    },
+    rowUpdate(row, index, done, loading) {
+      update(row).then(
+        () => {
+          this.onLoad(this.page);
+          this.$message({
+            type: "success",
+            message: "操作成功!",
+          });
+          done();
         },
-        rowSave (row, done, loading) {
-            row.deptid = this.userInfo.dept_id;
-            add(row).then(
-                () => {
-                    this.onLoad(this.page);
-                    this.$message({
-                        type: "success",
-                        message: "操作成功!",
-                    });
-                    done();
-                },
-                (error) => {
-                    loading();
-                    window.console.log(error);
-                }
-            );
-        },
-        rowUpdate (row, index, done, loading) {
-            update(row).then(
-                () => {
-                    this.onLoad(this.page);
-                    this.$message({
-                        type: "success",
-                        message: "操作成功!",
-                    });
-                    done();
-                },
-                (error) => {
-                    loading();
-                    console.log(error);
-                }
-            );
-        },
-        rowDel (row) {
-            this.$confirm("确定对选择的许可进行审批?", {
-                confirmButtonText: "通过",
-                cancelButtonText: "不通过",
-                type: "warning",
-            })
-                .then(() => {
-                    row.type = "0";
-                    return update(row);
-                })
-                .then(() => {
-                    this.onLoad(this.page);
-                    this.$message({
-                        type: "success",
-                        message: "操作成功!",
-                    });
-                })
-                .catch(() => {
-                    row.type = "1";
-                    update(row);
-                    this.onLoad(this.page);
-                    this.$message({
-                        type: "warning",
-                        message: "操作成功!",
-                    });
-                });
-        },
-        viewLicense (row) {
-            //查看许可证
-            this.licenceData.row = row;
-            this.licenceData.chiden = {};
-            this.licenceData.chiden["名称"] = row.enterprisename;
-            this.licenceData.chiden["住所"] = row.address;
-            this.licenceData.chiden["法定代表人"] = row.representative;
-            this.licenceData.chiden["服务范围"] = row.industry;
-            this.licenceData.chiden["注册资本"] = row.registeredcapital;
-            this.licenceData.chiden["批准文号"] = row.registrationnumber;
+        (error) => {
+          loading();
+          console.log(error);
+        }
+      );
+    },
+    rowDel(row) {
+      this.$confirm("确定对选择的许可进行审批?", {
+        confirmButtonText: "通过",
+        cancelButtonText: "不通过",
+        type: "warning",
+      })
+        .then(() => {
+          row.type = "0";
+          return update(row);
+        })
+        .then(() => {
+          this.onLoad(this.page);
+          this.$message({
+            type: "success",
+            message: "操作成功!",
+          });
+        })
+        .catch(() => {
+          row.type = "1";
+          update(row);
+          this.onLoad(this.page);
+          this.$message({
+            type: "warning",
+            message: "操作成功!",
+          });
+        });
+    },
+    viewLicense(row) {
+      //查看许可证
+      this.licenceData.row = row;
+      this.licenceData.chiden = {};
+      this.licenceData.chiden["名称"] = row.enterprisename;
+      this.licenceData.chiden["住所"] = row.address;
+      this.licenceData.chiden["法定代表人"] = row.representative;
+      this.licenceData.chiden["服务范围"] = row.industry;
+      this.licenceData.chiden["注册资本"] = row.registeredcapital;
+      this.licenceData.chiden["批准文号"] = row.registrationnumber;
 
-            console.log(this.licenceData);
-            this.dialogVisible = true;
-        },
-        handleDelete () {
-            if (this.selectionList.length === 0) {
-                this.$message.warning("请选择至少一条数据");
-                return;
-            }
-            this.$confirm("确定将选择数据删除?", {
-                confirmButtonText: "确定",
-                cancelButtonText: "取消",
-                type: "warning",
-            })
-                .then(() => {
-                    return remove(this.ids);
-                })
-                .then(() => {
-                    this.onLoad(this.page);
-                    this.$message({
-                        type: "success",
-                        message: "操作成功!",
-                    });
-                    this.$refs.crud.toggleSelection();
-                });
-        },
-        beforeOpen (done, type) {
-            if (["edit", "view"].includes(type)) {
-                getDetail(this.form.id).then((res) => {
-                    this.form = res.data.data;
-                });
-            }
-            done();
-        },
-        searchReset () {
-            this.query = {};
-            this.onLoad(this.page);
-        },
-        searchChange (params, done) {
-            this.query = params;
-            this.page.currentPage = 1;
-            this.onLoad(this.page, params);
-            done();
-        },
-        selectionChange (list) {
-            this.selectionList = list;
-        },
-        selectionClear () {
-            this.selectionList = [];
-            this.$refs.crud.toggleSelection();
-        },
-        currentChange (currentPage) {
-            this.page.currentPage = currentPage;
-        },
-        sizeChange (pageSize) {
-            this.page.pageSize = pageSize;
-        },
-        refreshChange () {
-            this.onLoad(this.page, this.query);
-        },
-        onLoad (page, params = {}) {
-            this.loading = true;
-            getList(
-                page.currentPage,
-                page.pageSize,
-                Object.assign(params, this.query)
-            ).then((res) => {
-                const data = res.data.data;
-                this.page.total = data.total;
-                this.data = data.records;
-                this.loading = false;
-                this.selectionClear();
-            });
-        },
-        rowStyle ({ row }) {
-            if (row.dtype != null && row.dtype != "") {
-                if (row.dtype == "2") {
-                    return {
-                        color: "#F34A4A",
-                    };
-                }
-                if (row.dtype == "1") {
-                    return {
-                        color: "#F48F57",
-                    };
-                }
-            }
-        },
+      console.log(this.licenceData);
+      this.dialogVisible = true;
     },
+    handleDelete() {
+      if (this.selectionList.length === 0) {
+        this.$message.warning("请选择至少一条数据");
+        return;
+      }
+      this.$confirm("确定将选择数据删除?", {
+        confirmButtonText: "确定",
+        cancelButtonText: "取消",
+        type: "warning",
+      })
+        .then(() => {
+          return remove(this.ids);
+        })
+        .then(() => {
+          this.onLoad(this.page);
+          this.$message({
+            type: "success",
+            message: "操作成功!",
+          });
+          this.$refs.crud.toggleSelection();
+        });
+    },
+    beforeOpen(done, type) {
+      if (["edit", "view"].includes(type)) {
+        getDetail(this.form.id).then((res) => {
+          this.form = res.data.data;
+        });
+      }
+      done();
+    },
+    searchReset() {
+      this.query = {};
+      this.onLoad(this.page);
+    },
+    searchChange(params, done) {
+      this.query = params;
+      this.page.currentPage = 1;
+      this.onLoad(this.page, params);
+      done();
+    },
+    selectionChange(list) {
+      this.selectionList = list;
+    },
+    selectionClear() {
+      this.selectionList = [];
+      this.$refs.crud.toggleSelection();
+    },
+    currentChange(currentPage) {
+      this.page.currentPage = currentPage;
+    },
+    sizeChange(pageSize) {
+      this.page.pageSize = pageSize;
+    },
+    refreshChange() {
+      this.onLoad(this.page, this.query);
+    },
+    onLoad(page, params = {}) {
+      this.loading = true;
+      getList(
+        page.currentPage,
+        page.pageSize,
+        Object.assign(params, this.query)
+      ).then((res) => {
+        const data = res.data.data;
+        this.page.total = data.total;
+        this.data = data.records;
+        this.loading = false;
+        this.selectionClear();
+      });
+    },
+    rowStyle({ row }) {
+      if (row.dtype != null && row.dtype != "") {
+        if (row.dtype == "2") {
+          return {
+            color: "#F34A4A",
+          };
+        }
+        if (row.dtype == "1") {
+          return {
+            color: "#F48F57",
+          };
+        }
+      }
+    },
+  },
 };
 </script>
 
 <style scoped>
 .dtype {
-    width: 80px;
+  width: 80px;
 }
 
 .dx {
-    position: absolute;
-    top: 50%;
-    margin-top: -5px;
-    margin-left: 6px;
-    width: 10px;
-    height: 10px;
-    border-radius: 30%;
-    background: #dfdfdf;
+  position: absolute;
+  top: 50%;
+  margin-top: -5px;
+  margin-left: 6px;
+  width: 10px;
+  height: 10px;
+  border-radius: 30%;
+  background: #dfdfdf;
 }
 .zc {
-    position: absolute;
-    top: 50%;
-    margin-top: -5px;
-    margin-left: 6px;
-    width: 10px;
-    height: 10px;
-    border-radius: 30%;
-    background: #29c093;
+  position: absolute;
+  top: 50%;
+  margin-top: -5px;
+  margin-left: 6px;
+  width: 10px;
+  height: 10px;
+  border-radius: 30%;
+  background: #29c093;
 }
 .yj {
-    position: absolute;
-    top: 50%;
-    margin-top: -5px;
-    margin-left: 6px;
-    width: 10px;
-    height: 10px;
-    border-radius: 30%;
-    background: #f34a4a;
+  position: absolute;
+  top: 50%;
+  margin-top: -5px;
+  margin-left: 6px;
+  width: 10px;
+  height: 10px;
+  border-radius: 30%;
+  background: #f34a4a;
 }
 .gz {
-    position: absolute;
-    top: 50%;
-    margin-top: -5px;
-    margin-left: 6px;
-    width: 10px;
-    height: 10px;
-    border-radius: 30%;
-    background: #f48f57;
+  position: absolute;
+  top: 50%;
+  margin-top: -5px;
+  margin-left: 6px;
+  width: 10px;
+  height: 10px;
+  border-radius: 30%;
+  background: #f48f57;
 }
 
 .el-tag {
-    display: inline-block;
-    width: 80px;
+  display: inline-block;
+  width: 80px;
 
-    /*padding-right: 40px !important;*/
+  /*padding-right: 40px !important;*/
 }
 .licence {
-    width: 960px;
-    height: 648px;
-    background-color: #fff !important;
-    background-image: url('../../static/img/permit/服务许可背景图.png');
-    background-size: 100% 100%;
-    background-repeat: no-repeat;
-    box-sizing: border-box;
-    padding: 10%;
-    color: #000;
+  width: 960px;
+  height: 648px;
+  background-color: #fff !important;
+  background-image: url("../../static/img/permit/服务许可背景图.png");
+  background-size: 100% 100%;
+  background-repeat: no-repeat;
+  box-sizing: border-box;
+  padding: 10%;
+  color: #000;
 }
 .licence-head {
-    width: 100%;
-    height: 1.8rem;
-    font-size: 1.8rem;
-    text-align: center;
+  width: 100%;
+  height: 1.8rem;
+  font-size: 1.8rem;
+  text-align: center;
 }
 .head-tid {
-    position: relative;
-    left: 70%;
+  position: relative;
+  left: 70%;
 }
 .head-tid span {
-    margin: 0 1rem;
+  margin: 0 1rem;
 }
 .licence-main {
-    width: 80%;
+  width: 80%;
 }
 .l-m-once {
-    width: 100%;
-    height: 2rem;
-    margin-top: 1rem;
+  width: 100%;
+  height: 2rem;
+  margin-top: 1rem;
 }
 .l-m-o-title {
-    font-size: 1.3rem;
-    width: 19%;
-    text-align: justify;
-    display: inline-block;
+  font-size: 1.3rem;
+  width: 22%;
+  text-align: justify;
+  display: inline-block;
 }
 .l-m-r-once {
-    font-size: 1.1rem;
-    /* border: 1px solid #000; */
-    display: inline-block;
-    width: 80%;
+  font-size: 1.1rem;
+  /* border: 1px solid #000; */
+  display: inline-block;
+  width: 77%;
 }
 .licence-bottom,
 .l-bottom {
-    position: relative;
-    left: 60%;
-    font-size: 1.5rem;
-    margin-top: 0.5rem;
+  position: relative;
+  left: 60%;
+  font-size: 1.5rem;
+  margin-top: 0.5rem;
 }
 </style>

--
Gitblit v1.9.3