From a513a64ab0ca6f9b591ed5812cf57defd8b85059 Mon Sep 17 00:00:00 2001 From: caoxinyu Date: Mon, 3 Jun 2019 19:07:52 +0800 Subject: [PATCH 01/11] =?UTF-8?q?=E6=9C=BA=E5=BA=8A=E6=80=BB=E5=9B=BE?= =?UTF-8?q?=E4=B8=8A=E4=BC=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/TechnologyCenter/QueryParts.js | 11 +++ src/utils/request.js | 6 +- .../TechnologyCenter/ImportParts/index.vue | 5 +- .../TechnologyCenter/QueryParts/index.vue | 85 ++++++++++++++++++- 4 files changed, 100 insertions(+), 7 deletions(-) diff --git a/src/api/TechnologyCenter/QueryParts.js b/src/api/TechnologyCenter/QueryParts.js index f5863d45..52e3273b 100644 --- a/src/api/TechnologyCenter/QueryParts.js +++ b/src/api/TechnologyCenter/QueryParts.js @@ -81,3 +81,14 @@ export function deletePurchaseData(num) { } }) } +export function getFileData(MachineDrawValue) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_机床总图_查询数据', + param: `机床流水号=${MachineDrawValue}` + } + }) +} diff --git a/src/utils/request.js b/src/utils/request.js index c609d18e..39e0294c 100644 --- a/src/utils/request.js +++ b/src/utils/request.js @@ -11,14 +11,16 @@ export const name1 = `OP1000` export const readFile = `http://192.168.1.231:8411/webpage/file/` // invoice export const readImg = `http://192.168.1.231:8411/webpage/img/` // delivery/MS/performancebond export const upload = `http://192.168.1.231:8411/submit/uploadFile.ashx` // ContractInformationManagement -export const uploadFileMachine = `http://192.168.1.231:8411/submit/uploadFileMachine.ashx` // 机床总图 发布时改成0.231 export const upload2 = `http://192.168.1.231:8411/submit/upload2.ashx` // delivery export const upload3 = `http://192.168.1.231:8411/submit/upload3.ashx` // performancebond export const uploadInvoiceScan = `http://192.168.1.231:8411/submit/uploadInvoiceScan.ashx` // invoice export const uploadInvoiceScan1 = `http://192.168.1.231:8411/submit/uploadInvoiceScan1.ashx` // invoice(workshop) export const download = `http://192.168.1.231:8411/submit/downloadFile.ashx` // ContractInformationManagement -export const downloadFileMachine = `http://192.168.1.231:8411/submit/downloadFileMachine.ashx` // 机床总图 发布时改成0.231 +// 技术中心程序发布时要更改下面所有的IP到0段 +export const ServerIP = `http://192.168.1.231:8411/webpage/file/` +export const uploadFileMachine = `http://192.168.1.231:8411/submit/uploadFileMachine.ashx` // 机床总图 发布时改成0.231 +export const downloadFileMachine = `http://192.168.1.231:8411/submit/downloadFileMachine.ashx` // 机床总图 发布时改成0.231 const service = axios.create({ baseURL: `http://192.168.1.231:8411/submit/MESCommonBase.ashx`, timeout: 1500000 // 请求超时时间 diff --git a/src/views/TechnologyCenter/ImportParts/index.vue b/src/views/TechnologyCenter/ImportParts/index.vue index 550df1b7..fac8537a 100644 --- a/src/views/TechnologyCenter/ImportParts/index.vue +++ b/src/views/TechnologyCenter/ImportParts/index.vue @@ -194,10 +194,8 @@ export default { }, // 在什么情况下需要查询上传的附件,调用this.getFileData()即可根据 getFileData(machineDrawValue) { - console.log(machineDrawValue, 88) this.hadFile = [] getFileData(machineDrawValue).then(res => { - console.log(res) if (res.data.length > 0) { res.data.map(item => { this.hadFile.push({ @@ -492,4 +490,5 @@ a{ line-height: 30px; display: inline-block; color: #999; -} +} + diff --git a/src/views/TechnologyCenter/QueryParts/index.vue b/src/views/TechnologyCenter/QueryParts/index.vue index 7386ce0f..1064a5d0 100644 --- a/src/views/TechnologyCenter/QueryParts/index.vue +++ b/src/views/TechnologyCenter/QueryParts/index.vue @@ -30,6 +30,22 @@ 查询 + +
+
+
+
+
+
+
+
+
+
+
{{ file.name }}
+
+
+
+