| | |
| | | // 获取组织列表 |
| | | async getOrganizations() { |
| | | try { |
| | | const response = await axios.get(`${this.baseURL}/Web/GetOrganizations`) |
| | | const response = await axios.get(`${this.$baseUrl}/Web/GetOrganizations`) |
| | | if (response.data.count === 1) { |
| | | this.organizations = response.data.data |
| | | // 设置默认组织 |
| | |
| | | // 获取供应商树形数据 |
| | | async getSupplierTree() { |
| | | try { |
| | | const response = await axios.get(`${this.baseURL}/Gy_BadReason/Gy_SupTypeTreeListByLevel`) |
| | | const response = await axios.get(`${this.$baseUrl}/Gy_BadReason/Gy_SupTypeTreeListByLevel`) |
| | | if (response.data.count === 1) { |
| | | this.treeData = JSON.parse(response.data.data) |
| | | } |
| | |
| | | size: this.pageSize |
| | | } |
| | | console.log('请求参数:', params) |
| | | const response = await axios.get(`${this.baseURL}/Gy_Supplier/page`, { params }) |
| | | const response = await axios.get(`${this.$baseUrl}/Gy_Supplier/page`, { params }) |
| | | |
| | | if (response.data.code == 1) { |
| | | this.tableData = response.data.data || [] |