Browse Source

企业管理核心企业样式调整

zhanglb 3 years ago
parent
commit
5e90de466f

+ 374 - 295
front-vue/src/views/service/company/coreCompanyManage.vue

@@ -1,95 +1,131 @@
 <template>
-  <div class="app-container">
-      <el-card class="fiche">
-          <right-toolbar :showSearch.sync="showSearch" @queryTable="getList">收起</right-toolbar>
-          <span style="margin-bottom: 10px;color:#333333;font:14px Helvetica Neue, Helvetica, PingFang SC, Tahoma, Arial,sans-serif">所选条件:</span>
-         <div  style="float: right;margin-right:1%">
-            <el-button type="cyan"  icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
-            <el-button icon="el-icon-refresh" size="mini" @click="resetQuery"  style="float: ;">重置</el-button>
-              <column-setting :checkList="checkList" :tableList="tableList" :selfDom="selfDom" :tableId="tableId" style="margin-left:5px"></column-setting>
-         </div>
-         <hr  style="margin-top: 16px;">
-    <el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="100px">
-      <el-form-item label="企业名称" prop="scyName">
-        <el-input
-          maxlength="30"
-          v-model="queryParams.scyName"
-          placeholder="请输入企业名称"
-          clearable
-          size="small"
-          @keyup.enter.native="handleQuery"
-        />
-      </el-form-item>
-      <el-form-item label="社会统一代码" prop="scySocialCode">
-        <el-input
-          maxlength="30"
-          v-model="queryParams.scySocialCode"
-          placeholder="请输入社会统一代码"
-          clearable
-          size="small"
-          @keyup.enter.native="handleQuery"
-        />
-      </el-form-item>
-      <el-form-item label="联系人" prop="nickName">
-        <el-input
-          v-model="queryParams.nickName"
-          maxlength="30"
-          placeholder="请输入联系人"
-          clearable
-          size="small"
-          @keyup.enter.native="handleQuery"
-        />
-      </el-form-item>
-      <el-form-item label="联系电话" prop="userName">
-        <el-input
-          v-model="queryParams.userName"
-          placeholder="请输入联系电话"
-          clearable
-          maxlength="11"
-          size="small"
-          @keyup.enter.native="handleQuery"
-        />
-      </el-form-item>
-      <el-form-item label="企业状态" prop="scyStatus">
-        <el-select v-model="queryParams.scyStatus"
-            placeholder="企业状态"
+  <div class="app-container zap-main">
+    <el-row class="zap-table-search">
+      <div class="zap-padding-end">
+        <right-toolbar
+          class="zap-right-toolbar"
+          :showSearch.sync="showSearch"
+          @queryTable="getList"
+        >收起</right-toolbar>
+        <span class="zap-padding-start zap-font-title">所选条件:</span>
+        <div style="float: right;margin-right:1%">
+          <el-button type="cyan" icon="el-icon-search" @click="handleQuery">搜索</el-button>
+          <el-button icon="el-icon-refresh" @click="resetQuery" style="margin-right: 20px;">重置</el-button>
+          <column-setting
+            class="zap-column-setting"
+            :checkList="checkList"
+            :tableList="tableList"
+            :selfDom="selfDom"
+            :tableId="tableId"
+          ></column-setting>
+        </div>
+      </div>
+      <hr style="margin-top: 16px;" />
+      <el-form
+        :model="queryParams"
+        ref="queryForm"
+        :inline="true"
+        v-show="showSearch"
+        label-width="auto"
+      >
+        <el-form-item label="企业名称" prop="scyName" size="large">
+          <el-input
+            maxlength="30"
+            v-model="queryParams.scyName"
+            placeholder="请输入企业名称"
+            clearable
+            @keyup.enter.native="handleQuery"
+          />
+        </el-form-item>
+        <el-form-item label="社会统一代码" prop="scySocialCode" size="large">
+          <el-input
+            maxlength="30"
+            v-model="queryParams.scySocialCode"
+            placeholder="请输入社会统一代码"
+            clearable
+            @keyup.enter.native="handleQuery"
+          />
+        </el-form-item>
+        <el-form-item label="联系人" prop="nickName" size="large">
+          <el-input
+            v-model="queryParams.nickName"
+            maxlength="30"
+            placeholder="请输入联系人"
             clearable
