liuyg
2021-08-28 347cd67d89ef45fa013c46967adca369cfa598f8
src/views/licenseApproval/cancellationOfFiling.vue
@@ -1,8 +1,8 @@
/*
 * @Author: liu
 * @Date: 2021-08-26 17:00:04 
 * @Last Modified by: mikey.zhaopeng
 * @Last Modified time: 2021-08-26 17:03:44
 * @Last Modified by: liu
 * @Last Modified time: 2021-08-28 10:28:44
 */
@@ -56,15 +56,7 @@
            :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)"
            v-if="row.type == '0'"
            >打印许可证
            >撤销备案审批
          </el-button>
        </template>
        <template class="tdtype" slot-scope="{ row }" slot="type">
@@ -80,110 +72,6 @@
      </avue-crud>
    </basic-container>
    <!-- <el-dialog
      :visible.sync="dialogVisible"
      :before-close="handleClose"
      :modal-append-to-body="false"
      width="1005px"
      top="10vh"
      class="printstyle"
    >
      <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="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> -->
    <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"
@@ -191,7 +79,7 @@
      :modal-append-to-body="false"
    >
      <div class="flots">
        <span class="f_title">是否通过审核?</span>
        <span class="f_title">是否通过撤销备案审批?</span>
        <span class="f_body">请输入修改意见:</span>
        <textarea
          name="reworkmes"
@@ -201,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>
@@ -210,7 +98,13 @@
</template>
<script>
import { getList, getDetail, add, update, remove } from "@/api/licenseApproval/revoke";
import {
  getList,
  getDetail,
  add,
  update,
  remove,
} from "@/api/licenseApproval/revoke";
import { mapGetters } from "vuex";
export default {
@@ -287,6 +181,8 @@
          {
            label: "法定代表人",
            prop: "representative",
            searchLabelWidth: 90,
            search: true,
            width: 82,
            rules: [
              {
@@ -382,30 +278,30 @@
              },
            ],
          },
          {
            label: "纳税人识别号",
            prop: "identificationnumber",
            hide: true,
            rules: [
              {
                required: true,
                message: "请输入纳税人识别号",
                trigger: "blur",
              },
            ],
          },
          {
            label: "企业类型",
            hide: true,
            prop: "enterprises",
            rules: [
              {
                required: true,
                message: "请输入企业类型",
                trigger: "blur",
              },
            ],
          },
          // {
          //   label: "纳税人识别号",
          //   prop: "identificationnumber",
          //   hide: true,
          //   rules: [
          //     {
          //       required: true,
          //       message: "请输入纳税人识别号",
          //       trigger: "blur",
          //     },
          //   ],
          // },
          // {
          //   label: "企业类型",
          //   hide: true,
          //   prop: "enterprises",
          //   rules: [
          //     {
          //       required: true,
          //       message: "请输入企业类型",
          //       trigger: "blur",
          //     },
          //   ],
          // },
          {
            label: "注册地址",
            prop: "address",
@@ -418,18 +314,18 @@
              },
            ],
          },
          {
            label: "所属地区",
            hide: true,
            prop: "region",
            rules: [
              {
                required: true,
                message: "请输入所属地区",
                trigger: "blur",
              },
            ],
          },
          // {
          //   label: "所属地区",
          //   hide: true,
          //   prop: "region",
          //   rules: [
          //     {
          //       required: true,
          //       message: "请输入所属地区",
          //       trigger: "blur",
          //     },
          //   ],
          // },
          {
            label: "登记机关",
            prop: "registration",
@@ -454,21 +350,33 @@
              },
            ],
          },
          // {
          //   label: "所属机构",
          //   prop: "deptid",
          //   addDisplay: false,
          //   type: "select",
          //   hide: true,
          //   dicUrl: "/api/blade-system/dept/selectIn",
          //   props: {
          //     label: "deptname",
          //     value: "deptid",
          //   },
          // },
          {
            label: "所属机构",
            prop: "deptid",
            addDisplay: false,
            type: "select",
            hide: true,
            dicUrl: "/api/blade-system/dept/selectIn",
            label: "所属辖区",
            prop: "jurisdiction",
            type: "tree",
            dicUrl: "/api/jurisdiction/lazy-trees",
            props: {
              label: "deptname",
              value: "deptid",
              label: "title",
              value: "id",
            },
            // labelWidth: 160,
            // span: 12,
          },
          {
            label: "许可类型",
            search: true,
            // search: true,
            hide: true,
            prop: "ptype",
            type: "select",
@@ -477,10 +385,6 @@
              {
                label: "保安服务许可",
                value: "0",
              },
              {
                label: "保安培训许可",
                value: "1",
              },
            ],
          },
@@ -529,6 +433,21 @@
              },
            ],
          },
          {
            label: "撤销原因",
            prop: "reason",
            // labelWidth: 160,
            // span: 24,
            hide: true,
            type: "textarea",
            rules: [
              {
                required: true,
                message: "请输入撤销原因",
                trigger: "blur",
              },
            ],
          },
        ],
      },
      data: [],
@@ -562,10 +481,10 @@
    handleCredentials(row) {
      this.$router.push({
        path: "/attach/index",
        path: "/attachOnce/index",
        // redirect: { name: "foo" },
        // query: { row: row },
        query: { deptid: row.deptid, type: "0" },
        query: { deptid: row.cardid, type: "0" },
        // params: { row: row.identificationnumber },
      });
    },
@@ -795,7 +714,7 @@
  width: 960px;
  height: 648px;
  background-color: #fff !important;
  background-image: url("../../static/img/permit/服务许可背景图.png");
  background-image: url("/img/permit/服务许可背景图.png");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  box-sizing: border-box;