| | |
| | | <!-- <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" |
| | |
| | | submit, |
| | | getLicenceDetail, |
| | | licenceSubmit, |
| | | getLicenceInfos, |
| | | submitGroup |
| | | } from "@/api/securityUnit/securityUnit"; |
| | | import manager from "./manager.vue"; |
| | |
| | | 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) => { |
| | |
| | | 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=="培训公司管理员"){ |
| | |
| | | that.baseTitle = "保安单位基本信息"; |
| | | that.certificdinedVisiable = true; |
| | | that.businessVisiable = false; |
| | | that.licenceLabel = "总公司许可证信息"; |
| | | //查询分公司(及总公司)工商信息 |
| | | getBusinessInfo(deptId).then((res) => { |
| | | that.businessObj = res.data.data; |