保安服务单位许可和备案申请系统-验收版本
+
liuyg
2021-12-06 39862b8a7173aa9b37833e44d0b7b9416dda9026
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
<template>
  <div>
    <div
      v-if="licenseApprovalShow && !OnceChouseShow"
      class="OnceChouse ApprovalOnceChouse"
    >
      <slot name="close"></slot>
      <div class="heards">许可审批{{ title + titlename }}</div>
      <basic-container>
        <div v-for="(item, index) in cardData" :key="index">
          <!-- <div class="chouseHide"> -->
          <el-radio v-model="choseTypeSave" :label="item.type">{{
            item.menuName
          }}</el-radio>
          <br />
          <br />
          <!-- <div class="choseTitle">{{ item.datas.msg }}</div> -->
          <!-- </div> -->
        </div>
        <div class="hand-next">
          <el-button type="primary" @click="tipchose">确认</el-button>
          <!-- <el-button type="primary" @click="qx">取消</el-button> -->
        </div>
      </basic-container>
    </div>
    <div v-if="licenseApprovalShow && OnceChouseShow" class="licenseApproval">
      <slot name="close" @click="clocks"></slot>
      <div class="heards">许可审批{{ title + titlename }}</div>
      <basic-container>
        <securityPermit v-if="choseType == 1" @see="see"></securityPermit>
        <securityGuard v-if="choseType == 2" @see="see"></securityGuard>
        <cancellationOfFiling
          v-if="choseType == 3"
          @see="see"
        ></cancellationOfFiling>
        <crossRegion v-if="choseType == 4" @see="see"></crossRegion>
        <attachOnce v-if="choseType == 111" :seedata="seedata">
          <el-button plain class="butBac" slot="buts" @click="goback"
            >返回</el-button
          >
        </attachOnce>
      </basic-container>
    </div>
  </div>
</template>
<script>
import {
  getDetail,
  getList,
  getListre,
  getListrek,
  getListrev,
} from "@/api/permit/permit";
import securityPermit from "./child/securityPermit.vue"; // 服务公司申办许可申请
import securityGuard from "./child/securityGuard.vue"; // 保安单位公司备案
import cancellationOfFiling from "./child/cancellationOfFiling.vue"; // 自招保安单位备案撤销
import crossRegion from "./child/crossRegion.vue"; // 跨区域经营备案
import attachOnce from "./resource/attachOnce.vue"; // 附件查阅
import { mapGetters } from "vuex";
export default {
  props: {
    visible: {
      type: Boolean,
      default: false,
    },
    data: {
      type: Array,
      default: [],
    },
  },
  components: {
    securityPermit: securityPermit,
    securityGuard: securityGuard,
    cancellationOfFiling: cancellationOfFiling,
    crossRegion: crossRegion,
    attachOnce: attachOnce,
  },
  computed: {
    ...mapGetters(["licenseApprovalShow", "userInfo", "OnceChouseShow"]),
  },
  data() {
    var cardData = [
      {
        menuName: "服务公司申办许可申请",
        type: 1,
        methods: getList,
      },
      {
        menuName: "保安单位公司备案",
        type: 2,
        methods: getListre,
      },
      {
        menuName: "自招保安单位备案撤销",
        type: 3,
        methods: getListrev,
      },
      {
        menuName: "跨区域经营备案",
        type: 4,
        methods: getListrek,
      },
    ];
    return {
      OnceChouse: false,
      cardData: cardData,
      choseTypeSave: 1,
      choseType: 1,
      title: "",
      titlename: "",
 
      seedata: {},
    };
  },
  watch: {
    choseType() {
      if (this.choseType != 111) {
        this.titlename = "";
      }
    },
  },
  methods: {
    goback() {
      this.choseType = this.choseTypeSave;
    },
    see(val) {
      this.seedata = val;
      this.choseType = 111;
      this.titlename = "--" + val.name;
      console.log(val, "out");
    },
    tipchose() {
      if (
        this.choseTypeSave == 1 ||
        this.choseTypeSave == 2 ||
        this.choseTypeSave == 3 ||
        this.choseTypeSave == 4
      ) {
        this.$store.commit("doitOnceChouseShow", true);
        console.log(this.choseType);
        for (var k in this.cardData) {
          if (this.cardData[k].type == this.choseTypeSave) {
            this.title = "--" + this.cardData[k].menuName;
            this.choseType = this.choseTypeSave;
          }
        }
      } else {
        this.$message.error("请选择一项查询");
        return;
      }
      // this.openS(this.choseType, this.cardData);
    },
  },
};
</script>
 
<style lang="scss" scoped>
.ApprovalOnceChouse {
  position: relative !important;
}
.butBac {
  position: absolute;
  top: 16px;
  right: 50px;
  // .el-button { // 不生效 在element-ui.scss中设置
  //   padding: 6px 5px !important;
  //   font-size: 16px !important;
  // }
}
</style>