-            size="small"
-            >
-                <el-option
-                  v-for="dict in scyStatusOptions"
-                  :key="dict.dictValue"
-                  :label="dict.dictLabel"
-                  :value="dict.dictValue"
-                ></el-option>
-        </el-select>
-      </el-form-item>
-    </el-form>
-    </el-card>
-    <el-row :gutter="10" class="mb8">
-      <el-col :span="1.5">
-        <el-button
-          type="primary"
-          icon="el-icon-plus"
-          size="mini"
-          @click="handleAdd"
-          v-hasPermi="['service:company:add']"
-        >新增</el-button>
-      </el-col>
+            @keyup.enter.native="handleQuery"
+          />
+        </el-form-item>
+        <el-form-item label="联系电话" prop="userName" size="large">
+          <el-input
+            v-model="queryParams.userName"
+            placeholder="请输入联系电话"
+            clearable
+            maxlength="11"
+            @keyup.enter.native="handleQuery"
+          />
+        </el-form-item>
+        <el-form-item label="企业状态" prop="scyStatus" size="large">
+          <el-select v-model="queryParams.scyStatus" placeholder="企业状态" clearable>
+            <el-option
+              v-for="dict in scyStatusOptions"
+              :key="dict.dictValue"
+              :label="dict.dictLabel"
+              :value="dict.dictValue"
+            ></el-option>
+          </el-select>
+        </el-form-item>
+      </el-form>
     </el-row>
+    <div class="zap-content zap-margin-top">
+      <el-button
+        type="primary"
+        icon="el-icon-plus"
+        @click="handleAdd"
+        v-hasPermi="['service:company:add']"
+      >新增</el-button>
+    </div>
 
-    <el-table v-loading="loading" :data="companyList" @selection-change="handleSelectionChange" stripe border>
+    <el-table
+      v-loading="loading"
+      :data="companyList"
+      @selection-change="handleSelectionChange"
+      stripe
+      class="zap-table"
+    >
       <el-table-column label="序号" type="index" width="50" align="center">
         <template slot-scope="scope">
           <span>{{(queryParams.pageNum - 1) * queryParams.pageSize + scope.$index + 1}}</span>
         </template>
       </el-table-column>
-      <el-table-column label="企业名称" align="center" prop="scyName" :show-overflow-tooltip="true" v-if="uncheckList.scyName"/>
-      <el-table-column label="社会统一代码" align="center" prop="scySocialCode" v-if="uncheckList.scySocialCode"/>
+      <el-table-column
+        label="企业名称"
+        align="center"
+        prop="scyName"
+        :show-overflow-tooltip="true"
+        v-if="uncheckList.scyName"
+      />
+      <el-table-column
+        label="社会统一代码"
+        align="center"
+        prop="scySocialCode"
+        v-if="uncheckList.scySocialCode"
+      />
       <el-table-column label="联系人" align="center" prop="nickName" v-if="uncheckList.nickName" />
-      <el-table-column label="联系电话" align="center" prop="userName" v-if="uncheckList.userName"/>
-      <el-table-column label="四要素状态" align="center" prop="scyAuthStatus" :formatter="scyAuthStatusFormat" v-if="uncheckList.scyAuthStatus"/>
-      <el-table-column label="状态" align="center" prop="scyStatus" :formatter="scyStatusFormat" v-if="uncheckList.scyStatus"/>
+      <el-table-column label="联系电话" align="center" prop="userName" v-if="uncheckList.userName" />
+      <el-table-column
+        label="四要素状态"
+        align="center"
+        prop="scyAuthStatus"
+        :formatter="scyAuthStatusFormat"
+        v-if="uncheckList.scyAuthStatus"
+      />
+      <el-table-column
+        label="状态"
+        align="center"
+        prop="scyStatus"
+        :formatter="scyStatusFormat"
+        v-if="uncheckList.scyStatus"
+      />
       <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
         <template slot-scope="scope">
           <el-button
@@ -138,7 +174,7 @@
         </template>
       </el-table-column>
     </el-table>
-    
+
     <pagination
       v-show="total>0"
       :total="total"
@@ -149,79 +185,110 @@
 
     <!-- 添加或修改公司对话框 -->
     <el-dialog :title="title" :visible.sync="open" width="800px" append-to-body>
-      <el-form ref="form" :model="form" :rules="rules" label-width="140px" :inline="true">
-        <el-form-item label="企业名称" prop="scyName">
-          <el-input v-model="form.scyName" placeholder="请输入企业名称" style="width:560px" maxlength="20" show-word-limit/>
+      <el-form ref="form" :model="form" :rules="rules" label-width="auto" :inline="true">
+        <el-form-item label="企业名称" prop="scyName" size="large">
+          <el-input v-model="form.scyName" placeholder="请输入企业名称" maxlength="20" show-word-limit />
         </el-form-item>
-        <el-form-item label="企业统一代码" prop="scySocialCode">
-          <el-input v-model="form.scySocialCode" placeholder="请输入企业统一代码" maxlength="18" show-word-limit/>
+        <el-form-item label="企业统一代码" prop="scySocialCode" size="large">
+          <el-input
+            v-model="form.scySocialCode"
+            placeholder="请输入企业统一代码"
+            maxlength="18"
+            show-word-limit
+          />
         </el-form-item>
-        <el-form-item label="联系人" prop="nickName">
-          <el-input v-model="form.nickName" placeholder="请输入联系人" maxlength="10" show-word-limit :disabled="phoneShow"/>
+        <el-form-item label="联系人" prop="nickName" size="large">
+          <el-input
+            v-model="form.nickName"
+            placeholder="请输入联系人"
+            maxlength="10"
+            show-word-limit
+            :disabled="phoneShow"
+          />
         </el-form-item>
-        <el-form-item label="联系人手机号" prop="userName">
-          <el-input v-model="form.userName" placeholder="请输入手机号" maxlength="11" show-word-limit :disabled="phoneShow"/>
-          <span v-if="addShow">*若该手机号已注册过,则联系人不以您输入的姓名作为储存</span>
+        <el-form-item label="联系人手机号" prop="userName" size="large">
+          <el-input
+            v-model="form.userName"
+            placeholder="请输入手机号"
+            maxlength="11"
+            show-word-limit
+            :disabled="phoneShow"
+          />
+        </el-form-item>
+        <el-form-item v-if="addShow">
+          <span>*若联系人手机号已注册过,则联系人不以您输入的姓名作为储存</span>
         </el-form-item>
       </el-form>
-      <div slot="footer" class="dialog-footer">
+      <el-row style="height: 109px;" type="flex" align="middle" justify="center">
+        <el-button type="primary" plain @click="cancel">取 消</el-button>
         <el-button type="primary" @click="submitForm">确 定</el-button>
-        <el-button @click="cancel">取 消</el-button>
-      </div>
+      </el-row>
     </el-dialog>
 
     <!-- 详情公司对话框 -->
-    <el-dialog :title="title" :visible.sync="openDetail" width="800px" append-to-body >
+    <el-dialog :title="title" :visible.sync="openDetail" width="800px" append-to-body>
       <el-form ref="form" :model="form" :rules="rules" label-width="140px" :inline="true">
-        <el-form-item label="企业名称" prop="scyName" >
-          <el-input v-model="form.scyName" disabled style="width:560px" maxlength="20" show-word-limit/>
+        <el-form-item label="企业名称" prop="scyName">
+          <el-input
+            v-model="form.scyName"
+            disabled
+            style="width:560px"
+            maxlength="20"
+            show-word-limit
+          />
         </el-form-item>
         <el-form-item label="企业统一代码" prop="scySocialCode">
-          <el-input v-model="form.scySocialCode" disabled maxlength="18" show-word-limit/>
+          <el-input v-model="form.scySocialCode" disabled maxlength="18" show-word-limit />
         </el-form-item>
         <el-form-item label="联系人" prop="nickName">
-          <el-input v-model="form.nickName" disabled maxlength="5" show-word-limit/>
+          <el-input v-model="form.nickName" disabled maxlength="5" show-word-limit />
         </el-form-item>
         <el-form-item label="联系人手机号" prop="userName">
-          <el-input v-model="form.userName" disabled maxlength="11" show-word-limit/>
+          <el-input v-model="form.userName" disabled maxlength="11" show-word-limit />
         </el-form-item>
       </el-form>
       <div slot="footer" class="dialog-footer">
         <el-button @click="cancel">取 消</el-button>
       </div>
     </el-dialog>
-
   </div>
 </template>
 
 <script>
