| | |
| | | async initData() { |
| | | try { |
| | | const userRes = await axios.get( |
| | | `${this.baseURL}/Web/GetUser?UserName=${ |
| | | `${this.$baseUrl}/Web/GetUser?UserName=${ |
| | | sessionStorage.getItem("UserName") || "001" |
| | | }&PassWord=123456&HOrgName=100038` |
| | | ); |
| | |
| | | this.queryParams.HUSEORGID = userData.HUSEORGID; |
| | | } |
| | | |
| | | const orgRes = await axios.get(`${this.baseURL}/Web/GetOrganizations`); |
| | | const orgRes = await axios.get(`${this.$baseUrl}/Web/GetOrganizations`); |
| | | if (orgRes.data.count == 1) { |
| | | this.organizationList = orgRes.data.data; |
| | | } |
| | |
| | | size: this.pageSize, |
| | | }; |
| | | |
| | | const res = await axios.get(`${this.baseURL}/Gy_DriverController/list`, { |
| | | const res = await axios.get(`${this.$baseUrl}/Gy_DriverController/list`, { |
| | | params, |
| | | }); |
| | | |
| | |
| | | async DisPlay_HideColumn() { |
| | | try { |
| | | const res = await axios.get( |
| | | `${this.baseURL}/Xt_grdAlignment_WMES/grdAlignmentWMESList`, |
| | | `${this.$baseUrl}/Xt_grdAlignment_WMES/grdAlignmentWMESList`, |
| | | { |
| | | params: { |
| | | HModName: this.HModName, |
| | |
| | | } |
| | | |
| | | try { |
| | | const res = await axios.get(`${this.baseURL}/Gy_Driver/Gy_DriverViewApi`, { |
| | | const res = await axios.get(`${this.$baseUrl}/Gy_Driver/Gy_DriverViewApi`, { |
| | | params: { |
| | | Number: this.queryParams.HSyncNumber, |
| | | Type: "JSY", // 驾驶员类型 |
| | |
| | | try { |
| | | await this.$modal.confirm("确认要删除吗,删除后不能恢复"); |
| | | |
| | | const res = await axios.get(`${this.baseURL}/DeltetGy_Driver`, { |
| | | const res = await axios.get(`${this.$baseUrl}/DeltetGy_Driver`, { |
| | | params: { |
| | | HItemID: this.rowForm.HItemID.toString(), |
| | | user: this.user, |
| | |
| | | const action = isAudit ? "反审核" : "审核"; |
| | | await this.$modal.confirm(`确认要${action}吗?`); |
| | | |
| | | const res = await axios.get(`${this.baseURL}/Gy_Driver/AuditGy_Driver`, { |
| | | const res = await axios.get(`${this.$baseUrl}/Gy_Driver/AuditGy_Driver`, { |
| | | params: { |
| | | HInterID: this.rowForm.HItemID.toString(), |
| | | IsAudit: isAudit, |
| | |
| | | const action = isStop ? "反禁用" : "禁用"; |
| | | await this.$modal.confirm(`确认要${action}吗?`); |
| | | |
| | | const res = await axios.get(`${this.baseURL}/Gy_Driver/StopGy_Driver`, { |
| | | const res = await axios.get(`${this.$baseUrl}/Gy_Driver/StopGy_Driver`, { |
| | | params: { |
| | | HInterID: this.rowForm.HItemID.toString(), |
| | | IsStop: isStop, |
| | |
| | | const sSubStr = JSON.stringify(validData); |
| | | const sMainSub = sSubStr + "&和" + this.user; |
| | | |
| | | const res = await axios.post(`${this.baseURL}/Gy_Driver/Gy_Process_Excel`, { |
| | | const res = await axios.post(`${this.$baseUrl}/Gy_Driver/Gy_Process_Excel`, { |
| | | sMainSub: sMainSub, |
| | | }); |
| | | |
| | |
| | | // 加载过滤方案 |
| | | async loadFilterSchemes() { |
| | | try { |
| | | const res = await axios.get(`${this.baseURL}/Xt_FastICScheme/list`, { |
| | | const res = await axios.get(`${this.$baseUrl}/Xt_FastICScheme/list`, { |
| | | params: { |
| | | HModuleName: this.HModuleName, |
| | | user: this.user, |
| | |
| | | try { |
| | | await this.$modal.confirm(`确认要删除方案"${row.方案名称}"吗?`); |
| | | |
| | | const res = await axios.post(`${this.baseURL}/Xt_FastICScheme/delete`, { |
| | | const res = await axios.post(`${this.$baseUrl}/Xt_FastICScheme/delete`, { |
| | | HInterID: row.hmainid, |
| | | }); |
| | | |