10 files modified
7 files added
| | |
| | | { |
| | | path: '/wel', |
| | | component: () => |
| | | import ('@/views/home/index') |
| | | // component: Layout, |
| | | // redirect: '/wel/index', |
| | | // children: [{ |
| | | // path: 'index', |
| | | // name: '首页', |
| | | // meta: { |
| | | // i18n: 'dashboard' |
| | | // }, |
| | | // component: () => |
| | | // import( /* webpackChunkName: "views" */ '@/views/wel/index') |
| | | // }, { |
| | | // path: 'dashboard', |
| | | // name: '控制台', |
| | | // meta: { |
| | | // i18n: 'dashboard', |
| | | // menu: false, |
| | | // }, |
| | | // component: () => |
| | | // import( /* webpackChunkName: "views" */ '@/views/wel/dashboard') |
| | | // }] |
| | | import('@/views/home/index') |
| | | // component: Layout, |
| | | // redirect: '/wel/index', |
| | | // children: [{ |
| | | // path: 'index', |
| | | // name: '首页', |
| | | // meta: { |
| | | // i18n: 'dashboard' |
| | | // }, |
| | | // component: () => |
| | | // import( /* webpackChunkName: "views" */ '@/views/wel/index') |
| | | // }, { |
| | | // path: 'dashboard', |
| | | // name: '控制台', |
| | | // meta: { |
| | | // i18n: 'dashboard', |
| | | // menu: false, |
| | | // }, |
| | | // component: () => |
| | | // import( /* webpackChunkName: "views" */ '@/views/wel/dashboard') |
| | | // }] |
| | | }, |
| | | |
| | | |
| | |
| | | i18n: 'test' |
| | | }, |
| | | component: () => |
| | | import ( /* webpackChunkName: "views" */ '@/views/util/test') |
| | | import( /* webpackChunkName: "views" */ '@/views/util/test') |
| | | }] |
| | | }, { |
| | | path: '/dict-horizontal', |
| | |
| | | i18n: 'dict' |
| | | }, |
| | | component: () => |
| | | import ( /* webpackChunkName: "views" */ '@/views/util/demo/dict-horizontal') |
| | | import( /* webpackChunkName: "views" */ '@/views/util/demo/dict-horizontal') |
| | | }] |
| | | }, { |
| | | path: '/dict-vertical', |
| | |
| | | i18n: 'dict' |
| | | }, |
| | | component: () => |
| | | import ( /* webpackChunkName: "views" */ '@/views/util/demo/dict-vertical') |
| | | import( /* webpackChunkName: "views" */ '@/views/util/demo/dict-vertical') |
| | | }] |
| | | }, { |
| | | path: '/info', |
| | |
| | | i18n: 'info' |
| | | }, |
| | | component: () => |
| | | import ( /* webpackChunkName: "views" */ '@/views/system/userinfo') |
| | | import( /* webpackChunkName: "views" */ '@/views/system/userinfo') |
| | | }] |
| | | }, { |
| | | path: '/work/process/leave', |
| | |
| | | i18n: 'work' |
| | | }, |
| | | component: () => |
| | | import ( /* webpackChunkName: "views" */ '@/views/work/process/leave/form') |
| | | import( /* webpackChunkName: "views" */ '@/views/work/process/leave/form') |
| | | }, { |
| | | path: 'handle/:taskId/:processInstanceId/:businessId', |
| | | name: '处理请假流程', |
| | |
| | | i18n: 'work' |
| | | }, |
| | | component: () => |
| | | import ( /* webpackChunkName: "views" */ '@/views/work/process/leave/handle') |
| | | import( /* webpackChunkName: "views" */ '@/views/work/process/leave/handle') |
| | | }, { |
| | | path: 'detail/:processInstanceId/:businessId', |
| | | name: '请假流程详情', |
| | |
| | | i18n: 'work' |
| | | }, |
| | | component: () => |
| | | import ( /* webpackChunkName: "views" */ '@/views/work/process/leave/detail') |
| | | import( /* webpackChunkName: "views" */ '@/views/work/process/leave/detail') |
| | | }] |
| | | }, { |
| | | path: '/attach', |
| | |
| | | i18n: 'index', |
| | | }, |
| | | component: () => |
| | | import ( /* webpackChunkName: "views" */ '@/views/resource/attach') |
| | | import( /* webpackChunkName: "views" */ '@/views/resource/attach') |
| | | }] |
| | | }, |
| | | // { |
| | |
| | | i18n: 'register', |
| | | }, |
| | | component: () => |
| | | import ( /* webpackChunkName: "views" */ '@/views/securityGuardManagement/register') |
| | | import( /* webpackChunkName: "views" */ '@/views/securityGuardManagement/register') |
| | | }] |
| | | }, |
| | | { |
| | |
| | | i18n: 'registerOnce', |
| | | }, |
| | | component: () => |
| | | import ( /* webpackChunkName: "views" */ '@/views/securityGuardManagement/registerOnce') |
| | | import( /* webpackChunkName: "views" */ '@/views/securityGuardManagement/registerOnce') |
| | | }] |
| | | }, |
| | | { |
| | |
| | | i18n: 'dict' |
| | | }, |
| | | component: () => |
| | | import ( /* webpackChunkName: "views" */ '@/views/desk/notice') |
| | | import( /* webpackChunkName: "views" */ '@/views/desk/notice') |
| | | }] |
| | | }, |
| | | { |
| | |
| | | i18n: 'index', |
| | | }, |
| | | component: () => |
| | | import ( /* webpackChunkName: "views" */ '@/views/resource/uploadNotice') |
| | | import( /* webpackChunkName: "views" */ '@/views/resource/uploadNotice') |
| | | }] |
| | | }, |
| | | // { |
| | |
| | | i18n: 'index', |
| | | }, |
| | | component: () => |
| | | import ( /* webpackChunkName: "views" */ '@/views/management/peopleDetails') |
| | | import( /* webpackChunkName: "views" */ '@/views/management/peopleDetails') |
| | | }] |
| | | }, { |
| | | path: '/management', |
| | |
| | | i18n: 'index', |
| | | }, |
| | | component: () => |
| | | import ( /* webpackChunkName: "views" */ '@/views/management/idinformation') |
| | | import( /* webpackChunkName: "views" */ '@/views/management/idinformation') |
| | | }] |
| | | }, { |
| | | path: '/securityCompany', |
| | |
| | | i18n: 'index', |
| | | }, |
| | | component: () => |
| | | import ( /* webpackChunkName: "views" */ '@/views/securityCompany/companyDetails') |
| | | import( /* webpackChunkName: "views" */ '@/views/securityCompany/companyDetails') |
| | | }] |
| | | }, { |
| | | path: '/map', |
| | | component: () => |
| | | import ( /* webpackChunkName: "views" */ '@/views/mapHome/index') |
| | | import( /* webpackChunkName: "views" */ '@/views/mapHome/index') |
| | | }, { |
| | | path: '/regulatoryInformation', |
| | | redirect: '/regulatoryInformation/index', |
| | |
| | | i18n: 'index', |
| | | }, |
| | | component: () => |
| | | import ( /* webpackChunkName: "views" */ '@/views/regulatoryInformation/index') |
| | | import( /* webpackChunkName: "views" */ '@/views/regulatoryInformation/index') |
| | | }] |
| | | }, { |
| | | path: '/commandQuery', |
| | |
| | | i18n: 'index', |
| | | }, |
| | | component: () => |
| | | import ( /* webpackChunkName: "views" */ '@/views/commandQuery/taskDistribution') |
| | | import( /* webpackChunkName: "views" */ '@/views/commandQuery/taskDistribution') |
| | | }] |
| | | }, |
| | | { |
| | |
| | | i18n: 'registrationTrainingQuery', |
| | | }, |
| | | component: () => |
| | | import ( /* webpackChunkName: "views" */ '@/views/qualificationExamination/registrationTrainingQuery') |
| | | import( /* webpackChunkName: "views" */ '@/views/qualificationExamination/registrationTrainingQuery') |
| | | }] |
| | | }, |
| | | { //报错 到不到vue文件 |
| | |
| | | i18n: 'index', |
| | | }, |
| | | component: () => |
| | | import ( /* webpackChunkName: "views" */ '@/views/securityUnitOperation/operationTable') |
| | | import( /* webpackChunkName: "views" */ '@/views/securityUnitOperation/operationTable') |
| | | }] |
| | | }, |
| | | // { |
| | |
| | | i18n: 'index', |
| | | }, |
| | | component: () => |
| | | import ( /* webpackChunkName: "views" */ '@/views/statisticalQueryManagement/companyDetails') |
| | | import( /* webpackChunkName: "views" */ '@/views/statisticalQueryManagement/companyDetails') |
| | | }] |
| | | }, |
| | | // { |
| | |
| | | i18n: 'index', |
| | | }, |
| | | component: () => |
| | | import ( /* webpackChunkName: "views" */ '@/views/statisticalQueryManagement/companyDetails') |
| | | import( /* webpackChunkName: "views" */ '@/views/statisticalQueryManagement/companyDetails') |
| | | }] |
| | | }, |
| | | { |
| | |
| | | i18n: 'index', |
| | | }, |
| | | component: () => |
| | | import ( /* webpackChunkName: "views" */ '@/views/securityUnitOperation/economicTable') |
| | | import( /* webpackChunkName: "views" */ '@/views/securityUnitOperation/economicTable') |
| | | }] |
| | | }, |
| | | { |
| | |
| | | i18n: 'index', |
| | | }, |
| | | component: () => |
| | | import ( /* webpackChunkName: "views" */ '@/views/statisticalQueryManagement/businessStatisticsDetail') |
| | | import( /* webpackChunkName: "views" */ '@/views/statisticalQueryManagement/businessStatisticsDetail') |
| | | }] |
| | | }, |
| | | { |
| | |
| | | i18n: 'index', |
| | | }, |
| | | component: () => |
| | | import ( /* webpackChunkName: "views" */ '@/views/statisticalQueryManagement/securityGuardDetail') |
| | | import( /* webpackChunkName: "views" */ '@/views/statisticalQueryManagement/securityGuardDetail') |
| | | }] |
| | | }, { |
| | | path: '/attachOnce', |
| | |
| | | component: Layout, |
| | | children: [{ |
| | | path: 'index', |
| | | name: '附件查看', |
| | | name: '附件查阅', |
| | | meta: { |
| | | i18n: 'index', |
| | | }, |
| | | component: () => |
| | | import ( /* webpackChunkName: "views" */ '@/views/resource/attachOnce') |
| | | import( /* webpackChunkName: "views" */ '@/views/resource/attachOnce') |
| | | }] |
| | | }, { |
| | | path: '/talk', |
| | |
| | | i18n: 'index', |
| | | }, |
| | | component: () => |
| | | import ( /* webpackChunkName: "views" */ '@/views/talk/talk') |
| | | import( /* webpackChunkName: "views" */ '@/views/talk/talk') |
| | | }] |
| | | } |
| | | ] |
| New file |
| | |
| | | /* |
| | | * @Author: liu |
| | | * @Date: 2021-08-26 17:00:55 |
| | | * @Last Modified by: liu |
| | | * @Last Modified time: 2021-11-04 19:43:50 |
| | | */ |
| | | |
| | | |
| | | <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 |
| | | 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> |
| | | </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 == '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> |
| | | </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" |
| | | width="30%" |
| | | :modal-append-to-body="false" |
| | | > |
| | | <div class="flots"> |
| | | <span class="f_title">是否通过备案审批?</span> |
| | | <span class="f_body">请输入修改意见:</span> |
| | | <textarea |
| | | name="reworkmes" |
| | | cols="40" |
| | | rows="4" |
| | | style="overflow: hidden" |
| | | v-model="textareaShenpi" |
| | | ></textarea> |
| | | <div class="but"> |
| | | <el-button type="danger" @click="subcc">不通过</el-button> |
| | | <el-button type="primary" @click="closecc">通过</el-button> |
| | | </div> |
| | | </div> |
| | | </el-dialog> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | import { |
| | | getList, |
| | | getDetail, |
| | | add, |
| | | update, |
| | | remove, |
| | | } from "@/api/licenseApproval/record"; |
| | | import { mapGetters } from "vuex"; |
| | | import { column } from "./column"; |
| | | export default { |
| | | data() { |
| | | return { |
| | | classStyle: "print", //打印样式 |
| | | |
| | | dialogVisiblecc: false, //许可证审核抽屉 |
| | | xukezData: {}, |
| | | |
| | | dialogVisible: false, //许可证抽屉 |
| | | licenceData: { |
| | | row: {}, |
| | | chiden: {}, |
| | | }, |
| | | textareaShenpi: "", |
| | | |
| | | 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, |
| | | border: true, |
| | | menuWidth: 300, |
| | | labelWidth: 130, |
| | | headerAlign: "center", |
| | | align: "center", |
| | | // border: false, |
| | | index: true, |
| | | viewBtn: true, |
| | | selection: true, |
| | | dialogClickModal: false, |
| | | column: column, |
| | | }, |
| | | data: [], |
| | | 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), |
| | | }; |
| | | }, |
| | | ids() { |
| | | let ids = []; |
| | | this.selectionList.forEach((ele) => { |
| | | ids.push(ele.id); |
| | | }); |
| | | return ids.join(","); |
| | | }, |
| | | }, |
| | | // mounted() { |
| | | // console.log(this.userInfo.dept_id); |
| | | // }, |
| | | methods: { |
| | | changeuserData() { |
| | | // console.log(this.userInfo, "userDatauserDatauserData"); |
| | | var gonganj = ""; |
| | | if (this.userInfo.role_name == "公安管理员") { |
| | | let test = /派出所$/g; |
| | | if (test.test(this.userInfo.list.name)) { |
| | | gonganj = "2"; |
| | | } |
| | | test = /分局|公安局$/g; |
| | | if (test.test(this.userInfo.list.name)) { |
| | | gonganj = "1"; |
| | | } |
| | | test = /市公安局$/g; |
| | | if (test.test(this.userInfo.list.name)) { |
| | | gonganj = "0"; |
| | | } |
| | | } |
| | | this.userData = gonganj; |
| | | }, |
| | | Print() { |
| | | this.$Print(this.$refs.licence); |
| | | }, |
| | | |
| | | handleCredentials(row) { |
| | | // console.log(row, "21354"); |
| | | this.$router.push({ |
| | | path: "/attachOnce/index", |
| | | // redirect: { name: "foo" }, |
| | | // query: { row: row }, |
| | | query: { deptid: row.cardid, type: "2" }, |
| | | // 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(); |
| | | }, |
| | | (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.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 = ""; |
| | | this.$message({ |
| | | type: "success", |
| | | message: "审核通过!", |
| | | }); |
| | | }, |
| | | subcc() { |
| | | this.xukezData.type = "1"; |
| | | this.dialogVisiblecc = false; |
| | | this.xukezData["approve"] = this.textareaShenpi; |
| | | update(this.xukezData); |
| | | this.textareaShenpi = ""; |
| | | this.$message({ |
| | | type: "success", |
| | | message: "审核不通过!", |
| | | }); |
| | | }, |
| | | |
| | | viewLicense(row) { |
| | | //查看许可证 |
| | | // console.log(row, 34); |
| | | this.licenceData.row = row; |
| | | this.licenceData.chiden = {}; |
| | | this.licenceData.chiden["名称"] = row.enterprisename; |
| | | this.licenceData.chiden["地址"] = row.address; |
| | | this.licenceData.chiden["服务区域"] = row.industry; |
| | | this.licenceData.chiden["法定代表人"] = row.representative; |
| | | this.licenceData.chiden["备案时间"] = row.officetime; |
| | | this.licenceData.chiden["备案内容"] = "设立分公司备案"; |
| | | // this.licenceData.chiden["注册资本"] = row.registeredcapital; |
| | | // this.licenceData.chiden["批准文号"] = row.registrationnumber; |
| | | |
| | | // console.log(this.licenceData); |
| | | this.dialogVisible = true; |
| | | }, |
| | | closePrint() { |
| | | this.dialogVisible = false; |
| | | }, |
| | | 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.changeuserData(); |
| | | this.loading = true; |
| | | params["ptype"] = 2; |
| | | params["jurisdiction"] = this.userInfo.jurisdiction; |
| | | params["usetype"] = this.userData; |
| | | 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 lang="scss"> |
| | | .dtype { |
| | | width: 80px; |
| | | } |
| | | |
| | | .dx { |
| | | 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; |
| | | } |
| | | .yj { |
| | | 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; |
| | | } |
| | | |
| | | .el-tag { |
| | | display: inline-block; |
| | | width: 80px; |
| | | |
| | | /*padding-right: 40px !important;*/ |
| | | } |
| | | #licence_box { |
| | | position: relative; |
| | | top: 15px; |
| | | width: 1080px; |
| | | height: 780px; |
| | | background-color: #004ca7; |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: center; |
| | | 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; |
| | | } |
| | | .licence-head { |
| | | width: 100%; |
| | | height: 1.8rem; |
| | | font-size: 1.8rem; |
| | | text-align: center; |
| | | } |
| | | .head-tid { |
| | | position: relative; |
| | | left: 70%; |
| | | } |
| | | .head-tid span { |
| | | margin: 0 1rem; |
| | | } |
| | | .licence-main { |
| | | width: 80%; |
| | | } |
| | | .l-m-once { |
| | | width: 100%; |
| | | height: 2rem; |
| | | margin-top: 1rem; |
| | | } |
| | | .l-m-o-title { |
| | | 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: 77%; |
| | | } |
| | | .licence-bottom, |
| | | .l-bottom { |
| | | position: relative; |
| | | left: 60%; |
| | | font-size: 1.5rem; |
| | | margin-top: 0.5rem; |
| | | } |
| | | .dialogVisibles { |
| | | position: fixed; |
| | | top: 0; |
| | | left: -10%; |
| | | height: 0; |
| | | width: 120%; |
| | | height: 100%; |
| | | background-color: rgba(0, 0, 0, 0.5); |
| | | z-index: 9000; |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: center; |
| | | } |
| | | .printstyle { |
| | | background-color: #fff !important; |
| | | } |
| | | .PrintBut { |
| | | margin-top: 15px; |
| | | } |
| | | |
| | | .flots { |
| | | display: flex; |
| | | justify-content: space-between; |
| | | flex-direction: column; |
| | | span { |
| | | display: inline-block; |
| | | } |
| | | .f_title { |
| | | position: absolute; |
| | | top: 15px; |
| | | font-size: 18px; |
| | | } |
| | | } |
| | | .but { |
| | | margin-top: 20px; |
| | | width: 100%; |
| | | display: flex; |
| | | align-content: center; |
| | | justify-content: center; |
| | | } |
| | | </style> |
| New file |
| | |
| | | /* |
| | | * @Author: liu |
| | | * @Date: 2021-08-26 17:00:04 |
| | | * @Last Modified by: liu |
| | | * @Last Modified time: 2021-11-05 15:25:01 |
| | | */ |
| | | |
| | | |
| | | <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 |
| | | icon="el-icon-edit" |
| | | :size="size" |
| | | :type="type" |
| | | @click.stop="rowDel(row)" |
| | | v-if="row.type == '2'" |
| | | >撤销备案审批 |
| | | </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 == '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> |
| | | </basic-container> |
| | | |
| | | <el-dialog |
| | | title="" |
| | | :visible.sync="dialogVisiblecc" |
| | | width="30%" |
| | | :modal-append-to-body="false" |
| | | > |
| | | <div class="flots"> |
| | | <span class="f_title">是否通过撤销备案审批?</span> |
| | | <span class="f_body">请输入修改意见:</span> |
| | | <textarea |
| | | name="reworkmes" |
| | | cols="40" |
| | | rows="4" |
| | | style="overflow: hidden" |
| | | v-model="textareaShenpi" |
| | | ></textarea> |
| | | <div class="but"> |
| | | <el-button type="danger" @click="subcc">不通过</el-button> |
| | | <el-button type="primary" @click="closecc">通过</el-button> |
| | | </div> |
| | | </div> |
| | | </el-dialog> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | import { |
| | | getList, |
| | | getDetail, |
| | | add, |
| | | update, |
| | | remove, |
| | | } from "@/api/licenseApproval/revoke"; |
| | | import { mapGetters } from "vuex"; |
| | | import { column } from "./column"; |
| | | export default { |
| | | data() { |
| | | return { |
| | | classStyle: "print", //打印样式 |
| | | |
| | | dialogVisiblecc: false, //许可证审核抽屉 |
| | | xukezData: {}, |
| | | |
| | | dialogVisible: false, //许可证抽屉 |
| | | licenceData: { |
| | | row: {}, |
| | | chiden: {}, |
| | | }, |
| | | textareaShenpi: "", |
| | | |
| | | 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, |
| | | border: true, |
| | | menuWidth: 300, |
| | | labelWidth: 130, |
| | | headerAlign: "center", |
| | | align: "center", |
| | | // border: false, |
| | | index: true, |
| | | viewBtn: true, |
| | | selection: true, |
| | | dialogClickModal: false, |
| | | column: column, |
| | | }, |
| | | data: [], |
| | | 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), |
| | | }; |
| | | }, |
| | | ids() { |
| | | let ids = []; |
| | | this.selectionList.forEach((ele) => { |
| | | ids.push(ele.id); |
| | | }); |
| | | return ids.join(","); |
| | | }, |
| | | }, |
| | | // mounted() { |
| | | // console.log(this.userInfo.dept_id); |
| | | // }, |
| | | methods: { |
| | | changeuserData() { |
| | | // console.log(this.userInfo, "userDatauserDatauserData"); |
| | | var gonganj = ""; |
| | | if (this.userInfo.role_name == "公安管理员") { |
| | | let test = /派出所$/g; |
| | | if (test.test(this.userInfo.list.name)) { |
| | | gonganj = "2"; |
| | | } |
| | | test = /分局|公安局$/g; |
| | | if (test.test(this.userInfo.list.name)) { |
| | | gonganj = "1"; |
| | | } |
| | | test = /市公安局$/g; |
| | | if (test.test(this.userInfo.list.name)) { |
| | | gonganj = "0"; |
| | | } |
| | | } |
| | | this.userData = gonganj; |
| | | }, |
| | | Print() { |
| | | this.$Print(this.$refs.licence); |
| | | }, |
| | | |
| | | handleCredentials(row) { |
| | | this.$router.push({ |
| | | path: "/attachOnce/index", |
| | | // redirect: { name: "foo" }, |
| | | // query: { row: row }, |
| | | query: { deptid: row.cardid, type: "4" }, |
| | | // 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(); |
| | | }, |
| | | (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.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 = ""; |
| | | }, |
| | | |
| | | 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; |
| | | }, |
| | | closePrint() { |
| | | this.dialogVisible = false; |
| | | }, |
| | | 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.changeuserData(); |
| | | this.loading = true; |
| | | params["ptype"] = 4; |
| | | params["jurisdiction"] = this.userInfo.jurisdiction; |
| | | params["usetype"] = this.userData; |
| | | 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 lang="scss"> |
| | | .dtype { |
| | | width: 80px; |
| | | } |
| | | |
| | | .dx { |
| | | 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; |
| | | } |
| | | .yj { |
| | | 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; |
| | | } |
| | | |
| | | .el-tag { |
| | | display: inline-block; |
| | | width: 80px; |
| | | |
| | | /*padding-right: 40px !important;*/ |
| | | } |
| | | #licence_box { |
| | | position: relative; |
| | | top: 15px; |
| | | width: 1080px; |
| | | height: 780px; |
| | | background-color: #004ca7; |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: center; |
| | | 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; |
| | | } |
| | | .licence-head { |
| | | width: 100%; |
| | | height: 1.8rem; |
| | | font-size: 1.8rem; |
| | | text-align: center; |
| | | } |
| | | .head-tid { |
| | | position: relative; |
| | | left: 70%; |
| | | } |
| | | .head-tid span { |
| | | margin: 0 1rem; |
| | | } |
| | | .licence-main { |
| | | width: 80%; |
| | | } |
| | | .l-m-once { |
| | | width: 100%; |
| | | height: 2rem; |
| | | margin-top: 1rem; |
| | | } |
| | | .l-m-o-title { |
| | | 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: 77%; |
| | | } |
| | | .licence-bottom, |
| | | .l-bottom { |
| | | position: relative; |
| | | left: 60%; |
| | | font-size: 1.5rem; |
| | | margin-top: 0.5rem; |
| | | } |
| | | .dialogVisibles { |
| | | position: fixed; |
| | | top: 0; |
| | | left: -10%; |
| | | height: 0; |
| | | width: 120%; |
| | | height: 100%; |
| | | background-color: rgba(0, 0, 0, 0.5); |
| | | z-index: 9000; |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: center; |
| | | } |
| | | .printstyle { |
| | | background-color: #fff !important; |
| | | } |
| | | .PrintBut { |
| | | margin-top: 15px; |
| | | } |
| | | |
| | | .flots { |
| | | display: flex; |
| | | justify-content: space-between; |
| | | flex-direction: column; |
| | | .f_title { |
| | | position: absolute; |
| | | top: 15px; |
| | | font-size: 18px; |
| | | } |
| | | } |
| | | .but { |
| | | margin-top: 20px; |
| | | width: 100%; |
| | | display: flex; |
| | | align-content: center; |
| | | justify-content: center; |
| | | } |
| | | </style> |
| New file |
| | |
| | | export var 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, |
| | | searchLabelWidth: 90, |
| | | width: 82, |
| | | 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: "注册时间", |
| | | // hide: true, |
| | | // prop: "establishtime", |
| | | // type: "date", |
| | | // format: "yyyy-MM-dd", |
| | | // valueFormat: "yyyy-MM-dd", |
| | | // rules: [ |
| | | // { |
| | | // required: true, |
| | | // message: "请输入注册时间", |
| | | // trigger: "blur", |
| | | // }, |
| | | // ], |
| | | // }, |
| | | // { |
| | | // label: "注册资本", |
| | | // prop: "registeredcapital", |
| | | // hide: true, |
| | | // 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: "0", |
| | | }, |
| | | ], |
| | | }, |
| | | { |
| | | 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", |
| | | }, |
| | | ], |
| | | }, |
| | | ]; |
| New file |
| | |
| | | /* |
| | | * @Author:liu |
| | | * @Date: 2021-08-26 16:59:35 |
| | | * @Last Modified by: liu |
| | | * @Last Modified time: 2021-11-04 19:36:56 |
| | | */ |
| | | |
| | | |
| | | <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 |
| | | 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)" |
| | | v-if="row.type == '0'" |
| | | >打印备案证 |
| | | </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 == '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> |
| | | </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" |
| | | width="30%" |
| | | :modal-append-to-body="false" |
| | | > |
| | | <div class="flots"> |
| | | <span class="f_title">是否通过备案审批?</span> |
| | | <span class="f_body">请输入修改意见:</span> |
| | | <textarea |
| | | name="reworkmes" |
| | | cols="40" |
| | | rows="4" |
| | | style="overflow: hidden" |
| | | v-model="textareaShenpi" |
| | | ></textarea> |
| | | <div class="but"> |
| | | <el-button type="danger" @click="subcc">不通过</el-button> |
| | | <el-button type="primary" @click="closecc">通过</el-button> |
| | | </div> |
| | | </div> |
| | | </el-dialog> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | import { |
| | | getList, |
| | | getDetail, |
| | | add, |
| | | update, |
| | | remove, |
| | | } from "@/api/licenseApproval/recordk"; |
| | | import { mapGetters } from "vuex"; |
| | | import { column } from "./column"; |
| | | export default { |
| | | data() { |
| | | return { |
| | | classStyle: "print", //打印样式 |
| | | |
| | | dialogVisiblecc: false, //许可证审核抽屉 |
| | | xukezData: {}, |
| | | |
| | | dialogVisible: false, //许可证抽屉 |
| | | licenceData: { |
| | | row: {}, |
| | | chiden: {}, |
| | | }, |
| | | textareaShenpi: "", |
| | | |
| | | 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, |
| | | border: true, |
| | | menuWidth: 300, |
| | | labelWidth: 130, |
| | | headerAlign: "center", |
| | | align: "center", |
| | | // border: false, |
| | | index: true, |
| | | viewBtn: true, |
| | | selection: true, |
| | | dialogClickModal: false, |
| | | column: column, |
| | | }, |
| | | data: [], |
| | | 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), |
| | | }; |
| | | }, |
| | | ids() { |
| | | let ids = []; |
| | | this.selectionList.forEach((ele) => { |
| | | ids.push(ele.id); |
| | | }); |
| | | return ids.join(","); |
| | | }, |
| | | }, |
| | | // mounted() { |
| | | // console.log(this.userInfo.dept_id); |
| | | // }, |
| | | methods: { |
| | | changeuserData() { |
| | | // console.log(this.userInfo, "userDatauserDatauserData"); |
| | | var gonganj = ""; |
| | | if (this.userInfo.role_name == "公安管理员") { |
| | | let test = /派出所$/g; |
| | | if (test.test(this.userInfo.list.name)) { |
| | | gonganj = "2"; |
| | | } |
| | | test = /分局|公安局$/g; |
| | | if (test.test(this.userInfo.list.name)) { |
| | | gonganj = "1"; |
| | | } |
| | | test = /市公安局$/g; |
| | | if (test.test(this.userInfo.list.name)) { |
| | | gonganj = "0"; |
| | | } |
| | | } |
| | | this.userData = gonganj; |
| | | }, |
| | | Print() { |
| | | this.$Print(this.$refs.licence); |
| | | }, |
| | | |
| | | handleCredentials(row) { |
| | | this.$router.push({ |
| | | path: "/attachOnce/index", |
| | | // redirect: { name: "foo" }, |
| | | // query: { row: row }, |
| | | query: { deptid: row.cardid, type: "5" }, |
| | | // 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(); |
| | | }, |
| | | (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.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 = ""; |
| | | }, |
| | | |
| | | viewLicense(row) { |
| | | //查看许可证 |
| | | // console.log(row, 34); |
| | | this.licenceData.row = row; |
| | | this.licenceData.chiden = {}; |
| | | this.licenceData.chiden["名称"] = row.enterprisename; |
| | | this.licenceData.chiden["地址"] = row.address; |
| | | this.licenceData.chiden["服务区域"] = row.industry; |
| | | this.licenceData.chiden["法定代表人"] = row.representative; |
| | | this.licenceData.chiden["备案时间"] = row.officetime; |
| | | this.licenceData.chiden["备案内容"] = "跨区域经营备案"; |
| | | // this.licenceData.chiden["注册资本"] = row.registeredcapital; |
| | | // this.licenceData.chiden["批准文号"] = row.registrationnumber; |
| | | |
| | | // console.log(this.licenceData); |
| | | this.dialogVisible = true; |
| | | }, |
| | | closePrint() { |
| | | this.dialogVisible = false; |
| | | }, |
| | | 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.changeuserData(); |
| | | this.loading = true; |
| | | params["ptype"] = 5; |
| | | params["jurisdiction"] = this.userInfo.jurisdiction; |
| | | params["usetype"] = this.userData; |
| | | 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 lang="scss"> |
| | | .dtype { |
| | | width: 80px; |
| | | } |
| | | |
| | | .dx { |
| | | 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; |
| | | } |
| | | .yj { |
| | | 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; |
| | | } |
| | | |
| | | .el-tag { |
| | | display: inline-block; |
| | | width: 80px; |
| | | |
| | | /*padding-right: 40px !important;*/ |
| | | } |
| | | #licence_box { |
| | | position: relative; |
| | | top: 15px; |
| | | width: 1080px; |
| | | height: 780px; |
| | | background-color: #004ca7; |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: center; |
| | | 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; |
| | | } |
| | | .licence-head { |
| | | width: 100%; |
| | | height: 1.8rem; |
| | | font-size: 1.8rem; |
| | | text-align: center; |
| | | } |
| | | .head-tid { |
| | | position: relative; |
| | | left: 70%; |
| | | } |
| | | .head-tid span { |
| | | margin: 0 1rem; |
| | | } |
| | | .licence-main { |
| | | width: 80%; |
| | | } |
| | | .l-m-once { |
| | | width: 100%; |
| | | height: 2rem; |
| | | margin-top: 1rem; |
| | | } |
| | | .l-m-o-title { |
| | | 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: 77%; |
| | | } |
| | | .licence-bottom, |
| | | .l-bottom { |
| | | position: relative; |
| | | left: 60%; |
| | | font-size: 1.5rem; |
| | | margin-top: 0.5rem; |
| | | } |
| | | .dialogVisibles { |
| | | position: fixed; |
| | | top: 0; |
| | | left: -10%; |
| | | height: 0; |
| | | width: 120%; |
| | | height: 100%; |
| | | background-color: rgba(0, 0, 0, 0.5); |
| | | z-index: 9000; |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: center; |
| | | } |
| | | .printstyle { |
| | | background-color: #fff !important; |
| | | } |
| | | .PrintBut { |
| | | margin-top: 15px; |
| | | } |
| | | |
| | | .flots { |
| | | display: flex; |
| | | justify-content: space-between; |
| | | flex-direction: column; |
| | | .f_title { |
| | | position: absolute; |
| | | top: 15px; |
| | | font-size: 18px; |
| | | } |
| | | } |
| | | .but { |
| | | margin-top: 20px; |
| | | width: 100%; |
| | | display: flex; |
| | | align-content: center; |
| | | justify-content: center; |
| | | } |
| | | </style> |
| New file |
| | |
| | | /* |
| | | * @Author: liu |
| | | * @Date: 2021-08-26 16:57:58 |
| | | * @Last Modified by: liu |
| | | * @Last Modified time: 2021-11-04 19:36:55 |
| | | */ |
| | | |
| | | |
| | | <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 |
| | | icon="el-icon-edit" |
| | | :size="size" |
| | | :type="type" |
| | | v-if="row.stateOur == '0'" |
| | | @click.stop="rowDel(row)" |
| | | >备案审批 |
| | | </el-button> |
| | | <el-button |
| | | icon="el-icon-edit" |
| | | :size="size" |
| | | :type="type" |
| | | 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' |
| | | " |
| | | >打印备案证 |
| | | </el-button> |
| | | <el-button |
| | | icon="el-icon-brush" |
| | | :size="size" |
| | | :type="type" |
| | | v-if=" |
| | | row.papprove == '1' && row.xapprove == '1' && row.sapprove == '1' |
| | | " |
| | | @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> |
| | | </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> |
| | | |
| | | <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> |
| | | 南昌市公安局已收到 |
| | | <span>{{ rowData == null ? "" : rowData.enterprisename }}</span> |
| | | 的相关备案申请! |
| | | </p> |
| | | |
| | | <div class="examine-bottom"> |
| | | <ul> |
| | | <li>审批单位:<span>南昌市公安局</span></li> |
| | | <li> |
| | | 日期:<span>{{ |
| | | rowData == null ? "" : rowData.examinetime |
| | | }}</span> |
| | | </li> |
| | | </ul> |
| | | </div> |
| | | </div> |
| | | <span slot="footer" class="dialog-footer no-print PrintBut"> |
| | | <el-button type="primary" @click="Printhuizhi">打 印</el-button> |
| | | <el-button type="primary" @click="closePrinthuizhi"> |
| | | 取 消 |
| | | </el-button> |
| | | </span> |
| | | </div> |
| | | </div> |
| | | |
| | | <el-dialog |
| | | title="" |
| | | :visible.sync="dialogVisiblecc" |
| | | width="30%" |
| | | :modal-append-to-body="false" |
| | | > |
| | | <div class="flots"> |
| | | <span class="f_title">是否通过备案审批?</span> |
| | | <span class="f_body">请输入修改意见:</span> |
| | | <textarea |
| | | name="reworkmes" |
| | | cols="40" |
| | | rows="4" |
| | | style="overflow: hidden" |
| | | v-model="textareaShenpi" |
| | | ></textarea> |
| | | <div class="but"> |
| | | <el-button type="danger" @click="subcc">不通过</el-button> |
| | | <el-button type="primary" @click="closecc">通过</el-button> |
| | | </div> |
| | | </div> |
| | | </el-dialog> |
| | | <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> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | import { |
| | | getList, |
| | | getDetail, |
| | | add, |
| | | update, |
| | | remove, |
| | | } from "@/api/licenseApproval/record"; |
| | | import { mapGetters } from "vuex"; |
| | | import { column } from "./column"; |
| | | export default { |
| | | data() { |
| | | return { |
| | | classStyle: "print", //打印样式 |
| | | |
| | | dialogVisiblecc: false, //许可证审核抽屉 |
| | | xukezData: {}, |
| | | |
| | | dialogVisiblehuizhi: false, //回执 |
| | | |
| | | dialogVisible: false, //许可证抽屉 |
| | | licenceData: { |
| | | row: {}, |
| | | chiden: {}, |
| | | }, |
| | | textareaShenpi: "", |
| | | |
| | | 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, |
| | | border: true, |
| | | menuWidth: 300, |
| | | labelWidth: 130, |
| | | headerAlign: "center", |
| | | align: "center", |
| | | // border: false, |
| | | index: true, |
| | | viewBtn: true, |
| | | selection: true, |
| | | dialogClickModal: false, |
| | | column: column, |
| | | }, |
| | | 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), |
| | | }; |
| | | }, |
| | | ids() { |
| | | let ids = []; |
| | | this.selectionList.forEach((ele) => { |
| | | ids.push(ele.id); |
| | | }); |
| | | return ids.join(","); |
| | | }, |
| | | }, |
| | | // mounted() { |
| | | // console.log(this.userInfo.dept_id); |
| | | // }, |
| | | methods: { |
| | | changeuserData() { |
| | | // console.log(this.userInfo, "userDatauserDatauserData"); |
| | | var gonganj = ""; |
| | | if (this.userInfo.role_name == "公安管理员") { |
| | | let test = /派出所$/g; |
| | | if (test.test(this.userInfo.list.name)) { |
| | | gonganj = "2"; |
| | | } |
| | | test = /分局|公安局$/g; |
| | | if (test.test(this.userInfo.list.name)) { |
| | | gonganj = "1"; |
| | | } |
| | | test = /市公安局$/g; |
| | | if (test.test(this.userInfo.list.name)) { |
| | | gonganj = "0"; |
| | | } |
| | | } |
| | | this.userData = gonganj; |
| | | }, |
| | | Printhuizhi() { |
| | | this.$Print(this.$refs.licencehuizhi); |
| | | }, |
| | | Print() { |
| | | this.$Print(this.$refs.licence); |
| | | }, |
| | | |
| | | handleCredentials(row) { |
| | | this.$router.push({ |
| | | path: "/attachOnce/index", |
| | | // redirect: { name: "foo" }, |
| | | // query: { row: row }, |
| | | query: { deptid: row.cardid, type: "3" }, |
| | | // 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(); |
| | | }, |
| | | (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.dialogVisiblecc = true; |
| | | this.xukezData = row; |
| | | }, |
| | | 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) { |
| | | this.dialogVisiblecc = false; |
| | | if (this.user_name == "派") { |
| | | // 派出所审批 |
| | | this.xukezData.papprove = state; |
| | | this.xukezData.popinion = this.textareaShenpi; |
| | | this.xukezData.type = ""; // 为了保持审核系统识别 |
| | | } else if (this.user_name == "分") { |
| | | // 分局审批 |
| | | this.xukezData.xapprove = state; |
| | | this.xukezData.xopinion = this.textareaShenpi; |
| | | this.xukezData.type = ""; // 为了保持审核系统识别 |
| | | } else if (this.user_name == "市") { |
| | | // 市局审批 |
| | | this.xukezData.sapprove = state; |
| | | this.xukezData.sopinion = this.textareaShenpi; |
| | | this.xukezData.type = type; // 为了保持审核系统识别 |
| | | } |
| | | // 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; |
| | | }, |
| | | closePrinthuizhi() { |
| | | this.dialogVisiblehuizhi = false; |
| | | }, |
| | | viewLicense(row) { |
| | | //查看许可证 |
| | | // console.log(row, 34); |
| | | this.licenceData.row = row; |
| | | this.licenceData.chiden = {}; |
| | | this.licenceData.chiden["名称"] = row.enterprisename; |
| | | this.licenceData.chiden["地址"] = row.address; |
| | | this.licenceData.chiden["服务区域"] = row.industry; |
| | | this.licenceData.chiden["法定代表人"] = row.representative; |
| | | this.licenceData.chiden["备案时间"] = row.officetime; |
| | | this.licenceData.chiden["备案内容"] = "自招保安单位备案"; |
| | | // this.licenceData.chiden["注册资本"] = row.registeredcapital; |
| | | // this.licenceData.chiden["批准文号"] = row.registrationnumber; |
| | | |
| | | // console.log(this.licenceData); |
| | | this.dialogVisible = true; |
| | | }, |
| | | closePrint() { |
| | | this.dialogVisible = false; |
| | | }, |
| | | 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); |
| | | }, |
| | | 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.changeuserData(); |
| | | this.loading = true; |
| | | params["ptype"] = 3; |
| | | params = { |
| | | ...params, |
| | | ...this.getFenji(this.userInfo.role_name), |
| | | }; |
| | | params["jurisdiction"] = this.userInfo.jurisdiction; |
| | | params["usetype"] = this.userData; |
| | | // console.log(params, "params"); |
| | | // return; |
| | | 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; |
| | | for (var k in this.data) { |
| | | // console.log(this.changeState(this.data[k])); |
| | | this.data[k] = this.changeState(this.data[k]); |
| | | } |
| | | 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 lang="scss"> |
| | | .dtype { |
| | | width: 80px; |
| | | } |
| | | |
| | | .dx { |
| | | 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; |
| | | } |
| | | .yj { |
| | | 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; |
| | | } |
| | | |
| | | .el-tag { |
| | | display: inline-block; |
| | | width: 80px; |
| | | |
| | | /*padding-right: 40px !important;*/ |
| | | } |
| | | #licence_box { |
| | | position: relative; |
| | | top: 15px; |
| | | width: 1080px; |
| | | height: 780px; |
| | | background-color: #004ca7; |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: center; |
| | | 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; |
| | | // background-image: url("../../static/img/permit/服务许可背景图.png"); |
| | | border: 1px solid rgba(#a3a3a3, 0.5); |
| | | 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; |
| | | } |
| | | .head-tid { |
| | | position: relative; |
| | | left: 70%; |
| | | } |
| | | .head-tid span { |
| | | margin: 0 1rem; |
| | | } |
| | | .licence-main { |
| | | width: 80%; |
| | | } |
| | | .l-m-once { |
| | | width: 100%; |
| | | height: 2rem; |
| | | margin-top: 1rem; |
| | | } |
| | | .l-m-o-title { |
| | | 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: 77%; |
| | | } |
| | | .licence-bottom, |
| | | .l-bottom { |
| | | position: relative; |
| | | left: 60%; |
| | | font-size: 1.5rem; |
| | | margin-top: 0.5rem; |
| | | } |
| | | .dialogVisibles { |
| | | position: fixed; |
| | | top: 0; |
| | | left: -10%; |
| | | height: 0; |
| | | width: 120%; |
| | | height: 100%; |
| | | background-color: rgba(0, 0, 0, 0.5); |
| | | z-index: 9000; |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: center; |
| | | } |
| | | .printstyle { |
| | | background-color: #fff !important; |
| | | } |
| | | .PrintBut { |
| | | margin-top: 15px; |
| | | } |
| | | |
| | | .flots { |
| | | display: flex; |
| | | justify-content: space-between; |
| | | flex-direction: column; |
| | | span { |
| | | display: inline-block; |
| | | } |
| | | .f_title { |
| | | position: absolute; |
| | | top: 15px; |
| | | font-size: 18px; |
| | | } |
| | | } |
| | | .but { |
| | | margin-top: 20px; |
| | | width: 100%; |
| | | display: flex; |
| | | align-content: center; |
| | | justify-content: center; |
| | | } |
| | | .exam-box { |
| | | width: 100%; |
| | | height: 360px; |
| | | |
| | | position: relative; |
| | | padding: 10px; |
| | | background: #fff !important; |
| | | color: #000; |
| | | |
| | | box-sizing: border-box; |
| | | } |
| | | .exam-box h3 { |
| | | margin: 0; |
| | | text-align: center; |
| | | font-size: 28px; |
| | | letter-spacing: 10px; |
| | | line-height: 46px; |
| | | } |
| | | |
| | | .exam-box p { |
| | | text-indent: 2em; |
| | | font-size: 18px; |
| | | } |
| | | |
| | | .exam-box .examine-bottom { |
| | | position: absolute; |
| | | bottom: 10px; |
| | | right: 10px; |
| | | } |
| | | |
| | | .exam-box li { |
| | | list-style: none; |
| | | font-size: 18px; |
| | | line-height: 32px; |
| | | } |
| | | |
| | | .exam-box span { |
| | | text-decoration: underline; |
| | | } |
| | | </style> |
| New file |
| | |
| | | |
| | | /* |
| | | * @Author: liu |
| | | * @Date: 2021-08-26 16:22:20 |
| | | * @Last Modified by: liu |
| | | * @Last Modified time: 2021-11-04 19:36:47 |
| | | */ |
| | | |
| | | <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 |
| | | 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)" |
| | | v-if="row.type == '0'" |
| | | >打印许可证 |
| | | </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 == '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> |
| | | </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" |
| | | width="30%" |
| | | :modal-append-to-body="false" |
| | | > |
| | | <div class="flots"> |
| | | <span class="f_title">是否通过审核?</span> |
| | | <span class="f_body">请输入修改意见:</span> |
| | | <textarea |
| | | name="reworkmes" |
| | | cols="40" |
| | | rows="4" |
| | | style="overflow: hidden" |
| | | v-model="textareaShenpi" |
| | | ></textarea> |
| | | <div class="but"> |
| | | <el-button type="danger" @click="subcc">不通过</el-button> |
| | | <el-button type="primary" @click="closecc">通过</el-button> |
| | | </div> |
| | | </div> |
| | | </el-dialog> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | import { |
| | | getList, |
| | | getDetail, |
| | | add, |
| | | update, |
| | | remove, |
| | | } from "@/api/licenseApproval/permit"; |
| | | import { mapGetters } from "vuex"; |
| | | import { column } from "./column"; |
| | | export default { |
| | | data() { |
| | | return { |
| | | classStyle: "print", //打印样式 |
| | | |
| | | dialogVisiblecc: false, //许可证审核抽屉 |
| | | xukezData: {}, |
| | | |
| | | dialogVisible: false, //许可证抽屉 |
| | | licenceData: { |
| | | row: {}, |
| | | chiden: {}, |
| | | }, |
| | | textareaShenpi: "", |
| | | |
| | | 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, |
| | | border: true, |
| | | menuWidth: 300, |
| | | labelWidth: 130, |
| | | headerAlign: "center", |
| | | align: "center", |
| | | // border: false, |
| | | index: true, |
| | | viewBtn: true, |
| | | selection: true, |
| | | dialogClickModal: false, |
| | | column: column, |
| | | }, |
| | | data: [], |
| | | 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), |
| | | }; |
| | | }, |
| | | ids() { |
| | | let ids = []; |
| | | this.selectionList.forEach((ele) => { |
| | | ids.push(ele.id); |
| | | }); |
| | | return ids.join(","); |
| | | }, |
| | | }, |
| | | // mounted() { |
| | | // console.log(this.userInfo.dept_id); |
| | | // }, |
| | | methods: { |
| | | changeuserData() { |
| | | // console.log(this.userInfo, "userDatauserDatauserData"); |
| | | var gonganj = ""; |
| | | if (this.userInfo.role_name == "公安管理员") { |
| | | let test = /派出所$/g; |
| | | if (test.test(this.userInfo.list.name)) { |
| | | gonganj = "2"; |
| | | } |
| | | test = /分局|公安局$/g; |
| | | if (test.test(this.userInfo.list.name)) { |
| | | gonganj = "1"; |
| | | } |
| | | test = /市公安局$/g; |
| | | if (test.test(this.userInfo.list.name)) { |
| | | gonganj = "0"; |
| | | } |
| | | } |
| | | this.userData = gonganj; |
| | | }, |
| | | Print() { |
| | | this.$Print(this.$refs.licence); |
| | | }, |
| | | |
| | | handleCredentials(row) { |
| | | // console.log(row, "21354"); |
| | | this.$router.push({ |
| | | path: "/attachOnce/index", |
| | | // redirect: { name: "foo" }, |
| | | // query: { row: row }, |
| | | query: { deptid: row.cardid, 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(); |
| | | }, |
| | | (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.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 = ""; |
| | | }, |
| | | |
| | | 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; |
| | | }, |
| | | closePrint() { |
| | | this.dialogVisible = false; |
| | | }, |
| | | 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.changeuserData(); |
| | | this.loading = true; |
| | | params["ptype"] = 0; |
| | | params["jurisdiction"] = this.userInfo.jurisdiction; |
| | | params["usetype"] = this.userData; |
| | | 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 lang="scss"> |
| | | .dtype { |
| | | width: 80px; |
| | | } |
| | | |
| | | .dx { |
| | | 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; |
| | | } |
| | | .yj { |
| | | 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; |
| | | } |
| | | |
| | | .el-tag { |
| | | display: inline-block; |
| | | width: 80px; |
| | | |
| | | /*padding-right: 40px !important;*/ |
| | | } |
| | | #licence_box { |
| | | position: relative; |
| | | top: 15px; |
| | | width: 1080px; |
| | | height: 780px; |
| | | background-color: #004ca7; |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: center; |
| | | 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; |
| | | } |
| | | .licence-head { |
| | | width: 100%; |
| | | height: 1.8rem; |
| | | font-size: 1.8rem; |
| | | text-align: center; |
| | | } |
| | | .head-tid { |
| | | position: relative; |
| | | left: 70%; |
| | | } |
| | | .head-tid span { |
| | | margin: 0 1rem; |
| | | } |
| | | .licence-main { |
| | | width: 80%; |
| | | } |
| | | .l-m-once { |
| | | width: 100%; |
| | | height: 2rem; |
| | | margin-top: 1rem; |
| | | } |
| | | .l-m-o-title { |
| | | 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: 77%; |
| | | } |
| | | .licence-bottom, |
| | | .l-bottom { |
| | | position: relative; |
| | | left: 60%; |
| | | font-size: 1.5rem; |
| | | margin-top: 0.5rem; |
| | | } |
| | | .dialogVisibles { |
| | | position: fixed; |
| | | top: 0; |
| | | left: -10%; |
| | | height: 0; |
| | | width: 120%; |
| | | height: 100%; |
| | | background-color: rgba(0, 0, 0, 0.5); |
| | | z-index: 9000; |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: center; |
| | | } |
| | | .printstyle { |
| | | background-color: #fff !important; |
| | | } |
| | | .PrintBut { |
| | | margin-top: 15px; |
| | | } |
| | | |
| | | .flots { |
| | | display: flex; |
| | | justify-content: space-between; |
| | | flex-direction: column; |
| | | .f_title { |
| | | position: absolute; |
| | | top: 15px; |
| | | font-size: 18px; |
| | | } |
| | | } |
| | | .but { |
| | | margin-top: 20px; |
| | | width: 100%; |
| | | display: flex; |
| | | align-content: center; |
| | | justify-content: center; |
| | | } |
| | | </style> |
| New file |
| | |
| | | /* |
| | | * @Author: liu |
| | | * @Date: 2021-08-26 16:55:25 |
| | | * @Last Modified by: liu |
| | | * @Last Modified time: 2021-11-04 19:31:36 |
| | | */ |
| | | |
| | | |
| | | <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 |
| | | 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)" |
| | | v-if="row.type == '0'" |
| | | >打印许可证 |
| | | </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 == '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> |
| | | </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" |
| | | width="30%" |
| | | :modal-append-to-body="false" |
| | | > |
| | | <div class="flots"> |
| | | <span class="f_title">是否通过审核?</span> |
| | | <span class="f_body">请输入修改意见:</span> |
| | | <textarea |
| | | name="reworkmes" |
| | | cols="40" |
| | | rows="4" |
| | | style="overflow: hidden" |
| | | v-model="textareaShenpi" |
| | | ></textarea> |
| | | <div class="but"> |
| | | <el-button type="danger" @click="subcc">不通过</el-button> |
| | | <el-button type="primary" @click="closecc">通过</el-button> |
| | | </div> |
| | | </div> |
| | | </el-dialog> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | import { |
| | | getList, |
| | | getDetail, |
| | | add, |
| | | update, |
| | | remove, |
| | | } from "@/api/licenseApproval/permit"; |
| | | import { mapGetters } from "vuex"; |
| | | import { column } from "./column"; |
| | | export default { |
| | | data() { |
| | | return { |
| | | classStyle: "print", //打印样式 |
| | | |
| | | dialogVisiblecc: false, //许可证审核抽屉 |
| | | xukezData: {}, |
| | | |
| | | dialogVisible: false, //许可证抽屉 |
| | | licenceData: { |
| | | row: {}, |
| | | chiden: {}, |
| | | }, |
| | | textareaShenpi: "", |
| | | |
| | | 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, |
| | | border: true, |
| | | menuWidth: 300, |
| | | labelWidth: 130, |
| | | headerAlign: "center", |
| | | align: "center", |
| | | // border: false, |
| | | index: true, |
| | | viewBtn: true, |
| | | selection: true, |
| | | dialogClickModal: false, |
| | | column: column, |
| | | }, |
| | | data: [], |
| | | 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), |
| | | }; |
| | | }, |
| | | ids() { |
| | | let ids = []; |
| | | this.selectionList.forEach((ele) => { |
| | | ids.push(ele.id); |
| | | }); |
| | | return ids.join(","); |
| | | }, |
| | | }, |
| | | // mounted() { |
| | | // console.log(this.userInfo.dept_id); |
| | | // }, |
| | | methods: { |
| | | changeuserData() { |
| | | // console.log(this.userInfo, "userDatauserDatauserData"); |
| | | var gonganj = ""; |
| | | if (this.userInfo.role_name == "公安管理员") { |
| | | let test = /派出所$/g; |
| | | if (test.test(this.userInfo.list.name)) { |
| | | gonganj = "2"; |
| | | } |
| | | test = /分局|公安局$/g; |
| | | if (test.test(this.userInfo.list.name)) { |
| | | gonganj = "1"; |
| | | } |
| | | test = /市公安局$/g; |
| | | if (test.test(this.userInfo.list.name)) { |
| | | gonganj = "0"; |
| | | } |
| | | } |
| | | this.userData = gonganj; |
| | | }, |
| | | Print() { |
| | | this.$Print(this.$refs.licence); |
| | | }, |
| | | |
| | | handleCredentials(row) { |
| | | this.$router.push({ |
| | | path: "/attachOnce/index", |
| | | // redirect: { name: "foo" }, |
| | | // query: { row: row }, |
| | | query: { deptid: row.cardid, type: "1" }, |
| | | // 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(); |
| | | }, |
| | | (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.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 = ""; |
| | | }, |
| | | |
| | | 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; |
| | | }, |
| | | closePrint() { |
| | | this.dialogVisible = false; |
| | | }, |
| | | 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.changeuserData(); |
| | | this.loading = true; |
| | | params["ptype"] = 1; |
| | | params["jurisdiction"] = this.userInfo.jurisdiction; |
| | | params["usetype"] = this.userData; |
| | | 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 lang="scss"> |
| | | .dtype { |
| | | width: 80px; |
| | | } |
| | | |
| | | .dx { |
| | | 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; |
| | | } |
| | | .yj { |
| | | 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; |
| | | } |
| | | |
| | | .el-tag { |
| | | display: inline-block; |
| | | width: 80px; |
| | | |
| | | /*padding-right: 40px !important;*/ |
| | | } |
| | | #licence_box { |
| | | position: relative; |
| | | top: 15px; |
| | | width: 1080px; |
| | | height: 780px; |
| | | background-color: #004ca7; |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: center; |
| | | 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; |
| | | } |
| | | .licence-head { |
| | | width: 100%; |
| | | height: 1.8rem; |
| | | font-size: 1.8rem; |
| | | text-align: center; |
| | | } |
| | | .head-tid { |
| | | position: relative; |
| | | left: 70%; |
| | | } |
| | | .head-tid span { |
| | | margin: 0 1rem; |
| | | } |
| | | .licence-main { |
| | | width: 80%; |
| | | } |
| | | .l-m-once { |
| | | width: 100%; |
| | | height: 2rem; |
| | | margin-top: 1rem; |
| | | } |
| | | .l-m-o-title { |
| | | 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: 77%; |
| | | } |
| | | .licence-bottom, |
| | | .l-bottom { |
| | | position: relative; |
| | | left: 60%; |
| | | font-size: 1.5rem; |
| | | margin-top: 0.5rem; |
| | | } |
| | | .dialogVisibles { |
| | | position: fixed; |
| | | top: 0; |
| | | left: -10%; |
| | | height: 0; |
| | | width: 120%; |
| | | height: 100%; |
| | | background-color: rgba(0, 0, 0, 0.5); |
| | | z-index: 9000; |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: center; |
| | | } |
| | | .printstyle { |
| | | background-color: #fff !important; |
| | | } |
| | | .PrintBut { |
| | | margin-top: 15px; |
| | | } |
| | | |
| | | .flots { |
| | | display: flex; |
| | | justify-content: space-between; |
| | | flex-direction: column; |
| | | .f_title { |
| | | position: absolute; |
| | | top: 15px; |
| | | font-size: 18px; |
| | | } |
| | | } |
| | | .but { |
| | | margin-top: 20px; |
| | | width: 100%; |
| | | display: flex; |
| | | align-content: center; |
| | | justify-content: center; |
| | | } |
| | | </style> |
| | |
| | | * @Author: liu |
| | | * @Date: 2021-08-26 17:00:55 |
| | | * @Last Modified by: liu |
| | | * @Last Modified time: 2021-09-22 11:27:06 |
| | | * @Last Modified time: 2021-11-05 14:10:12 |
| | | */ |
| | | |
| | | |
| | |
| | | :type="type" |
| | | class="zhengJian-icon" |
| | | @click.stop="handleCredentials(row)" |
| | | >附件审查</el-button |
| | | >附件</el-button |
| | | > |
| | | <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> --> |
| | | <el-button |
| | | icon="el-icon-edit" |
| | | :size="size" |
| | |
| | | {{ |
| | | row.type == "0" ? "通过" : row.type == "1" ? "不通过" : "待审批" |
| | | }} |
| | | <i class="gz" v-if="row.type == '0'"></i> |
| | | <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 == '2'"></i> |
| | | <!-- 红色 --> |
| | | <i class="zc" v-if="row.type == '0'"></i> |
| | | <!-- 绿色 --> |
| | | </el-tag> |
| | | </template> |
| | | </avue-crud> |
| | |
| | | * @Author: liu |
| | | * @Date: 2021-08-26 17:00:04 |
| | | * @Last Modified by: liu |
| | | * @Last Modified time: 2021-09-22 11:25:46 |
| | | * @Last Modified time: 2021-11-05 15:25:02 |
| | | */ |
| | | |
| | | |
| | |
| | | :type="type" |
| | | class="zhengJian-icon" |
| | | @click.stop="handleCredentials(row)" |
| | | >附件查阅 |
| | | >附件 |
| | | </el-button> |
| | | <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> --> |
| | | </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="gz" v-if="row.type == '2'"></i> |
| | | <!-- 黄色 --> |
| | | <i class="yj" v-if="row.type == '1'"></i> |
| | | <i class="zc" v-if="row.type == '2'"></i> |
| | | <!-- 红色 --> |
| | | <i class="zc" v-if="row.type == '0'"></i> |
| | | <!-- 绿色 --> |
| | | </el-tag> |
| | | </template> |
| | | </avue-crud> |
| | |
| | | path: "/attachOnce/index", |
| | | // redirect: { name: "foo" }, |
| | | // query: { row: row }, |
| | | query: { deptid: row.cardid, type: "6" }, |
| | | query: { deptid: row.cardid, type: "4" }, |
| | | // params: { row: row.identificationnumber }, |
| | | }); |
| | | }, |
| | |
| | | // }, |
| | | // ], |
| | | // }, |
| | | { |
| | | label: "登记机关", |
| | | prop: "registration", |
| | | overHidden: true, |
| | | rules: [ |
| | | { |
| | | required: true, |
| | | message: "请输入登记机关", |
| | | trigger: "blur", |
| | | }, |
| | | ], |
| | | }, |
| | | // { |
| | | // label: "登记机关", |
| | | // prop: "registration", |
| | | // overHidden: true, |
| | | // rules: [ |
| | | // { |
| | | // required: true, |
| | | // message: "请输入登记机关", |
| | | // trigger: "blur", |
| | | // }, |
| | | // ], |
| | | // }, |
| | | { |
| | | label: "所属行业", |
| | | hide: true, |
| | |
| | | label: "所属辖区", |
| | | prop: "jurisdiction", |
| | | type: "tree", |
| | | dicUrl: "/api/jurisdiction/lazy-trees", |
| | | dicUrl: "/api/jurisdiction/tree", |
| | | props: { |
| | | label: "title", |
| | | value: "id", |
| | |
| | | * @Author:liu |
| | | * @Date: 2021-08-26 16:59:35 |
| | | * @Last Modified by: liu |
| | | * @Last Modified time: 2021-09-23 16:44:17 |
| | | * @Last Modified time: 2021-11-04 19:36:56 |
| | | */ |
| | | |
| | | |
| | |
| | | :type="type" |
| | | class="zhengJian-icon" |
| | | @click.stop="handleCredentials(row)" |
| | | >附件查阅 |
| | | >附件 |
| | | </el-button> |
| | | <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> --> |
| | | <el-button |
| | | icon="el-icon-edit" |
| | | :size="size" |
| | |
| | | {{ |
| | | row.type == "0" ? "通过" : row.type == "1" ? "不通过" : "待审核" |
| | | }} |
| | | <i class="gz" v-if="row.type == '0'"></i> |
| | | <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 == '2'"></i> |
| | | <!-- 红色 --> |
| | | <i class="zc" v-if="row.type == '0'"></i> |
| | | <!-- 绿色 --> |
| | | </el-tag> |
| | | </template> |
| | | </avue-crud> |
| | |
| | | * @Author: liu |
| | | * @Date: 2021-08-26 16:57:58 |
| | | * @Last Modified by: liu |
| | | * @Last Modified time: 2021-09-23 08:37:38 |
| | | * @Last Modified time: 2021-11-05 14:16:49 |
| | | */ |
| | | |
| | | |
| | |
| | | :type="type" |
| | | class="zhengJian-icon" |
| | | @click.stop="handleCredentials(row)" |
| | | >附件审查</el-button |
| | | >附件</el-button |
| | | > |
| | | <el-button |
| | | <!-- <el-button |
| | | icon="el-icon-edit" |
| | | :size="size" |
| | | :type="type" |
| | | v-if="row.stateOur == '0'" |
| | | @click.stop="rowDel(row)" |
| | | >备案审批 |
| | | </el-button> |
| | | </el-button> --> |
| | | <el-button |
| | | icon="el-icon-edit" |
| | | :size="size" |
| | |
| | | ? "不通过" |
| | | : "待审核" |
| | | }} |
| | | <i class="gz" v-if="row.stateOur == '0'"></i> |
| | | <i class="yj" v-if="row.stateOur == '2'"></i> |
| | | <i class="zc" v-if="row.stateOur == '1'"></i> |
| | | <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> |
| | |
| | | searchShow: true, |
| | | searchMenuSpan: 8, |
| | | border: true, |
| | | menuWidth: 300, |
| | | menuWidth: 377, |
| | | labelWidth: 130, |
| | | headerAlign: "center", |
| | | align: "center", |
| | |
| | | } else if (this.user_name == "市") { |
| | | // 市局审批 |
| | | this.stateText = row.sopinion; |
| | | } else { |
| | | let shi = row.sopinion == "" ? "" : "市局:" + row.sopinion + "。"; |
| | | let fen = row.xopinion == "" ? "" : "分局:" + row.xopinion + "。"; |
| | | let pai = row.popinion == "" ? "" : "派出所:" + row.popinion + "。"; |
| | | this.stateText = shi + fen + pai; |
| | | } |
| | | }, |
| | | |
| | |
| | | } else if (this.user_name == "市") { |
| | | // 市局审批 |
| | | b["stateOur"] = b.sapprove == "0" ? "0" : b.sapprove == "1" ? "1" : "2"; |
| | | } else { |
| | | let shi = b.sapprove == "0" ? "0" : b.sapprove == "1" ? "1" : "2"; |
| | | let fen = b.xapprove == "0" ? "0" : b.xapprove == "1" ? "1" : "2"; |
| | | let pai = b.papprove == "0" ? "0" : b.papprove == "1" ? "1" : "2"; |
| | | // console.log(shi, fen, pai); |
| | | if (shi == "1" && fen == "1" && pai == "1") { |
| | | b["stateOur"] = 1; |
| | | } |
| | | if (shi == "2" || fen == "2" || pai == "2") { |
| | | b["stateOur"] = 2; |
| | | } |
| | | // b["stateOur"]; |
| | | } |
| | | return b; |
| | | }, |
| | |
| | | * @Author: liu |
| | | * @Date: 2021-08-26 16:22:20 |
| | | * @Last Modified by: liu |
| | | * @Last Modified time: 2021-09-22 11:26:34 |
| | | * @Last Modified time: 2021-11-05 15:01:09 |
| | | */ |
| | | |
| | | <template> |
| | |
| | | :type="type" |
| | | class="zhengJian-icon" |
| | | @click.stop="handleCredentials(row)" |
| | | >附件查阅 |
| | | >附件 |
| | | </el-button> |
| | | <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> --> |
| | | <el-button |
| | | icon="el-icon-edit" |
| | | :size="size" |
| | |
| | | {{ |
| | | row.type == "0" ? "通过" : row.type == "1" ? "不通过" : "待审核" |
| | | }} |
| | | <i class="gz" v-if="row.type == '0'"></i> |
| | | <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 == '2'"></i> |
| | | <!-- 红色 --> |
| | | <i class="zc" v-if="row.type == '0'"></i> |
| | | <!-- 绿色 --> |
| | | </el-tag> |
| | | </template> |
| | | </avue-crud> |
| | |
| | | ...mapGetters(["permission", "userInfo"]), |
| | | permissionList() { |
| | | return { |
| | | addBtn: this.vaildData(this.permission.permit_add, false), |
| | | addBtn: this.vaildData(this.permission.permit_add, true), |
| | | viewBtn: this.vaildData(this.permission.permit_view, true), |
| | | delBtn: this.vaildData(this.permission.permit_delete, false), |
| | | editBtn: this.vaildData(this.permission.permit_edit, false), |
| | |
| | | * @Author: liu |
| | | * @Date: 2021-08-26 16:55:25 |
| | | * @Last Modified by: liu |
| | | * @Last Modified time: 2021-09-22 11:26:08 |
| | | * @Last Modified time: 2021-11-05 15:01:20 |
| | | */ |
| | | |
| | | |
| | |
| | | :type="type" |
| | | class="zhengJian-icon" |
| | | @click.stop="handleCredentials(row)" |
| | | >附件查阅 |
| | | >附件 |
| | | </el-button> |
| | | <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> --> |
| | | <el-button |
| | | icon="el-icon-edit" |
| | | :size="size" |
| | |
| | | {{ |
| | | row.type == "0" ? "通过" : row.type == "1" ? "不通过" : "待审核" |
| | | }} |
| | | <i class="gz" v-if="row.type == '0'"></i> |
| | | <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 == '2'"></i> |
| | | <!-- 红色 --> |
| | | <i class="zc" v-if="row.type == '0'"></i> |
| | | <!-- 绿色 --> |
| | | </el-tag> |
| | | </template> |
| | | </avue-crud> |
| | |
| | | i = 0, |
| | | ind = null; |
| | | this.$store.state.tags.tagList.forEach((item, index) => { |
| | | if (item.label == "附件上传") { |
| | | if (item.label == "附件查阅") { |
| | | if (flag == false) { |
| | | ind = index; |
| | | flag = true; |
| | |
| | | queryYearSoil, |
| | | queryYearAn, |
| | | queryYearPz, |
| | | queryYearKh |
| | | queryYearKh, |
| | | } from "../../api/securityUnitOperation/securityUnitOperation"; |
| | | export default { |
| | | data() { |
| | |
| | | options0: [ |
| | | { |
| | | value: "2012", |
| | | label: "2012年" |
| | | label: "2012年", |
| | | }, |
| | | { |
| | | value: "2011", |
| | | label: "2011年" |
| | | label: "2011年", |
| | | }, |
| | | { |
| | | value: "2010", |
| | | label: "2010年" |
| | | label: "2010年", |
| | | }, |
| | | { |
| | | value: "2009", |
| | | label: "2009年" |
| | | label: "2009年", |
| | | }, |
| | | { |
| | | value: "2008", |
| | | label: "2008年" |
| | | label: "2008年", |
| | | }, |
| | | { |
| | | value: "2007", |
| | | label: "2007年" |
| | | } |
| | | label: "2007年", |
| | | }, |
| | | ], |
| | | options1: [], |
| | | options2: [], |
| | |
| | | paiQ: 0, |
| | | addPaiQ: 0, |
| | | sheBPerson: 0, |
| | | addSheBPerson: 0 |
| | | addSheBPerson: 0, |
| | | }, |
| | | loading1: true, |
| | | loading2: true, |
| | |
| | | props: { |
| | | children: "children", |
| | | label: "title", |
| | | value: "id" |
| | | value: "id", |
| | | }, |
| | | props2: { |
| | | children: "children", |
| | | label: "enterpriseName", |
| | | value: "departmentid" |
| | | value: "departmentid", |
| | | }, |
| | | node: {} //选中的记录 |
| | | node: {}, //选中的记录 |
| | | }; |
| | | }, |
| | | methods: { |
| | |
| | | "&enterpriseName=" + |
| | | this.enterpriseName + |
| | | "&jurisdiction1=" + |
| | | this.value1 |
| | | this.value1, |
| | | }); |
| | | }, |
| | | getFenju() { |
| | | this.options1 = []; |
| | | this.value1 = ""; |
| | | this.node = {}; |
| | | lazyTrees().then(res => { |
| | | lazyTrees().then((res) => { |
| | | if (res.data.code === 200) { |
| | | this.options1 = res.data.data; |
| | | this.value1 = this.options1[0] ? this.options1[0].id : ""; |
| | |
| | | this.loading2 = true; |
| | | let params = { |
| | | jurisdiction: this.value1, |
| | | deptid: this.value2 |
| | | deptid: this.value2, |
| | | }; |
| | | selectPCount(params).then(res => { |
| | | selectPCount(params).then((res) => { |
| | | if (res.data.code === 200) { |
| | | let middleEchart2 = echarts.init( |
| | | document.getElementById("middleEchart2") |
| | |
| | | }); |
| | | }, |
| | | getCompanys() { |
| | | getCompanys({ jurisdiction: this.value1 }).then(res => { |
| | | getCompanys({ jurisdiction: this.value1 }).then((res) => { |
| | | if (res.data.code === 200) { |
| | | this.options2 = res.data.data; |
| | | // this.value2 = this.options2[0] ? this.options2[0].departmentid : ""; |
| | |
| | | getSocialSecurity() { |
| | | let params = { |
| | | jurisdiction: this.value1, |
| | | deptid: this.value2 |
| | | deptid: this.value2, |
| | | }; |
| | | selectTo(params).then(res => { |
| | | selectTo(params).then((res) => { |
| | | if (res.data.code === 200) { |
| | | let data = res.data.data[0]; |
| | | this.socialSecurity.num = data.thismouth; |
| | | this.socialSecurity.num = data.znum; |
| | | this.socialSecurity.addNum = data.thismouth - data.lastmonth; |
| | | this.socialSecurity.money = data.thisamount; |
| | | this.socialSecurity.money = data.tamountnum; |
| | | this.socialSecurity.addMoney = data.thisamount - data.lastamount; |
| | | this.socialSecurity.paiQ = data.userpcthismouth; |
| | | this.socialSecurity.paiQ = data.userpcnum; |
| | | this.socialSecurity.addPaiQ = |
| | | data.userpcthismouth - data.userpclastmouth; |
| | | this.socialSecurity.sheBPerson = |
| | | data.userthismouth && (data.thismouth / data.userthismouth) * 100 |
| | | data.usernum && (data.znum / data.userthismouth) * 100 |
| | | ? ((data.thismouth / data.userthismouth) * 100).toFixed(2) + "%" |
| | | : 0; |
| | | this.socialSecurity.addSheBPerson = |
| | |
| | | this.loading1 = true; |
| | | let params = { |
| | | jurisdiction: this.value1, |
| | | deptid: this.value2 |
| | | deptid: this.value2, |
| | | }; |
| | | queryYearSoil(params).then(res => { |
| | | queryYearSoil(params).then((res) => { |
| | | if (res.data.code === 200) { |
| | | queryYearPz(params).then(res1 => { |
| | | queryYearPz(params).then((res1) => { |
| | | if (res1.data.code === 200) { |
| | | let middleEchart1 = echarts.init( |
| | | document.getElementById("middleEchart1") |
| | |
| | | this.loading3 = true; |
| | | let params = { |
| | | jurisdiction: this.value1, |
| | | deptid: this.value2 |
| | | deptid: this.value2, |
| | | }; |
| | | queryYearKh(params).then(res => { |
| | | queryYearKh(params).then((res) => { |
| | | if (res.data.code === 200) { |
| | | let bottomEchart = echarts.init( |
| | | document.getElementById("bottomEchart") |
| | |
| | | }); |
| | | }, |
| | | changeCompanys() { |
| | | this.options2.forEach(item => { |
| | | this.options2.forEach((item) => { |
| | | if (item.departmentid === this.value2) { |
| | | this.enterpriseName = item.enterpriseName; |
| | | } |
| | |
| | | this.getSocialSecurity(); |
| | | this.getQueryYearSoil(); |
| | | this.getQueryYearAn(); |
| | | } |
| | | }, |
| | | }, |
| | | mounted() { |
| | | this.getFenju(); |
| | | } |
| | | }, |
| | | }; |
| | | </script> |
| | | <style lang="scss" scoped> |