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 3bab88b8
authored
Aug 12, 2022
by
杨北旺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
更换订单详情表格展示
1 parent
163fe92c
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
22 deletions
src/components/d2-table/index.vue
src/views/order/detail.vue
src/components/d2-table/index.vue
View file @
3bab88b
This diff is collapsed.
Click to expand it.
src/views/order/detail.vue
View file @
3bab88b
...
...
@@ -43,7 +43,14 @@
</template>
</div>
<div
class=
"tableWrap"
>
<d2-table
:tableParams=
"tableParams"
:tableData=
"tableData"
:hasNum=
"false"
:hasPage=
"false"
></d2-table>
<GLTable
v-if=
"tableData.length"
:tableParams=
"tableParams"
:tableData=
"tableData"
:hasNum=
"false"
:hasPage=
"false"
>
<div
slot=
"imgText"
slot-scope=
"scope"
>
<img
class=
"goods-img"
:src=
"scope.scope.goodsImage"
>
<div
class=
"goods-info"
>
{{scope.scope.brandName}}
</div>
<div
class=
"goods-info"
v-if=
"scope.scope.appearance"
>
{{scope.scope.productName}}{{scope.scope.denomination}}
</div>
<div
class=
"goods-info"
v-else
>
{{scope.scope.productName}}{{scope.scope.productName}}
</div>
</div>
</GLTable>
</div>
<div
class=
"price-box"
>
<div
class=
"price-item"
>
...
...
@@ -132,50 +139,48 @@ export default {
tableColumns
:
[
{
label
:
'商品信息'
,
prop
:
'appearance'
,
addHtml
:
'imgText'
// minWidth: '300',
formatter
:
cell
=>
{
let
str
=
cell
.
appearance
==
2
?
`<div>
${
cell
.
productName
}${
cell
.
denomination
}
</div>`
:
`<div>
${
cell
.
productName
}
</div>`
return
`<div class="goods">
<div class="goods-img">
<img src="
${
cell
.
goodsImage
}
" >
</div>
<div class="goods-info">
<div>
${
cell
.
brandName
}
</div>
${
str
}
</div>
</div>`
}
//
formatter: cell => {
//
let str = cell.appearance == 2 ? `<div>${cell.productName}${cell.denomination}</div>` : `<div>${cell.productName}</div>`
//
return `<div class="goods">
//
<div class="goods-img">
//
<img src="${cell.goodsImage}" >
//
</div>
//
<div class="goods-info">
//
<div>${cell.brandName}</div>
//
${str}
//
</div>
//
</div>`
//
}
},
{
label
:
'充值账号'
,
// prop: 'rechargeNumber',
prop
:
'rechargeNumber'
},
{
label
:
'商品形态'
,
prop
:
'appearanceDesc'
// minWidth: '200'
},
{
label
:
'单价/元'
,
prop
:
'orderPrices'
// minWidth: '200
'
prop
:
'orderPrices'
,
align
:
'right
'
},
{
label
:
'数量'
,
// minWidth: '200',
formatter
:
()
=>
{
return
1
}
},
{
label
:
'小计/元'
,
prop
:
'orderPrices'
// minWidth: '200
'
prop
:
'orderPrices'
,
align
:
'right
'
},
{
label
:
'订单状态'
,
// minWidth: '200',
formatter
:
cell
=>
{
return
cell
.
appearance
==
1
?
this
.
statusEnum
[
cell
.
orderStatus
]
:
this
.
qb_statusEnum
[
cell
.
orderStatus
]
}
...
...
@@ -185,7 +190,6 @@ export default {
}
},
mounted
()
{
console
.
log
(
this
.
$route
,
'11111111'
)
this
.
params
=
{
orderCode
:
this
.
$route
.
query
.
orderCode
}
this
.
thirdOrderCode
=
this
.
$route
.
query
.
thirdOrderCode
this
.
getDetail
(
this
.
params
)
...
...
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