From bdbe03ddb43b79e692a0e86ab791d4a99648d839 Mon Sep 17 00:00:00 2001 From: Vergil <974548713@qq.com> Date: Mon, 9 Mar 2020 17:01:07 +0800 Subject: [PATCH] =?UTF-8?q?=E7=89=A9=E6=96=99=E5=87=BA=E5=BA=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/Inventory/MaterialOut/index.vue | 28 ++++++++++++++++++----- 1 file changed, 22 insertions(+), 6 deletions(-) diff --git a/src/views/Inventory/MaterialOut/index.vue b/src/views/Inventory/MaterialOut/index.vue index 6eddb914..4c12e471 100644 --- a/src/views/Inventory/MaterialOut/index.vue +++ b/src/views/Inventory/MaterialOut/index.vue @@ -2,13 +2,25 @@
- 领料单编号: - + + + 创建时间: + 查询 领料确认
-
+
@@ -256,6 +268,7 @@ export default { name: 'MaterialOut', data() { return { + dateRange: '', multipleSelection1: [], multipleSelection: [], pickingListNum: '', // 领料单流水号 @@ -531,9 +544,10 @@ export default { }, // 查询领料单列表 searchList() { - let check + let check, check1 this.pickingListNumber ? check = 1 : check = 0 - searchList(this.pageCurrent3, this.pageSize3, check, this.pickingListNumber).then(response => { + this.dateRange ? check1 = 1 : (check1 = 0, this.dateRange = '') + searchList(this.pageCurrent3, this.pageSize3, check, this.pickingListNumber, check1, this.dateRange[0], this.dateRange[1]).then(response => { this.pickListTable1 = response.data.rows this.total3 = response.data.total }) @@ -562,9 +576,11 @@ export default { if (res.data[i].请购单明细流水号 !== 0 && res.data[i].请购单明细流水号 !== '' && res.data[i].请购单明细流水号 !== null) { res.data[i].货位存量1 = res.data[i].货位存量 } + if (res.data[i].货位存量1 > res.data[i].总数量) { + res.data[i].出库数量 = res.data[i].总数量 + } } this.pickListTable2 = res.data - console.log(this.pickListTable2, 111) }) }, tableRowClassName({ row }) {