-import { listCompany, companyQuery, addCompany, updateCompany, 
-updateCompanyStatus, getElementStatus, removeCompany, selectNormalUser } 
-from "@/api/service/company/company";
+import {
+  listCompany,
+  companyQuery,
+  addCompany,
+  updateCompany,
+  updateCompanyStatus,
+  getElementStatus,
+  removeCompany,
+  selectNormalUser
+} from "@/api/service/company/company";
 import { uploadFileNew } from "@/api/common/file";
-import { getToken } from "@/utils/auth";
-import {columnQuery,columnfilter} from "@/api/common/columnSetting";
-import ColumnSetting from '../../../components/Table/columnSetting.vue';
-import Cookies from 'js-cookie'
+import { getToken } from "@/utils/auth";
+import { columnQuery, columnfilter } from "@/api/common/columnSetting";
+import ColumnSetting from "../../../components/Table/columnSetting.vue";
+import Cookies from "js-cookie";
 export default {
   name: "coreCompanyManage",
   components: {
-     ColumnSetting 
-   },
+    ColumnSetting
+  },
   data() {
     return {
       //四要素审核相关
-      examTitle:'',
-      examOpen:false,
-      phoneShow:false,
-      addShow:false,
-      examForm:{
-        scyId:null,
-        state:null
+      examTitle: "",
+      examOpen: false,
+      phoneShow: false,
+      addShow: false,
+      examForm: {
+        scyId: null,
+        state: null
       },
-      examRules:{
+      examRules: {
         state: [
-          { required: true, message: "审核状态不能为空", trigger: "blur" },
+          { required: true, message: "审核状态不能为空", trigger: "blur" }
         ]
       },
       // 遮罩层
@@ -238,102 +305,102 @@ export default {
       total: 0,
       // 公司表格数据
       companyList: [],
-      scyAuthStatusOptions:[],
-      scyStatusOptions:[],
+      scyAuthStatusOptions: [],
+      scyStatusOptions: [],
       // 弹出层标题
       title: "",
       // 是否显示弹出层
       open: false,
-      openDetail : false,
+      openDetail: false,
       // 查询参数
       queryParams: {
         pageNum: 1,
         pageSize: 10,
         scyName: null,
         scySocialCode: null,
-        nickName : null,
-        userName : null,
-        scyStatus : null,
-        scyType : '01'//核心企业
+        nickName: null,
+        userName: null,
+        scyStatus: null,
+        scyType: "01" //核心企业
       },
       //筛选按钮的数据列表,与table表头的数据一致 --显示隐藏列用
       tableList: [
-            {
-              label: 'scyId',
-              value: '企业编号'
-            },
-            {
-              label: 'scyName',
-              value: '企业名称'
-            },
-            {
-              label: 'scySocialCode',
-              value: '社会统一代码'
-            },
-            {
-              label: 'nickName',
-              value: '联系人'
-            },
-            {
-              label: 'userName',
-              value: '联系电话'
-            },
-            {
-              label: 'scyAuthStatus',
-              value: '四要素状态'
-            },
-            {
-              label: 'scyStatus',
-              value: '状态'
-            },
-            ],
-      checkList: [],//筛选列选中的数据列表--显示隐藏列用
-      uncheckList: {},//控制筛选列显示隐藏--显示隐藏列用
-      selfDom : this,
-      tableId:"/sc-service/company/list",
+        {
+          label: "scyId",
+          value: "企业编号"
+        },
+        {
+          label: "scyName",
+          value: "企业名称"
+        },
+        {
+          label: "scySocialCode",
+          value: "社会统一代码"
+        },
+        {
+          label: "nickName",
+          value: "联系人"
+        },
+        {
+          label: "userName",
+          value: "联系电话"
+        },
+        {
+          label: "scyAuthStatus",
+          value: "四要素状态"
+        },
+        {
+          label: "scyStatus",
+          value: "状态"
+        }
+      ],
+      checkList: [], //筛选列选中的数据列表--显示隐藏列用
+      uncheckList: {}, //控制筛选列显示隐藏--显示隐藏列用
+      selfDom: this,
+      tableId: "/sc-service/company/list",
       // 表单参数
       form: {},
       // 表单校验
       rules: {
         scyName: [
-          { required: true, message: "企业名称不能为空", trigger: "blur"},
+          { required: true, message: "企业名称不能为空", trigger: "blur" },
           {
             pattern: /^[0-9A-Z\u4E00-\u9FFF《》()()-]+$/,
             message: "企业名称不能含有特殊字符",
-            trigger: ["blur", "change"]
+            trigger: ["blur", "change"]
           }
         ],
         nickName: [
-          { required: true, message: "联系人不能为空", trigger: "blur"},
+          { required: true, message: "联系人不能为空", trigger: "blur" },
           {
             pattern: /^[A-Za-z\u4e00-\u9fa5]+$/,
             message: "联系人不能含有特殊字符",
-            trigger: ["blur", "change"]
+            trigger: ["blur", "change"]
           }
         ],
         userName: [
-          { required: true, message: "联系人手机号不能为空", trigger: "blur"},
+          { required: true, message: "联系人手机号不能为空", trigger: "blur" },
           {
             pattern: /^((\d{3}-\d{7,8}|\d{4}-\d{7,8})|(1[3465789]\d{9}))$/,
             message: "手机号格式不正确",
-            trigger: ["blur", "change"]
+            trigger: ["blur", "change"]
           }
         ],
         scySocialCode: [
-          { required: true, message: "企业统一代码不能为空", trigger: "blur"},
+          { required: true, message: "企业统一代码不能为空", trigger: "blur" },
           {
             pattern: /^([0-9A-HJ-NPQRTUWXY]{2}\d{6}[0-9A-HJ-NPQRTUWXY]{10}|[1-9]\d{14})$/,
             message: "企业统一代码格式不正确",
-            trigger: ["blur", "change"]
+            trigger: ["blur", "change"]
           }
-        ],
-      },
+        ]
+      }
     };
   },
