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 {
...
@@ -195,6 +195,12 @@ html {
text-align
:
center
;
text-align
:
center
;
}
}
.marketing
.edit-tips
{
line-height
:
20px
;
font-size
:
14px
;
color
:
#999999
;
}
.marketing
.footer
{
.marketing
.footer
{
position
:
fixed
;
position
:
fixed
;
bottom
:
0
;
bottom
:
0
;
...
...
src/components/glsx-combi-form/index.vue
View file @
f1630ab
...
@@ -93,6 +93,7 @@
...
@@ -93,6 +93,7 @@
</span>
</span>
</div>
</div>
</
template
>
</
template
>
<slot
:name=
"item.suffixSlot"
:scope=
"item"
></slot>
</template>
</template>
</el-form-item>
</el-form-item>
</template>
</template>
...
...
src/components/selectMutiProDialog/index.vue
View file @
f1630ab
<!-- 选择商品弹窗 -->
<!-- 选择商品弹窗 -->
<
template
>
<
template
>
<glsx-dialog
class=
"muti-pro"
title=
"选择商品"
:isVisible
.
sync=
"isMutiSelectVisible"
width=
"70%"
@
confirmDialog=
"handleMutiSelectConfirm"
@
closeDialog=
"handleMutiSelectClose"
>
<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"
>
<GLTable
v-loading=
"loading"
ref=
"mutiProRef"
:tableData=
"productList"
:hasPage=
"false"
:noDataImg=
"url
"
:tableParams=
"tableParams"
@
refreshTable=
"getList"
>
<span
slot=
"goodsImage"
slot-scope=
"scope"
>
<span
slot=
"goodsImage"
slot-scope=
"scope"
>
<img
class=
"m-t-10 img-60"
:src=
"scope.scope.goodsImage"
/>
<img
class=
"m-t-10 img-60"
:src=
"scope.scope.goodsImage"
/>
</span>
</span>
</GLTable>
</GLTable>
</glsx-dialog>
</glsx-dialog>
</
template
>
</
template
>
<
script
>
<
script
>
// import { getGoodsList } from '@/api/modules/common'
// import { getGoodsList } from '@/api/modules/common'
import
url
from
"@/assets/empty.png"
import
glsxDialog
from
'@/components/glsx-dialog'
import
glsxDialog
from
'@/components/glsx-dialog'
export
default
{
export
default
{
name
:
'selectMutiProDialog'
,
name
:
'selectMutiProDialog'
,
...
@@ -19,6 +20,8 @@ export default {
...
@@ -19,6 +20,8 @@ export default {
// 表格组件
// 表格组件
// getListApi: this.$apis.common.getGoodsListApi,
// getListApi: this.$apis.common.getGoodsListApi,
productList
:
[],
productList
:
[],
url
:
url
,
loading
:
true
,
// pageConf: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'total' },
// pageConf: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'total' },
// 表格参数
// 表格参数
tableParams
:
{
tableParams
:
{
...
@@ -65,7 +68,7 @@ export default {
...
@@ -65,7 +68,7 @@ export default {
glsxDialog
glsxDialog
},
},
moun
ted
()
{
crea
ted
()
{
this
.
getList
(
true
)
this
.
getList
(
true
)
},
},
...
@@ -78,9 +81,10 @@ export default {
...
@@ -78,9 +81,10 @@ export default {
pageSize
:
isMounted
?
10
:
this
.
$refs
.
mutiProRef
.
page
.
pageSize
pageSize
:
isMounted
?
10
:
this
.
$refs
.
mutiProRef
.
page
.
pageSize
}
}
var
that
=
this
var
that
=
this
this
.
loading
=
true
this
.
$apis
.
common
.
getGoodsListApi
(
params
).
then
(
res
=>
{
this
.
$apis
.
common
.
getGoodsListApi
(
params
).
then
(
res
=>
{
// console.log(res)
this
.
productList
=
res
this
.
productList
=
res
this
.
loading
=
false
// this.$refs.mutiProRef.tableTotal = res.total
// this.$refs.mutiProRef.tableTotal = res.total
this
.
productList
.
forEach
(
function
(
item
)
{
this
.
productList
.
forEach
(
function
(
item
)
{
item
.
saleAmount
=
item
.
goodsStatistics
.
saleAmount
item
.
saleAmount
=
item
.
goodsStatistics
.
saleAmount
...
@@ -108,10 +112,11 @@ export default {
...
@@ -108,10 +112,11 @@ export default {
}
}
})
})
this
.
recoverySelected
()
this
.
recoverySelected
()
this
.
$refs
.
mutiProRef
.
tableHeightValues
=
'50vh'
})
})
},
},
recoverySelected
()
{
recoverySelected
()
{
if
(
this
.
selectedProList
.
length
)
{
if
(
this
.
selectedProList
&&
this
.
selectedProList
.
length
)
{
this
.
selectedProList
.
forEach
(
row
=>
{
this
.
selectedProList
.
forEach
(
row
=>
{
this
.
$refs
.
mutiProRef
.
$refs
[
this
.
tableParams
.
mutiSelectName
+
'MutiTable'
].
toggleRowSelection
(
row
)
this
.
$refs
.
mutiProRef
.
$refs
[
this
.
tableParams
.
mutiSelectName
+
'MutiTable'
].
toggleRowSelection
(
row
)
})
})
...
@@ -119,7 +124,7 @@ export default {
...
@@ -119,7 +124,7 @@ export default {
},
},
handleMutiSelectConfirm
()
{
handleMutiSelectConfirm
()
{
var
selectedData
=
this
.
$refs
.
mutiProRef
.
mutiSelectArr
[
this
.
tableParams
.
mutiSelectName
]
var
selectedData
=
this
.
$refs
.
mutiProRef
.
mutiSelectArr
[
this
.
tableParams
.
mutiSelectName
]
console
.
log
(
selectedData
)
//
console.log(selectedData)
this
.
$emit
(
'handleMutiSelectConfirm'
,
selectedData
)
this
.
$emit
(
'handleMutiSelectConfirm'
,
selectedData
)
},
},
handleMutiSelectClose
()
{
handleMutiSelectClose
()
{
...
...
src/views/classifyList/editClassify.vue
View file @
f1630ab
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<p
class=
"edit-title"
>
{{
title
}}
</p>
<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"
>
<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"
>
<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>
<div
slot=
"proTable"
class=
"select-pro"
>
<div
slot=
"proTable"
class=
"select-pro"
>
<GLTable
v-show=
"editForm.goodsRefList.length"
:hasPage=
"false"
:tableParams=
"tableParams"
:tableData=
"editForm.goodsRefList"
>
<GLTable
v-show=
"editForm.goodsRefList.length"
:hasPage=
"false"
:tableParams=
"tableParams"
:tableData=
"editForm.goodsRefList"
>
...
@@ -142,7 +142,7 @@ export default {
...
@@ -142,7 +142,7 @@ export default {
this
.
selectedProList
=
this
.
$common
.
utils
.
deepClone
(
this
.
editForm
.
goodsRefList
)
this
.
selectedProList
=
this
.
$common
.
utils
.
deepClone
(
this
.
editForm
.
goodsRefList
)
this
.
handleMutiSelectClose
()
this
.
handleMutiSelectClose
()
},
},
handleMutiSelectConfirm
(
selectedData
)
{
handleMutiSelectConfirm
(
selectedData
=
[]
)
{
this
.
editForm
.
goodsRefList
=
selectedData
this
.
editForm
.
goodsRefList
=
selectedData
this
.
handleMutiSelectClose
()
this
.
handleMutiSelectClose
()
},
},
...
...
src/views/productGroup/editProduct.vue
View file @
f1630ab
...
@@ -21,7 +21,19 @@
...
@@ -21,7 +21,19 @@
@
handleImgDelete=
"handleFormImgDelete"
@
handleImgDelete=
"handleFormImgDelete"
>
>
<template
slot=
"describeBtn"
>
<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
>
</
template
>
<div
:style=
"{ 'margin-left': labelWidth }"
slot=
"descImgs"
slot-scope=
"scope"
>
<div
:style=
"{ 'margin-left': labelWidth }"
slot=
"descImgs"
slot-scope=
"scope"
>
<div
<div
...
@@ -76,7 +88,7 @@
...
@@ -76,7 +88,7 @@
</div>
</div>
</div>
</div>
<
template
slot=
"proSpecsBtn"
>
<
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
>
</
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
v-for=
"(subItem, subIndex) in specificationDetailList"
:key=
"subIndex"
>
...
@@ -193,20 +205,20 @@
...
@@ -193,20 +205,20 @@
</div>
</div>
</div>
</div>
<
template
slot=
"retailPrice"
>
<
template
slot=
"retailPrice"
>
<p>
作为商品商城售卖的价格
</p>
<p
class=
"edit-tips"
>
作为商品商城售卖的价格
</p>
</
template
>
</
template
>
<
template
slot=
"originalPrice"
>
<
template
slot=
"originalPrice"
>
<p>
作为商品划线展示的价格
</p>
<p
class=
"edit-tips"
>
作为商品划线展示的价格
</p>
</
template
>
</
template
>
<
template
slot=
"supplyPrice"
>
<
template
slot=
"supplyPrice"
>
<p>
作为货源供给门店的价格
</p>
<p
class=
"edit-tips"
>
作为货源供给门店的价格
</p>
</
template
>
</
template
>
<div
slot=
"selectMerchant"
slot-scope=
"scope"
class=
"select-merchant"
>
<div
slot=
"selectMerchant"
slot-scope=
"scope"
class=
"select-merchant"
>
<el-button
<el-button
:disabled=
"isDisabled"
:disabled=
"isDisabled"
type=
"
primary
"
type=
"
default
"
@
click=
"handleRelateStoreClose(scope)"
@
click=
"handleRelateStoreClose(scope)"
>
{{ editForm.supplyMerchantList.length ? '更换
' : '请选择
' }}
</el-button>
>
{{ editForm.supplyMerchantList.length ? '更换
门店' : '+选择门店
' }}
</el-button>
</div>
</div>
<div
<div
slot=
"merchantTable"
slot=
"merchantTable"
...
@@ -501,6 +513,7 @@ export default {
...
@@ -501,6 +513,7 @@ export default {
type
:
'upload'
,
type
:
'upload'
,
limitSize
:
10
,
limitSize
:
10
,
maxPhotoNum
:
1
,
maxPhotoNum
:
1
,
suffixSlot
:
'goodsImage'
,
isDisabled
:
false
,
isDisabled
:
false
,
handleUpload
:
(
e
,
file
,
targetItem
)
=>
{
handleUpload
:
(
e
,
file
,
targetItem
)
=>
{
const
imgFile
=
e
.
target
.
result
const
imgFile
=
e
.
target
.
result
...
@@ -518,6 +531,7 @@ export default {
...
@@ -518,6 +531,7 @@ export default {
width
:
'100%'
,
width
:
'100%'
,
limitSize
:
20
,
limitSize
:
20
,
maxPhotoNum
:
10
,
maxPhotoNum
:
10
,
suffixSlot
:
'goodsDetailImageList'
,
isDisabled
:
false
,
isDisabled
:
false
,
handleUpload
:
(
e
,
file
,
targetItem
)
=>
{
handleUpload
:
(
e
,
file
,
targetItem
)
=>
{
const
imgFile
=
e
.
target
.
result
const
imgFile
=
e
.
target
.
result
...
@@ -538,6 +552,7 @@ export default {
...
@@ -538,6 +552,7 @@ export default {
name
:
'goodsVideo'
,
name
:
'goodsVideo'
,
type
:
'upload'
,
type
:
'upload'
,
uploadType
:
'video'
,
uploadType
:
'video'
,
suffixSlot
:
'goodsVideo'
,
limitSize
:
50
,
limitSize
:
50
,
maxPhotoNum
:
1
,
maxPhotoNum
:
1
,
isDisabled
:
false
,
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