| | |
| | | // 获取组织列表 |
| | | async getOrganizationList() { |
| | | try { |
| | | const res = await axios.get(`${this.baseURL}/Web/GetOrganizations`); |
| | | const res = await axios.get(`${this.$baseUrl}/Web/GetOrganizations`); |
| | | if (res.data.count === 1) { |
| | | this.organizationList = res.data.data; |
| | | const orgId = sessionStorage.getItem("Organization"); |
| | |
| | | |
| | | async loadDriverData(linterid) { |
| | | try { |
| | | const res = await axios.get(`${this.baseURL}/Gy_Driver/cx`, { |
| | | const res = await axios.get(`${this.$baseUrl}/Gy_Driver/cx`, { |
| | | params: { HInterID: linterid }, |
| | | }); |
| | | console.log("驾驶员数据加载响应:", linterid,this.baseURL); |
| | | console.log("驾驶员数据加载响应:", linterid,this.$baseUrl); |
| | | console.log("加载驾驶员数据:", res.data.data); |
| | | if (res.data.data[0]) { |
| | | const data = res.data.data[0]; |
| | |
| | | console.log("保存数据:", saveData); |
| | | |
| | | const sMainStr = JSON.stringify(saveData); |
| | | const res = await axios.post(`${this.baseURL}/Gy_Driver/AddBill1`, { |
| | | const res = await axios.post(`${this.$baseUrl}/Gy_Driver/AddBill1`, { |
| | | oMain: `${sMainStr};${sessionStorage.getItem("HUserName")};${ |
| | | sessionStorage.getItem("OrganizationID") || 100038 |
| | | }`, |
| | |
| | | try { |
| | | await this.$modal.confirm("确认要审核吗?"); |
| | | |
| | | 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.formData.HItemID, |
| | | IsAudit: 0, |