From c588fc0b3ba97da28db8c32cdeff46f006120ff2 Mon Sep 17 00:00:00 2001 From: chenjianan Date: Fri, 14 Jun 2019 09:15:11 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=88=E5=90=8C=E5=A4=B4=E5=AE=9E=E6=97=B6?= =?UTF-8?q?=E4=BF=9D=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../CreatePurchaseContract.js | 22 +++++++++++++ .../CreatePurchaseContract/index.vue | 33 +++++++++++++------ 2 files changed, 45 insertions(+), 10 deletions(-) diff --git a/src/api/PurchasingCenter/CreatePurchaseContract.js b/src/api/PurchasingCenter/CreatePurchaseContract.js index 1d0ed42e..d9372430 100644 --- a/src/api/PurchasingCenter/CreatePurchaseContract.js +++ b/src/api/PurchasingCenter/CreatePurchaseContract.js @@ -72,3 +72,25 @@ export function savePrice(price, num1, num2) { } }) } +// 实时保存单价 +export function saveContractHeader(...params) { + return request({ + url: '', + method: 'post', + data: { + type: '4', + name: `update 采购管理_询价单 set 交货日期 = '${params[0]}' , 开票信息 = '${params[1]}' , 支付日期 = '${params[2]}' , 支付方式 = '${params[3]}' , 其他说明 = '${params[4]}' where 询价单流水号 = ${params[5]}` + } + }) +} +// 获取合同头 +export function searchContractHeader(...params) { + return request({ + url: '', + method: 'post', + data: { + type: '3', + name: `select * from 采购管理_询价单 where 询价单流水号 = ${params[0]}` + } + }) +} diff --git a/src/views/PurchasingCenter/CreatePurchaseContract/index.vue b/src/views/PurchasingCenter/CreatePurchaseContract/index.vue index a944360e..11e8494d 100644 --- a/src/views/PurchasingCenter/CreatePurchaseContract/index.vue +++ b/src/views/PurchasingCenter/CreatePurchaseContract/index.vue @@ -50,31 +50,31 @@ - + - + - + - + - + @@ -185,7 +185,7 @@