Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-activity-center
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 2396617c
authored
Feb 08, 2023
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
众筹活动多商品
1 parent
be747969
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
141 additions
and
64 deletions
src/assets/icon-del.png
src/components/selectSingleProDialog/index.vue
src/views/seckillActivity/editCrowdFund.vue
src/assets/icon-del.png
0 → 100644
View file @
2396617
1.36 KB
src/components/selectSingleProDialog/index.vue
View file @
2396617
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
<!-- :okText="productList.length ? '确定' : '创建商品'" -->
<!-- :okText="productList.length ? '确定' : '创建商品'" -->
<GLDialog
<GLDialog
class=
"single-pro"
class=
"single-pro"
bigTitle=
"选择商品
"
:bigTitle=
"!multiple?'选择商品':`选择商品(已选$
{infoIdList.length}项)`
"
mode="big"
mode="big"
:before-close="handleSingleSelectClose"
:before-close="handleSingleSelectClose"
:okText="'确定'"
:okText="'确定'"
...
@@ -32,10 +32,11 @@
...
@@ -32,10 +32,11 @@
:key=
"item.id"
:key=
"item.id"
:label=
"item.id"
:label=
"item.id"
>
>
<div
<img
class=
"icon-number icon-check"
v-show=
"infoIdList.includes(item.id)"
v-show=
"infoIdList.includes(item.id)"
>
{{
infoIdList
.
findIndex
(
e
=>
item
.
id
==
e
)
+
1
}}
</div>
class=
"icon-check"
src=
"@/assets/icon-check.png"
/>
<img
<img
class=
"goods-img"
class=
"goods-img"
:src=
"item.goodsImage"
:src=
"item.goodsImage"
...
...
src/views/seckillActivity/editCrowdFund.vue
View file @
2396617
...
@@ -108,65 +108,79 @@
...
@@ -108,65 +108,79 @@
v-if=
"!isDisabled"
v-if=
"!isDisabled"
@
click=
"handleRelateProClose"
@
click=
"handleRelateProClose"
>
选择商品
</el-button>
>
选择商品
</el-button>
<
template
v-for=
"(i,index) in selectedProInfo"
>
<div
class=
"goods-box"
>
<div
<
template
v-for=
"(i,index) in selectedProInfo"
>
v-if=
"i.id && !specificationDetailList.length"
<div
style=
"margin-top: 10px"
v-if=
"i.id && !specificationDetailList.length"
:key=
"index"
:key=
"index"
>
class=
"item"
<p>
<img
class=
"img-60"
:src=
"i.goodsImage"
/>
零售价
{{
(
i
.
retailPrice
/
100
).
toFixed
(
2
)
}}
元
商品库存
{{
i
.
goodsStock
}}
件
</p>
<el-form-item
label=
"众筹价:"
prop=
"crowdFundingPrice"
:id=
"`crowdFundingPrice-$
{index}`"
>
<el-input
v-model=
"editForm.crowdFundingPrice[index]"
:data-index=
"index"
style=
"width: 150px"
type=
"number"
@
input=
"formatAppend('crowdFundingPrice',index)"
><span
slot=
"append"
>
元
</span></el-input>
<span
class=
"balancePayment"
>
尾款:
{{
editForm
.
crowdFundingPrice
[
index
]
|
filterBalancePayment
(
editForm
.
activityPrice
[
index
])
}}
</span>
</el-form-item>
<el-form-item
label=
"定金:"
prop=
"activityPrice"
:id=
"`activityPrice-$
{index}`"
>
<el-input
v-model=
"editForm.activityPrice[index]"
:data-index=
"index"
style=
"width: 150px"
type=
"number"
@
input=
"formatAppend('activityPrice',index)"
><span
slot=
"append"
>
元
</span></el-input>
</el-form-item>
<el-form-item
label=
"活动库存:"
prop=
"goodsStock"
:id=
"`goodsStock-$
{index}`"
>
>
<el-input
<div
class=
"flex-align"
>
v-model=
"editForm.goodsStock[index]"
<img
:data-index=
"index"
class=
"img-60"
style=
"width: 150px"
:src=
"i.goodsImage"
:disabled=
"isDisabled"
/>
type=
"number"
<div
class=
"goods-info"
>
@
input=
"formatAppend('goodsStock',index, true)"
<p>
商品名称:
{{
i
.
goodsName
}}
</p>
><span
slot=
"append"
>
件
</span></el-input>
<p>
零售价
{{
(
i
.
retailPrice
/
100
).
toFixed
(
2
)
}}
元
</p>
</el-form-item>
<p>
商品库存
{{
i
.
goodsStock
}}
件
</p>
</div>
</div>
</
template
>
</div>
<div
class=
"goods-form-box flex-align"
>
<el-form-item
class=
"goods-form-item"
label=
"众筹价:"
prop=
"crowdFundingPrice"
:id=
"`crowdFundingPrice-$
{index}`"
>
<el-input
v-model=
"editForm.crowdFundingPrice[index]"
:data-index=
"index"
style=
"width: 136px"
type=
"number"
@
input=
"formatAppend('crowdFundingPrice',index)"
></el-input>
元
</el-form-item>
<el-form-item
class=
"goods-form-item"
label=
"定金:"
prop=
"activityPrice"
:id=
"`activityPrice-$
{index}`"
>
<el-input
v-model=
"editForm.activityPrice[index]"
:data-index=
"index"
style=
"width: 136px"
type=
"number"
@
input=
"formatAppend('activityPrice',index)"
></el-input>
元
</el-form-item>
<div
class=
"balancePayment"
>
尾款:
<span>
{{
editForm
.
crowdFundingPrice
[
index
]
|
filterBalancePayment
(
editForm
.
activityPrice
[
index
])
}}
</span>
元
</div>
<el-form-item
class=
"goods-form-item"
label=
"活动库存:"
prop=
"goodsStock"
:id=
"`goodsStock-$
{index}`"
>
<el-input
v-model=
"editForm.goodsStock[index]"
:data-index=
"index"
style=
"width: 136px"
:disabled=
"isDisabled"
type=
"number"
@
input=
"formatAppend('goodsStock',index, true)"
></el-input>
</el-form-item>
</div>
<div
class=
"del flex-align"
>
<img
src=
"@/assets/icon-del.png"
/>
</div>
</div>
</
template
>
</div>
</div>
</div>
<div
<div
slot=
"specificationsHtml"
slot=
"specificationsHtml"
...
@@ -3315,8 +3329,10 @@ export default {
...
@@ -3315,8 +3329,10 @@ export default {
}
}
}
}
.balancePayment
{
.balancePayment
{
margin-left
:
100px
;
span
{
color
:
#666
;
font-weight
:
500
;
color
:
#ee3040
;
}
}
}
.el-switch
{
.el-switch
{
.el-switch__core
{
.el-switch__core
{
...
@@ -3456,4 +3472,64 @@ export default {
...
@@ -3456,4 +3472,64 @@ export default {
.el-input
.el-input__inner
{
.el-input
.el-input__inner
{
line-height
:
1
!important
;
line-height
:
1
!important
;
}
}
.goods-box
{
margin-top
:
10px
;
width
:
928px
;
background
:
#f9f9f9
;
border-radius
:
4px
;
overflow
:
hidden
;
.item
{
width
:
calc
(
100%
-
72px
);
height
:
114px
;
padding
:
16px
;
color
:
#333333
;
border-bottom
:
1px
dashed
rgba
(
0
,
0
,
0
,
0.15
);
position
:
relative
;
.del{
position
:
absolute
;
top
:
0
;
right
:
-40px
;
width
:
40px
;
height
:
100%
;
background-color
:
#F1F1F1
;
cursor
:
pointer
;
justify-content
:
center
;
border-bottom
:
1px
solid
#F1F1F1
;
img{
width
:
20px
;
height
:
20px
;
}
&
:hover
{
background-color
:
#EE3040
;
border-color
:
#EE3040
;
}
}
&
:last-of-type
{
border-bottom
:
none
;
.del{
border-bottom
:
none
;
}
}
.img-60
{
width
:
72px
;
height
:
72px
;
margin-right
:
10px
;
}
.goods-info
{
p
{
line-height
:
20px
;
}
}
.goods-form-box
{
justify-content
:
space-between
;
margin-top
:
8px
;
.goods-form-item
{
margin
:
0
!important
;
.el-form-item__label
{
width
:
auto
;
}
}
}
}
}
</
style
>
</
style
>
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