Merge branch 'master' of http://192.168.0.105:10010/r/zhba_enterprises
| | |
| | | column: [ |
| | | //派遣服务公司登记 |
| | | { |
| | | label: "派遣企业名称", |
| | | label: "派遣单位名称", |
| | | prop: "name", |
| | | search: true, |
| | | searchLabelWidth: 110, |
| | |
| | | rules: [ |
| | | { |
| | | required: true, |
| | | message: "请输入名称", |
| | | message: "请输入派遣单位名称", |
| | | trigger: "click", |
| | | }, |
| | | ], |
| | | }, |
| | | { |
| | | label: "保安公司", |
| | | label: "企业名称", |
| | | prop: "deptId", |
| | | type: "tree", |
| | | overHidden: true, |
| | |
| | | rules: [ |
| | | { |
| | | required: true, |
| | | message: "请选择保安公司", |
| | | message: "请选择企业名称", |
| | | trigger: "click", |
| | | }, |
| | | ], |
| | |
| | | // overHidden: true |
| | | }, |
| | | { |
| | | label: " 负责人", |
| | | label: " 派遣单位联系人", |
| | | prop: "linkman", |
| | | labelWidth: 138, |
| | | rules: [ |
| | | { |
| | | required: true, |
| | | message: "请输入派遣单位联系人", |
| | | trigger: "click", |
| | | }, |
| | | ], |
| | | }, |
| | | { |
| | | label: "派遣单位联系方式", |
| | | prop: "phone", |
| | | labelWidth: 138, |
| | | width: 130, |
| | | rules: [ |
| | | { |
| | | required: true, |
| | | message: "请输入联系方式", |
| | | trigger: "click", |
| | | }, |
| | | { |
| | | validator: phones, |
| | | trigger: ["change", "blur"], |
| | | }, |
| | | ], |
| | | }, |
| | | { |
| | | label: " 负责人", |
| | | prop: "securityLinkman", |
| | | labelWidth: 138, |
| | | rules: [ |
| | | { |
| | |
| | | }, |
| | | { |
| | | label: "负责人联系方式", |
| | | prop: "phone", |
| | | prop: "cell", |
| | | labelWidth: 138, |
| | | width: 110, |
| | | rules: [ |
| | |
| | | { |
| | | validator: phones, |
| | | trigger: ["change", "blur"], |
| | | }, |
| | | ], |
| | | }, |
| | | { |
| | | label: "派遣保安员数", |
| | | prop: "num", |
| | | type:"number", |
| | | span:24, |
| | | labelWidth: 138, |
| | | width: 110, |
| | | rules: [ |
| | | { |
| | | required: true, |
| | | message: "请输入派遣保安员数", |
| | | trigger: "click", |
| | | }, |
| | | ], |
| | | }, |
| | |
| | | for (var k in this.data) { |
| | | // this.data[k]["deptId"] = that.userInfo.dept_id; |
| | | this.data[k]["tenantName"] = that.userInfo.user_name; |
| | | console.log(this.data[k],123456); |
| | | if(this.data[k].num==-1){ |
| | | this.data[k].num = null; |
| | | } |
| | | } |
| | | window.localStorage.setItem("paqiandataS", JSON.stringify(this.data)); |
| | | this.loading = false; |
| | |
| | | //公安局进入 |
| | | if ( |
| | | this.userInfo.role_name == "公安管理员" |
| | | |
| | | ) { |
| | | var parentId = this.userInfo.dept_id; |
| | | var userId = this.userInfo.Id; |
| | |
| | | const column = this.findObject(this.option.group, "deptId"); |
| | | column.dicData = res.data.data; |
| | | }); |
| | | } else { |
| | | // getDeptLazyTree(0).then((res) => { |
| | | // const column = this.findObject(this.option.group, "deptId"); |
| | | // column.dicData = res.data.data; |
| | | // }); |
| | | } else if( this.userInfo.role_name == "administrator"){ |
| | | getDeptLazyTree(0).then((res) => { |
| | | const column = this.findObject(this.option.group, "deptId"); |
| | | column.dicData = res.data.data; |
| | | }); |
| | | }else { |
| | | getSecurityDeptTree(null,null,this.userInfo.dept_id).then((res) => { |
| | | const column = this.findObject(this.option.group, "deptId"); |
| | | column.dicData = res.data.data; |