From 109868411a8aa761432659ab43e67932b8c30485 Mon Sep 17 00:00:00 2001 From: zhangdingyu <974548713@qq.com> Date: Tue, 20 Nov 2018 08:55:04 +0800 Subject: [PATCH 01/11] =?UTF-8?q?=E8=BD=A6=E9=97=B4=E8=AE=BE=E5=A4=87?= =?UTF-8?q?=E7=AE=A1=E7=90=86=E8=A1=A8=E6=A0=BC=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ManufacturingCenter/WorkshopEquipmentManagement/index.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/ManufacturingCenter/WorkshopEquipmentManagement/index.vue b/src/views/ManufacturingCenter/WorkshopEquipmentManagement/index.vue index a6f5bd35..f5f66a2d 100644 --- a/src/views/ManufacturingCenter/WorkshopEquipmentManagement/index.vue +++ b/src/views/ManufacturingCenter/WorkshopEquipmentManagement/index.vue @@ -8,7 +8,7 @@ - + - + @@ -91,7 +100,16 @@ - - -
- 请款开始时间: + 请款时间区间: - 请款结束时间: + placeholder="开始日期"/> + ~ + placeholder="结束日期"/> { - for (let i = 0; i < response0.data.length; i++) { - this.tableData11[j].push(response0.data[i]) + if (response0.data.length === 0) { + this.tableData11[j].push(response0.data) + document.getElementById(j).setAttribute('style', 'display:none') + } else { + for (let i = 0; i < response0.data.length; i++) { + this.tableData11[j].push(response0.data[i]) + } } }) } this.tableData1 = response.data.rows this.total1 = response.data.total - }).then(() => { - this.loading1 = false }) }, handleSizeChange1(val) { @@ -356,6 +358,7 @@ export default { }) }, cancelRequestFund(row) { // 取消请款 + console.log(row) this.$confirm('确认取消请款吗?', '提示', { confirmButtonText: '确定', cancelButtonText: '取消', @@ -383,9 +386,15 @@ export default { }, searchRequestTable() { // 查询请款表 this.loading2 = true - if (this.startRequestDate === '' || this.startRequestDate === null || this.endRequestDate === '' || this.endRequestDate === null) { + if ((this.startRequestDate === '' || this.startRequestDate === null) && (this.endRequestDate === '' || this.endRequestDate === null)) { this.checkRequest = 0 - } else { this.checkRequest = 1 } + } else if (this.startRequestDate !== '' && this.startRequestDate !== null && this.endRequestDate !== '' && this.endRequestDate !== null) { + this.checkRequest = 1 + } else { + this.$message.error('请款时间区间有误') + this.loading2 = false + return + } searchRequestTable(this.checkRequest, this.startRequestDate, this.endRequestDate).then(response => { for (let j = 0; j < response.data.length; j++) { if (response.data[j].请款时间 !== null) { diff --git a/src/views/PurchasingCenter/CreateContract/index.vue b/src/views/PurchasingCenter/CreateContract/index.vue index af596aef..788a34fd 100644 --- a/src/views/PurchasingCenter/CreateContract/index.vue +++ b/src/views/PurchasingCenter/CreateContract/index.vue @@ -51,7 +51,7 @@ - + - + - + - + - + { for (let i = 0; i < response.data.length; i++) { - this.payTime.push({ - label: response.data[i].付款时间节点名称, - value: response.data[i].付款时间节点流水号 - }) + if (parseInt(response.data[i].付款时间节点流水号) !== 0) { + this.payTime.push({ + label: response.data[i].付款时间节点名称, + value: response.data[i].付款时间节点流水号 + }) + } } }) }, diff --git a/src/views/PurchasingCenter/InvoiceStateSearch/index.vue b/src/views/PurchasingCenter/InvoiceStateSearch/index.vue index 4ffe69eb..c997aafd 100644 --- a/src/views/PurchasingCenter/InvoiceStateSearch/index.vue +++ b/src/views/PurchasingCenter/InvoiceStateSearch/index.vue @@ -51,7 +51,7 @@ diff --git a/src/views/PurchasingCenter/PurchaseTaskAllocate/index.vue b/src/views/PurchasingCenter/PurchaseTaskAllocate/index.vue index 479c80d4..c01c138d 100644 --- a/src/views/PurchasingCenter/PurchaseTaskAllocate/index.vue +++ b/src/views/PurchasingCenter/PurchaseTaskAllocate/index.vue @@ -1,45 +1,59 @@