From c23decc507c7c32f5677c6e80f59438286967755 Mon Sep 17 00:00:00 2001 From: chenjianan Date: Thu, 13 Dec 2018 19:39:13 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=98=E6=AC=BE=E8=AE=A1=E5=88=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../PurchaseContractRequestFund.js | 12 + src/api/PurchasingCenter/SetPayPlan.js | 74 +++++ ...urchaseBudgetSearch.svg => SetPayPlan.svg} | 0 .../PurchaseContractRequestFund/index.vue | 129 +++++++- .../PurchasingCenter/SetPayPlan/index.vue | 292 ++++++++++++++++++ 5 files changed, 505 insertions(+), 2 deletions(-) create mode 100644 src/api/PurchasingCenter/SetPayPlan.js rename src/icons/svg/{PurchaseBudgetSearch.svg => SetPayPlan.svg} (100%) create mode 100644 src/views/PurchasingCenter/SetPayPlan/index.vue diff --git a/src/api/PurchasingCenter/PurchaseContractRequestFund.js b/src/api/PurchasingCenter/PurchaseContractRequestFund.js index 350b076a..bdcc0daf 100644 --- a/src/api/PurchasingCenter/PurchaseContractRequestFund.js +++ b/src/api/PurchasingCenter/PurchaseContractRequestFund.js @@ -1,4 +1,16 @@ import request from '@/utils/request' +// 查询付款计划 +export function searchTable0(check, date1, date2) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_付款计划_查询数据', + param: `时间段_check=${check}&开始时间=${date1}&结束时间=${date2}` + } + }) +} // 初始化合同 export function initContract() { return request({ diff --git a/src/api/PurchasingCenter/SetPayPlan.js b/src/api/PurchasingCenter/SetPayPlan.js new file mode 100644 index 00000000..9b57baee --- /dev/null +++ b/src/api/PurchasingCenter/SetPayPlan.js @@ -0,0 +1,74 @@ +import request from '@/utils/request' + +// 初始化合同 +export function initContract() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_采购请款表_查询数据' + } + }) +} +// 查询表1 +export function searchTable1(...params) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_采购请款表_查询数据', + param: '采购合同流水号_check=' + params[2] + '&采购合同流水号=' + params[3] + '&供应商名称_check=' + params[4] + '&供应商名称=' + params[5], + Pagination: params[0] + '&' + params[1] + } + }) +} +// 查询表01付款计划 +export function searchTable01(...params) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_付款计划_查询数据', + param: '采购合同流水号_check=1&采购合同流水号=' + params[0] + } + }) +} +// 增加表01付款计划 +export function addTable01(...params) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '采购管理_付款计划_增加数据', + param: `采购合同流水号=${params[0]}&计划付款日期=${params[1]}&计划付款金额=${params[2]}&计划付款备注=${params[3]}` + } + }) +} +// 删除表01付款计划 +export function deleteTable01(...params) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '采购管理_付款计划_删除数据', + param: `付款计划流水号=${params[0]}` + } + }) +} +// 采购合同内容查询 +export function searchTable2(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_采购合同内容_查询数据', + param: '采购合同流水号=' + num + } + }) +} diff --git a/src/icons/svg/PurchaseBudgetSearch.svg b/src/icons/svg/SetPayPlan.svg similarity index 100% rename from src/icons/svg/PurchaseBudgetSearch.svg rename to src/icons/svg/SetPayPlan.svg diff --git a/src/views/PurchasingCenter/PurchaseContractRequestFund/index.vue b/src/views/PurchasingCenter/PurchaseContractRequestFund/index.vue index fed3cf2e..600bc1e5 100644 --- a/src/views/PurchasingCenter/PurchaseContractRequestFund/index.vue +++ b/src/views/PurchasingCenter/PurchaseContractRequestFund/index.vue @@ -1,5 +1,68 @@ +