diff --git a/src/api/Inventory/MaterialReturn.js b/src/api/Inventory/MaterialReturn.js new file mode 100644 index 00000000..fbe7b148 --- /dev/null +++ b/src/api/Inventory/MaterialReturn.js @@ -0,0 +1,48 @@ +import request from '@/utils/request' +import state from '@/store' +import router from '@/router' + +// 初始化机床项目 +export function initMachineProject() { + return request({ + url: '', + method: 'post', + data: { + UserID: state.state.user.id, + ModularID: router.currentRoute.path, + type: '1', + // name: 'PDM_项目名称_查询数据' + name: '采购管理_仓库采购_出库记录_机床图号_查询' + } + }) +} +// 分组查询 +export function searchGroup(num) { + return request({ + url: '', + method: 'post', + data: { + UserID: state.state.user.id, + ModularID: router.currentRoute.path, + type: '1', + // name: 'PDM_组件名称_查询数据', + name: '采购管理_仓库采购_出库记录_组件名称_查询', + param: '机床流水号=' + num + } + }) +} +// 查询记录 +export function searchRecord(check1, project, check2, machine, check3, group, check4, name, check5, spec, check6, model, check7, time1, time2, pageCurrent, pageSize) { + return request({ + url: '', + method: 'post', + data: { + UserID: state.state.user.id, + ModularID: router.currentRoute.path, + type: '1', + name: `库存管理_出库记录_查询数据`, + param: `项目流水号_check=${check1}&项目流水号=${project}&机床流水号_check=${check2}&机床流水号=${machine}&组件流水号_check=${check3}&组件流水号=${group}&名称_check=${check4}&名称=${name}&规格_check=${check5}&规格=${spec}&图号或型号_check=${check6}&图号或型号=${model}&出库时间_check=${check7}&出库开始时间=${time1}&出库结束时间=${time2}`, + Pagination: pageCurrent + '&' + pageSize + } + }) +} diff --git a/src/api/TechnologyCenter/ImportParts.js b/src/api/TechnologyCenter/ImportParts.js index 68b28d88..eaacc48b 100644 --- a/src/api/TechnologyCenter/ImportParts.js +++ b/src/api/TechnologyCenter/ImportParts.js @@ -421,7 +421,7 @@ export function transferMX(num1, name, num2, remark, mark, num3, num4, num5, num }) } // 传递零件 -export function transferMX1(num1, name, num2, remark, mark, num3, num4, num5, num7, type, transmit, num6, num8, num9, id, oldId, oldNum, tiaojian, peopleid) { +export function transferMX1(num1, name, num2, remark, mark, num3, num4, num5, num7, type, transmit, num6, num8, num9, id, oldId, oldNum, peopleid) { return request({ url: '', method: 'post', diff --git a/src/api/WorkshopProcurement/ScrappedSupplementaryInvestment1.js b/src/api/WorkshopProcurement/ScrappedSupplementaryInvestment1.js new file mode 100644 index 00000000..d6c5906b --- /dev/null +++ b/src/api/WorkshopProcurement/ScrappedSupplementaryInvestment1.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' +import state from '@/store' +import router from '@/router' + +// 获取机床 +export function searchMachine() { + return request({ + url: '', + method: 'post', + data: { + UserID: state.state.user.id, + ModularID: router.currentRoute.path, + type: '1', + name: 'PDM_项目名称_查询数据' + } + }) +} +// 查询报废零件 +export function searchtable(check1, value1, check3, value3, check5, value5, value6, pageCurrent, pageSize) { + return request({ + url: '', + method: 'post', + data: { + UserID: state.state.user.id, + ModularID: router.currentRoute.path, + type: '1', + name: '车间生产管理工艺_传递后_零件报废补投_查询数据_新', + param: '机床流水号_check=' + check1 + '&机床流水号=' + value1 + '&零件图号_check=' + check3 + '&零件图号=' + value3 + '&时间段_check=' + check5 + '&开始时间=' + value5 + '&结束时间=' + value6 + `&PageCurrent=${pageCurrent}&PageSize=${pageSize}&PageCount=1111=int=output&ItemCount=1111=int=output` + } + }) +} +export function editA(CutCodebefore, Number, id) { + return request({ + url: '', + method: 'post', + data: { + UserID: state.state.user.id, + ModularID: router.currentRoute.path, + type: '2', + name: '车间生产管理工艺_零件工艺计划_报废零件_补投', + param: '工艺计划流水号=' + CutCodebefore + '&补投数量=' + Number + '&补投人=' + id + } + }) +} diff --git a/src/views/Inventory/MaterialReturn/index.vue b/src/views/Inventory/MaterialReturn/index.vue new file mode 100644 index 00000000..ef1cb628 --- /dev/null +++ b/src/views/Inventory/MaterialReturn/index.vue @@ -0,0 +1,228 @@ + + + + + diff --git a/src/views/Inventory/SelfMadePartsWarehouseOut/index.vue b/src/views/Inventory/SelfMadePartsWarehouseOut/index.vue index 8b1aec14..66f9383e 100644 --- a/src/views/Inventory/SelfMadePartsWarehouseOut/index.vue +++ b/src/views/Inventory/SelfMadePartsWarehouseOut/index.vue @@ -29,7 +29,7 @@ - + @@ -54,11 +54,6 @@ {{ scope.row.零件名称 }} - - -