材料管理
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
import request from '@/utils/request';
|
||||
import request from '@/utils/request-go';
|
||||
import { AxiosPromise } from 'axios';
|
||||
import { CompanyForm, CompanyQuery, CompanyVO } from '@/api/materials/company/types';
|
||||
|
||||
@ -10,7 +10,7 @@ import { CompanyForm, CompanyQuery, CompanyVO } from '@/api/materials/company/ty
|
||||
|
||||
export const listCompany = (query?: CompanyQuery): AxiosPromise<CompanyVO[]> => {
|
||||
return request({
|
||||
url: '/materials/company/list',
|
||||
url: '/zm/api/v1/system/busCompany/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
|
@ -1,4 +1,4 @@
|
||||
import request from '@/utils/request';
|
||||
import request from '@/utils/request-go';
|
||||
import { AxiosPromise } from 'axios';
|
||||
import { MaterialsForm, MaterialsQuery, MaterialsVO } from '@/api/materials/materials/types';
|
||||
|
||||
@ -9,7 +9,7 @@ import { MaterialsForm, MaterialsQuery, MaterialsVO } from '@/api/materials/mate
|
||||
*/
|
||||
export const listMaterials = (query?: MaterialsQuery): AxiosPromise<MaterialsVO[]> => {
|
||||
return request({
|
||||
url: '/materials/materials/list',
|
||||
url: '/zm/api/v1/system/busEquipmentMaterials/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
@ -21,8 +21,11 @@ export const listMaterials = (query?: MaterialsQuery): AxiosPromise<MaterialsVO[
|
||||
*/
|
||||
export const getMaterials = (id: string | number): AxiosPromise<MaterialsVO> => {
|
||||
return request({
|
||||
url: '/materials/materials/' + id,
|
||||
method: 'get'
|
||||
url: '/zm/api/v1/system/busEquipmentMaterials/get',
|
||||
method: 'get',
|
||||
params: {
|
||||
equipmentMaterialsId: id
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
import request from '@/utils/request';
|
||||
import request from '@/utils/request-go';
|
||||
import { AxiosPromise } from 'axios';
|
||||
import { MaterialsInventoryForm, MaterialsInventoryQuery, MaterialsInventoryVO } from '@/api/materials/materialsInventory/types';
|
||||
|
||||
@ -10,7 +10,7 @@ import { MaterialsInventoryForm, MaterialsInventoryQuery, MaterialsInventoryVO }
|
||||
|
||||
export const listMaterialsInventory = (query?: MaterialsInventoryQuery): AxiosPromise<MaterialsInventoryVO[]> => {
|
||||
return request({
|
||||
url: '/materials/materialsInventory/list',
|
||||
url: '/zm/api/v1/system/busEquipmentMaterialsInventory/excellist',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
|
Reference in New Issue
Block a user