From 653abcfc598f9121c4faf485d9de4982723335af Mon Sep 17 00:00:00 2001 From: liushuai Date: Thu, 22 Aug 2019 20:14:02 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/Assembly/AssemblyQualityInspection.js | 64 +++++ src/api/Assembly/QualityBasicData.js | 71 ++++++ src/api/MarketingCenter/CRM.js | 11 + .../AssemblyQualityInspection/index.vue | 227 ++++++++++++++++++ src/views/Assembly/QualityBasicData/index.vue | 119 ++++++++- src/views/MarketingCenter/BidBond/index.vue | 7 +- src/views/MarketingCenter/CRM/index.vue | 71 +++++- .../ContractCapitalManagement/index.vue | 2 +- .../ContractInformationManagement/index.vue | 4 +- 9 files changed, 567 insertions(+), 9 deletions(-) create mode 100644 src/api/Assembly/AssemblyQualityInspection.js create mode 100644 src/views/Assembly/AssemblyQualityInspection/index.vue diff --git a/src/api/Assembly/AssemblyQualityInspection.js b/src/api/Assembly/AssemblyQualityInspection.js new file mode 100644 index 00000000..7644efc4 --- /dev/null +++ b/src/api/Assembly/AssemblyQualityInspection.js @@ -0,0 +1,64 @@ +import request from '@/utils/request' + +// 初始化机床项目 +export function initProject() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_项目名称_查询数据' + } + }) +} +// 初始化检测项 +export function searchTest() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '质检管理_装配质检_检测项_查询数据' + } + }) +} +// 组件查询 +export function searchgroup(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_组件名称_查询数据', + param: '机床流水号=' + num + } + }) +} +// 质检管理_质量情况_查询数据 +export function selecttable(check1, value1, check2, value2, check3, value3, check4, value4, pageCurrent, pageSize) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '质检管理_装配质检_质检情况_查询数据', + param: '机床流水号_check=' + check1 + '&机床流水号=' + value1 + '&组件流水号_check=' + check2 + '&组件流水号=' + value2 + '&检测项_check=' + check3 + '&检测项流水号=' + value3 + + '&质检情况_check=' + check4 + '&质检情况=' + value4, + Pagination: pageCurrent + '&' + pageSize + } + }) +} +// 质检管理_质量情况_查询数据 +export function selecttable22(check1, value1, check2, value2, check3, value3, check4, value4) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '质检管理_装配质检_质检情况_查询数据', + param: '机床流水号_check=' + check1 + '&机床流水号=' + value1 + '&组件流水号_check=' + check2 + '&组件流水号=' + value2 + '&检测项_check=' + check3 + '&检测项流水号=' + value3 + + '&质检情况_check=' + check4 + '&质检情况=' + value4 + } + }) +} + diff --git a/src/api/Assembly/QualityBasicData.js b/src/api/Assembly/QualityBasicData.js index 4b9fdd9e..8e9c91d7 100644 --- a/src/api/Assembly/QualityBasicData.js +++ b/src/api/Assembly/QualityBasicData.js @@ -55,6 +55,53 @@ export function initPosition() { } }) } +// 初始化 检测项 +export function initTest() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '质检管理_装配质检_检测项_查询数据' + } + }) +} +// 查询 检测项明细 +export function initTesting(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '质检管理_装配质检_检测项明细_查询数据', + param: '检测项流水号=' + num + } + }) +} +// 增加 检测项 +export function addTest(num) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '质检管理_装配质检_检测项_增加数据', + param: '检测项=' + num + } + }) +} +// 查询 检测项明细 +export function addTesting(num, num1) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '质检管理_装配质检_检测项明细_增加数据', + param: '检测项流水号=' + num + '&检测项明细=' + num1 + } + }) +} // 增加 不合格原因 export function addReasons(num) { return request({ @@ -115,6 +162,30 @@ export function addPosition(num) { } }) } +// 删除 检测项 +export function deleteTest(num) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '质检管理_装配质检_检测项_删除数据', + param: '检测项流水号=' + num + } + }) +} +// 删除 检测项明细 +export function deleteTesting(num) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '质检管理_装配质检_检测项明细_删除数据', + param: '检测项明细流水号=' + num + } + }) +} // 删除 不合格原因 export function deleteReasons(num) { return request({ diff --git a/src/api/MarketingCenter/CRM.js b/src/api/MarketingCenter/CRM.js index 7b667e45..651b9561 100644 --- a/src/api/MarketingCenter/CRM.js +++ b/src/api/MarketingCenter/CRM.js @@ -134,6 +134,17 @@ export function addMarketingManager(MarketingManagerId, AdressID) { data: { type: '2', name: '客户关系管理系统_营销经理_增加数据_MESWORK', + param: '营销经理流水号=' + MarketingManagerId + '&省份流水号=' + AdressID + '&导入类型=0=int=output' + } + }) +} +export function addPer(MarketingManagerId, AdressID) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '客户关系管理系统_营销经理_增加数据_MESWORK_NEW', param: '营销经理流水号=' + MarketingManagerId + '&省份流水号=' + AdressID } }) diff --git a/src/views/Assembly/AssemblyQualityInspection/index.vue b/src/views/Assembly/AssemblyQualityInspection/index.vue new file mode 100644 index 00000000..ac135c9f --- /dev/null +++ b/src/views/Assembly/AssemblyQualityInspection/index.vue @@ -0,0 +1,227 @@ + + + + + diff --git a/src/views/Assembly/QualityBasicData/index.vue b/src/views/Assembly/QualityBasicData/index.vue index e0226b11..3f9f5dd9 100644 --- a/src/views/Assembly/QualityBasicData/index.vue +++ b/src/views/Assembly/QualityBasicData/index.vue @@ -161,6 +161,66 @@ + +
+ + +
检测项
+
+ 增加 + + + + + + + + + +
+
+
+ + +
检测项明细
+
+ 增加 + + + + + + + + + +
+
+
@@ -178,6 +238,12 @@ + + + + + + -