| | |
| | | this.editGyClose(); // 组件内的方法绑定到windows |
| | | }; |
| | | this.queryParams.HOrgID = sessionStorage["OrganizationID"]; |
| | | |
| | | this.riqiChange(); |
| | | this.handleQuery(); |
| | | }, |
| | | |
| | | beforeDestroy() { |
| | | // 组件销毁时清理全局方法,避免内存泄漏 |
| | | delete window.editGyClose; |
| | | }, |
| | | created() { |
| | | this.riqiChange(); |
| | | this.handleQuery(); |
| | | }, |
| | | created() {}, |
| | | methods: { |
| | | onDateScanOptionChangerHandler(e) { |
| | | this.queryParams.timeSpan = e; |
| | |
| | | defaintOperationByCompanyName() { |
| | | var result = false; |
| | | axios |
| | | .get(this.baseURL + "/Xt_getInfo/getCompanyName") |
| | | .get(this.$baseUrl + "/Xt_getInfo/getCompanyName") |
| | | .then((res) => { |
| | | var data1 = res.data; |
| | | if (data1.count == 1) { |
| | |
| | | // 计量单位列表 |
| | | |
| | | try { |
| | | let res = await axios.get(this.baseURL + "/Gy_Unit/list1", { |
| | | let res = await axios.get(this.$baseUrl + "/Gy_Unit/list1", { |
| | | params: { |
| | | sWhere: this.sWhere, |
| | | user: sessionStorage["HUserName"], |
| | |
| | | DisPlay_HideColumn(HModName, user, option, dataOption) { |
| | | this.totalNameList = []; |
| | | axios |
| | | .get(this.baseURL + "/Xt_grdAlignment_WMES/grdAlignmentWMESList", { |
| | | .get(this.$baseUrl + "/Xt_grdAlignment_WMES/grdAlignmentWMESList", { |
| | | params: { |
| | | HModName: HModName, |
| | | user: user, |
| | |
| | | sWhere += " and 禁用标记 = '' and ISNULL(审核人,'') != ''"; |
| | | return sWhere; |
| | | } |
| | | |
| | | return sWhere; |
| | | }, |
| | | //根据用户获取用户关联组织的过滤条件 |
| | | getOrgIDByUser() { |
| | | var res = ""; |
| | | axios |
| | | .get(this.baseURL + "/Xt_User/getOrgIDListByUser", { |
| | | .get(this.$baseUrl + "/Xt_User/getOrgIDListByUser", { |
| | | params: { |
| | | HModName: this.HModName, |
| | | user: sessionStorage["HUserName"], |
| | |
| | | .confirm("确认要删除吗,删除后不能恢复") |
| | | .then(() => { |
| | | if (!this.rowForm.审核人) { |
| | | const InterID = this.rowForm.hmainid || this.rowForm.HItemID || this.rowForm.HInterID; |
| | | const InterID = |
| | | this.rowForm.hmainid || this.rowForm.HItemID || this.rowForm.HInterID; |
| | | axios |
| | | .get(this.baseURL + "DeltetGy_Unit", { |
| | | .get(this.$baseUrl + "DeltetGy_Unit", { |
| | | params: { |
| | | HItemID: InterID, |
| | | user: sessionStorage["HUserName"], |
| | |
| | | var InterID = form.HItemID || form.HInterID || form.hmainid; |
| | | //逻辑审核方法 |
| | | axios |
| | | .get(this.baseURL + "/Gy_Unit/AuditGy_Unit", { |
| | | .get(this.$baseUrl + "/Gy_Unit/AuditGy_Unit", { |
| | | params: { |
| | | HInterID: InterID, |
| | | Type: num, |
| | |
| | | this.$modal.msgError("接口请求失败!"); |
| | | }); |
| | | }, |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | // 反禁用/禁用数据 |
| | | set_De_Stop(num, form) { |
| | | var InterID = form.HItemID || form.HInterID; |
| | | //逻辑审核方法 |
| | | axios |
| | | .get(this.baseURL + "/Gy_Unit/StopGy_Unit", { |
| | | .get(this.$baseUrl + "/Gy_Unit/StopGy_Unit", { |
| | | params: { |
| | | HInterID: InterID, |
| | | IsStop: num, |
| | |
| | | return org ? org.Name : ''; // 只返回组织名称 |
| | | }, |
| | | |
| | | |
| | | // 提交上传文件 |
| | | submitFileForm() { |
| | | this.$refs.upload.submit(); |
| | |
| | | var sMainSub = sSubStr + "&和" + sessionStorage["HUserName"]; |
| | | axios({ |
| | | method: "post", |
| | | url: this.baseURL + "/Gy_Source/Gy_Source_btnSave", |
| | | url: this.$baseUrl + "/Gy_Source/Gy_Source_btnSave", |
| | | data: { |
| | | sMainSub: sMainSub, |
| | | }, |