diff --git a/src/api/PurchasingCenter/PurchaseTaskAllocate.js b/src/api/PurchasingCenter/PurchaseTaskAllocate.js index f9a5dd9c..a3ff15f7 100644 --- a/src/api/PurchasingCenter/PurchaseTaskAllocate.js +++ b/src/api/PurchasingCenter/PurchaseTaskAllocate.js @@ -47,4 +47,15 @@ export function allocateTask(group, person) { param: `标准件和外购件流水号组=${group}&人员编号=${person}` } }) +}// 执行退回 +export function executeReturn(...params) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '采购部采购_退回物料', + param: `标准件和外购件流水号组=${params[0]}&组件零件流水号组=${params[1]}` + } + }) } diff --git a/src/views/PurchasingCenter/BuyerRequestFund/index.vue b/src/views/PurchasingCenter/BuyerRequestFund/index.vue index 300f5fe0..34ac1431 100644 --- a/src/views/PurchasingCenter/BuyerRequestFund/index.vue +++ b/src/views/PurchasingCenter/BuyerRequestFund/index.vue @@ -43,7 +43,16 @@ - + + + + - + - + @@ -74,7 +83,7 @@ {{ scope.row.付款方式内容 }} - + @@ -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 @@