Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-pay
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 67a1d3b5
authored
Dec 22, 2021
by
cwq0219
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
商品-到店核销-是否需要安装
1 parent
7476f480
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
38 additions
and
5 deletions
src/assets/css/public.scss
src/views/productGroup/editProduct.vue
src/assets/css/public.scss
View file @
67a1d3b
...
...
@@ -182,6 +182,10 @@ html {
margin-right
:
20px
;
}
.marketing
.m-l-20
{
margin-left
:
20px
;
}
.marketing.p-t-20
,
.marketing
.p-t-20
{
padding-top
:
20px
;
...
...
@@ -289,16 +293,19 @@ html {
border-radius
:
4px
;
background-color
:
rgba
(
144
,
147
,
153
,
0
.3
);
}
.el-tag
{
color
:
#666
!
important
;
font-size
:
14px
!
important
;
}
.el-tag.el-tag--info
{
background
:
#fafbfe
!
important
;
border
:
1px
solid
#e8e8ea
!
important
;
border-radius
:
4px
;
color
:
#666
;
}
.el-tag.el-tag--info.el-tag--plain
{
background
:
transparent
!
important
;
}
}
\ No newline at end of file
src/views/productGroup/editProduct.vue
View file @
67a1d3b
...
...
@@ -22,6 +22,7 @@
>
<template
slot=
"describeBtn"
>
<el-button
:disabled=
"isDisabled"
type=
"default"
@
click=
"handleDescribeImgAdd"
>
+添加图片
</el-button>
<span
class=
"edit-tips m-l-20"
>
最多可添加10张图片
</span>
</
template
>
<
template
slot=
"goodsImage"
>
<p
class=
"edit-tips"
>
作为商品列表展示
</p>
...
...
@@ -491,6 +492,7 @@ export default {
supplyPrice
:
''
,
goodsStock
:
''
,
deliveryType
:
2
,
install
:
'Y'
,
expressFee
:
''
,
supplyMerchantList
:
[]
},
...
...
@@ -594,7 +596,7 @@ export default {
isDisabled
:
false
},
{
label
:
'商品
描述
'
,
label
:
'商品
详情
'
,
name
:
''
,
addHtml
:
'describeBtn'
},
...
...
@@ -604,7 +606,7 @@ export default {
type
:
'input'
,
inputType
:
'textarea'
,
width
:
'320px'
,
placeholder
:
'请输入商品
描述
'
,
placeholder
:
'请输入商品
详情
'
,
rows
:
5
,
maxlength
:
'200'
,
style
:
{
...
...
@@ -713,6 +715,26 @@ export default {
}
},
{
label
:
'是否需要安装'
,
name
:
'install'
,
type
:
'radio'
,
width
:
'320px'
,
optionId
:
'confId'
,
optionLabel
:
'confName'
,
optionList
:
[
{
confId
:
'Y'
,
confName
:
'是'
},
{
confId
:
'N'
,
confName
:
'否'
}
],
isHide
:
true
,
isDisabled
:
false
},
{
label
:
'运费'
,
name
:
'expressFee'
,
type
:
'input'
,
...
...
@@ -830,6 +852,8 @@ export default {
handleTypeChange
(
val
)
{
var
idx
=
this
.
externalFormList
[
2
].
editFormData
.
findIndex
(
item
=>
item
.
name
==
'expressFee'
)
this
.
externalFormList
[
2
].
editFormData
[
idx
].
isHide
=
val
!=
2
var
installIdx
=
this
.
externalFormList
[
2
].
editFormData
.
findIndex
(
item
=>
item
.
name
==
'install'
)
this
.
externalFormList
[
2
].
editFormData
[
installIdx
].
isHide
=
val
==
2
},
setAllDisabled
()
{
this
.
externalFormList
.
forEach
(
item
=>
{
...
...
@@ -1108,7 +1132,7 @@ export default {
recoverySpec
()
{
this
.
changeSpecs
(
true
)
},
// 恢复商品
描述
// 恢复商品
详情
recoveryDescribe
()
{
this
.
editForm
.
goodsDescList
.
forEach
((
item
,
index
)
=>
{
if
(
item
.
resType
==
2
)
{
...
...
@@ -1142,6 +1166,8 @@ export default {
describeTxt
:
''
,
descImgList
:
[]
}
// 是否需要安装
this
.
editForm
.
install
=
this
.
editForm
.
install
||
'Y'
// 运费
if
(
this
.
editForm
.
deliveryType
==
2
)
{
this
.
editForm
.
expressFee
=
(
res
.
expressFee
/
100
).
toFixed
(
2
)
...
...
@@ -1188,7 +1214,7 @@ export default {
})
}
},
// 商品
描述
-图片
// 商品
详情
-图片
handleDescribeImgAdd
()
{
if
(
this
.
editForm
.
descImgList
.
length
>=
10
)
{
this
.
$message
({
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment