Administrator
2021-12-28 4536b9f365a1ece2dc3795167fb21a86262215b5
分公司许可证修改
2 files modified
65 ■■■■■ changed files
src/views/securityUnitChild/data.js 2 ●●● patch | view | raw | blame | history
src/views/securityUnitChild/index.vue 63 ●●●●● patch | view | raw | blame | history
src/views/securityUnitChild/data.js
@@ -106,7 +106,7 @@
        label: "企业属性",
        prop: "stats",
        type: "tree",
        dicUrl: "/api/blade-system/dict-biz/dictionary?code=statsType",
        dicUrl: "/api/blade-system/dict-biz/dictionary?code=stats",
        props: {
            label: "dictValue",
            value: "dictKey"
src/views/securityUnitChild/index.vue
@@ -84,14 +84,14 @@
        <!-- <licence :row="objBase" v-if="overHtp"></licence> -->
        <basic-container>
          <avue-form
            v-if="businessVisiable"
            v-if="true"
            ref="lincenceForm"
            v-model="licenceObj"
            :option="licenceOption"
            @submit="licenceSubmit"
          ></avue-form>
          <avue-form
            v-if="!businessVisiable"
            v-if="false"
            ref="licenceGroupForm"
            v-model="licenceGroupObj"
            :option="licenceGroupOption"
@@ -124,7 +124,6 @@
  submit,
  getLicenceDetail,
  licenceSubmit,
  getLicenceInfos,
  submitGroup
} from "@/api/securityUnit/securityUnit";
import manager from "./manager.vue";
@@ -310,47 +309,29 @@
        this.userInfo.role_name == "培训公司管理员" ||
        this.userInfo.role_name == "分公司管理员"
      ) {
        //分公司
        var f = {
          departmentid: this.userInfo.dept_id,
          id: this.formData.id,
          businessLicense: row.businessLicense,
          establishtime: row.establishtime,
          creditcode: row.creditcode,
          registeredcapital: row.registeredcapital,
          business: row.business,
        };
        //总公司
        var z = {
          id: row.id,
          deptId: this.userInfo.dept_id,
          registerTime: row.registerTime,
          socialCreditCode: row.socialCreditCode,
          capital: row.capital,
          businessScope: row.businessScope,
          trading: row.trading,
        };
        row["deptId"] = this.userInfo.dept_id;
        row["id"] = that.licenceObj.id;
      }
      //分公司工商信息修改
      update(f).then(
      if(this.stats=="1"){
        row["type"] = 2;
      }else{
        row["type"] = 1;
      }
      if (row.id) {
        row["updateUser"] = this.userInfo.Id;
      } else {
        row["createUser"] = this.userInfo.Id;
      }
      // console.log(row);
      licenceSubmit(row).then(
        () => {
          this.$message({
            type: "success",
            message: "操作成功!",
          });
          done();
        },
        (error) => {
          window.console.log(error);
          loading();
        }
      );
      //总公司工商信息修改
      submit(z).then(
        (res) => {
          that.businessObj = row;
          that.businessObj.id = res.data.data.id;
          that.getLicenceInfo();
          done();
        },
        (error) => {
@@ -500,12 +481,7 @@
        getLicenceDetail(this.deptId).then((res) => {
          that.licenceObj = res.data.data;
        });
      } else if (this.stats == "4") {
        //分公司,获取分公司及总公司的许可证信息
        getLicenceInfos(this.deptId).then((res)=>{
          that.licenceGroupObj = res.data.data;
        })
      } else {
      } else{
        if(this.userInfo.role_name=="保安公司管理员" ||
        this.userInfo.role_name=="分公司管理员" ||
        this.userInfo.role_name=="培训公司管理员"){
@@ -741,6 +717,7 @@
        that.baseTitle = "保安单位基本信息";
        that.certificdinedVisiable = true;
        that.businessVisiable = false;
        that.licenceLabel = "总公司许可证信息";
        //查询分公司(及总公司)工商信息
        getBusinessInfo(deptId).then((res) => {
          that.businessObj = res.data.data;