Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx-web
/
glsx-oss-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 696948de
authored
Jul 13, 2021
by
liwk
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
commit
1 parent
211b1e7f
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
132 additions
and
102 deletions
src/api/api.js
src/base.js
src/components/d2-table/index.vue
src/mixins/index.js
src/mixins/orderMixin.js
src/views/tao/financialManagement/index.vue
src/views/tao/order/index/index.vue
src/api/api.js
View file @
696948d
...
@@ -12,6 +12,7 @@ export const orderApi = {
...
@@ -12,6 +12,7 @@ export const orderApi = {
getHwAccount
(
data
=
{})
{
getHwAccount
(
data
=
{})
{
return
request
(
data
,
'dj.api.get.equity.order.hw.account.balance.get'
)
return
request
(
data
,
'dj.api.get.equity.order.hw.account.balance.get'
)
},
},
}
}
// export const orderApi = {
// export const orderApi = {
// /**获取财务管理列表*/
// /**获取财务管理列表*/
...
...
src/base.js
View file @
696948d
...
@@ -80,7 +80,7 @@ const getConfig = (url = URL + '/oss_rightsAndInterests') => {
...
@@ -80,7 +80,7 @@ const getConfig = (url = URL + '/oss_rightsAndInterests') => {
}
}
/* eslint-disable no-new */
/* eslint-disable no-new */
const
render
=
App
=>
{
const
render
=
App
=>
{
new
Vue
({
window
.
vm
=
new
Vue
({
el
:
'#app'
,
el
:
'#app'
,
mixins
:
[
mixin
],
mixins
:
[
mixin
],
render
:
h
=>
h
(
App
)
render
:
h
=>
h
(
App
)
...
...
src/components/d2-table/index.vue
View file @
696948d
...
@@ -305,7 +305,9 @@ export default {
...
@@ -305,7 +305,9 @@ export default {
}
}
.el-table
.cell
{
.el-table
.cell
{
line-height
:
14px
;
line-height
:
14px
;
white-space
:
pre-line
;
}
}
.d2-table
p
{
.d2-table
p
{
margin
:
10px
0
;
margin
:
10px
0
;
}
}
...
...
src/mixins/index.js
0 → 100644
View file @
696948d
import
orderMixin
from
'./orderMixin'
export
{
orderMixin
}
\ No newline at end of file
\ No newline at end of file
src/mixins/orderMixin.js
0 → 100644
View file @
696948d
export
default
{
data
()
{
return
{
date
:
''
,
searchObj
:
{},
statusEnum
:
{
0
:
'未支付'
,
1
:
'已支付'
,
2
:
'已发货'
,
3
:
'已完成'
,
4
:
'售后中'
,
5
:
'退款失败'
,
6
:
'已退款'
,
},
channlList
:
[{
label
:
'海威'
,
value
:
'HW'
}],
statusList
:
[{
label
:
'待收货'
,
value
:
[
1
,
2
]
},
{
label
:
'已完成'
,
value
:
[
3
]
},
{
label
:
'已退款'
,
value
:
[
6
]
},
{
label
:
'售后中'
,
value
:
[
4
]
}
],
appereanceList
:
[{
label
:
'卡券'
,
value
:
1
},
{
label
:
'直充'
,
value
:
2
}],
}
},
watch
:
{
'date'
(
n
,
o
)
{
let
[
orderDateStart
,
orderDateEnd
]
=
n
this
.
searchObj
.
orderDateStart
=
orderDateStart
?
`
${
orderDateStart
}
00:00:00`
:
''
this
.
searchObj
.
orderDateEnd
=
orderDateEnd
?
`
${
orderDateEnd
}
23:59:59`
:
''
}
},
methods
:
{
search
()
{
this
.
$refs
.
table
.
refreshTable
()
},
reset
()
{
this
.
date
=
''
this
.
searchObj
=
{}
this
.
$nextTick
(()
=>
{
this
.
search
()
})
},
handleClick
({
name
})
{
let
orderStatus
=
name
?
name
.
split
(
','
).
map
(
e
=>
Number
(
e
))
:
''
this
.
searchObj
.
orderStatus
=
orderStatus
this
.
$nextTick
(()
=>
{
this
.
search
()
})
}
},
}
\ No newline at end of file
\ No newline at end of file
src/views/tao/financialManagement/index.vue
View file @
696948d
...
@@ -131,53 +131,13 @@
...
@@ -131,53 +131,13 @@
<
script
type=
'text/ecmascript-6'
>
<
script
type=
'text/ecmascript-6'
>
import
{
orderApi
}
from
'@api/api'
import
{
orderApi
}
from
'@api/api'
const
statusEnum
=
{
import
{
orderMixin
}
from
'@/mixins'
0
:
'未支付'
,
1
:
'已支付'
,
2
:
'已发货'
,
3
:
'已完成'
,
4
:
'售后中'
,
5
:
'退款失败'
,
6
:
'已退款'
,
}
export
default
{
export
default
{
name
:
''
,
name
:
''
,
mixins
:
[
orderMixin
],
data
()
{
data
()
{
return
{
return
{
date
:
''
,
price
:
0
,
price
:
0
,
searchObj
:
{
},
statusList
:
[
{
label
:
'待收货'
,
value
:
2
},
{
label
:
'已完成'
,
value
:
3
},
{
label
:
'已退款'
,
value
:
6
},
{
label
:
'售后中'
,
value
:
4
}],
appereanceList
:
[
{
label
:
'卡券'
,
value
:
1
},
{
label
:
'直充'
,
value
:
2
}
],
channlList
:
[
{
label
:
'海威'
,
value
:
'HW'
}
],
tableParams
:
{
tableParams
:
{
listName
:
'list'
,
listName
:
'list'
,
showSummary
:
true
,
showSummary
:
true
,
...
@@ -260,7 +220,7 @@ export default {
...
@@ -260,7 +220,7 @@ export default {
label
:
'订单状态'
,
label
:
'订单状态'
,
minWidth
:
'200'
,
minWidth
:
'200'
,
formatter
(
cell
)
{
formatter
(
cell
)
{
return
statusEnum
[
cell
.
orderStatus
]
return
window
.
vm
.
$children
[
0
].
statusEnum
[
cell
.
orderStatus
]
}
}
},
},
{
{
...
@@ -278,13 +238,6 @@ export default {
...
@@ -278,13 +238,6 @@ export default {
mounted
()
{
mounted
()
{
this
.
getHwAccount
()
this
.
getHwAccount
()
},
},
watch
:
{
'date'
(
n
,
o
)
{
let
[
orderDateStart
,
orderDateEnd
]
=
n
this
.
searchObj
.
orderDateStart
=
orderDateStart
?
`
${
orderDateStart
}
00:00:00`
:
''
this
.
searchObj
.
orderDateEnd
=
orderDateEnd
?
`
${
orderDateEnd
}
23:59:59`
:
''
}
},
methods
:
{
methods
:
{
getHwAccount
()
{
getHwAccount
()
{
orderApi
.
getHwAccount
().
then
(({
code
,
data
})
=>
{
orderApi
.
getHwAccount
().
then
(({
code
,
data
})
=>
{
...
@@ -293,16 +246,7 @@ export default {
...
@@ -293,16 +246,7 @@ export default {
}
}
})
})
},
},
search
()
{
this
.
$refs
.
table
.
refreshTable
()
},
reset
()
{
this
.
date
=
''
this
.
searchObj
=
{}
this
.
$nextTick
(()
=>
{
this
.
search
()
})
}
}
}
}
}
</
script
>
</
script
>
...
...
src/views/tao/order/index/index.vue
View file @
696948d
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
订单编号:
订单编号:
<div
class=
"input"
>
<div
class=
"input"
>
<el-input
<el-input
v-model=
"searchObj.
no
"
v-model=
"searchObj.
orderCode
"
placeholder=
""
placeholder=
""
size=
"small"
size=
"small"
></el-input>
></el-input>
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
品牌名称:
品牌名称:
<div
class=
"input"
>
<div
class=
"input"
>
<el-input
<el-input
v-model=
"searchObj.
no
"
v-model=
"searchObj.
brandName
"
placeholder=
""
placeholder=
""
size=
"small"
size=
"small"
></el-input>
></el-input>
...
@@ -26,32 +26,32 @@
...
@@ -26,32 +26,32 @@
商品名称:
商品名称:
<div
class=
"input"
>
<div
class=
"input"
>
<el-input
<el-input
v-model=
"searchObj.
no
"
v-model=
"searchObj.
productName
"
placeholder=
""
placeholder=
""
size=
"small"
size=
"small"
></el-input>
></el-input>
</div>
</div>
</div>
</div>
<div
class=
"item"
>
<
!--
<
div
class=
"item"
>
渠道:
渠道:
<el-select
<el-select
v-model=
"searchObj.
status
"
v-model=
"searchObj.
channl
"
placeholder=
"请选择"
placeholder=
"请选择"
>
>
<el-option
<el-option
v-for=
"item in
status
List"
v-for=
"item in
channl
List"
:key=
"item.value"
:key=
"item.value"
:label=
"item.label"
:label=
"item.label"
:value=
"item.value"
:value=
"item.value"
>
>
</el-option>
</el-option>
</el-select>
</el-select>
</div>
</div>
-->
<div
class=
"item"
>
<div
class=
"item"
>
门店名称:
门店名称:
<div
class=
"input"
>
<div
class=
"input"
>
<el-input
<el-input
v-model=
"searchObj.
user
"
v-model=
"searchObj.
merchantName
"
placeholder=
""
placeholder=
""
size=
"small"
size=
"small"
></el-input>
></el-input>
...
@@ -61,7 +61,7 @@
...
@@ -61,7 +61,7 @@
用户信息:
用户信息:
<div
class=
"input"
>
<div
class=
"input"
>
<el-input
<el-input
v-model=
"searchObj.user"
v-model=
"searchObj.user
Info
"
placeholder=
""
placeholder=
""
size=
"small"
size=
"small"
></el-input>
></el-input>
...
@@ -70,7 +70,7 @@
...
@@ -70,7 +70,7 @@
<div
class=
"item"
>
<div
class=
"item"
>
下单时间:
下单时间:
<el-date-picker
<el-date-picker
v-model=
"
searchObj.
date"
v-model=
"date"
type=
"daterange"
type=
"daterange"
range-separator=
"至"
range-separator=
"至"
start-placeholder=
"开始日期"
start-placeholder=
"开始日期"
...
@@ -83,8 +83,14 @@
...
@@ -83,8 +83,14 @@
</div>
</div>
<div
class=
"bottom"
>
<div
class=
"bottom"
>
<el-button-group>
<el-button-group>
<el-button
type=
"primary"
>
查询
</el-button>
<el-button
<el-button
type=
"default"
>
重置
</el-button>
type=
"primary"
@
click=
"search"
>
查询
</el-button>
<el-button
type=
"default"
@
click=
"reset"
>
重置
</el-button>
</el-button-group>
</el-button-group>
</div>
</div>
</div>
</div>
...
@@ -95,11 +101,11 @@
...
@@ -95,11 +101,11 @@
>
>
<el-tab-pane
<el-tab-pane
label=
"全部"
label=
"全部"
name=
"
1
"
name=
""
></el-tab-pane>
></el-tab-pane>
<el-tab-pane
<el-tab-pane
label=
"待收货"
label=
"待收货"
name=
"2"
name=
"
1,
2"
></el-tab-pane>
></el-tab-pane>
<el-tab-pane
<el-tab-pane
label=
"已完成"
label=
"已完成"
...
@@ -107,13 +113,14 @@
...
@@ -107,13 +113,14 @@
></el-tab-pane>
></el-tab-pane>
<el-tab-pane
<el-tab-pane
label=
"退款丨售后"
label=
"退款丨售后"
name=
"4"
name=
"4
,6
"
></el-tab-pane>
></el-tab-pane>
</el-tabs>
</el-tabs>
<d2-table
<d2-table
ref=
"table"
:searchForm=
"searchObj"
:searchForm=
"searchObj"
:tableParams=
"tableParams"
:tableParams=
"tableParams"
:getListApi=
"
listRequisitionMemberCard
"
:getListApi=
"
tableParams.getListApi
"
:hasNum=
"false"
:hasNum=
"false"
>
>
<span
<span
...
@@ -123,7 +130,7 @@
...
@@ -123,7 +130,7 @@
>
>
<el-button
<el-button
type=
"text"
type=
"text"
@
click=
"
startcollectiondetails
(scope.scope)"
@
click=
"
jump
(scope.scope)"
>
查看详情
</el-button>
>
查看详情
</el-button>
</span>
</span>
</d2-table>
</d2-table>
...
@@ -132,53 +139,52 @@
...
@@ -132,53 +139,52 @@
</
template
>
</
template
>
<
script
type=
'text/ecmascript-6'
>
<
script
type=
'text/ecmascript-6'
>
import
{
orderApi
}
from
'@api/api'
import
{
orderMixin
}
from
'@/mixins'
export
default
{
export
default
{
name
:
''
,
name
:
''
,
mixins
:
[
orderMixin
],
data
()
{
data
()
{
return
{
return
{
searchObj
:
{
tabIndex
:
''
,
status
:
1
},
tabIndex
:
'1'
,
statusList
:
[{
label
:
'广汇'
,
value
:
1
},
{
label
:
'默认渠道'
,
value
:
2
}],
tableParams
:
{
tableParams
:
{
listName
:
'list'
,
listName
:
'list'
,
getListApi
:
orderApi
.
getOrderList
,
tableOption
:
true
,
tableOption
:
true
,
tableColumns
:
[
tableColumns
:
[
{
{
label
:
'商品信息'
,
label
:
'商品信息'
,
prop
:
'cardNo'
,
minWidth
:
'300'
,
minWidth
:
'200'
align
:
'left'
,
formatter
(
cell
)
{
return
`订单编号:
${
cell
.
orderCode
}
\n
${
cell
.
brandName
}
\n
${
cell
.
productName
}
`
}
},
},
{
{
label
:
'订单渠道'
,
label
:
'订单渠道'
,
prop
:
'activationCode'
,
minWidth
:
'200'
,
minWidth
:
'200'
,
formatter
(
cell
)
{
return
cell
.
merchantName
||
''
}
},
},
{
{
label
:
'价格/数量'
,
label
:
'价格/数量'
,
prop
:
'sn'
,
minWidth
:
'200'
,
minWidth
:
'200'
,
formatter
(
cell
)
{
return
`
${
cell
.
costPrices
}
元\n
${
cell
.
goodsQuality
}
张`
}
},
},
{
{
label
:
'实收金额'
,
label
:
'实收金额'
,
prop
:
'
mobile
'
,
prop
:
'
orderPrices
'
,
minWidth
:
'200'
minWidth
:
'200'
// tagLabel: true
},
},
{
{
label
:
'订单状态'
,
label
:
'订单状态'
,
prop
:
'memberName'
,
minWidth
:
'200'
,
minWidth
:
'200'
,
formatter
:
(
cellValue
)
=>
{
formatter
(
cell
)
{
return
cellValue
.
memberCardDefine
.
memberName
return
window
.
vm
.
$children
[
0
].
statusEnum
[
cell
.
orderStatus
]
}
}
},
},
{
{
...
@@ -186,15 +192,15 @@ export default {
...
@@ -186,15 +192,15 @@ export default {
prop
:
'validitDate'
,
prop
:
'validitDate'
,
minWidth
:
'200'
,
minWidth
:
'200'
,
sortable
:
true
,
sortable
:
true
,
formatter
:
(
cellValue
)
=>
{
formatter
(
cell
)
{
return
cell
.
orderDate
?
new
Date
(
cell
.
orderDate
).
format
(
'yyyy-MM-dd hh:mm:ss'
)
:
'- -'
}
}
},
},
{
{
label
:
'用户信息'
,
label
:
'用户信息'
,
prop
:
'updatedDate'
,
minWidth
:
'200'
,
minWidth
:
'200'
,
formatter
:
(
cellValue
)
=>
{
formatter
(
cell
)
{
return
this
.
date_format
(
cellValue
.
updatedDate
)
return
`
${
cell
.
accountName
||
''
}
\n
${
cell
.
mobile
||
''
}
`
}
}
},
},
...
@@ -206,6 +212,9 @@ export default {
...
@@ -206,6 +212,9 @@ export default {
mounted
()
{
mounted
()
{
},
},
methods
:
{
methods
:
{
jump
({
orderCode
})
{
window
.
location
.
href
=
`./detail.html?orderCode=
${
orderCode
}
`
}
}
}
}
}
</
script
>
</
script
>
...
...
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