From 5a3b3c3aaf4babac4ad1dd442d1fd1eef5f9405c Mon Sep 17 00:00:00 2001 From: xiaofajia <1665375861@qq.com> Date: Tue, 22 Oct 2024 15:57:07 +0800 Subject: [PATCH] =?UTF-8?q?=E9=85=8D=E4=BB=B6=E9=A2=86=E9=80=80=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E6=9C=80=E5=90=8E=E5=AE=8C=E5=96=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/repair/stockOperate/Components/SoVoid.vue | 5 ++++- src/views/repair/stockOperate/Components/WaresItem.vue | 8 ++++++-- src/views/repair/tickets/Components/TicketWares.vue | 1 + src/views/repair/tickets/form/TWOperate.vue | 7 +++++-- src/views/repair/tickets/form/UpdateRepair.vue | 2 +- 5 files changed, 17 insertions(+), 6 deletions(-) diff --git a/src/views/repair/stockOperate/Components/SoVoid.vue b/src/views/repair/stockOperate/Components/SoVoid.vue index 52126ef..d7505f1 100644 --- a/src/views/repair/stockOperate/Components/SoVoid.vue +++ b/src/views/repair/stockOperate/Components/SoVoid.vue @@ -121,7 +121,7 @@ export default { userId: null, userName: null, soType: this.soByType ? "01" : "02", - purchaseType: this.goodsYes ? "02" : "01", + purchaseType: null, soStatus: "06" }, showSearch: true, @@ -139,6 +139,9 @@ export default { if (this.isBack){ this.queryParams.soType = "04" } + if (this.soByType){ + this.queryParams.purchaseType = this.goodsYes ? "02" : "01" + } this.loading = true const res = await getRepairSoPage(this.queryParams) this.list = res.data.records diff --git a/src/views/repair/stockOperate/Components/WaresItem.vue b/src/views/repair/stockOperate/Components/WaresItem.vue index 5542d59..9871ece 100644 --- a/src/views/repair/stockOperate/Components/WaresItem.vue +++ b/src/views/repair/stockOperate/Components/WaresItem.vue @@ -20,7 +20,8 @@ {{ scope.$index + 1 }} - + + @@ -312,6 +313,9 @@ export default { item.isStock = this.type ? count <= item.wares.stock : true }) this.items = this.items.filter(item => this.type ? item.waresStatus === '02' : item.waresAlreadyCount) + if (!this.type){ + this.items = this.items.filter(item => item.waresAlreadyCount !== item.waresBackCount) + } }finally { this.dialogLoading = false } @@ -464,7 +468,7 @@ export default {