From 79d9fc857559982b00b68b2d709807bdc4cd286f Mon Sep 17 00:00:00 2001
From: Administrator <admin>
Date: Mon, 11 Apr 2022 10:58:17 +0800
Subject: [PATCH] minio 地址修改
---
src/views/licenseApproval/securityGuard.vue | 744 ++++++++++++++++++++++----------------------------------
1 files changed, 296 insertions(+), 448 deletions(-)
diff --git a/src/views/licenseApproval/securityGuard.vue b/src/views/licenseApproval/securityGuard.vue
index 9910a0c..049f28a 100644
--- a/src/views/licenseApproval/securityGuard.vue
+++ b/src/views/licenseApproval/securityGuard.vue
@@ -1,92 +1,119 @@
-/*
- * @Author: liu
- * @Date: 2021-08-26 16:57:58
- * @Last Modified by: liu
- * @Last Modified time: 2021-09-06 09:10:46
- */
-
+/* * @Author: liu * @Date: 2021-08-26 16:57:58 * @Last Modified by: liu * @Last
+Modified time: 2021-11-09 11:16:14 */
<template>
- <div>
- <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
+ <basic-container
+ :class="[
+ 'permit',
+ $store.state.control.screenSize == 1366 ? 'smallSize' : 'normalSize',
+ $store.state.control.windowWidth >= 1024 ? 'tooRowSearch1' : ''
+ ]"
+ >
+ <avue-crud
+ class="tablesss"
+ :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.licenseApproval_securityGuard_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"
+ v-if="permission.licenseApproval_securityGuard_upload"
+ @click.stop="handleCredentials(row)"
+ >附件</el-button
+ >
+ <el-button
+ icon="el-icon-edit"
+ :size="size"
+ :type="type"
+ v-if="row.stateOur == '0' || permission.licenseApproval_securityGuard_audit"
+ @click.stop="rowDel(row)"
+ >备案审批
+ </el-button>
+ <!-- <el-button
icon="el-icon-edit"
:size="size"
:type="type"
- v-if="row.type == '2'"
- @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>
- <el-button
- icon="el-icon-edit"
- :size="size"
- :type="type"
- v-show="row.type == 0"
- @click.stop="viewLicensehuizhi(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>
- </basic-container>
+ v-if="
+ row.stateOur != '0' &&
+ !(
+ row.papprove == '1' &&
+ row.xapprove == '1' &&
+ row.sapprove == '1'
+ )
+ "
+ @click.stop="rowSee(row)"
+ >审批查询
+ </el-button> -->
+ <el-button
+ icon="el-icon-brush"
+ :size="size"
+ :type="type"
+ @click.stop="viewLicense(row)"
+ v-if="
+ row.papprove == '1' && row.xapprove == '1' && row.sapprove == '1' && permission.licenseApproval_securityGuard_print
+ "
+ >打印备案证
+ </el-button>
+ <el-button
+ icon="el-icon-brush"
+ :size="size"
+ :type="type"
+ v-if="
+ row.papprove == '1' && row.xapprove == '1' && row.sapprove == '1' && permission.licenseApproval_securityGuard_prints
+ "
+ @click.stop="viewLicensehuizhi(row)"
+ >回执打印
+ </el-button>
+ </template>
+ <template class="tdtype" slot-scope="{ row }" slot="type">
+ <el-tag class="dtype">
+ {{
+ row.stateOur == "1"
+ ? "通过"
+ : row.stateOur == "2"
+ ? "不通过"
+ : "待审核"
+ }}
+ <i class="gz" v-if="row.type == '2'"></i>
+ <!-- 黄色 -->
+ <i class="yj" v-if="row.type == '1'"></i>
+ <!-- 红色 -->
+ <i class="zc" v-if="row.type == '0'"></i>
+ <!-- 绿色 -->
+ </el-tag>
+ </template>
+ </avue-crud>
<div
v-if="dialogVisible"
class="dialogVisibles"
@@ -98,7 +125,7 @@
ref="licence"
>
<div class="licence" id="licence" v-if="dialogVisible">
- <div class="licence-head">备案回执</div>
+ <div class="licence-head">备案证</div>
<div class="head-tid">
编号
<span class="fontStyle">{{
@@ -204,7 +231,20 @@
</div>
</div>
</el-dialog>
- </div>
+ <el-dialog
+ title=""
+ :visible.sync="dialogVisibleccsee"
+ width="30%"
+ :modal-append-to-body="false"
+ >
+ <div class="flots">
+ <div class="f_title">
+ 审批 {{ stateOur == "1" ? "通过" : stateOur == "2" ? "不通过" : "" }}
+ </div>
+ <div><span>审批意见:</span> {{ stateText }}</div>
+ </div>
+ </el-dialog>
+ </basic-container>
</template>
<script>
@@ -213,10 +253,10 @@
getDetail,
add,
update,
- remove,
+ remove
} from "@/api/licenseApproval/record";
import { mapGetters } from "vuex";
-
+import { column } from "./column";
export default {
data() {
return {
@@ -230,7 +270,7 @@
dialogVisible: false, //许可证抽屉
licenceData: {
row: {},
- chiden: {},
+ chiden: {}
},
textareaShenpi: "",
@@ -241,6 +281,7 @@
pageSize: 10,
currentPage: 1,
total: 0,
+ ...this.$store.state.control.changePageSize
},
selectionList: [],
option: {
@@ -261,354 +302,40 @@
viewBtn: true,
selection: true,
dialogClickModal: false,
- column: [
- {
- label: "企业名称",
- search: true,
- prop: "enterprisename",
- searchLabelWidth: 80,
- searchSpan: 4,
- overHidden: true,
- width: 250,
- rules: [
- {
- required: true,
- message: "请输入企业名称",
- trigger: "blur",
- },
- ],
- },
- {
- label: "社会信用代码",
- prop: "creditcode",
- hide: true,
- rules: [
- {
- required: true,
- message: "请输入统一社会信用代码",
- trigger: "blur",
- },
- ],
- },
- {
- label: "法定代表人",
- prop: "representative",
- search: true,
- width: 82,
- searchLabelWidth: 90,
- rules: [
- {
- required: true,
- message: "请输入法定代表人",
- trigger: "blur",
- },
- ],
- },
- {
- label: "法定代表人电话",
- width: 106,
- prop: "representativecell",
- rules: [
- {
- required: true,
- message: "请输入法定代表人电话",
- trigger: "blur",
- },
- ],
- },
- {
- label: "联系人",
- prop: "contacts",
- width: 58,
- rules: [
- {
- required: true,
- message: "请输入联系人",
- trigger: "blur",
- },
- ],
- },
- {
- label: "联系人电话",
- width: 96,
- prop: "contactscell",
- rules: [
- {
- required: true,
- message: "请输入联系人电话",
- trigger: "blur",
- },
- ],
- },
- {
- label: "单位许可证编号",
- prop: "perid",
- // labelWidth: 160,
- // span: 12,
- hide: true,
- rules: [
- {
- required: true,
- message: "单位许可证编号",
- trigger: "blur",
- },
- ],
- },
- {
- label: "许可证发证机关",
- prop: "offices",
- // labelWidth: 160,
- // span: 12,
- hide: true,
- rules: [
- {
- required: true,
- message: "许可证发证机关",
- trigger: "blur",
- },
- ],
- },
- {
- label: "发证时间",
- prop: "officetime",
- // labelWidth: 160,
- // span: 12,
- hide: true,
- type: "date",
- format: "yyyy-MM-dd",
- valueFormat: "yyyy-MM-dd",
- },
- {
- label: "注册时间",
- hide: true,
- 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",
- hide: true,
- rules: [
- {
- required: true,
- message: "请输入组织机构代码",
- trigger: "blur",
- },
- ],
- },
- {
- label: "工商注册号",
- hide: true,
- prop: "registrationnumber",
- 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",
- 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: "所属辖区",
- prop: "jurisdiction",
- type: "tree",
- dicUrl: "/api/jurisdiction/lazy-trees",
- props: {
- label: "title",
- value: "id",
- },
- // labelWidth: 160,
- // span: 12,
- },
- {
- label: "许可类型",
- // search: true,
- hide: true,
- prop: "ptype",
- type: "select",
- searchSpan: 4,
- dicData: [
- {
- label: "自招保安单位备案",
- value: "3",
- },
- ],
- },
- {
- label: "提交时间",
- prop: "permitime",
- overHidden: true,
- addDisplay: false,
- width: 132,
- 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",
- },
- ],
- },
- ],
+ column: column,
+ ...this.$store.state.control.clearOtherBut
},
data: [],
+
+ user_name: "",
+ stateOur: "",
+ stateText: "",
+ dialogVisibleccsee: false,
+
+ userData: ""
};
},
computed: {
...mapGetters(["permission", "userInfo"]),
permissionList() {
return {
- addBtn: this.vaildData(this.permission.permit_add, false),
- viewBtn: this.vaildData(this.permission.permit_view, true),
- delBtn: this.vaildData(this.permission.permit_delete, false),
- editBtn: this.vaildData(this.permission.permit_edit, false),
+ addBtn: this.vaildData(this.permission.licenseApproval_securityGuard_add, false),
+ viewBtn: this.vaildData(this.permission.licenseApproval_securityGuard_view, true),
+ delBtn: this.vaildData(this.permission.licenseApproval_securityGuard_delete, false),
+ editBtn: this.vaildData(this.permission.licenseApproval_securityGuard_edit, false)
};
},
ids() {
let ids = [];
- this.selectionList.forEach((ele) => {
+ this.selectionList.forEach(ele => {
ids.push(ele.id);
});
return ids.join(",");
- },
+ }
},
- // mounted() {
- // console.log(this.userInfo.dept_id);
- // },
+ mounted() {
+ this.$store.commit("setWindowSizeHeightAdd");
+ },
methods: {
Printhuizhi() {
this.$Print(this.$refs.licencehuizhi);
@@ -622,7 +349,7 @@
path: "/attachOnce/index",
// redirect: { name: "foo" },
// query: { row: row },
- query: { deptid: row.cardid, type: "0" },
+ query: { deptid: row.cardid, type: "3" }
// params: { row: row.identificationnumber },
});
},
@@ -633,11 +360,11 @@
this.onLoad(this.page);
this.$message({
type: "success",
- message: "操作成功!",
+ message: "操作成功!"
});
done();
},
- (error) => {
+ error => {
loading();
window.console.log(error);
}
@@ -649,11 +376,11 @@
this.onLoad(this.page);
this.$message({
type: "success",
- message: "操作成功!",
+ message: "操作成功!"
});
done();
},
- (error) => {
+ error => {
loading();
console.log(error);
}
@@ -663,22 +390,66 @@
this.dialogVisiblecc = true;
this.xukezData = row;
},
- closecc() {
- this.xukezData.type = "0";
- this.dialogVisiblecc = false;
- this.xukezData["approve"] = this.textareaShenpi;
- console.log(this.xukezData);
- update(this.xukezData);
- this.textareaShenpi = "";
- },
- subcc() {
- this.xukezData.type = "1";
- this.dialogVisiblecc = false;
- this.xukezData["approve"] = this.textareaShenpi;
- update(this.xukezData);
- this.textareaShenpi = "";
+ rowSee(row) {
+ this.dialogVisibleccsee = true;
+ this.stateOur = row.stateOur;
+ if (this.user_name == "派") {
+ // 派出所审批
+ this.stateText = row.popinion;
+ } else if (this.user_name == "县") {
+ // 分局审批
+ this.stateText = row.xopinion;
+ } else if (this.user_name == "市") {
+ // 市局审批
+ this.stateText = row.sopinion;
+ }
},
+ closecc() {
+ this.upsData("1", "0"); //通过
+ },
+ subcc() {
+ this.upsData("2", "1"); //不通过
+ },
+ upsData(state, type) {
+ let date = new Date(+new Date() + 8 * 3600 * 1000)
+ .toJSON()
+ .substr(0, 19)
+ .replace("T", " ");
+ // console.log(date);
+ // return;
+ this.dialogVisiblecc = false;
+ if (this.user_name == "派") {
+ // 派出所审批
+ this.xukezData.ptime = date;
+ this.xukezData.papprove = state;
+ this.xukezData.popinion = this.textareaShenpi;
+ this.xukezData.type = type == "0" ? "2" : "1"; // 为了保持审核系统识别
+ } else if (this.user_name == "县") {
+ // 分局审批
+ this.xukezData.xtime = date;
+ this.xukezData.xapprove = state;
+ this.xukezData.xopinion = this.textareaShenpi;
+ this.xukezData.type = type == "0" ? "2" : "1"; // 为了保持审核系统识别
+ } else if (this.user_name == "市") {
+ // 市局审批
+ this.xukezData.stime = date;
+ this.xukezData.sapprove = state;
+ this.xukezData.sopinion = this.textareaShenpi;
+ this.xukezData.type = type == "0" ? "0" : "1"; // 为了保持审核系统识别
+ }
+ // console.log(this.xukezData);
+ // return;
+ update(this.xukezData).then(res => {
+ console.log(res);
+ this.$message({
+ type: "success",
+ message: "操作成功!"
+ });
+ this.refreshChange();
+ this.textareaShenpi = "";
+ });
+ },
viewLicensehuizhi() {
this.dialogVisiblehuizhi = true;
},
@@ -713,7 +484,7 @@
this.$confirm("确定将选择数据删除?", {
confirmButtonText: "确定",
cancelButtonText: "取消",
- type: "warning",
+ type: "warning"
})
.then(() => {
return remove(this.ids);
@@ -722,14 +493,14 @@
this.onLoad(this.page);
this.$message({
type: "success",
- message: "操作成功!",
+ message: "操作成功!"
});
this.$refs.crud.toggleSelection();
});
},
beforeOpen(done, type) {
if (["edit", "view"].includes(type)) {
- getDetail(this.form.id).then((res) => {
+ getDetail(this.form.id).then(res => {
this.form = res.data.data;
});
}
@@ -761,18 +532,95 @@
refreshChange() {
this.onLoad(this.page, this.query);
},
+ getFenji(name) {
+ var d = {};
+ if (name == "派出所管理员") {
+ d = {
+ // papprove: 1,
+ };
+ this.user_name = "派";
+ } else if (name == "县局管理员") {
+ d = {
+ papprove: "1"
+ };
+ this.user_name = "县";
+ } else if (name == "市局管理员") {
+ d = {
+ xapprove: "1"
+ };
+ this.user_name = "市";
+ }
+ return d;
+ },
+ changeState(data) {
+ var b = data;
+ if (this.user_name == "派") {
+ // 派出所审批
+ b["stateOur"] = b.papprove == "0" ? "0" : b.papprove == "1" ? "1" : "2";
+ } else if (this.user_name == "县") {
+ // 分局审批
+ b["stateOur"] = b.xapprove == "0" ? "0" : b.xapprove == "1" ? "1" : "2";
+ } else if (this.user_name == "市") {
+ // 市局审批
+ b["stateOur"] = b.sapprove == "0" ? "0" : b.sapprove == "1" ? "1" : "2";
+ }
+ return b;
+ },
onLoad(page, params = {}) {
this.loading = true;
params["ptype"] = 3;
+ var gonganj = "";
+ if (this.userInfo.role_name == "公安管理员" || this.userInfo.role_name == "民警") {
+ let test = /派出所$/g;
+ if (test.test(this.userInfo.list.name)) {
+ gonganj = "派出所管理员";
+ }
+ test = /分局|公安局$/g;
+ if (test.test(this.userInfo.list.name)) {
+ gonganj = "县局管理员";
+ }
+ test = /市公安局$/g;
+ if (test.test(this.userInfo.list.name)) {
+ gonganj = "市局管理员";
+ }
+ }
+ this.userData =
+ gonganj == "派出所管理员" ? "2" : gonganj == "县局管理员" ? "1" : "0";
+ params = {
+ ...params,
+ ...this.getFenji(gonganj)
+ };
+ console.log(params, "params");
+ params["jurisdiction"] = this.userInfo.jurisdiction;
+ params["usetype"] = this.userData;
+ this.option.column[this.option.column.length - 2].prop = "opinionOur";
+ // return;
getList(
page.currentPage,
page.pageSize,
Object.assign(params, this.query)
- ).then((res) => {
+ ).then(res => {
const data = res.data.data;
this.page.total = data.total;
this.data = data.records;
+ for (var k in this.data) {
+ // console.log(this.changeState(this.data[k]));
+ this.data[k] = this.changeState(this.data[k]);
+ let paichusuoyijian = this.data[k].popinion
+ ? "派出所意见:" + this.data[k].popinion + ";"
+ : "";
+ let fenjuijian = this.data[k].xopinion
+ ? "分局意见:" + this.data[k].xopinion + ";"
+ : "";
+ let shijuyijian = this.data[k].sopinion
+ ? "市局意见:" + this.data[k].sopinion + ";"
+ : "";
+ this.data[k]["opinionOur"] =
+ paichusuoyijian + fenjuijian + shijuyijian;
+ }
+ console.log(this.data);
this.loading = false;
+ this.$store.commit("setWindowSizeHeightAdd");
this.selectionClear();
});
},
@@ -780,17 +628,17 @@
if (row.dtype != null && row.dtype != "") {
if (row.dtype == "2") {
return {
- color: "#F34A4A",
+ color: "#F34A4A"
};
}
if (row.dtype == "1") {
return {
- color: "#F48F57",
+ color: "#F48F57"
};
}
}
- },
- },
+ }
+ }
};
</script>
--
Gitblit v1.9.3