From 9339c96280d1a1d8474f4d5b1c61e68555263731 Mon Sep 17 00:00:00 2001 From: chenjianan Date: Wed, 17 Apr 2019 12:02:58 +0800 Subject: [PATCH 01/19] =?UTF-8?q?=E5=88=86=E9=85=8D=E4=BB=BB=E5=8A=A1?= =?UTF-8?q?=E5=8A=A0=E6=9C=BA=E5=BA=8A=E5=88=86=E7=BB=84=E6=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../PurchasingCenter/PurchaseTaskAllocate.js | 28 +++- .../CreatePurchaseContract/index.vue | 2 +- .../PurchaseTaskAllocate/index.vue | 136 +++++++++++++----- 3 files changed, 130 insertions(+), 36 deletions(-) diff --git a/src/api/PurchasingCenter/PurchaseTaskAllocate.js b/src/api/PurchasingCenter/PurchaseTaskAllocate.js index a49e7f5c..c8e7b979 100644 --- a/src/api/PurchasingCenter/PurchaseTaskAllocate.js +++ b/src/api/PurchasingCenter/PurchaseTaskAllocate.js @@ -45,6 +45,30 @@ export function initBuyer() { } }) } +// 机床查询 +export function searchMachine(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_机床名称_查询数据', + param: '项目流水号_check=1&项目流水号=' + num + } + }) +} +// 分组查询 +export function searchGroup(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_组件名称_查询数据', + param: '机床流水号=' + num + } + }) +} // 查询表1标准件和外购件 export function searchTable1(...params) { return request({ @@ -53,7 +77,7 @@ export function searchTable1(...params) { data: { type: '1', name: '采购管理_采购部采购_查询物料', - param: `物料类别流水号_check=${params[2]}&物料类别流水号=${params[3]}&物料品种流水号_check=${params[4]}&物料品种流水号=${params[5]}&项目流水号_check=${params[6]}&项目流水号=${params[7]}&物料名称_check=${params[8]}&物料名称=${params[9]}&物料状态=${params[10]}&物料规格_check=${params[11]}&物料规格=${params[12]}&物料型号_check=${params[13]}&物料型号=${params[14]}`, + param: `物料类别流水号_check=${params[2]}&物料类别流水号=${params[3]}&物料品种流水号_check=${params[4]}&物料品种流水号=${params[5]}&项目流水号_check=${params[6]}&项目流水号=${params[7]}&机床流水号_check=${params[8]}&机床流水号=${params[9]}&组件流水号_check=${params[10]}&组件流水号=${params[11]}&物料名称_check=${params[12]}&物料名称=${params[13]}&物料状态=${params[14]}&物料规格_check=${params[15]}&物料规格=${params[16]}&物料型号_check=${params[17]}&物料型号=${params[18]}`, Pagination: params[0] + '&' + params[1] } }) @@ -66,7 +90,7 @@ export function searchTable2(...params) { data: { type: '1', name: '采购管理_采购部采购_查询物料_基本件', - param: `项目流水号_check=${params[2]}&项目流水号=${params[3]}&物料状态=${params[4]}&零件图号_check=${params[5]}&零件图号=${params[6]}&零件名称_check=${params[7]}&零件名称=${params[8]}&规格_check=${params[9]}&规格=${params[10]}&材料_check=${params[11]}&材料=${params[12]}`, + param: `项目流水号_check=${params[2]}&项目流水号=${params[3]}&机床流水号_check=${params[4]}&机床流水号=${params[5]}&组件流水号_check=${params[6]}&组件流水号=${params[7]}&物料状态=${params[8]}&零件图号_check=${params[9]}&零件图号=${params[10]}&零件名称_check=${params[11]}&零件名称=${params[12]}&规格_check=${params[13]}&规格=${params[14]}&材料_check=${params[15]}&材料=${params[16]}`, Pagination: params[0] + '&' + params[1] } }) diff --git a/src/views/PurchasingCenter/CreatePurchaseContract/index.vue b/src/views/PurchasingCenter/CreatePurchaseContract/index.vue index 4946d29b..462dca9c 100644 --- a/src/views/PurchasingCenter/CreatePurchaseContract/index.vue +++ b/src/views/PurchasingCenter/CreatePurchaseContract/index.vue @@ -160,7 +160,7 @@ import { searchInquirySheet, searchSheetContract, doneContract } from '@/api/Pur import { convertCurrency } from '@/vendor/int2Chinese' import { mapGetters } from 'vuex' import $ from 'jquery' -import { sleep } from '@/utils/tool' + export default { components: { Tinymce }, inject: ['reload'], diff --git a/src/views/PurchasingCenter/PurchaseTaskAllocate/index.vue b/src/views/PurchasingCenter/PurchaseTaskAllocate/index.vue index a5d74353..ac9bcc83 100644 --- a/src/views/PurchasingCenter/PurchaseTaskAllocate/index.vue +++ b/src/views/PurchasingCenter/PurchaseTaskAllocate/index.vue @@ -4,22 +4,28 @@ 项目名称: - + - 物料状态: - + 机床图号: + + + 查询 -
+
采购员:
+ + 组       号: + + + + 物料状态: + +
+ 分配 + 退回 +
+
物料类别: -
- 分配 - 退回 -
物料名称: @@ -177,22 +195,28 @@ 项目名称: - + - 物料状态: - + 机床图号: + + + 查询 -
+
采购员:
- - 零件图号: - - 零件名称: - -
+ + 组       号: + + + + 物料状态: + +
退回
+ + 零件图号: + + 零件名称: + + 零件规格: @@ -324,7 +360,7 @@ From 50219f92498d3d7a5a5d7522cbcf6e8ac294fd21 Mon Sep 17 00:00:00 2001 From: chenjianan Date: Fri, 19 Apr 2019 15:12:26 +0800 Subject: [PATCH 16/19] style --- .../MaterialManagement/index.vue | 29 ++++++++++--------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/src/views/PurchasingCenter/MaterialManagement/index.vue b/src/views/PurchasingCenter/MaterialManagement/index.vue index a32e46a7..357db828 100644 --- a/src/views/PurchasingCenter/MaterialManagement/index.vue +++ b/src/views/PurchasingCenter/MaterialManagement/index.vue @@ -9,6 +9,7 @@ placeholder="请选择" size="small" clearable + style="margin-bottom: 10px;" @change="searchMaterialVariety"> 物料名称: - + 物料全称: @@ -42,8 +44,8 @@ v-model="FullNameOfMaterial" placeholder="物料全称" size="small" - clearable - style="margin-top: 15px;"/> + style="margin-bottom: 10px;" + clearable/> 物料规格: @@ -51,8 +53,8 @@ v-model="MaterialSpecification" placeholder="物料规格" size="small" - clearable - style="margin-top: 15px;"/> + style="margin-bottom: 10px;" + clearable/> 物料型号: @@ -60,15 +62,15 @@ v-model="MaterialModel" placeholder="物料型号" size="small" - clearable - style="margin-top: 15px;"/> + style="margin-bottom: 10px;" + clearable/> 计算单位: 物料来源: @@ -108,7 +110,7 @@ type="success" icon="el-icon-search" size="small" - style="margin-top: 15px;margin-left: 10px" + style="margin-left: 10px" @click="pageCurrent=1;searchMaterial()">查询 增加 @@ -126,8 +128,8 @@ @@ -429,7 +431,6 @@
-
From ab5484a4f48dc80541cdd2a2276a4c59e4d1ce2b Mon Sep 17 00:00:00 2001 From: chenjianan Date: Fri, 19 Apr 2019 16:18:58 +0800 Subject: [PATCH 17/19] =?UTF-8?q?=E8=AF=A2=E4=BB=B7=E5=8D=95=E8=81=94?= =?UTF-8?q?=E7=B3=BB=E6=96=B9=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../CreateInquirySheet/exportExcel.js | 2 +- .../CreateInquirySheet/index.vue | 29 +++++++++++++++++-- 2 files changed, 28 insertions(+), 3 deletions(-) diff --git a/src/views/PurchasingCenter/CreateInquirySheet/exportExcel.js b/src/views/PurchasingCenter/CreateInquirySheet/exportExcel.js index 5b36e3e5..ce61818e 100644 --- a/src/views/PurchasingCenter/CreateInquirySheet/exportExcel.js +++ b/src/views/PurchasingCenter/CreateInquirySheet/exportExcel.js @@ -5,7 +5,7 @@ export function exportExcelMethod(tableId, fileName, sheetName) { const tableToExcel = (function() { const uri = 'data:application/vnd.ms-excel;base64,' // 设置导出表格的单元格默认高度/宽度/边框样式/字体颜色/背景颜色/居中,网页显示表格宽度建议1240,tr/td视情况而定 - const template = `{worksheet}{table}
` + const template = `{worksheet}{table}
` const base64 = function(s) { return window.btoa(unescape(encodeURIComponent(s))) } const format = function(s, c) { return s.replace(/{(\w+)}/g, function(m, p) { return c[p] }) } return function(table, filename, sheetname) { diff --git a/src/views/PurchasingCenter/CreateInquirySheet/index.vue b/src/views/PurchasingCenter/CreateInquirySheet/index.vue index 7e3dc493..ea18e3e5 100644 --- a/src/views/PurchasingCenter/CreateInquirySheet/index.vue +++ b/src/views/PurchasingCenter/CreateInquirySheet/index.vue @@ -433,8 +433,8 @@ - -