From f1ba84aea2a62bd2c4b6fd650535da0f657dc2c3 Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Sat, 14 Aug 2021 10:58:17 +0800
Subject: [PATCH] Merge branch 'master' of http://s16s652780.51mypc.cn:49896/r/zhba_regulatory
---
src/views/securityCompany/confess.vue | 297 ++++++++++++++++++++++++++++++++++++++++++++++++----------
1 files changed, 243 insertions(+), 54 deletions(-)
diff --git a/src/views/securityCompany/confess.vue b/src/views/securityCompany/confess.vue
index a2cc307..00b594b 100644
--- a/src/views/securityCompany/confess.vue
+++ b/src/views/securityCompany/confess.vue
@@ -28,7 +28,48 @@
@row-click="handleRowClick"
@on-load="onLoad"
>
+ <template slot-scope="{ type, size, row }" slot="menu">
+ <el-button
+ :size="size"
+ :type="type"
+ class="zhengJian-icon"
+ @click.stop="punish(row)"
+ >处罚</el-button
+ >
+ </template>
</avue-crud>
+ <el-dialog
+ title="处罚"
+ :visible.sync="dialogVisible"
+ width="60%"
+ :before-close="handleClose"
+ :modal-append-to-body="false"
+ center
+ >
+ <!-- <span>这是一段信息</span> -->
+ <avue-form
+ :option="optionf"
+ v-model="objf"
+ @submit="submitf"
+ @error="errorf"
+ >
+ <template slot-scope="{ type, size, row }" slot="menuForm">
+ <el-button
+ :size="size"
+ icon="el-icon-error"
+ :type="type"
+ @click="close(row)"
+ >关闭</el-button
+ >
+ </template>
+ </avue-form>
+ <!-- <span slot="footer" class="dialog-footer">
+ <el-button @click="dialogVisible = false">取 消</el-button>
+ <el-button type="primary" @click="dialogVisible = false"
+ >确 定</el-button
+ >
+ </span> -->
+ </el-dialog>
</basic-container>
</template>
@@ -40,11 +81,76 @@
update,
remove,
} from "@/api/securityCompany/confess";
+import { savePunish } from "@/api/securityCompany/security";
import { mapGetters } from "vuex";
+import { companyColimn } from "./column";
export default {
data() {
return {
+ objf: {},
+ optionf: {
+ column: [
+ {
+ label: "公司名称",
+ prop: "enterprisename",
+ span: 24,
+ labelWidth: 110,
+ rules: [
+ {
+ required: true,
+ message: "请输入身份证号码",
+ trigger: "blur",
+ },
+ ],
+ },
+ {
+ label: "处罚原因",
+ prop: "punishreason",
+ span: 24,
+ labelWidth: 110,
+ rules: [
+ {
+ required: true,
+ message: "请输入荣誉名称",
+ trigger: "blur",
+ },
+ ],
+ },
+ {
+ label: "处罚结果",
+ prop: "punishresult",
+ span: 24,
+ // type: "textarea",
+ labelWidth: 110,
+ },
+ {
+ label: "处罚日期",
+ prop: "punishtime",
+ span: 24,
+ type: "date",
+ format: "yyyy-MM-dd",
+ valueFormat: "yyyy-MM-dd",
+ // type: "textarea",
+ labelWidth: 110,
+ },
+ {
+ label: "处罚批准文号",
+ prop: "punisnum",
+ span: 24,
+ // type: "textarea",
+ labelWidth: 110,
+ },
+ // {
+ // label: "授予单位名称",
+ // prop: "sex2",
+ // span: 24,
+ // labelWidth: 110,
+ // },
+ ],
+ },
+ dialogVisible: false,
+
form: {},
query: {},
loading: true,
@@ -59,8 +165,9 @@
delBtn: false,
editBtn: false,
addBtn: false,
+ menuWidth: 100,
selection: true,
- menu: false,
+ // menu: false,
align: "center",
height: "auto",
@@ -73,59 +180,86 @@
viewBtn: true,
dialogClickModal: false,
- column: [
- {
- label: "公司名称",
- prop: "enterprisename",
- search: true,
- searchSpan: 4,
- display: false,
- },
- {
- label: "法定代表人",
- prop: "representative",
- display: false,
- width: 130,
- },
- {
- label: "成立日期",
- prop: "establishtime",
- type: "date",
- format: "yyyy-MM-dd",
- valueFormat: "yyyy-MM-dd",
- mock: {
- type: "datetime",
- format: "yyyy-MM-dd",
- },
- search: true,
- searchSpan: 4,
- display: false,
- width: 180,
- },
- {
- label: "注册资金",
- prop: "registeredcapital",
- display: false,
- width: 130,
- },
- {
- label: "实缴资金",
- prop: "capital",
- display: false,
- width: 130,
- },
- {
- label: "公司类型",
- prop: "enterprises",
- display: false,
- },
- {
- label: "注册地址",
- prop: "address",
- display: false,
- width: 280,
- },
- ],
+ column: companyColimn,
+ // [
+ // {
+ // label: "公司名称",
+ // prop: "enterprisename",
+ // search: true,
+ // searchSpan: 4,
+ // // width: 300,
+ // minWidth: 120,
+ // overHidden: true,
+ // display: false,
+ // },
+ // {
+ // label: "法定代表人",
+ // prop: "representative",
+ // display: false,
+ // width: 86,
+ // },
+ // {
+ // label: "法人电话",
+ // prop: "representativecell",
+ // display: false,
+ // width: 95,
+ // },
+ // {
+ // label: "成立日期",
+ // prop: "establishtime",
+ // type: "date",
+ // format: "yyyy-MM-dd",
+ // valueFormat: "yyyy-MM-dd",
+ // mock: {
+ // type: "datetime",
+ // format: "yyyy-MM-dd",
+ // },
+ // search: true,
+ // searchSpan: 4,
+ // display: false,
+ // width: 140,
+ // },
+ // {
+ // label: "注册资金",
+ // prop: "registeredcapital",
+ // display: false,
+ // width: 110,
+ // },
+ // {
+ // label: "实缴资金",
+ // prop: "capital",
+ // display: false,
+ // width: 110,
+ // },
+ // // {
+ // // label: "公司类型",
+ // // prop: "enterprises",
+ // // display: false,
+ // // width: 220,
+ // // overHidden: true,
+ // // },
+
+ // {
+ // label: "联系人",
+ // prop: "contacts",
+ // display: false,
+ // overHidden: true,
+ // width: 95,
+ // },
+ // {
+ // label: "联系电话",
+ // prop: "contactscell",
+ // display: false,
+ // overHidden: true,
+ // width: 95,
+ // },
+ // {
+ // label: "注册地址",
+ // prop: "address",
+ // display: false,
+ // overHidden: true,
+ // },
+ // ],
group: [
{
label: "详细信息",
@@ -175,6 +309,60 @@
},
},
methods: {
+ punish(row) {
+ //打开处罚
+ // console.log(row);
+ this.objf = {
+ deptid: row.departmentid,
+ enterprisename: row.enterprisename,
+ };
+ this.dialogVisible = true;
+ },
+ close(row) {
+ this.dialogVisible = false;
+ this.objf = {
+ enterprisename: "",
+ punishreason: "",
+ punishresult: "",
+ punishtime: "",
+ punisnum: "",
+ };
+ },
+ submitf(form, done) {
+ console.log(form);
+ var that = this;
+ savePunish(form).then((res) => {
+ this.$message({
+ type: "success",
+ message: "操作成功!",
+ });
+ that.objf = {
+ enterprisename: "",
+ punishreason: "",
+ punishresult: "",
+ punishtime: "",
+ punisnum: "",
+ };
+ });
+ // this.$message.success(JSON.stringify(form));
+ done();
+ this.dialogVisible = false;
+ this.objf = {};
+ },
+ errorf(err) {
+ this.$message.success("操作失败");
+ console.log(err);
+ },
+ handleClose(done) {
+ this.objf = {
+ enterprisename: "",
+ punishreason: "",
+ punishresult: "",
+ punishtime: "",
+ punisnum: "",
+ };
+ done();
+ },
rowSave(row, done, loading) {
add(row).then(
() => {
@@ -269,6 +457,7 @@
const data = res.data.data;
this.page.total = data.total;
this.data = data.records;
+ console.log(this.data, "自招单位");
this.loading = false;
this.selectionClear();
});
--
Gitblit v1.9.3