From 4caac39b103976e7f4ba579988df585f10310b9c Mon Sep 17 00:00:00 2001 From: zhangdingyu <974548713@qq.com> Date: Mon, 1 Apr 2019 13:51:53 +0800 Subject: [PATCH] =?UTF-8?q?=E5=87=BA=E5=BA=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/Inventory/OutPartSelect.js | 39 +++++++++++++++++++++ src/views/Inventory/OutPartSelect/index.vue | 5 +-- 2 files changed, 40 insertions(+), 4 deletions(-) diff --git a/src/api/Inventory/OutPartSelect.js b/src/api/Inventory/OutPartSelect.js index e69de29b..70438de1 100644 --- a/src/api/Inventory/OutPartSelect.js +++ b/src/api/Inventory/OutPartSelect.js @@ -0,0 +1,39 @@ +import request from '@/utils/request' + +// 机床查询 +export function getMachines(check, num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_机床名称_查询数据', + param: '项目流水号_check=' + check + '=int&项目流水号=' + num + } + }) +} +// 分组查询 +export function getGroups(machineNumber) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_组件名称_查询数据', + param: '机床流水号=' + machineNumber + } + }) +} +// 主表查询 +export function getTable(num1, num2, num3, num4, num5, num6, pageCurrent, pageSize) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_库存管理_基本件库存查询', + param: '机床流水号_check=' + num1 + '&机床流水号=' + num2 + '&组件流水号_check=' + num3 + '&组件流水号=' + num4 + '&零件图号_check=' + num5 + '&零件图号=' + num6, + Pagination: pageCurrent + '&' + pageSize + } + }) +} diff --git a/src/views/Inventory/OutPartSelect/index.vue b/src/views/Inventory/OutPartSelect/index.vue index 4eefd4e4..fe742779 100644 --- a/src/views/Inventory/OutPartSelect/index.vue +++ b/src/views/Inventory/OutPartSelect/index.vue @@ -90,7 +90,7 @@