-  watch:{
+  watch: {
     // 'form.userName':'getLoginName'
   },
-  activated(){
+  activated() {
     this.getList();
     this.getDicts("ser_scy_status").then(response => {
       this.scyStatusOptions = response.data;
@@ -346,34 +413,34 @@ export default {
     this.columnQuery();
   },
   methods: {
-    getLoginName(item){
+    getLoginName(item) {
       const userName = item;
-      selectNormalUser(userName).then((response) => {
-        console.log(response,"根据手机号获取用户姓名")
-        if(response.data.length > 0){
+      selectNormalUser(userName).then(response => {
+        console.log(response, "根据手机号获取用户姓名");
+        if (response.data.length > 0) {
           this.$set(this.form, "nickName", response.data[0].nickName);
           this.isName = true;
-        }else{
-          this.$set(this.form, "nickName", '');
+        } else {
+          this.$set(this.form, "nickName", "");
           this.isName = false;
         }
       });
     },
     //获取当前客户是否之前设置过列展示隐藏
-    columnQuery(){
-        //获取页面路径
-        var psfPagePath = window.location.pathname;
-        //用请求后台的url作为唯一标识
-        var psfTableName = this.tableId;
-        var columnForm = {};
-        columnForm.psfPagePath = psfPagePath;
-        columnForm.psfTableName = psfTableName;
-        columnQuery(columnForm).then(response => {
-         if(response.data && response.data.psfShowData){
-                this.checkList = response.data.psfShowData;
-         }
-         this.filter();
-      })
+    columnQuery() {
+      //获取页面路径
+      var psfPagePath = window.location.pathname;
+      //用请求后台的url作为唯一标识
+      var psfTableName = this.tableId;
+      var columnForm = {};
+      columnForm.psfPagePath = psfPagePath;
+      columnForm.psfTableName = psfTableName;
+      columnQuery(columnForm).then(response => {
+        if (response.data && response.data.psfShowData) {
+          this.checkList = response.data.psfShowData;
+        }
+        this.filter();
+      });
     },
     //控制隐藏显示的函数
     filter(checkList) {
@@ -385,27 +452,25 @@ export default {
     /** 查询公司列表 */
     getList() {
       this.loading = true;
-       listCompany(this.queryParams).then(response => {
-          this.companyList = response.data.records;
-          this.total = response.data.total;
-          this.loading = false;
-        }
-      );
+      listCompany(this.queryParams).then(response => {
+        this.companyList = response.data.records;
+        this.total = response.data.total;
+        this.loading = false;
+      });
     },
 
     // 取消按钮
     cancel() {
       this.open = false;
-      this.openDetail = false,
-      this.reset();
+      (this.openDetail = false), this.reset();
     },
     // 表单重置
     reset() {
       this.form = {
         scyName: null,
         scySocialCode: null,
-        scyLegal : null,
-        scyPhone : null
+        scyLegal: null,
+        scyPhone: null
       };
       this.resetForm("form");
     },
@@ -421,16 +486,15 @@ export default {
     },
     // 多选框选中数据
     handleSelectionChange(selection) {
-      this.ids = selection.map(item => item.scyId)
-      this.single = selection.length!==1
-      this.multiple = !selection.length
+      this.ids = selection.map(item => item.scyId);
+      this.single = selection.length !== 1;
+      this.multiple = !selection.length;
     },
     /** 新增按钮操作 */
     handleAdd() {
       this.reset();
       this.open = true;
-      this.phoneShow = false,
-      this.addShow = true;
+      (this.phoneShow = false), (this.addShow = true);
       this.title = "新增企业信息";
     },
     /** 修改按钮操作 */
@@ -438,7 +502,7 @@ export default {
       this.reset();
       this.phoneShow = true;
       this.addShow = false;
-      let scyId = row.scyId || this.ids
+      let scyId = row.scyId || this.ids;
       companyQuery(scyId).then(response => {
         this.form = response.data[0];
         this.open = true;
@@ -453,118 +517,129 @@ export default {
       let scyId = row.scyId || this.ids;
       let scyAuthStatus = row.scyAuthStatus || this.ids;
       let scyStatus = row.scyStatus || this.ids;
-      if(scyStatus == '00'){
-      Cookies.set("/company/detailComPany/" + scyId + '/', this.$route.fullPath)
-      this.$router.push("/company/detailComPany/" + scyId + '/');
-      }else
-      if(scyAuthStatus == '00' || scyStatus == '01'){
-      companyQuery(scyId).then(response => {
-        this.form = response.data[0];
-        this.openDetail = true;
-        this.title = "详情企业信息";
-      });
+      if (scyStatus == "00") {
+        Cookies.set(
+          "/company/detailComPany/" + scyId + "/",
+          this.$route.fullPath
+        );
+        this.$router.push("/company/detailComPany/" + scyId + "/");
+      } else if (scyAuthStatus == "00" || scyStatus == "01") {
+        companyQuery(scyId).then(response => {
+          this.form = response.data[0];
+          this.openDetail = true;
+          this.title = "详情企业信息";
+        });
       }
     },
 
     /** 提交按钮 */
     submitForm() {
-        var self = this;
-        this.$refs["form"].validate(valid => {
-          let fd = new FormData();
-          for(var key in self.form){
-            fd.append(key, self.form[key]);
-          }
-          if (valid) {
-            if (this.form.scyId != null) {
-              const loading = this.$loading({
-                lock: true,
-                text: "Loading",
-                spinner: "el-icon-loading",
-                background: "rgba(0, 0, 0, 0.7)",
-              })
-              updateCompany(self.form).then(response => {
+      var self = this;
+      this.$refs["form"].validate(valid => {
+        let fd = new FormData();
+        for (var key in self.form) {
+          fd.append(key, self.form[key]);
+        }
+        if (valid) {
+          if (this.form.scyId != null) {
+            const loading = this.$loading({
+              lock: true,
+              text: "Loading",
+              spinner: "el-icon-loading",
+              background: "rgba(0, 0, 0, 0.7)"
+            });
+            updateCompany(self.form)
+              .then(response => {
                 this.msgSuccess("修改成功");
                 loading.close();
                 this.open = false;
                 this.getList();
-              }).catch((response) => {
-                  loading.close();
-              });
-            } else {
-              const loading = this.$loading({
-                lock: true,
-                text: "Loading",
-                spinner: "el-icon-loading",
-                background: "rgba(0, 0, 0, 0.7)",
               })
-              addCompany(self.form).then(response => {
+              .catch(response => {
+                loading.close();
+              });
+          } else {
+            const loading = this.$loading({
+              lock: true,
+              text: "Loading",
+              spinner: "el-icon-loading",
+              background: "rgba(0, 0, 0, 0.7)"
+            });
+            addCompany(self.form)
+              .then(response => {
                 this.msgSuccess("新增成功");
                 loading.close();
                 this.open = false;
                 this.getList();
-              }).catch((response) => {
-                  loading.close();
+              })
+              .catch(response => {
+                loading.close();
               });
-            }
           }
-        });
+        }
+      });
     },
 
     /* 冻结 */
     handleCompanyFrozen(row) {
       const scyId = row.scyId || this.ids;
       const scyName = row.scyName;
-      const state = '01';
+      const state = "01";
       this.$confirm('是否确认冻结公司名称为"' + scyName + '"的数据?', "警告", {
-          confirmButtonText: "确定",
-          cancelButtonText: "取消",
-          type: "warning"
-        }).then(function() {
-          return updateCompanyStatus(scyId,state);
-        }).then(() => {
+        confirmButtonText: "确定",
+        cancelButtonText: "取消",
+        type: "warning"
+      })
+        .then(function() {
+          return updateCompanyStatus(scyId, state);
+        })
+        .then(() => {
           this.getList();
           this.msgSuccess("冻结成功");
         })
-        .catch((c) => {
-          if(c == "cancel"){
-          this.$message({
-            type: "warning",
-            message: "已取消冻结",
-           
-          });
+        .catch(c => {
+          if (c == "cancel") {
+            this.$message({
+              type: "warning",
+              message: "已取消冻结"
+            });
           }
-        }); 
+        });
     },
 
     /* 解冻 */
     handleCompanyStatus(row) {
       const scyId = row.scyId || this.ids;
       const scyName = row.scyName;
-      const state = '00';
+      const state = "00";
       this.$confirm('是否确认解冻公司名称为"' + scyName + '"的数据?', "警告", {
-          confirmButtonText: "确定",
-          cancelButtonText: "取消",
-          type: "warning"
-        }).then(function() {
-          return updateCompanyStatus(scyId,state);
-        }).then(() => {
+        confirmButtonText: "确定",
+        cancelButtonText: "取消",
+        type: "warning"
+      })
+        .then(function() {
+          return updateCompanyStatus(scyId, state);
+        })
+        .then(() => {
           this.getList();
           this.msgSuccess("解冻成功");
         })
         .catch(() => {
           this.$message({
             type: "warning",
-            message: "已取消解冻",
-           
+            message: "已取消解冻"
           });
-        }); 
+        });
     },
 
     //四要素审核
-    handleExamine(row){
+    handleExamine(row) {
       const scyId = row.scyId || this.ids;
-      Cookies.set("/company/detailComPanyExam/" + scyId + '/', this.$route.fullPath)
-      this.$router.push("/company/detailComPanyExam/" + scyId + '/');
+      Cookies.set(
+        "/company/detailComPanyExam/" + scyId + "/",
+        this.$route.fullPath
+      );
+      this.$router.push("/company/detailComPanyExam/" + scyId + "/");
     },
 
     /** 删除按钮操作 */
@@ -572,37 +647,41 @@ export default {
       const scyId = row.scyId || this.ids;
       const scyName = row.scyName;
       this.$confirm('是否确认删除企业名称为"' + scyName + '"的数据?', "警告", {
-          confirmButtonText: "确定",
-          cancelButtonText: "取消",
-          type: "warning"
-        }).then(function() {
+        confirmButtonText: "确定",
+        cancelButtonText: "取消",
+        type: "warning"
+      })
+        .then(function() {
           return removeCompany(scyId);
-        }).then(() => {
+        })
+        .then(() => {
           this.getList();
           this.msgSuccess("删除成功");
         })
-        .catch((c) => {
-          if(c == "cancel"){
-          this.$message({
-            type: "warning",
-            message: "已取消删除",
-           
-          });
+        .catch(c => {
+          if (c == "cancel") {
+            this.$message({
+              type: "warning",
+              message: "已取消删除"
+            });
           }
-        }); 
+        });
     },
 
     scyStatusFormat(row, column) {
-      if(row.scyStatus == '02' || row.scyStatus == '03' || row.scyStatus == '04'){
-      return this.selectDictLabel(this.scyStatusOptions, "02");
-      }else {
+      if (
+        row.scyStatus == "02" ||
+        row.scyStatus == "03" ||
+        row.scyStatus == "04"
+      ) {
+        return this.selectDictLabel(this.scyStatusOptions, "02");
+      } else {
         return this.selectDictLabel(this.scyStatusOptions, row.scyStatus);
       }
     },
     scyAuthStatusFormat(row, column) {
-        return this.selectDictLabel(this.scyAuthStatusOptions, row.scyAuthStatus);
-    },
-
+      return this.selectDictLabel(this.scyAuthStatusOptions, row.scyAuthStatus);
+    }
   }
 };
 </script>

File diff suppressed because it is too large
+ 906 - 714
front-vue/src/views/service/company/detailCompany.vue