From ce0ed5ce23b9815ddc6f9654e9b0a3e3083a68b8 Mon Sep 17 00:00:00 2001 From: chenjianan Date: Sat, 16 Mar 2019 17:26:54 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E9=87=87=E8=B4=AD=E4=BB=B6=E9=87=87?= =?UTF-8?q?=E8=B4=AD=E6=9F=A5=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../PurchaseSituationSearch.js | 51 +++ .../PurchaseSituationSearch/index.vue | 307 ++++++++++++++++++ .../PurchaseTaskAllocate/index.vue | 22 +- src/views/layout/components/AppMain.vue | 2 +- src/views/layout/components/Sidebar/index.vue | 1 + 5 files changed, 362 insertions(+), 21 deletions(-) create mode 100644 src/api/PurchasingCenter/PurchaseSituationSearch.js create mode 100644 src/views/PurchasingCenter/PurchaseSituationSearch/index.vue diff --git a/src/api/PurchasingCenter/PurchaseSituationSearch.js b/src/api/PurchasingCenter/PurchaseSituationSearch.js new file mode 100644 index 00000000..35f0a1f0 --- /dev/null +++ b/src/api/PurchasingCenter/PurchaseSituationSearch.js @@ -0,0 +1,51 @@ +import request from '@/utils/request' + +// 初始化机床项目 +export function initMachineProject() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_项目名称_查询数据' + } + }) +} +// 组件查询 +export function searchgroup(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_组件名称_查询数据', + param: '机床流水号=' + num + } + }) +} +// 查询表1标准件和外购件 +export function searchTable1(...params) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_采购部采购_查询物料', + param: `机床流水号_check=${params[0]}&机床流水号=${params[1]}&组件流水号_check=${params[2]}&组件流水号=${params[3]}`, + Pagination: params[4] + '&' + params[5] + } + }) +} +// 查询表1基本件 +export function searchTable2(...params) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_采购部采购_查询物料_基本件', + param: `机床流水号_check=${params[0]}&机床流水号=${params[1]}&组件流水号_check=${params[2]}&组件流水号=${params[3]}`, + Pagination: params[4] + '&' + params[5] + } + }) +} diff --git a/src/views/PurchasingCenter/PurchaseSituationSearch/index.vue b/src/views/PurchasingCenter/PurchaseSituationSearch/index.vue new file mode 100644 index 00000000..ab132f40 --- /dev/null +++ b/src/views/PurchasingCenter/PurchaseSituationSearch/index.vue @@ -0,0 +1,307 @@ + + + + + diff --git a/src/views/PurchasingCenter/PurchaseTaskAllocate/index.vue b/src/views/PurchasingCenter/PurchaseTaskAllocate/index.vue index f4c9bae2..c464d35e 100644 --- a/src/views/PurchasingCenter/PurchaseTaskAllocate/index.vue +++ b/src/views/PurchasingCenter/PurchaseTaskAllocate/index.vue @@ -74,15 +74,7 @@ - +