diff --git a/src/api/materials/overallPlanMaterialSupply/index.ts b/src/api/materials/overallPlanMaterialSupply/index.ts index bf856e1..ae73e0b 100644 --- a/src/api/materials/overallPlanMaterialSupply/index.ts +++ b/src/api/materials/overallPlanMaterialSupply/index.ts @@ -31,4 +31,6 @@ export const materialChangeSupplyplan = (data: any): AxiosPromise => { method: 'put', data }); -}; \ No newline at end of file +}; + + diff --git a/src/api/materials/usageMaterials/index.ts b/src/api/materials/usageMaterials/index.ts index f2a860e..ce4132a 100644 --- a/src/api/materials/usageMaterials/index.ts +++ b/src/api/materials/usageMaterials/index.ts @@ -2,40 +2,80 @@ import request from '@/utils/request'; import { AxiosPromise } from 'axios'; // 查询物资-使用情况列表 export const useMaterialsQueryList = (params: any): AxiosPromise => { - return request({ - url: '/cailiaoshebei/physicalsupply/list', - method: 'get', - params - }); + return request({ + url: '/cailiaoshebei/physicalsupply/list', + method: 'get', + params + }); }; // 新增物资 export const newMaterialsAdd = (data: any): AxiosPromise => { - return request({ - url: '/cailiaoshebei/physicalsupply', - method: 'post', - data - }); + return request({ + url: '/cailiaoshebei/physicalsupply', + method: 'post', + data + }); }; // 修改物资 export const materialsEdit = (data: any): AxiosPromise => { - return request({ - url: '/cailiaoshebei/physicalsupply', - method: 'put', - data - }); + return request({ + url: '/cailiaoshebei/physicalsupply', + method: 'put', + data + }); }; // 删除物资 export const materialsDel = (id: any): AxiosPromise => { - return request({ - url: '/cailiaoshebei/physicalsupply/' + id, - method: 'delete', - }); + return request({ + url: '/cailiaoshebei/physicalsupply/' + id, + method: 'delete', + }); }; // 获取物资详情 export const queryMaterialsInfo = (id: any): AxiosPromise => { - return request({ - url: '/cailiaoshebei/physicalsupply/' + id, - method: 'get', - }); + return request({ + url: '/cailiaoshebei/physicalsupply/' + id, + method: 'get', + }); +}; + + +// 查询物资子数据列表 +export const materialsUsageDetails = (query: any): AxiosPromise => { + return request({ + url: '/cailiaoshebei/physicalsupplySon/list', + method: 'get', + params: query + }); +}; +// 获取物资-使用情况子数据详细信息 +export const materialsSonDetails = (id: any): AxiosPromise => { + return request({ + url: '/cailiaoshebei/physicalsupplySon/' + id, + method: 'get', + }); +}; +// 新增物资-使用情况子数据 +export const materialsSonAdd = (data: any): AxiosPromise => { + return request({ + url: '/cailiaoshebei/physicalsupplySon', + method: 'post', + data + }); +}; +//修改物资-使用情况子数据 +export const materialsSonEdit = (data: any): AxiosPromise => { + return request({ + url: '/cailiaoshebei/physicalsupplySon', + method: 'put', + data + }); +}; +// 删除物资-使用情况子数据 +export const materialsSonDel = (id: any): AxiosPromise => { + return request({ + url: '/cailiaoshebei/physicalsupplySon/' + id, + method: 'delete', + }); }; \ No newline at end of file diff --git a/src/views/materials/usageMaterials/material/index.vue b/src/views/materials/usageMaterials/material/index.vue index 8d3ed0a..9128e37 100644 --- a/src/views/materials/usageMaterials/material/index.vue +++ b/src/views/materials/usageMaterials/material/index.vue @@ -5,44 +5,9 @@
-
- - 新增 - - + 刷新
@@ -51,25 +16,14 @@
- + :row-class-name="tableRowClassName"> - + - + - + - + @@ -123,41 +58,20 @@
- 共 {{ total }} 条记录,当前显示第 {{ (currentPage - 1) * pageSize + 1 }} 至 {{ Math.min(currentPage * pageSize, total) }} 条 + 共 {{ total }} 条记录,当前显示第 {{ (currentPage - 1) * pageSize + 1 }} 至 {{ Math.min(currentPage * + pageSize, total) + }} 条
- +
- - -
- © 2023 材料/采购管理系统 - 版权所有 -
- - - + + @@ -178,11 +92,8 @@ - - - 采购 - 材料 - + + @@ -203,12 +114,8 @@ - + @@ -218,109 +125,44 @@ - - - - - - - - - - - - - - + - - - - - - - - - - - - - - - - - - - - - - - + - - - - - - +
- + + +

确定要删除这条记录吗?

此操作不可撤销,请谨慎操作