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 f1630ab2
authored
Dec 10, 2021
by
cwq0219
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
样式
1 parent
1fc554be
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
45 additions
and
18 deletions
src/assets/css/public.scss
src/components/glsx-combi-form/index.vue
src/components/selectMutiProDialog/index.vue
src/views/classifyList/editClassify.vue
src/views/productGroup/editProduct.vue
src/assets/css/public.scss
View file @
f1630ab
...
...
@@ -195,6 +195,12 @@ html {
text-align
:
center
;
}
.marketing
.edit-tips
{
line-height
:
20px
;
font-size
:
14px
;
color
:
#999999
;
}
.marketing
.footer
{
position
:
fixed
;
bottom
:
0
;
...
...
src/components/glsx-combi-form/index.vue
View file @
f1630ab
...
...
@@ -93,6 +93,7 @@
</span>
</div>
</
template
>
<slot
:name=
"item.suffixSlot"
:scope=
"item"
></slot>
</template>
</el-form-item>
</template>
...
...
src/components/selectMutiProDialog/index.vue
View file @
f1630ab
<!-- 选择商品弹窗 -->
<
template
>
<glsx-dialog
class=
"muti-pro"
title=
"选择商品"
:isVisible
.
sync=
"isMutiSelectVisible"
width=
"70%"
@
confirmDialog=
"handleMutiSelectConfirm"
@
closeDialog=
"handleMutiSelectClose"
>
<GLTable
ref=
"mutiProRef"
:tableData=
"productList"
:hasPage=
"false
"
:tableParams=
"tableParams"
@
refreshTable=
"getList"
>
<span
slot=
"goodsImage"
slot-scope=
"scope"
>
<img
class=
"m-t-10 img-60"
:src=
"scope.scope.goodsImage"
/>
</span>
</GLTable>
<GLTable
v-loading=
"loading"
ref=
"mutiProRef"
:tableData=
"productList"
:hasPage=
"false"
:noDataImg=
"url
"
:tableParams=
"tableParams"
@
refreshTable=
"getList"
>
<span
slot=
"goodsImage"
slot-scope=
"scope"
>
<img
class=
"m-t-10 img-60"
:src=
"scope.scope.goodsImage"
/>
</span>
</GLTable>
</glsx-dialog>
</
template
>
<
script
>
// import { getGoodsList } from '@/api/modules/common'
import
url
from
"@/assets/empty.png"
import
glsxDialog
from
'@/components/glsx-dialog'
export
default
{
name
:
'selectMutiProDialog'
,
...
...
@@ -19,6 +20,8 @@ export default {
// 表格组件
// getListApi: this.$apis.common.getGoodsListApi,
productList
:
[],
url
:
url
,
loading
:
true
,
// pageConf: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'total' },
// 表格参数
tableParams
:
{
...
...
@@ -65,7 +68,7 @@ export default {
glsxDialog
},
moun
ted
()
{
crea
ted
()
{
this
.
getList
(
true
)
},
...
...
@@ -78,9 +81,10 @@ export default {
pageSize
:
isMounted
?
10
:
this
.
$refs
.
mutiProRef
.
page
.
pageSize
}
var
that
=
this
this
.
loading
=
true
this
.
$apis
.
common
.
getGoodsListApi
(
params
).
then
(
res
=>
{
// console.log(res)
this
.
productList
=
res
this
.
loading
=
false
// this.$refs.mutiProRef.tableTotal = res.total
this
.
productList
.
forEach
(
function
(
item
)
{
item
.
saleAmount
=
item
.
goodsStatistics
.
saleAmount
...
...
@@ -108,10 +112,11 @@ export default {
}
})
this
.
recoverySelected
()
this
.
$refs
.
mutiProRef
.
tableHeightValues
=
'50vh'
})
},
recoverySelected
()
{
if
(
this
.
selectedProList
.
length
)
{
if
(
this
.
selectedProList
&&
this
.
selectedProList
.
length
)
{
this
.
selectedProList
.
forEach
(
row
=>
{
this
.
$refs
.
mutiProRef
.
$refs
[
this
.
tableParams
.
mutiSelectName
+
'MutiTable'
].
toggleRowSelection
(
row
)
})
...
...
@@ -119,7 +124,7 @@ export default {
},
handleMutiSelectConfirm
()
{
var
selectedData
=
this
.
$refs
.
mutiProRef
.
mutiSelectArr
[
this
.
tableParams
.
mutiSelectName
]
console
.
log
(
selectedData
)
//
console.log(selectedData)
this
.
$emit
(
'handleMutiSelectConfirm'
,
selectedData
)
},
handleMutiSelectClose
()
{
...
...
src/views/classifyList/editClassify.vue
View file @
f1630ab
...
...
@@ -5,7 +5,7 @@
<p
class=
"edit-title"
>
{{
title
}}
</p>
<glsx-combi-form
class=
"edit-form-container m-r-20"
ref=
"editFormRef"
:isEdit=
"isEdit"
defaultWidth=
"320px"
:isBlock=
"true"
:formRef=
"editChildRef"
:formObj=
"editForm"
:formData=
"editFormData"
:formRules=
"editRule"
>
<div
slot=
"selectProBtn"
slot-scope=
"scope"
class=
"select-pro"
>
<el-button
type=
"
primary"
@
click=
"handleMutiProClose(scope)"
>
{{
editForm
.
goodsRefList
.
length
?
'更换'
:
'请选择
'
}}
</el-button>
<el-button
type=
"
default"
@
click=
"handleMutiProClose(scope)"
>
{{
editForm
.
goodsRefList
.
length
?
'更换商品'
:
'+选择商品
'
}}
</el-button>
</div>
<div
slot=
"proTable"
class=
"select-pro"
>
<GLTable
v-show=
"editForm.goodsRefList.length"
:hasPage=
"false"
:tableParams=
"tableParams"
:tableData=
"editForm.goodsRefList"
>
...
...
@@ -142,7 +142,7 @@ export default {
this
.
selectedProList
=
this
.
$common
.
utils
.
deepClone
(
this
.
editForm
.
goodsRefList
)
this
.
handleMutiSelectClose
()
},
handleMutiSelectConfirm
(
selectedData
)
{
handleMutiSelectConfirm
(
selectedData
=
[]
)
{
this
.
editForm
.
goodsRefList
=
selectedData
this
.
handleMutiSelectClose
()
},
...
...
src/views/productGroup/editProduct.vue
View file @
f1630ab
...
...
@@ -21,7 +21,19 @@
@
handleImgDelete=
"handleFormImgDelete"
>
<template
slot=
"describeBtn"
>
<el-button
:disabled=
"isDisabled"
type=
"primary"
@
click=
"handleDescribeImgAdd"
>
添加图片
</el-button>
<el-button
:disabled=
"isDisabled"
type=
"default"
@
click=
"handleDescribeImgAdd"
>
+添加图片
</el-button>
</
template
>
<
template
slot=
"goodsImage"
>
<p
class=
"edit-tips"
>
作为商品列表展示
</p>
<p
class=
"edit-tips"
>
建议图片分辨率400*400
</p>
</
template
>
<
template
slot=
"goodsDetailImageList"
>
<p
class=
"edit-tips"
>
作为商品详情页顶部展示
</p>
<p
class=
"edit-tips"
>
建议图片分辨率800*800
</p>
</
template
>
<
template
slot=
"goodsVideo"
>
<p
class=
"edit-tips"
>
作为商品详情页顶部展示
</p>
<p
class=
"edit-tips"
>
格式建议mp4,大小不超过50M
</p>
</
template
>
<div
:style=
"{ 'margin-left': labelWidth }"
slot=
"descImgs"
slot-scope=
"scope"
>
<div
...
...
@@ -76,7 +88,7 @@
</div>
</div>
<
template
slot=
"proSpecsBtn"
>
<el-button
:disabled=
"isDisabled"
type=
"
primary"
@
click=
"handleSpecsEdit(1)"
>
添加规格
</el-button>
<el-button
:disabled=
"isDisabled"
type=
"
default"
@
click=
"handleSpecsEdit(1)"
>
+添加规格项目
</el-button>
</
template
>
<div
slot=
"proSpecs"
:style=
"{ 'margin-left': labelWidth }"
>
<div
v-for=
"(subItem, subIndex) in specificationDetailList"
:key=
"subIndex"
>
...
...
@@ -193,20 +205,20 @@
</div>
</div>
<
template
slot=
"retailPrice"
>
<p>
作为商品商城售卖的价格
</p>
<p
class=
"edit-tips"
>
作为商品商城售卖的价格
</p>
</
template
>
<
template
slot=
"originalPrice"
>
<p>
作为商品划线展示的价格
</p>
<p
class=
"edit-tips"
>
作为商品划线展示的价格
</p>
</
template
>
<
template
slot=
"supplyPrice"
>
<p>
作为货源供给门店的价格
</p>
<p
class=
"edit-tips"
>
作为货源供给门店的价格
</p>
</
template
>
<div
slot=
"selectMerchant"
slot-scope=
"scope"
class=
"select-merchant"
>
<el-button
:disabled=
"isDisabled"
type=
"
primary
"
type=
"
default
"
@
click=
"handleRelateStoreClose(scope)"
>
{{ editForm.supplyMerchantList.length ? '更换
' : '请选择
' }}
</el-button>
>
{{ editForm.supplyMerchantList.length ? '更换
门店' : '+选择门店
' }}
</el-button>
</div>
<div
slot=
"merchantTable"
...
...
@@ -501,6 +513,7 @@ export default {
type
:
'upload'
,
limitSize
:
10
,
maxPhotoNum
:
1
,
suffixSlot
:
'goodsImage'
,
isDisabled
:
false
,
handleUpload
:
(
e
,
file
,
targetItem
)
=>
{
const
imgFile
=
e
.
target
.
result
...
...
@@ -518,6 +531,7 @@ export default {
width
:
'100%'
,
limitSize
:
20
,
maxPhotoNum
:
10
,
suffixSlot
:
'goodsDetailImageList'
,
isDisabled
:
false
,
handleUpload
:
(
e
,
file
,
targetItem
)
=>
{
const
imgFile
=
e
.
target
.
result
...
...
@@ -538,6 +552,7 @@ export default {
name
:
'goodsVideo'
,
type
:
'upload'
,
uploadType
:
'video'
,
suffixSlot
:
'goodsVideo'
,
limitSize
:
50
,
maxPhotoNum
:
1
,
isDisabled
:
false
,
...
...
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