From 15b9dddc4c52a7a786cf86eb0ff05641a570825f Mon Sep 17 00:00:00 2001
From: duan <1004387497@qq.com>
Date: Fri, 21 Jun 2024 17:41:00 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96bug?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../invoicing/components/invoicingDetail.vue | 15 ++++++++++++---
.../invoicing/components/operatingDetail.vue | 1 +
2 files changed, 13 insertions(+), 3 deletions(-)
diff --git a/src/views/invoicing/components/invoicingDetail.vue b/src/views/invoicing/components/invoicingDetail.vue
index 81de082..1013ead 100644
--- a/src/views/invoicing/components/invoicingDetail.vue
+++ b/src/views/invoicing/components/invoicingDetail.vue
@@ -9,7 +9,7 @@
+ end-placeholder="结束日期" value-format="yyyy-MM-dd">
查询
重置
@@ -38,7 +38,7 @@
- {{ scope.row.leftNumber - scope.row.stockNumber }} {{ scope.row.unitName }}
+ {{ scope.row.leftNumber + scope.row.stockNumber }} {{ scope.row.unitName }}
@@ -81,6 +81,13 @@ export default {
methods: {
async getTableData() {
this.tableData.loading = true
+ console.log(this.query.createdAt, '调试111')
+ let arr = []
+ if (this.query.createdAt.length) {
+ arr = [this.query.createdAt[0] + ' 00:00:00', this.query.createdAt[1] + ' 23:59:59']
+ } else {
+ arr = []
+ }
try {
const res = await tbProductStockDetail({
page: this.tableData.page,
@@ -89,7 +96,7 @@ export default {
shopId: localStorage.getItem('shopId'),
productId: this.goods.proId,
type: this.query.type,
- createdAt: this.query.createdAt
+ createdAt: arr
})
this.tableData.loading = false
this.tableData.list = res.content
@@ -109,6 +116,8 @@ export default {
this.query.blurry = ''
this.tableData.page = 0
this.tableData.list = []
+ this.query.type = ''
+ this.query.createdAt = []
this.getTableData()
},
async show(obj) {
diff --git a/src/views/invoicing/components/operatingDetail.vue b/src/views/invoicing/components/operatingDetail.vue
index 641b755..0b09180 100644
--- a/src/views/invoicing/components/operatingDetail.vue
+++ b/src/views/invoicing/components/operatingDetail.vue
@@ -7,6 +7,7 @@
+
{{ scope.row.number }} {{ scope.row.unitName }}