| | |
| | | deptform: {}, //弹窗选中数据 |
| | | openData: false, //数据弹窗 |
| | | dialogTitle: "", |
| | | organizationList: [], //组织列表 |
| | | organizationList: JSON.parse(sessionStorage.getItem('organizationList')), //组织列表 |
| | | subDisabled: false, //编辑页面保存按钮是否禁用(true禁用,false可用) |
| | | // OperationType: this.$route.query.OperationType,//保存类型(新增1修改2) |
| | | HInterID: 0, |
| | |
| | | }; |
| | | }, |
| | | created() { |
| | | this.fetchData(); |
| | | this.getdata(); |
| | | this.getdata() |
| | | }, |
| | | methods: { |
| | | StockInOrgChangeHandler() { |
| | | this.editData.forEach(element => { |
| | | element.HSTOCKORGINID = this.form.HSTOCKINORGID |
| | | }); |
| | | }, |
| | | fetchData() { |
| | | axios |
| | | .get(this.baseURL + "/Web/GetOrganizations", {}) |
| | | .then((response) => { |
| | | if (response.data.count == 1) { |
| | | this.organizationList = response.data.data; //组织列表 |
| | | } |
| | | }) |
| | | .catch((error) => { |
| | | this.$modal.msgError("接口请求失败!"); |
| | | }); |
| | | }, |
| | | getdata() { |
| | | this.formShow = false; |
| | | this.formLoading = true; |