Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
7fb6258b
authored
Jun 01, 2023
by
puhui999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修复善品测试发现的问题
parent
6a10a81f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
src/views/mall/product/spu/addForm.vue
+1
-1
src/views/mall/product/spu/components/BasicInfoForm.vue
+5
-4
No files found.
src/views/mall/product/spu/addForm.vue
View file @
7fb6258b
...
@@ -63,7 +63,7 @@ const formData = ref<ProductSpuApi.Spu>({
...
@@ -63,7 +63,7 @@ const formData = ref<ProductSpuApi.Spu>({
keyword
:
''
,
// 关键字
keyword
:
''
,
// 关键字
unit
:
null
,
// 单位
unit
:
null
,
// 单位
picUrl
:
''
,
// 商品封面图
picUrl
:
''
,
// 商品封面图
sliderPicUrls
:
[
''
],
// 商品轮播图
sliderPicUrls
:
[],
// 商品轮播图
introduction
:
''
,
// 商品简介
introduction
:
''
,
// 商品简介
deliveryTemplateId
:
null
,
// 运费模版
deliveryTemplateId
:
null
,
// 运费模版
brandId
:
null
,
// 商品品牌
brandId
:
null
,
// 商品品牌
...
...
src/views/mall/product/spu/components/BasicInfoForm.vue
View file @
7fb6258b
...
@@ -74,7 +74,8 @@
...
@@ -74,7 +74,8 @@
:value=
"item.id"
:value=
"item.id"
/>
/>
</el-select>
</el-select>
<el-button
class=
"ml-20px"
>
运费模板
</el-button>
<!-- TODO 可能情况:善品录入后选择运费发现下拉选择中没有对应的模版 这里需不需要做添加运费模版后选择的功能 -->
<!--
<el-button
class=
"ml-20px"
>
运费模板
</el-button>
-->
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
...
@@ -107,6 +108,9 @@
...
@@ -107,6 +108,9 @@
</el-col>
</el-col>
<!-- 多规格添加-->
<!-- 多规格添加-->
<el-col
:span=
"24"
>
<el-col
:span=
"24"
>
<el-form-item
v-if=
"!formData.specType"
>
<SkuList
ref=
"skuListRef"
:prop-form-data=
"formData"
:propertyList=
"propertyList"
/>
</el-form-item>
<el-form-item
v-if=
"formData.specType"
label=
"商品属性"
>
<el-form-item
v-if=
"formData.specType"
label=
"商品属性"
>
<el-button
class=
"mr-15px mb-10px"
@
click=
"attributesAddFormRef.open"
>
添加规格
</el-button>
<el-button
class=
"mr-15px mb-10px"
@
click=
"attributesAddFormRef.open"
>
添加规格
</el-button>
<ProductAttributes
:propertyList=
"propertyList"
@
success=
"generateSkus"
/>
<ProductAttributes
:propertyList=
"propertyList"
@
success=
"generateSkus"
/>
...
@@ -119,9 +123,6 @@
...
@@ -119,9 +123,6 @@
<SkuList
ref=
"skuListRef"
:prop-form-data=
"formData"
:propertyList=
"propertyList"
/>
<SkuList
ref=
"skuListRef"
:prop-form-data=
"formData"
:propertyList=
"propertyList"
/>
</el-form-item>
</el-form-item>
</
template
>
</
template
>
<el-form-item
v-if=
"!formData.specType"
>
<SkuList
:prop-form-data=
"formData"
:propertyList=
"propertyList"
/>
</el-form-item>
</el-col>
</el-col>
</el-row>
</el-row>
</el-form>
</el-form>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment