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 b3380984
authored
Dec 11, 2021
by
李长胜
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'master' of
http://192.168.3.233:8090/saas/scrm-micro-marketing
2 parents
b6aa7fcc
5bace584
Show whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
174 additions
and
64 deletions
src/api/modules/customerTransform.js
src/assets/css/public.scss
src/views/couponManage/editMemberService.vue
src/views/couponManage/index.vue
src/views/customerTransform/addCustomer.vue
src/views/customerTransform/addCustomerGroup.vue
src/views/customerTransform/components/activityModel.vue
src/views/customerTransform/components/selectLabel.vue
src/views/customerTransform/detailCustomer.vue
src/views/home/index.vue
src/views/orderComment/commentDetail.vue
src/views/orderComment/index.vue
src/views/orderManage/index.vue
src/views/orderManage/orderDetail.vue
src/views/productGroup/editProduct.vue
src/api/modules/customerTransform.js
View file @
b338098
...
@@ -174,7 +174,7 @@ const getMerchant = params => {
...
@@ -174,7 +174,7 @@ const getMerchant = params => {
})
})
}
}
const
getCard
=
params
=>
{
const
getCard
=
params
=>
{
params
.
method
=
'scrm.api.equity.
card.class.list.with.page
'
params
.
method
=
'scrm.api.equity.
open.card.price.list.by.merchantid
'
return
http
({
return
http
({
url
:
'rop-scrm-equity/router'
,
url
:
'rop-scrm-equity/router'
,
method
:
'POST'
,
method
:
'POST'
,
...
@@ -200,6 +200,16 @@ const getPackage = params => {
...
@@ -200,6 +200,16 @@ const getPackage = params => {
sign
:
true
sign
:
true
})
})
}
}
const
getActivity
=
params
=>
{
params
.
method
=
'scrm.api.shopmall.activity.page'
return
http
({
url
:
'rop-scrm-shopmall/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
export
default
{
export
default
{
customerList
,
customerList
,
customerGroupList
,
customerGroupList
,
...
@@ -220,5 +230,6 @@ export default {
...
@@ -220,5 +230,6 @@ export default {
getMerchant
,
getMerchant
,
getCard
,
getCard
,
getCoupon
,
getCoupon
,
getPackage
getPackage
,
getActivity
}
}
src/assets/css/public.scss
View file @
b338098
...
@@ -289,3 +289,16 @@ html {
...
@@ -289,3 +289,16 @@ html {
border-radius
:
4px
;
border-radius
:
4px
;
background-color
:
rgba
(
144
,
147
,
153
,
0
.3
);
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
;
}
src/views/couponManage/editMemberService.vue
View file @
b338098
<!-- 编辑
代金券
-->
<!-- 编辑
会员服务
-->
<
template
>
<
template
>
<div
class=
"edit-share marketing p-t-20 edit-box"
>
<div
class=
"edit-share marketing p-t-20 edit-box"
>
<div
class=
"container edit-container"
>
<div
class=
"container edit-container"
>
...
...
src/views/couponManage/index.vue
View file @
b338098
...
@@ -59,7 +59,8 @@ export default {
...
@@ -59,7 +59,8 @@ export default {
searchForm
:
{
searchForm
:
{
couponName
:
''
,
couponName
:
''
,
discountType
:
''
,
discountType
:
''
,
status
:
''
status
:
''
,
discountTypes
:
[
2
,
3
,
4
]
},
},
tableSearchForm
:
{},
tableSearchForm
:
{},
// 搜索
// 搜索
...
@@ -156,11 +157,11 @@ export default {
...
@@ -156,11 +157,11 @@ export default {
{
{
confId
:
'4'
,
confId
:
'4'
,
confName
:
'兑换券'
confName
:
'兑换券'
},
{
confId
:
'7'
,
confName
:
'会员服务'
}
}
// {
// confId: '7',
// confName: '会员服务'
// }
],
],
statusList
:
[
statusList
:
[
{
{
...
@@ -344,7 +345,8 @@ export default {
...
@@ -344,7 +345,8 @@ export default {
this
.
searchForm
=
{
this
.
searchForm
=
{
couponName
:
''
,
couponName
:
''
,
discountType
:
''
,
discountType
:
''
,
status
:
''
status
:
''
,
discountTypes
:
[
2
,
3
,
4
]
}
}
this
.
handleSearch
()
this
.
handleSearch
()
},
},
...
...
src/views/customerTransform/addCustomer.vue
View file @
b338098
...
@@ -6,7 +6,13 @@
...
@@ -6,7 +6,13 @@
<div
class=
"title"
>
基础信息
</div>
<div
class=
"title"
>
基础信息
</div>
<div
class=
"info-box"
>
<div
class=
"info-box"
>
<div
class=
"info-content"
>
<div
class=
"info-content"
>
<el-form
:model=
"basicForm"
:rules=
"basicRules"
ref=
"basicForm"
label-width=
"120px"
>
<el-form
class=
"basic-form"
:model=
"basicForm"
:rules=
"basicRules"
ref=
"basicForm"
label-width=
"120px"
>
<el-form-item
prop=
"userList"
>
<el-form-item
prop=
"userList"
>
<label
slot=
"label"
class=
"required"
>
选择群发账号
</label>
<label
slot=
"label"
class=
"required"
>
选择群发账号
</label>
<el-button
size=
"small"
@
click=
"openMembers"
>
<el-button
size=
"small"
@
click=
"openMembers"
>
...
@@ -110,6 +116,7 @@
...
@@ -110,6 +116,7 @@
v-for=
"(tag, idx) in tagging"
v-for=
"(tag, idx) in tagging"
:key=
"idx"
:key=
"idx"
:size=
"size"
:size=
"size"
type=
"info"
closable
closable
:disable-transitions=
"false"
:disable-transitions=
"false"
@
close=
"removeTag(tag, idx)"
@
close=
"removeTag(tag, idx)"
...
@@ -127,6 +134,7 @@
...
@@ -127,6 +134,7 @@
v-for=
"(tag, idx) in basicForm.condition.labelList"
v-for=
"(tag, idx) in basicForm.condition.labelList"
:key=
"idx"
:key=
"idx"
:size=
"size"
:size=
"size"
type=
"info"
closable
closable
:disable-transitions=
"false"
:disable-transitions=
"false"
@
close=
"remove(tag)"
@
close=
"remove(tag)"
...
@@ -572,15 +580,15 @@ export default {
...
@@ -572,15 +580,15 @@ export default {
}
}
}
}
}
}
}
.basic-form
{
}
.el-form
{
padding
:
32px
0
20px
20px
;
padding
:
32px
0
20px
20px
;
/deep/.el-input
{
/deep/.el-input
{
width
:
320px
;
width
:
320px
;
}
}
}
}
}
}
.form-tips
{
.form-tips
{
font-size
:
12px
;
font-size
:
12px
;
color
:
#999
;
color
:
#999
;
...
@@ -644,6 +652,7 @@ export default {
...
@@ -644,6 +652,7 @@ export default {
height
:
26px
;
height
:
26px
;
line-height
:
24px
;
line-height
:
24px
;
margin-bottom
:
5px
;
margin-bottom
:
5px
;
//
background
:
#fff
!important
;
}
}
.tag-input
{
.tag-input
{
background
:
transparent
;
background
:
transparent
;
...
...
src/views/customerTransform/addCustomerGroup.vue
View file @
b338098
...
@@ -6,7 +6,13 @@
...
@@ -6,7 +6,13 @@
<div
class=
"title"
>
基础信息
</div>
<div
class=
"title"
>
基础信息
</div>
<div
class=
"info-box"
>
<div
class=
"info-box"
>
<div
class=
"info-content"
>
<div
class=
"info-content"
>
<el-form
:model=
"basicForm"
:rules=
"basicRules"
ref=
"basicForm"
label-width=
"120px"
>
<el-form
:model=
"basicForm"
class=
"basic-form"
:rules=
"basicRules"
ref=
"basicForm"
label-width=
"120px"
>
<el-form-item
label=
"群聊名称"
prop=
"massName"
>
<el-form-item
label=
"群聊名称"
prop=
"massName"
>
<el-input
v-model=
"basicForm.massName"
placeholder=
"群发名称仅内部可见"
maxlength=
"10"
></el-input>
<el-input
v-model=
"basicForm.massName"
placeholder=
"群发名称仅内部可见"
maxlength=
"10"
></el-input>
</el-form-item>
</el-form-item>
...
@@ -335,7 +341,7 @@ export default {
...
@@ -335,7 +341,7 @@ export default {
}
}
}
}
.
el
-form
{
.
basic
-form
{
padding
:
32px
0
20px
66px
;
padding
:
32px
0
20px
66px
;
/deep/.el-input
{
/deep/.el-input
{
width
:
320px
;
width
:
320px
;
...
@@ -414,6 +420,7 @@ export default {
...
@@ -414,6 +420,7 @@ export default {
height
:
26px
;
height
:
26px
;
line-height
:
24px
;
line-height
:
24px
;
margin-bottom
:
5px
;
margin-bottom
:
5px
;
background
:
#fff
!important
;
}
}
.tag-input
{
.tag-input
{
background
:
transparent
;
background
:
transparent
;
...
...
src/views/customerTransform/components/activityModel.vue
View file @
b338098
...
@@ -122,12 +122,18 @@ export default {
...
@@ -122,12 +122,18 @@ export default {
pageNum
:
1
,
pageNum
:
1
,
pageSize
:
12
,
pageSize
:
12
,
tableTotal
:
0
,
tableTotal
:
0
,
selectItem
:
{}
selectItem
:
{
id
:
''
}
}
}
},
},
methods
:
{
methods
:
{
handleSelectItem
(
item
)
{
handleSelectItem
(
item
)
{
this
.
selectItem
=
item
this
.
selectItem
=
item
if
(
item
.
equityClassId
)
{
this
.
selectItem
.
id
=
item
.
equityClassId
}
console
.
log
(
this
.
selectItem
)
},
},
handleSelect
()
{
handleSelect
()
{
if
(
!
this
.
selectItem
.
id
)
{
if
(
!
this
.
selectItem
.
id
)
{
...
...
src/views/customerTransform/components/selectLabel.vue
View file @
b338098
...
@@ -49,6 +49,7 @@
...
@@ -49,6 +49,7 @@
class=
"tag-selected-item"
class=
"tag-selected-item"
:key=
"idx"
:key=
"idx"
v-if=
"tag"
v-if=
"tag"
type=
"info"
closable
closable
:disable-transitions=
"false"
:disable-transitions=
"false"
@
close=
"remove(item, idx)"
@
close=
"remove(item, idx)"
...
...
src/views/customerTransform/detailCustomer.vue
View file @
b338098
...
@@ -59,7 +59,10 @@
...
@@ -59,7 +59,10 @@
</div>
</div>
</div>
</div>
</div>
</div>
<el-empty
v-else
image-size=
"200"
></el-empty>
<div
class=
"model-item-empty"
v-else
v-loading=
"loading"
>
<img
src=
"@/assets/empty.png"
/>
<div
class=
"empty-item"
>
暂无数据
</div>
</div>
</div>
</div>
</div>
</div>
<div
class=
"detail-modular"
>
<div
class=
"detail-modular"
>
...
@@ -111,7 +114,10 @@
...
@@ -111,7 +114,10 @@
</div>
</div>
</div>
</div>
</div>
</div>
<el-empty
v-else
image-size=
"200"
></el-empty>
<div
class=
"model-item-empty"
v-else
v-loading=
"loading"
>
<img
src=
"@/assets/empty.png"
/>
<div
class=
"empty-item"
>
暂无数据
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -283,7 +289,7 @@ export default {
...
@@ -283,7 +289,7 @@ export default {
align-items
:
center
;
align-items
:
center
;
font-size
:
16px
;
font-size
:
16px
;
color
:
#333
;
color
:
#333
;
font-weight
:
5
00
;
font-weight
:
6
00
;
line-height
:
22px
;
line-height
:
22px
;
margin-bottom
:
14px
;
margin-bottom
:
14px
;
span
{
span
{
...
@@ -294,6 +300,7 @@ export default {
...
@@ -294,6 +300,7 @@ export default {
.send
{
.send
{
position
:
relative
;
position
:
relative
;
color
:
#666
;
color
:
#666
;
font-weight
:
normal
;
span
{
span
{
img
{
img
{
position
:
absolute
;
position
:
absolute
;
...
@@ -307,6 +314,7 @@ export default {
...
@@ -307,6 +314,7 @@ export default {
background-color
:
#eb4e4e
;
background-color
:
#eb4e4e
;
color
:
#fff
;
color
:
#fff
;
border-radius
:
2px
;
border-radius
:
2px
;
font-weight
:
normal
;
}
}
.customer-table
{
.customer-table
{
display
:
flex
;
display
:
flex
;
...
@@ -339,11 +347,13 @@ export default {
...
@@ -339,11 +347,13 @@ export default {
}
}
.el-menu-item
{
.el-menu-item
{
line-height
:
56px
;
line-height
:
56px
;
font-size
:
16px
;
height
:
46px
;
height
:
46px
;
}
}
.el-menu--horizontal
>
.el-menu-item.is-active
{
.el-menu--horizontal
>
.el-menu-item.is-active
{
border-bottom-color
:
#5850ff
;
border-bottom-color
:
#5850ff
;
color
:
#5850ff
;
color
:
#5850ff
;
font-weight
:
600
;
}
}
}
}
.footer-panel
{
.footer-panel
{
...
@@ -367,15 +377,22 @@ export default {
...
@@ -367,15 +377,22 @@ export default {
box-sizing
:
border-box
;
box-sizing
:
border-box
;
padding
:
40px
0
;
padding
:
40px
0
;
}
}
::-webkit-scrollbar
{
/*滚动条整体样式*/
width
:
6px
;
height
:
4px
;
}
::-webkit-scrollbar-thumb
{
.model-item-empty
{
/*滚动条里面小方块*/
height
:
200px
;
border-radius
:
4px
;
>
img
{
background-color
:
rgba
(
144
,
147
,
153
,
0.3
);
display
:
block
;
margin
:
50px
auto
0px
;
width
:
60px
;
height
:
auto
;
}
.empty-item
{
text-align
:
center
;
font-size
:
14px
;
font-weight
:
400
;
color
:
#000000
;
line-height
:
22px
;
margin-bottom
:
30px
;
}
}
}
</
style
>
</
style
>
src/views/home/index.vue
View file @
b338098
...
@@ -102,6 +102,7 @@
...
@@ -102,6 +102,7 @@
</div>
</div>
<div
class=
"pie-box"
>
<div
class=
"pie-box"
>
<PieChart
:list
.
sync=
"coupon.list"
class=
"coupons-right"
></PieChart>
<PieChart
:list
.
sync=
"coupon.list"
class=
"coupons-right"
></PieChart>
<div
v-show=
"!coupon.list"
class=
"no-data"
>
暂无数据
</div>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -213,7 +214,7 @@
...
@@ -213,7 +214,7 @@
</div>
</div>
<div
class=
"bar-box"
>
<div
class=
"bar-box"
>
<BarChart
:list
.
sync=
"equity.countMerchantOrderList"
></BarChart>
<BarChart
:list
.
sync=
"equity.countMerchantOrderList"
></BarChart>
<
!--
<div
v-else
>
暂无数据
</div>
--
>
<
div
class=
"no-data"
v-if=
"!equity.countMerchantOrderList"
>
暂无数据
</div
>
</div>
</div>
<div>
<div>
...
@@ -225,7 +226,7 @@
...
@@ -225,7 +226,7 @@
>
{{
equity
.
totalProductionValue
?
equity
.
totalProductionValue
:
'--'
}}
</span>
元
>
{{
equity
.
totalProductionValue
?
equity
.
totalProductionValue
:
'--'
}}
</span>
元
</span>
</span>
</div>
</div>
<div
class=
"data-tips"
>
注:仅体现套餐售卖数最多的前5
单
</div>
<div
class=
"data-tips"
>
注:仅体现套餐售卖数最多的前5
类
</div>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -266,7 +267,7 @@
...
@@ -266,7 +267,7 @@
<div
class=
"bottom-content"
>
<div
class=
"bottom-content"
>
<div
class=
"line-box"
>
<div
class=
"line-box"
>
<LineChart
:list
.
sync=
"order.list"
></LineChart>
<LineChart
:list
.
sync=
"order.list"
></LineChart>
<
!--
<div
v-show=
"!order.list"
class=
"no-data"
>
暂无数据
</div>
--
>
<
div
v-show=
"!order.list"
class=
"no-data"
>
暂无数据
</div
>
</div>
</div>
<div
class=
"bottom-right"
>
<div
class=
"bottom-right"
>
<div
class=
"bottom-right-item"
>
<div
class=
"bottom-right-item"
>
...
@@ -710,7 +711,7 @@ export default {
...
@@ -710,7 +711,7 @@ export default {
display
:
inline-block
;
display
:
inline-block
;
}
}
&
-time
{
&
-time
{
width
:
31%
;
width
:
31
.5
%
;
}
}
&
-picker
{
&
-picker
{
//
width
:
240px
;
//
width
:
240px
;
...
@@ -786,28 +787,31 @@ export default {
...
@@ -786,28 +787,31 @@ export default {
}
}
}
}
.line-box
{
.line-box
{
//
position
:
relative
;
position
:
relative
;
display
:
flex
;
justify-content
:
center
;
align-items
:
center
;
height
:
196px
;
height
:
196px
;
width
:
76.7%
;
width
:
76.7%
;
min-width
:
890px
;
min-width
:
890px
;
}
}
.bar-box
{
.bar-box
{
//
position
:
relative
;
position
:
relative
;
display
:
flex
;
justify-content
:
center
;
align-items
:
center
;
width
:
100%
;
width
:
100%
;
height
:
240px
;
height
:
240px
;
}
}
.pie-box
{
.pie-box
{
//
position
:
relative
;
position
:
relative
;
width
:
50%
;
height
:
185px
;
}
.no-data
{
position
:
absolute
;
background-color
:
#ffffff
;
width
:
100%
;
height
:
100%
;
top
:
0
;
display
:
flex
;
display
:
flex
;
justify-content
:
center
;
justify-content
:
center
;
align-items
:
center
;
align-items
:
center
;
width
:
50%
;
color
:
#666
;
height
:
185px
;
}
}
</
style
>
</
style
>
src/views/orderComment/commentDetail.vue
View file @
b338098
...
@@ -19,7 +19,9 @@
...
@@ -19,7 +19,9 @@
<div
v-show=
"commentInfo.imgUrls"
class=
"m-t-24"
>
<div
v-show=
"commentInfo.imgUrls"
class=
"m-t-24"
>
<span
class=
"comment-label"
>
图片:
</span>
<span
class=
"comment-label"
>
图片:
</span>
<div
class=
"flex"
style=
"flex-wrap: wrap;"
>
<div
class=
"flex"
style=
"flex-wrap: wrap;"
>
<img
class=
"img-100 comment-img"
v-for=
"(item, index) in commentInfo.imgUrls"
:key=
"index"
:src=
"item"
/>
<span
v-for=
"(item, index) in commentInfo.imgUrls"
:key=
"index"
>
<el-image
class=
"img-60 comment-img"
:src=
"item"
:preview-src-list=
"[item]"
></el-image>
</span>
</div>
</div>
</div>
</div>
</div>
</div>
...
...
src/views/orderComment/index.vue
View file @
b338098
...
@@ -17,7 +17,7 @@
...
@@ -17,7 +17,7 @@
<el-button
v-if=
"scope.scope.commentStatus == '0'"
type=
"text"
@
click=
"handleRevoke(scope.scope)"
>
发布
</el-button>
<el-button
v-if=
"scope.scope.commentStatus == '0'"
type=
"text"
@
click=
"handleRevoke(scope.scope)"
>
发布
</el-button>
<el-button
v-if=
"scope.scope.commentStatus == '1'"
type=
"text"
@
click=
"handleRevoke(scope.scope)"
>
撤回
</el-button>
<el-button
v-if=
"scope.scope.commentStatus == '1'"
type=
"text"
@
click=
"handleRevoke(scope.scope)"
>
撤回
</el-button>
<el-button
type=
"text"
@
click=
"handleDetail(scope.scope)"
>
查看
</el-button>
<el-button
type=
"text"
@
click=
"handleDetail(scope.scope)"
>
查看
</el-button>
<
el-button
type=
"text"
@
click=
"handleDelete(scope.scope)"
>
删除
</el-button
>
<
!--
<el-button
type=
"text"
@
click=
"handleDelete(scope.scope)"
>
删除
</el-button>
--
>
</div>
</div>
</GLTable>
</GLTable>
<!-- 表格区域 end -->
<!-- 表格区域 end -->
...
...
src/views/orderManage/index.vue
View file @
b338098
...
@@ -67,7 +67,9 @@
...
@@ -67,7 +67,9 @@
<span>
{{
orderInfo
.
remark
||
'-'
}}
</span>
<span>
{{
orderInfo
.
remark
||
'-'
}}
</span>
</el-form-item>
</el-form-item>
<el-form-item
v-if=
"orderInfo.imgUrls"
>
<el-form-item
v-if=
"orderInfo.imgUrls"
>
<img
class=
"img-60"
v-for=
"(item, index) in orderInfo.imgUrls"
:key=
"index"
:src=
"item"
/>
<span
v-for=
"(item, index) in orderInfo.imgUrls"
:key=
"index"
>
<el-image
class=
"img-60"
:src=
"item"
:preview-src-list=
"[item]"
></el-image>
</span>
</el-form-item>
</el-form-item>
<el-form-item
label=
"审核是否通过"
>
<el-form-item
label=
"审核是否通过"
>
<el-radio-group
v-model=
"examineForm.isAllowed"
>
<el-radio-group
v-model=
"examineForm.isAllowed"
>
...
@@ -163,12 +165,12 @@ export default {
...
@@ -163,12 +165,12 @@ export default {
}
}
}
}
}
}
!
targetVal
&&
(
this
.
searchForm
.
orderStatuses
=
isAdd
?
this
.
searchFormData
[
1
].
optionList
.
map
(
item
=>
item
.
confId
)
:
[])
!
targetVal
&&
(
this
.
searchForm
.
orderStatuses
=
isAdd
?
this
.
searchFormData
1
[
1
].
optionList
.
map
(
item
=>
item
.
confId
)
:
[])
if
(
targetVal
)
{
if
(
targetVal
)
{
var
idx
=
value
.
findIndex
(
item
=>
item
==
''
)
var
idx
=
value
.
findIndex
(
item
=>
item
==
''
)
if
(
idx
!=
-
1
&&
this
.
searchForm
.
orderStatuses
.
length
<
this
.
searchFormData
[
1
].
optionList
.
length
)
{
if
(
idx
!=
-
1
&&
this
.
searchForm
.
orderStatuses
.
length
<
this
.
searchFormData
1
[
1
].
optionList
.
length
)
{
this
.
searchForm
.
orderStatuses
.
splice
(
idx
,
1
)
this
.
searchForm
.
orderStatuses
.
splice
(
idx
,
1
)
}
else
if
(
idx
==
-
1
&&
this
.
searchForm
.
orderStatuses
.
length
==
this
.
searchFormData
[
1
].
optionList
.
length
-
1
)
{
}
else
if
(
idx
==
-
1
&&
this
.
searchForm
.
orderStatuses
.
length
==
this
.
searchFormData
1
[
1
].
optionList
.
length
-
1
)
{
this
.
searchForm
.
orderStatuses
.
push
(
''
)
this
.
searchForm
.
orderStatuses
.
push
(
''
)
}
}
}
}
...
...
src/views/orderManage/orderDetail.vue
View file @
b338098
...
@@ -44,8 +44,11 @@
...
@@ -44,8 +44,11 @@
</el-form-item>
</el-form-item>
</el-row>
</el-row>
</el-form>
</el-form>
<div
class=
"flex"
>
<div
class=
"flex"
style=
"padding: 0 30px;"
>
<img
v-for=
"(item, index) in orderRefund.imgUrls"
:key=
"index"
class=
"img-60"
:src=
"item"
/>
<!--
<img
v-for=
"(item, index) in orderRefund.imgUrls"
:key=
"index"
class=
"img-60"
:src=
"item"
/>
-->
<span
v-for=
"(item, index) in orderRefund.imgUrls"
:key=
"index"
>
<el-image
class=
"img-60 comment-img"
:src=
"item"
:preview-src-list=
"[item]"
></el-image>
</span>
</div>
</div>
</div>
</div>
<div
class=
"footer"
:style=
"
{ left: footerLeft + 'px', width: footerWidth + 'px' }">
<div
class=
"footer"
:style=
"
{ left: footerLeft + 'px', width: footerWidth + 'px' }">
...
@@ -224,4 +227,8 @@ export default {
...
@@ -224,4 +227,8 @@ export default {
.marketing.order-detail
.show-table
td
{
.marketing.order-detail
.show-table
td
{
padding-right
:
20px
;
padding-right
:
20px
;
}
}
.order-detail
.comment-img
{
margin-top
:
10px
;
margin-right
:
20px
;
}
</
style
>
</
style
>
src/views/productGroup/editProduct.vue
View file @
b338098
...
@@ -91,10 +91,11 @@
...
@@ -91,10 +91,11 @@
<el-button
:disabled=
"isDisabled"
type=
"default"
@
click=
"handleSpecsEdit(1)"
>
+添加规格项目
</el-button>
<el-button
:disabled=
"isDisabled"
type=
"default"
@
click=
"handleSpecsEdit(1)"
>
+添加规格项目
</el-button>
</
template
>
</
template
>
<div
slot=
"proSpecs"
:style=
"{ 'margin-left': labelWidth }"
>
<div
slot=
"proSpecs"
:style=
"{ 'margin-left': labelWidth }"
>
<div
v-for=
"(subItem, subIndex) in specificationDetailList"
:key=
"subIndex"
>
<div
class=
"sepce-box"
v-for=
"(subItem, subIndex) in specificationDetailList"
:key=
"subIndex"
>
<div>
<div>
<span>
规格名:
</span>
<span
class=
"specs-title"
>
规格名:
</span>
<span>
{{ subItem.specificationName }}
</span>
<span
class=
"specs-item"
>
{{ subItem.specificationName }}
</span>
<div
style=
"position: absolute; right: 10px; top: 10px;"
>
<el-button
<el-button
v-show=
"!isDisabled"
v-show=
"!isDisabled"
type=
"text"
type=
"text"
...
@@ -106,12 +107,13 @@
...
@@ -106,12 +107,13 @@
@
click=
"handleSpecsDelete(subIndex)"
@
click=
"handleSpecsDelete(subIndex)"
>
删除
</el-button>
>
删除
</el-button>
</div>
</div>
</div>
<div
class=
"flex"
>
<div
class=
"flex"
>
<span
style=
"width: 56px;"
>
规格值:
</span>
<span
style=
"width: 56px;"
>
规格值:
</span>
<div
style=
"width: calc(100% - 56px);"
>
<div
style=
"width: calc(100% - 56px);"
>
<div>
<div>
<span
<span
class=
"specs-
label
"
class=
"specs-
item
"
v-for=
"(n, idx) in subItem.specificationValueList"
v-for=
"(n, idx) in subItem.specificationValueList"
:key=
"idx"
:key=
"idx"
>
{{ n.specificationValue }}
</span>
>
{{ n.specificationValue }}
</span>
...
@@ -125,7 +127,7 @@
...
@@ -125,7 +127,7 @@
<div
:style=
"{ width: `calc(100% - ${labelWidth} )` }"
>
<div
:style=
"{ width: `calc(100% - ${labelWidth} )` }"
>
<table
class=
"table-spesc"
>
<table
class=
"table-spesc"
>
<tbody>
<tbody>
<tr>
<tr
style=
"padding: 17px 0; background: #F4F6FC; box-shadow: 0px 1px 5px 0px rgba(38, 38, 38, 0.1);"
>
<td
<td
:style=
"{ width: specsWidth }"
:style=
"{ width: specsWidth }"
v-for=
"(subItem, subIndex) in specificationDetailList"
v-for=
"(subItem, subIndex) in specificationDetailList"
...
@@ -136,10 +138,10 @@
...
@@ -136,10 +138,10 @@
</tr>
</tr>
</tbody>
</tbody>
</table>
</table>
<table
class=
"table-spesc"
style=
"max-height: 400px;"
>
<table
class=
"table-spesc"
style=
"max-height: 400px;
overflow: scroll;
"
>
<tbody>
<tbody>
<tr
<tr
style=
"border-bottom: 1px solid rgb(235, 235, 235);"
style=
"border-bottom: 1px solid rgb(235, 235, 235);
height: 54px; line-height: 54px;
"
v-for=
"(subItem, subIndex) in nameToValSpecsList"
v-for=
"(subItem, subIndex) in nameToValSpecsList"
:key=
"subIndex"
:key=
"subIndex"
>
>
...
@@ -147,6 +149,7 @@
...
@@ -147,6 +149,7 @@
:style=
"{ width: specsWidth }"
:style=
"{ width: specsWidth }"
v-for=
"(n, idx) in subItem.specsValueList"
v-for=
"(n, idx) in subItem.specsValueList"
:key=
"idx"
:key=
"idx"
:title=
"n"
>
{{ n }}
</td>
>
{{ n }}
</td>
<td
:style=
"{ width: specsWidth }"
>
<td
:style=
"{ width: specsWidth }"
>
<div
v-if=
"routeInfo.groupOrStore == 1"
>
<div
v-if=
"routeInfo.groupOrStore == 1"
>
...
@@ -633,7 +636,7 @@ export default {
...
@@ -633,7 +636,7 @@ export default {
},
},
{
{
// label: '规格明细',
// label: '规格明细',
name
:
''
,
name
:
'
specsDetail
'
,
addHtml
:
'specsDetail'
addHtml
:
'specsDetail'
},
},
{
{
...
@@ -783,6 +786,7 @@ export default {
...
@@ -783,6 +786,7 @@ export default {
this
.
getBaseDate
().
then
(()
=>
{
this
.
getBaseDate
().
then
(()
=>
{
this
.
getOptionsList
(
0
,
'editFormData'
,
false
)
this
.
getOptionsList
(
0
,
'editFormData'
,
false
)
})
})
this
.
retailStockRule
()
this
.
isDisabled
=
this
.
routeInfo
.
addOrEdit
==
3
this
.
isDisabled
=
this
.
routeInfo
.
addOrEdit
==
3
this
.
routeInfo
.
groupOrStore
==
2
&&
this
.
storeNoExitAttr
()
this
.
routeInfo
.
groupOrStore
==
2
&&
this
.
storeNoExitAttr
()
this
.
routeInfo
.
addOrEdit
!=
1
?
this
.
getInfo
()
:
''
this
.
routeInfo
.
addOrEdit
!=
1
?
this
.
getInfo
()
:
''
...
@@ -854,12 +858,18 @@ export default {
...
@@ -854,12 +858,18 @@ export default {
},
},
retailStockRule
()
{
retailStockRule
()
{
var
list
=
[
'retailPrice'
,
'goodsStock'
]
var
list
=
[
'retailPrice'
,
'goodsStock'
]
var
otherList
=
[
'specificationDetailList'
,
'specsDetail'
]
var
idx
=
''
var
idx
=
''
list
.
forEach
(
item
=>
{
list
.
forEach
(
item
=>
{
// this.externalFormList[1].editRule[item][0].required = !this.specificationDetailList.length
// this.externalFormList[1].editRule[item][0].required = !this.specificationDetailList.length
idx
=
this
.
externalFormList
[
1
].
editFormData
.
findIndex
(
subItem
=>
subItem
.
name
==
item
)
idx
=
this
.
externalFormList
[
1
].
editFormData
.
findIndex
(
subItem
=>
subItem
.
name
==
item
)
this
.
externalFormList
[
1
].
editFormData
[
idx
].
isHide
=
!!
this
.
specificationDetailList
.
length
this
.
externalFormList
[
1
].
editFormData
[
idx
].
isHide
=
!!
this
.
specificationDetailList
.
length
})
})
otherList
.
forEach
(
item
=>
{
idx
=
this
.
externalFormList
[
1
].
editFormData
.
findIndex
(
subItem
=>
subItem
.
name
==
item
)
console
.
log
(
this
.
externalFormList
[
1
].
editFormData
[
idx
])
this
.
externalFormList
[
1
].
editFormData
[
idx
].
isHide
=
!
this
.
specificationDetailList
.
length
})
},
},
handleRetailPriceInput
(
e
,
idx
)
{
handleRetailPriceInput
(
e
,
idx
)
{
var
newValue
=
e
.
target
.
value
var
newValue
=
e
.
target
.
value
...
@@ -1330,14 +1340,14 @@ export default {
...
@@ -1330,14 +1340,14 @@ export default {
}
}
</
script
>
</
script
>
<
style
>
<
style
>
.edit-pro
.specs-label
{
/*
.edit-pro .specs-label {
padding: 1px 10px;
padding: 1px 10px;
font-size: 13px;
font-size: 13px;
border-radius: 2px;
border-radius: 2px;
display: inline-block;
display: inline-block;
border: 1px solid #cccccc;
border: 1px solid #cccccc;
margin-right: 10px;
margin-right: 10px;
}
}
*/
.edit-pro
.spesc-label
{
.edit-pro
.spesc-label
{
box-sizing
:
border-box
;
box-sizing
:
border-box
;
width
:
110px
;
width
:
110px
;
...
@@ -1394,7 +1404,7 @@ export default {
...
@@ -1394,7 +1404,7 @@ export default {
padding
:
6px
11px
;
padding
:
6px
11px
;
}
}
.edit-pro
.wechat-container
.price
{
.edit-pro
.wechat-container
.price
{
font-size
:
2
8
px
;
font-size
:
2
4
px
;
color
:
#fc5b32
;
color
:
#fc5b32
;
margin-right
:
4px
;
margin-right
:
4px
;
}
}
...
@@ -1406,7 +1416,7 @@ export default {
...
@@ -1406,7 +1416,7 @@ export default {
}
}
.edit-pro
.wechat-container
.good-name
{
.edit-pro
.wechat-container
.good-name
{
font-size
:
1
8
px
;
font-size
:
1
2
px
;
width
:
200px
;
width
:
200px
;
font-weight
:
bold
;
font-weight
:
bold
;
margin
:
8px
0
6px
;
margin
:
8px
0
6px
;
...
@@ -1458,6 +1468,25 @@ export default {
...
@@ -1458,6 +1468,25 @@ export default {
.edit-pro
.table-spesc
.el-input--small.border-red
.el-input__inner
{
.edit-pro
.table-spesc
.el-input--small.border-red
.el-input__inner
{
border
:
1px
solid
#eb4e4e
;
border
:
1px
solid
#eb4e4e
;
}
}
.edit-pro
.sepce-box
{
position
:
relative
;
padding
:
30px
34px
;
color
:
#3A3A3A
;
background
:
#F7F7F7
;
border
:
1px
solid
#DCDFE6
;
margin-bottom
:
10px
;
}
.edit-pro
.sepce-box
.specs-title
{
height
:
60px
;
line-height
:
60px
;
}
.edit-pro
.sepce-box
.specs-item
{
background
:
#E6E9FF
;
border-radius
:
4px
;
padding
:
9px
16px
;
color
:
#717171
;
margin-right
:
12px
;
}
.color-red
{
.color-red
{
color
:
#eb4e4e
;
color
:
#eb4e4e
;
cursor
:
pointer
;
cursor
:
pointer
;
...
...
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