From 267e0c43882145fb6cfdec1858a780472bbc6046 Mon Sep 17 00:00:00 2001 From: zhangdingyu <974548713@qq.com> Date: Thu, 20 Dec 2018 14:58:12 +0800 Subject: [PATCH 1/5] =?UTF-8?q?=E5=8A=A0=E5=B7=A5=E9=A1=BA=E5=BA=8F?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../MachiningSequenceAdjustment.js | 13 +++++++++++++ .../MachiningSequenceAdjustment/index.vue | 0 2 files changed, 13 insertions(+) create mode 100644 src/api/ManufacturingCenter/MachiningSequenceAdjustment.js create mode 100644 src/views/ManufacturingCenter/MachiningSequenceAdjustment/index.vue diff --git a/src/api/ManufacturingCenter/MachiningSequenceAdjustment.js b/src/api/ManufacturingCenter/MachiningSequenceAdjustment.js new file mode 100644 index 00000000..b6543ae1 --- /dev/null +++ b/src/api/ManufacturingCenter/MachiningSequenceAdjustment.js @@ -0,0 +1,13 @@ +import request from '@/utils/request' +// 初始化 项目名称 +export function getEntryNameValue() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_传递后_项目名称_查询数据', + param: '考核状态=5=int' + } + }) +} diff --git a/src/views/ManufacturingCenter/MachiningSequenceAdjustment/index.vue b/src/views/ManufacturingCenter/MachiningSequenceAdjustment/index.vue new file mode 100644 index 00000000..e69de29b From 5cd4d182579455210856731cb11bfd114d6bbf2e Mon Sep 17 00:00:00 2001 From: chenjianan Date: Thu, 20 Dec 2018 18:22:39 +0800 Subject: [PATCH 2/5] =?UTF-8?q?=E5=AF=BC=E5=87=BA=E5=92=8Cbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../PurchasingCenter/ArrivalStateSearch.js | 2 +- .../ArrivalStateSearch/index.vue | 57 ++------ .../exportExcel.js | 0 .../OfflineContract/index.vue | 124 +++++++++++++++--- 4 files changed, 123 insertions(+), 60 deletions(-) rename src/views/PurchasingCenter/{PurchaseContractSearch => OfflineContract}/exportExcel.js (100%) diff --git a/src/api/PurchasingCenter/ArrivalStateSearch.js b/src/api/PurchasingCenter/ArrivalStateSearch.js index 49eb1f35..03a7851e 100644 --- a/src/api/PurchasingCenter/ArrivalStateSearch.js +++ b/src/api/PurchasingCenter/ArrivalStateSearch.js @@ -7,7 +7,7 @@ export function initArrivalStateContact() { method: 'post', data: { type: '1', - name: '采购管理_到货情况_查询数据' + name: '采购管理_采购请款表_查询数据' } }) } diff --git a/src/views/PurchasingCenter/ArrivalStateSearch/index.vue b/src/views/PurchasingCenter/ArrivalStateSearch/index.vue index f31b247a..91030159 100644 --- a/src/views/PurchasingCenter/ArrivalStateSearch/index.vue +++ b/src/views/PurchasingCenter/ArrivalStateSearch/index.vue @@ -14,9 +14,6 @@ 供应商: - 提前 - - 天预警 - + - + @@ -60,20 +57,12 @@ {{ scope.row.姓名 }} - - - @@ -95,29 +84,29 @@ {{ scope.row.采购合同编号 }} - + - + - + @@ -133,7 +122,6 @@ export default { name: '', // 项目总价查询 data() { return { - warningValue: 3, check1: 0, check2: 0, contractNumValue: '', @@ -143,10 +131,7 @@ export default { pageSize1: 10, pageCurrent1: 1, total1: 0, - tableData2: [], - now: '', - arrival: [], - judge: [] + tableData2: [] } }, computed: { @@ -159,6 +144,7 @@ export default { }, created() { this.fetchData() + this.searchTable1() }, methods: { fetchData() { @@ -173,24 +159,9 @@ export default { }) }, searchTable1() { - this.warningValue ? this.warningValue : this.warningValue = 1 - this.arrival = [] // 规定到货时间数组 - this.now = new Date() this.contractNumValue ? this.check1 = 1 : this.check1 = 0 this.supplierName ? this.check2 = 1 : this.check2 = 0 searchArrivalState(this.pageCurrent1, this.pageSize1, this.check1, this.contractNumValue, this.check2, this.supplierName).then(response => { - for (let i = 0; i < response.data.rows.length; i++) { - this.arrival.push(new Date(response.data.rows[i].规定到货时间)) - if (parseInt(response.data.rows[i].合同物料到货总数) === parseInt(response.data.rows[i].合同物料采购总数)) { - this.judge[i] = 1 // 全部到货 - } else if (parseInt(response.data.rows[i].合同物料到货总数) !== parseInt(response.data.rows[i].合同物料采购总数) && (this.arrival[i] - this.now) > 0 && (this.arrival[i] - this.now) < (86400000 * this.warningValue)) { - this.judge[i] = 2 // 即将拖期 - } else if (parseInt(response.data.rows[i].合同物料到货总数) !== parseInt(response.data.rows[i].合同物料采购总数) && (this.arrival[i] - this.now) < 0) { - this.judge[i] = 3 // 已拖期 - } else if (parseInt(response.data.rows[i].合同物料到货总数) !== parseInt(response.data.rows[i].合同物料采购总数) && (this.arrival[i] - this.now) > (86400000 * this.warningValue)) { - this.judge[i] = 4 // 进度正常 - } - } this.tableData1 = response.data.rows this.total1 = response.data.total }) diff --git a/src/views/PurchasingCenter/PurchaseContractSearch/exportExcel.js b/src/views/PurchasingCenter/OfflineContract/exportExcel.js similarity index 100% rename from src/views/PurchasingCenter/PurchaseContractSearch/exportExcel.js rename to src/views/PurchasingCenter/OfflineContract/exportExcel.js diff --git a/src/views/PurchasingCenter/OfflineContract/index.vue b/src/views/PurchasingCenter/OfflineContract/index.vue index 466c47fd..2fedfc9a 100644 --- a/src/views/PurchasingCenter/OfflineContract/index.vue +++ b/src/views/PurchasingCenter/OfflineContract/index.vue @@ -130,11 +130,20 @@ @click="addMateriel">选入物料 - + + + + @@ -152,7 +161,7 @@ {{ scope.row.供应商名称 }} - + @@ -167,16 +176,11 @@ {{ scope.row.规定到货时间.split(' ')[0] }} - - - @@ -414,12 +418,55 @@ @click="submitEditOfflineContract">确定 + + + + From b277466d74458867d892388c6ab279374fbe6529 Mon Sep 17 00:00:00 2001 From: chenjianan Date: Fri, 21 Dec 2018 08:54:10 +0800 Subject: [PATCH 5/5] table style --- .../PurchasingCenter/PayStateSearch/index.vue | 54 +++++++++----- .../PurchaseContractApproval/index.vue | 60 ++++++++------- .../PurchaseContractSearch/index.vue | 70 +++++++++--------- .../PurchaseInvoiceDelivery/index.vue | 74 +++++++++++-------- 4 files changed, 144 insertions(+), 114 deletions(-) diff --git a/src/views/PurchasingCenter/PayStateSearch/index.vue b/src/views/PurchasingCenter/PayStateSearch/index.vue index fe61db07..c778248f 100644 --- a/src/views/PurchasingCenter/PayStateSearch/index.vue +++ b/src/views/PurchasingCenter/PayStateSearch/index.vue @@ -24,6 +24,37 @@ + + + - - - - - - - - - - - -