From 111c78ffe7844a01eea809e97b3a58170962ff28 Mon Sep 17 00:00:00 2001 From: caoxinyu Date: Tue, 12 Mar 2019 16:16:27 +0800 Subject: [PATCH 01/14] =?UTF-8?q?=E5=8A=A0=E5=B7=A5=E8=BF=9B=E5=BA=A6?= =?UTF-8?q?=E6=9F=A5=E8=AF=A2=E5=A2=9E=E5=8A=A0=E6=97=B6=E9=97=B4=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ManufacturingCenter/ProcessingStatus.js | 4 +-- .../ProcessingStatus/index.vue | 32 ++++++++++++++++++- 2 files changed, 33 insertions(+), 3 deletions(-) diff --git a/src/api/ManufacturingCenter/ProcessingStatus.js b/src/api/ManufacturingCenter/ProcessingStatus.js index c3140183..bd59c21e 100644 --- a/src/api/ManufacturingCenter/ProcessingStatus.js +++ b/src/api/ManufacturingCenter/ProcessingStatus.js @@ -36,14 +36,14 @@ export function getGroups(stepNumber) { }) } -export function getTable(stepNumber, a, b, c, d, e, f, g, i, pageCurrent, pageSize) { +export function getTable(stepNumber, a, b, c, d, e, f, g, i, j, k, l, m, pageCurrent, pageSize) { return request({ url: '', method: 'post', data: { type: '1', name: '车间生产管理工艺_零件工序_查询数据_已编制工序的全部零件及工序_横向赋值新建存储过程', - param: '项目流水号_check=' + stepNumber + '=string&项目流水号=' + a + '=string&机床流水号_check=' + b + '=string&机床流水号=' + c + '=string&组件流水号_check=' + d + '=string&组件流水号=' + e + '=string&零件图号_check=' + f + '=string&零件图号=' + g + '=string&是否查询全部数据=1=string&单件是否外协=' + i + '=string&考核状态=6=int', + param: '项目流水号_check=' + stepNumber + '=string&项目流水号=' + a + '=string&机床流水号_check=' + b + '=string&机床流水号=' + c + '=string&组件流水号_check=' + d + '=string&组件流水号=' + e + '=string&零件图号_check=' + f + '=string&零件图号=' + g + '=string&是否查询全部数据=1=string&单件是否外协=' + i + '=string&考核状态=6=int&开始时间_check=' + j + '&开始时间=' + k + '&结束时间_check=' + l + '&结束时间=' + m, Pagination: pageCurrent + '&' + pageSize } }) diff --git a/src/views/ManufacturingCenter/ProcessingStatus/index.vue b/src/views/ManufacturingCenter/ProcessingStatus/index.vue index 52ddebc1..271a8239 100644 --- a/src/views/ManufacturingCenter/ProcessingStatus/index.vue +++ b/src/views/ManufacturingCenter/ProcessingStatus/index.vue @@ -23,6 +23,22 @@ 零件图号: + 计划下达时间: + + - + 查询 @@ -298,6 +314,10 @@ import { getNames, getMachines, getGroups, getTable, getTable2 } from '@/api/Man export default { data() { return { + startTime: '', + endTime: '', + startTime_check: 0, + endTime_check: 0, liushuihao: '', // value2: null, radioList: '0', @@ -428,6 +448,16 @@ export default { } else { this.checkbox_number = true } + if(this.startTime === '' || this.startTime === null) { + this.startTime_check = 0 + } else { + this.startTime_check = 1 + } + if(this.endTime === '' || this.endTime === null) { + this.endTime_check = 0 + } else { + this.endTime_check = 1 + } this.tableData1 = [] this.零件图号 = [] this.零件名称 = [] @@ -439,7 +469,7 @@ export default { this.colorCode = [[]] this.realDate = [[]] this.length = 0 - getTable(this.checkbox_project, this.project, this.checkbox_Machine, this.Machine, this.checkbox_Group, this.Group, this.checkbox_number, this.number, 1, this.pageCurrent, this.pageSize).then(response => { + getTable(this.checkbox_project, this.project, this.checkbox_Machine, this.Machine, this.checkbox_Group, this.Group, this.checkbox_number, this.number, 1, this.startTime_check, this.startTime, this.endTime_check, this.endTime, this.pageCurrent, this.pageSize).then(response => { this.length = parseInt(response.data.total) for (let i = 0; i < response.data.rows.length; i++) { // 声明二维数组 this.零件图号.push(response.data.rows[i].零件图号) From c06389982669e4840f8bcb598ae0512e97dc2ef3 Mon Sep 17 00:00:00 2001 From: chenjianan Date: Thu, 14 Mar 2019 18:46:58 +0800 Subject: [PATCH 02/14] =?UTF-8?q?=E5=8F=91=E7=A5=A8=E7=BB=93=E7=AE=97?= =?UTF-8?q?=E7=94=B3=E8=AF=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../InvoiceSettlementApplication.js | 61 +- src/utils/request.js | 2 +- .../InvoiceSettlementApplication/index.vue | 575 ++++++++---------- 3 files changed, 310 insertions(+), 328 deletions(-) diff --git a/src/api/PurchasingCenter/InvoiceSettlementApplication.js b/src/api/PurchasingCenter/InvoiceSettlementApplication.js index 97df2770..3a131aa0 100644 --- a/src/api/PurchasingCenter/InvoiceSettlementApplication.js +++ b/src/api/PurchasingCenter/InvoiceSettlementApplication.js @@ -1,5 +1,16 @@ import request from '@/utils/request' +// 查询供应商 +export function searchSupplier() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_供应商_查询数据_根据条件' + } + }) +} // 根据条件查发票结算申请单 export function searchTable1(...group) { return request({ @@ -61,51 +72,75 @@ export function searchTable2(num) { } }) } -// 入库单查询 -export function searchInboundCard(data1, data2) { +// 根据供应商查询采购合同 +export function searchPurchase(data) { return request({ url: '', method: 'post', data: { type: '1', - name: '库存管理_采购入库单_入库单查询', - param: '入库单号_check=' + data1 + '&入库单号=' + data2 + name: '采购管理_采购合同_查询数据', + param: '供应商流水号_check=1&供应商流水号=' + data } }) } -// 入库单明细查询 -export function searchInboundCardDetail(data1) { +// 根据供应商查询离线合同 +export function searchOffline(data) { return request({ url: '', method: 'post', data: { type: '1', - name: '库存管理_采购入库单_入库单明细_查询数据', - param: '采购入库单流水号=' + data1 + name: '采购管理_离线合同_查询数据', + param: '供应商流水号_check=1&供应商流水号=' + data } }) } -// 发票结算申请单明细增加 -export function addTable2(data, group) { +// 查询采购合同明细 +export function searchPurchaseDetail(data) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_采购合同明细_查询数据', + param: '采购合同流水号=' + data + } + }) +} +// 查询离线合同明细 +export function searchOfflineDetail(data) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '采购管理_离线合同明细_查询数据', + param: '离线合同流水号=' + data + } + }) +} +// 发票结算申请单明细增加-1采购/2离线 +export function addTable2(data, group1, group2, type) { return request({ url: '', method: 'post', data: { type: '2', name: '采购管理_发票结算申请单明细_增加数据', - param: '发票结算申请单流水号=' + data + '&采购入库单流水号组=' + group + param: '发票结算申请单流水号=' + data + '&合同明细流水号组=' + group1 + '&到票数量组=' + group2 + '&合同类型=' + type } }) } // 发票结算申请单明细删除 -export function deleteTable2(group) { +export function deleteTable2(data) { return request({ url: '', method: 'post', data: { type: '2', name: '采购管理_发票结算申请单明细_删除数据', - param: '发票结算申请单明细流水号组=' + group + param: '发票结算申请单明细流水号=' + data } }) } diff --git a/src/utils/request.js b/src/utils/request.js index 657a98da..7b2655fc 100644 --- a/src/utils/request.js +++ b/src/utils/request.js @@ -22,7 +22,7 @@ const service = axios.create({ baseURL: `http://192.168.1.231:8411/submit/MESCommonBase.ashx`, // baseURL: `http://localhost:8077/submit/MESCommonBase.ashx`, // baseURL: `http://192.168.0.112:8411/submit/MESCommonBase.ashx`, - timeout: 1500000 // 请求超时时间git + timeout: 1500000 // 请求超时时间 }) // request拦截器 diff --git a/src/views/PurchasingCenter/InvoiceSettlementApplication/index.vue b/src/views/PurchasingCenter/InvoiceSettlementApplication/index.vue index 07327b06..48676bdf 100644 --- a/src/views/PurchasingCenter/InvoiceSettlementApplication/index.vue +++ b/src/views/PurchasingCenter/InvoiceSettlementApplication/index.vue @@ -3,13 +3,13 @@ 发票号: - 查询 + 查询 创建

发票结算申请单

- + + + + - + @@ -82,7 +87,7 @@ {{ scope.row.审批2时间 ? scope.row.审批2时间 : '—' }} - + @@ -92,16 +97,6 @@ {{ scope.row.审批3时间 ? scope.row.审批3时间 : '—' }} - - - - - - + + diff --git a/src/views/PurchasingCenter/PurchaseTaskAllocate/index.vue b/src/views/PurchasingCenter/PurchaseTaskAllocate/index.vue index f4c9bae2..c464d35e 100644 --- a/src/views/PurchasingCenter/PurchaseTaskAllocate/index.vue +++ b/src/views/PurchasingCenter/PurchaseTaskAllocate/index.vue @@ -74,15 +74,7 @@
- +