From 106d6658e4254f5c329e8963d99d4ca941e368a5 Mon Sep 17 00:00:00 2001 From: zhangdingyu <974548713@qq.com> Date: Tue, 15 Oct 2019 09:33:03 +0800 Subject: [PATCH 01/12] a --- .../CreatePurchaseContract.js | 24 +- src/utils/request.js | 2 +- .../CreatePurchaseContract/index.vue | 329 ++++++++++-------- 3 files changed, 203 insertions(+), 152 deletions(-) diff --git a/src/api/PurchasingCenter/CreatePurchaseContract.js b/src/api/PurchasingCenter/CreatePurchaseContract.js index 67c36d98..36493fd5 100644 --- a/src/api/PurchasingCenter/CreatePurchaseContract.js +++ b/src/api/PurchasingCenter/CreatePurchaseContract.js @@ -11,18 +11,18 @@ export function initSupplier() { } }) } -// export function initSupplier(num) { -// return request({ -// url: '', -// method: 'post', -// data: { -// type: '3', -// name: `SELECT distinct 供应商流水号,供应商名称 -// FROM 采购管理_询价单_视图 -// where not EXISTS (select * from 采购管理_采购合同_采购部 where 是否启用 = 1 and 是否未通过 is null and 询价单编号 = 采购合同编号) and 采购员流水号 = ${num}` -// } -// }) -// } +export function initSupplier11(num) { + return request({ + url: '', + method: 'post', + data: { + type: '3', + name: ` SELECT distinct 供应商流水号,供应商名称 + FROM 采购管理_询价单_视图 + where not EXISTS (select * from 采购管理_采购合同_采购部 where 是否启用 = 1 and 是否未通过 is null and 询价单编号 = 采购合同编号) and 采购员流水号 = ${num}` + } + }) +} // 查询询价单列表 表1 export function searchInquirySheet(check1, value1, check2, value2, check3, id, check4, supplier) { return request({ diff --git a/src/utils/request.js b/src/utils/request.js index 7af4f8a5..d932cfc1 100644 --- a/src/utils/request.js +++ b/src/utils/request.js @@ -25,7 +25,7 @@ export const downloadFileMachine = `http://192.168.1.231:8411/submit/downloadFil export const MESUploadFile = `http://192.168.1.231:8411/submit/MESUploadFile.ashx` export const MESDownloadFile = `http://192.168.1.231:8411/submit/MESDownloadFile.ashx` const service = axios.create({ - baseURL: `http://192.168.0.110:8005/submit/MESCommonBase.ashx`, + baseURL: `http://192.168.0.110:8002/submit/MESCommonBase.ashx`, timeout: 1500000 // 请求超时时间 }) export default service diff --git a/src/views/PurchasingCenter/CreatePurchaseContract/index.vue b/src/views/PurchasingCenter/CreatePurchaseContract/index.vue index 0dc669b0..a5091bbc 100644 --- a/src/views/PurchasingCenter/CreatePurchaseContract/index.vue +++ b/src/views/PurchasingCenter/CreatePurchaseContract/index.vue @@ -3,6 +3,17 @@ + + + + + + + @@ -14,6 +25,8 @@ + + @@ -163,20 +176,20 @@ - - - - ①选择合同模板: - - - - - - 预览合同 + + + + + + + + + + - ②递交审批: + 递交审批: 递交 @@ -195,7 +208,7 @@