From 1c09e1b3b7fc39dc6e5ecb07da7f3fa89748768a Mon Sep 17 00:00:00 2001
From: CHAN-MINATO <898043143@qq.com>
Date: Thu, 9 Feb 2023 11:25:27 +0800
Subject: [PATCH] =?UTF-8?q?fix=20=E6=98=BE=E7=A4=BA=E5=A4=84=E7=90=86?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
fix 显示处理
---
pages/purchase/specs.vue | 13 ++++++++++---
1 file changed, 10 insertions(+), 3 deletions(-)
diff --git a/pages/purchase/specs.vue b/pages/purchase/specs.vue
index de051c6..6f73e6a 100644
--- a/pages/purchase/specs.vue
+++ b/pages/purchase/specs.vue
@@ -186,6 +186,7 @@
采购数量
+ {{dressingUnit}}
@@ -216,6 +217,7 @@ export default{
purchaseId:'',
specList:[[]],
specStr:"",
+ dressingUnit:"",
show:false,
formData:{
goodsName:"",
@@ -258,12 +260,16 @@ export default{
this.formData.supplier=val.supplier
var res=await request("/api/goods/queryGoodsSpecification",{
- params:{goodsName:this.formData.goodsName}
+ params:{
+ goodsName:this.formData.goodsName,
+ supplier:this.formData.supplier,
+ }
})
if(res.statu){
this.specList=[res.data.map(v=>({label:v.goodsSpecification,value:v.goodsSpecification,id:v.id}))]
this.formData.goodsSpecification=''
this.specStr=''
+ this.dressingUnit=''
}else{
uni.showModal({
title:"提示",
@@ -276,9 +282,10 @@ export default{
var res=await request("/api/goods/stockShow?goodsSpecificationId",{
params:{goodsSpecificationId:id}
})
- if(res.statu&&res.data){
+ if(res.data.packing&&res.data.heft){
this.specStr=`${res.data.packing}(${res.data.heft})`
- }
+ }else{this.specStr=''}
+ this.dressingUnit=`${res.data.dressingUnit}`
},
toAdd(){
uni.navigateTo({