From 59bedc3f61c43414534fda5e8e92ead1e54555af Mon Sep 17 00:00:00 2001 From: YeMingfei666 <1619116647@qq.com> Date: Thu, 17 Oct 2024 13:40:30 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=95=86=E5=93=81=E7=BC=96?= =?UTF-8?q?=E8=BE=91=E9=A1=B5=E9=9D=A2=E9=80=89=E6=8B=A9=E8=A7=84=E6=A0=BC?= =?UTF-8?q?=E5=B1=95=E7=A4=BA=E6=94=B9=E4=B8=BA=E4=BB=85=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=E8=B7=B3=E8=BD=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pageProduct/add-Product/add-Product.vue | 40 ++++++++++++------- .../choose-specifications.vue | 4 +- 2 files changed, 29 insertions(+), 15 deletions(-) diff --git a/pageProduct/add-Product/add-Product.vue b/pageProduct/add-Product/add-Product.vue index e4b6272..21dbdf0 100644 --- a/pageProduct/add-Product/add-Product.vue +++ b/pageProduct/add-Product/add-Product.vue @@ -113,32 +113,36 @@ --> @@ -1009,6 +1013,7 @@ // isShowMall: 1, // }) const FormData = reactive({ + specsInfoName: '', id: "", typeEnum: "normal", specificationsGroup: '', @@ -1110,6 +1115,11 @@ } } res.skuList = (res.skuList.length ? res.skuList : []) + let specsInfoName = '' + for (let i in res.specsInfo) { + specsInfoName = i + } + res.specsInfoName = specsInfoName $goodsData = res skuList.list = res.skuList Object.assign(FormData, res) @@ -1767,9 +1777,11 @@ padding: 0 !important; min-height: initial !important; } - ::v-deep .uni-easyinput__content-input{ + + ::v-deep .uni-easyinput__content-input { height: inherit; } + ::v-deep .none-label .uni-forms-item .uni-forms-item__label { padding: 0 !important; } diff --git a/pageProduct/add-specifications/choose-specifications.vue b/pageProduct/add-specifications/choose-specifications.vue index cb7b730..5df47e6 100644 --- a/pageProduct/add-specifications/choose-specifications.vue +++ b/pageProduct/add-specifications/choose-specifications.vue @@ -363,7 +363,7 @@ console.log(e); const item = FormData.specList.find(v => v.id === FormData.specId) FormData.selectSpec = (item.specList || []) - + } //获取规格数据 function getTbProductSpec() { @@ -549,6 +549,8 @@ } //判断验证是否通过 console.log('pass'); + const item = FormData.specList.find(v => v.id === FormData.specId) + FormData.specsInfoName = item?item.name:'' console.log(FormData); emitspecificationsSave()