Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx-web
/
sso-equity
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 40958fe9
authored
Dec 08, 2021
by
zhouzy
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
1
1 parent
1684e086
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
51 additions
and
44 deletions
src/mixins/goodsMixin.js
src/views/list/index.vue
src/views/order/index.vue
src/views/sale/index.vue
src/mixins/goodsMixin.js
View file @
40958fe
...
@@ -84,7 +84,8 @@ export default {
...
@@ -84,7 +84,8 @@ export default {
this
.
$apis
.
goodsEquityManageApi
.
getGoodsList
({
goodsCategoryId
,
pageSize
:
this
.
$refs
.
goodsTable
.
page
.
pageSize
,
pageNum
:
this
.
$refs
.
goodsTable
.
page
.
pageNum
}).
then
(({
data
})
=>
{
this
.
$apis
.
goodsEquityManageApi
.
getGoodsList
({
goodsCategoryId
,
pageSize
:
this
.
$refs
.
goodsTable
.
page
.
pageSize
,
pageNum
:
this
.
$refs
.
goodsTable
.
page
.
pageNum
}).
then
(({
data
})
=>
{
if
(
!
callBack
)
{
if
(
!
callBack
)
{
this
.
goodsTableData
=
data
.
list
||
[]
this
.
goodsTableData
=
data
.
list
||
[]
console
.
log
(
data
,
'data'
);
console
.
log
(
data
.
total
,
'data'
);
this
.
tableTotal
=
data
.
total
}
else
{
}
else
{
return
callBack
(
data
.
list
)
return
callBack
(
data
.
list
)
}
}
...
...
src/views/list/index.vue
View file @
40958fe
<
template
>
<
template
>
<div
class=
"
equity-wrap
list"
>
<div
class=
"list"
>
<div
class=
"
container
"
>
<div
class=
"
equity-wrap contain
"
>
<div
class=
"equity-title"
>
商品权益
</div>
<div
class=
"equity-title"
>
商品权益
</div>
<div
class=
"tableBox"
style=
"margin-top: 16px"
>
<div
class=
"tableBox"
style=
"margin-top: 16px"
>
<el-button
type=
"primary"
size=
"small"
@
click=
"addEquity(1)"
>
<el-button
type=
"primary"
size=
"small"
@
click=
"addEquity(1)"
>
...
@@ -46,7 +46,7 @@
...
@@ -46,7 +46,7 @@
</div>
</div>
<div
class=
"noneOperation"
>
<div
class=
"noneOperation"
>
<GLTable
ref=
"goodsTable"
:tableParams=
"goodsTableParams"
:tableData=
"goodsTableData"
:
pageConf=
"goodsDatail"
>
<GLTable
ref=
"goodsTable"
:tableParams=
"goodsTableParams"
:tableData=
"goodsTableData"
:
tableTotal=
"tableTotal"
>
<div
slot=
"mainPageFlag"
slot-scope=
"scope"
>
<div
slot=
"mainPageFlag"
slot-scope=
"scope"
>
<el-button
type=
"text"
@
click=
"goodsDisplay(scope.scope)"
>
{{ scope.scope.mainPageFlag == 1 ? '取消首页展示' : '首页展示' }}
</el-button>
<el-button
type=
"text"
@
click=
"goodsDisplay(scope.scope)"
>
{{ scope.scope.mainPageFlag == 1 ? '取消首页展示' : '首页展示' }}
</el-button>
</div>
</div>
...
@@ -76,7 +76,7 @@ export default {
...
@@ -76,7 +76,7 @@ export default {
return
{
return
{
getCardListApi
:
this
.
$apis
.
carEquityManageApi
.
getCarList
,
getCardListApi
:
this
.
$apis
.
carEquityManageApi
.
getCarList
,
getGoodListApi
:
this
.
$apis
.
goodsEquityManageApi
.
getGoodsList
,
getGoodListApi
:
this
.
$apis
.
goodsEquityManageApi
.
getGoodsList
,
goodsDatail
:
{
pageSize
:
'pageSize'
,
pageNum
:
'pageNum'
,
totalCount
:
'data.total'
}
,
tableTotal
:
''
,
cardsDatail
:
{
pageSize
:
'pageSize'
,
pageNum
:
'pageNum'
,
totalCount
:
'data.total'
},
cardsDatail
:
{
pageSize
:
'pageSize'
,
pageNum
:
'pageNum'
,
totalCount
:
'data.total'
},
showDialog
:
false
,
showDialog
:
false
,
isEdit
:
false
,
isEdit
:
false
,
...
@@ -85,8 +85,8 @@ export default {
...
@@ -85,8 +85,8 @@ export default {
}
}
},
},
mounted
()
{
mounted
()
{
this
.
$refs
.
goodsTable
.
tableHeightValues
=
'
32
0'
this
.
$refs
.
goodsTable
.
tableHeightValues
=
'
50
0'
this
.
$refs
.
carTable
.
tableHeightValues
=
'
32
0'
this
.
$refs
.
carTable
.
tableHeightValues
=
'
50
0'
this
.
init
()
this
.
init
()
},
},
methods
:
{
methods
:
{
...
@@ -279,9 +279,12 @@ border-radius: 4px;
...
@@ -279,9 +279,12 @@ border-radius: 4px;
flex-direction
:
row
;
flex-direction
:
row
;
margin-top
:
18px
;
margin-top
:
18px
;
}
}
.list
.contain
er
{
.list
.contain
{
background
:
#F4F5FA
;
background
:
#F4F5FA
;
margin
:
0px
20px
20px
40px
;
margin
:
0px
20px
20px
40px
;
padding
:
20px
;
padding
:
20px
;
}
}
.list
{
box-shadow
:
initial
;
}
</
style
>
</
style
>
\ No newline at end of file
\ No newline at end of file
src/views/order/index.vue
View file @
40958fe
...
@@ -38,10 +38,12 @@
...
@@ -38,10 +38,12 @@
</div>
</div>
<GLTable
v-if=
"flag"
ref=
"table"
@
setTableFinishFun=
"setTableFinishFun"
:searchForm=
"searchFormTable"
:tableParams=
"tableParams"
:getListApi=
"tableParams.getListApi"
:hasNum=
"false"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
>
<GLTable
v-if=
"flag"
ref=
"table"
@
setTableFinishFun=
"setTableFinishFun"
:searchForm=
"searchFormTable"
:tableParams=
"tableParams"
:getListApi=
"tableParams.getListApi"
:hasNum=
"false"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
>
<span
slot=
"goodsMsg"
slot-scope=
"scope"
>
<span
slot=
"goodsMsg"
slot-scope=
"scope"
>
<div>
订单编号:
{{
scope
.
scope
.
orderCode
}}
</div>
<div>
{{
scope
.
scope
.
brandName
}}
</div>
<div>
{{
scope
.
scope
.
brandName
}}
</div>
<div>
{{
scope
.
scope
.
appearance
==
2
?
scope
.
scope
.
productName
+
scope
.
scope
.
denomination
:
scope
.
scope
.
productName
}}
</div>
<div>
{{
scope
.
scope
.
appearance
==
2
?
scope
.
scope
.
productName
+
scope
.
scope
.
denomination
:
scope
.
scope
.
productName
}}
</div>
</span>
</span>
<span
slot=
"orderNum"
slot-scope=
"scope"
>
<div>
{{
scope
.
scope
.
orderCode
}}
</div>
</span>
<span
slot=
"priceAmount"
slot-scope=
"scope"
>
<span
slot=
"priceAmount"
slot-scope=
"scope"
>
<div>
{{
scope
.
scope
.
salePrices
}}
元
</div>
<div>
{{
scope
.
scope
.
salePrices
}}
元
</div>
<div>
{{
scope
.
scope
.
goodsQuality
}}
张
</div>
<div>
{{
scope
.
scope
.
goodsQuality
}}
张
</div>
...
@@ -86,15 +88,14 @@ export default {
...
@@ -86,15 +88,14 @@ export default {
tableColumns
:
[
tableColumns
:
[
{
{
label
:
'商品信息'
,
label
:
'商品信息'
,
width
:
'
28
0'
,
width
:
'
10
0'
,
align
:
'left'
,
align
:
'left'
,
addHtml
:
'goodsMsg'
addHtml
:
'goodsMsg'
// formatter: (cell) => {
},
// let str = cell.appearance == 2 ? `${cell.productName}${cell.denomination}` : `${cell.productName}`
{
// return `订单编号:${cell.orderCode}
label
:
'订单编号'
,
// ${cell.brandName}
width
:
'280'
,
// ${str}`
addHtml
:
'orderNum'
// }
},
},
{
{
label
:
'订单门店'
,
label
:
'订单门店'
,
...
...
src/views/sale/index.vue
View file @
40958fe
...
@@ -37,23 +37,23 @@
...
@@ -37,23 +37,23 @@
<GLTable
v-if=
"flag"
ref=
"table"
@
setTableFinishFun=
"setTableFinishFun"
:searchForm=
"searchFormTable"
:tableParams=
"tableParams"
:getListApi=
"tableParams.getListApi"
:hasNum=
"false"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
>
<GLTable
v-if=
"flag"
ref=
"table"
@
setTableFinishFun=
"setTableFinishFun"
:searchForm=
"searchFormTable"
:tableParams=
"tableParams"
:getListApi=
"tableParams.getListApi"
:hasNum=
"false"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
>
<span
slot=
"desc"
slot-scope=
"scope"
>
<span
slot=
"desc"
slot-scope=
"scope"
>
<div
class=
"refund-box"
>
<div
class=
"refund-box"
>
售后编号:
{{
scope
.
scope
.
refundCode
}}
<div
class=
"refund-img-box"
>
<div
class=
"refund-img-box"
>
<img
:src=
"scope.scope.img"
alt=
""
/>
<img
:src=
"scope.scope.img"
alt=
""
/>
</div>
</div>
<div>
{{
scope
.
scope
.
reason
}}
</div>
<div>
{{
scope
.
scope
.
reason
}}
</div>
</div>
</div>
</span>
</span>
<span
slot=
"number"
slot-scope=
"scope"
>
<div
class=
"refund-box"
>
售后编号:
{{
scope
.
scope
.
refundCode
}}
</div>
</span>
<span
slot=
"goodMsg"
slot-scope=
"scope"
>
<span
slot=
"goodMsg"
slot-scope=
"scope"
>
<div
class=
"refund-box"
>
<div
class=
"refund-box"
>
<div
class=
"refund-title"
>
订单编号:
{{
scope
.
scope
.
orderCode
}}
</div>
<div
class=
"mb10"
>
{{
scope
.
scope
.
brandName
}}
</div>
<div
class=
"mb10"
>
{{
scope
.
scope
.
brandName
}}
</div>
<div>
{{
scope
.
scope
.
productName
}}
</div>
<div>
{{
scope
.
scope
.
productName
}}
</div>
</div>
</div>
</span>
</span>
<span
slot=
"priceAmount"
slot-scope=
"scope"
>
<span
slot=
"priceAmount"
slot-scope=
"scope"
>
<div
class=
"refund-box"
>
<div
class=
"refund-box"
>
<div
class=
"refund-title"
>
订单门店:
{{
scope
.
scope
.
merchantName
}}
</div>
<div
class=
"mb10"
>
{{
scope
.
scope
.
orderPrices
}}
元
</div>
<div
class=
"mb10"
>
{{
scope
.
scope
.
orderPrices
}}
元
</div>
<div>
{{
scope
.
scope
.
goodsQuality
}}
张
</div>
<div>
{{
scope
.
scope
.
goodsQuality
}}
张
</div>
</div>
</div>
...
@@ -65,6 +65,16 @@
...
@@ -65,6 +65,16 @@
<span
slot=
"auth-button"
slot-scope=
"scope"
:data=
"scope.scope"
>
<span
slot=
"auth-button"
slot-scope=
"scope"
:data=
"scope.scope"
>
<el-button
type=
"text"
@
click=
"jump(scope.scope, 'sale')"
size=
"small"
>
查看详情
</el-button>
<el-button
type=
"text"
@
click=
"jump(scope.scope, 'sale')"
size=
"small"
>
查看详情
</el-button>
</span>
</span>
<span
slot=
"orderNum"
slot-scope=
"scope"
>
<div
class=
"refund-box"
>
<div
class=
"refund-title"
>
{{
scope
.
scope
.
orderCode
}}
</div>
</div>
</span>
<span
slot=
"stores"
slot-scope=
"scope"
>
<div
class=
"refund-box"
>
<div
class=
"refund-title"
>
{{
scope
.
scope
.
merchantName
}}
</div>
</div>
</span>
</GLTable>
</GLTable>
</div>
</div>
</div>
</div>
...
@@ -98,42 +108,34 @@ export default {
...
@@ -98,42 +108,34 @@ export default {
{
{
label
:
'售后描述'
,
label
:
'售后描述'
,
minWidth
:
'
30
0'
,
minWidth
:
'
15
0'
,
align
:
'left'
,
align
:
'left'
,
addHtml
:
'desc'
addHtml
:
'desc'
// formatter: cell => {
// return `<div class="refund-box">
// 售后编号:${cell.refundCode}
// <div class="refund-img-box">
// <img src="${cell.img}">
// </div>
// ${cell.reason}
// </div>`
// }
},
},
{
{
label
:
'
商品信息
'
,
label
:
'
售后编号
'
,
minWidth
:
'300'
,
minWidth
:
'300'
,
addHtml
:
'number'
},
{
label
:
'商品信息'
,
minWidth
:
'150'
,
addHtml
:
'goodMsg'
addHtml
:
'goodMsg'
// formatter: cell => {
},
// return `<div class="refund-box">
{
// <div class="refund-title">订单编号:${cell.orderCode}</div>
label
:
'订单编号'
,
// <div>${cell.brandName}</div>
minWidth
:
'300'
,
// <div>${cell.productName}</div>
addHtml
:
'orderNum'
// </div>`
// }
},
},
{
{
label
:
'价格/数量'
,
label
:
'价格/数量'
,
minWidth
:
'300'
,
minWidth
:
'300'
,
addHtml
:
'priceAmount'
addHtml
:
'priceAmount'
// formatter: cell => {
},
// return `<div class="refund-box">
{
// <div class="refund-title">订单门店:${cell.merchantName}</div>
label
:
'订单渠道'
,
// <div>${cell.orderPrices}元</div>
minWidth
:
'300'
,
// <div>${cell.goodsQuality}张</div>
addHtml
:
'stores'
// </div>`
// }
},
},
{
{
label
:
'实收金额'
,
label
:
'实收金额'
,
...
...
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