Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Q
qk_admin
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
quanku
qk_admin
Commits
d4179fa0
Commit
d4179fa0
authored
Jul 16, 2024
by
yaya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 优化传值
parent
4c086a6d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
40 additions
and
16 deletions
+40
-16
src/views/finance/components/platformIncomeView.vue
src/views/finance/components/platformIncomeView.vue
+36
-12
src/views/finance/financeList.vue
src/views/finance/financeList.vue
+4
-4
No files found.
src/views/finance/components/platformIncomeView.vue
View file @
d4179fa0
...
...
@@ -44,15 +44,15 @@
<el-card
class=
"box-card"
>
<div
class=
"income_item"
>
<div
class=
"income_item_title"
>
平台利润
</div>
<div
class=
"income_item_money"
>
{{
`¥${incomeData.amount
}
`
}}
<
/div
>
<
div
class
=
"
income_item_detail
"
>
{{
`入账金额 ¥ ${incomeData.entryAmount
}
|待入账金额 ¥${incomeData.waitEntryAmount
}
`
}}
<
/div
>
<div
class=
"income_item_money"
>
{{
`¥${incomeData.amount
|| '-'
}
`
}}
<
/div
>
<
div
class
=
"
income_item_detail
"
>
{{
`入账金额 ¥ ${incomeData.entryAmount
|| '-'
}
|待入账金额 ¥${incomeData.waitEntryAmount || '-'
}
`
}}
<
/div
>
<
/div
>
<
/el-card
>
<
el
-
card
class
=
"
box-card
"
>
<
div
class
=
"
income_item
"
>
<
div
class
=
"
income_item_title
"
>
平台累计利润
<
/div
>
<
div
class
=
"
income_item_money
"
>
{{
`¥${incomeData.totalAmount
}
`
}}
<
/div
>
<
div
class
=
"
income_item_detail
"
>
{{
`入账金额 ¥ ${incomeData.totalEntryAmount
}
|待入账金额 ¥${incomeData.totalWaitEntryAmount
}
`
}}
<
/div
>
<
div
class
=
"
income_item_money
"
>
{{
`¥${incomeData.totalAmount
|| '-'
}
`
}}
<
/div
>
<
div
class
=
"
income_item_detail
"
>
{{
`入账金额 ¥ ${incomeData.totalEntryAmount
|| '-'
}
|待入账金额 ¥${incomeData.totalWaitEntryAmount || '-'
}
`
}}
<
/div
>
<
/div
>
<
/el-card
>
<
/div
>
...
...
@@ -128,9 +128,6 @@ export default {
activeIndex
:
'
1
'
,
itemKey
:
0
,
options
:
[{
value
:
1
,
label
:
'
待付款
'
}
,
{
value
:
10
,
label
:
'
待发货
'
}
,
{
...
...
@@ -153,9 +150,6 @@ export default {
label
:
'
已取消
'
}
],
incomeOptions
:
[{
value
:
1
,
label
:
'
订单收入
'
}
,
{
value
:
2
,
label
:
'
平台佣金
'
}
,
{
...
...
@@ -190,10 +184,40 @@ export default {
}
}
,
created
()
{
this
.
getList
()
this
.
timeValue
=
this
.
getLastMonthDate
()
this
.
handleFilter
()
}
,
methods
:
{
getLastMonthDate
()
{
var
tomorrow
=
new
Date
()
tomorrow
.
setTime
(
tomorrow
.
getTime
()
+
24
*
60
*
60
*
1000
)
var
end
=
tomorrow
var
year
=
end
.
getFullYear
()
var
month
=
end
.
getMonth
()
+
1
// 0-11表示 1-12月
var
day
=
end
.
getDate
()
var
dateObj
=
{
}
dateObj
.
start
=
null
dateObj
.
end
=
year
+
'
-
'
+
month
+
'
-
'
+
day
var
endMonthDay
=
new
Date
(
year
,
month
,
0
).
getDate
()
// 当前月的总天数
if
(
month
-
1
<=
0
)
{
// 如果是1月,年数往前推一年<br>
dateObj
.
start
=
(
year
-
1
)
+
'
-
'
+
12
+
'
-
'
+
day
}
else
{
const
startMonthDay
=
new
Date
(
year
,
(
parseInt
(
month
)
-
1
),
0
).
getDate
()
if
(
startMonthDay
<
day
)
{
// 1个月前所在月的总天数小于现在的天日期
if
(
day
<
endMonthDay
)
{
// 当前天日期小于当前月总天数
dateObj
.
start
=
year
+
'
-
'
+
(
month
-
1
)
+
'
-
'
+
(
startMonthDay
-
(
endMonthDay
-
day
))
}
else
{
dateObj
.
start
=
year
+
'
-
'
+
(
month
-
1
)
+
'
-
'
+
startMonthDay
}
}
else
{
dateObj
.
start
=
year
+
'
-
'
+
(
month
-
1
)
+
'
-
'
+
day
}
}
const
newMonthDate
=
[
dateObj
.
start
+
'
'
+
'
00:00:00
'
,
dateObj
.
end
+
'
'
+
'
00:00:00
'
]
console
.
log
(
'
newMonthDate
'
,
newMonthDate
)
return
newMonthDate
}
,
resetSearchForm
()
{
this
.
timeValue
=
''
this
.
listQuery
=
{
...
...
src/views/finance/financeList.vue
View file @
d4179fa0
...
...
@@ -3,13 +3,13 @@
<div
class=
"filter-container"
>
<div
class=
"button_left"
>
<el-input
v-model=
"listQuery.
sell
erId"
v-model=
"listQuery.
us
erId"
clearable
class=
"filter-item"
style=
"width: 200px;"
placeholder=
"请输入藏家ID"
/>
<el-date-picker
v-model=
"listQuery.
time
"
v-model=
"listQuery.
accountPeriod
"
class=
"filter-item"
type=
"month"
style=
"width: 200px;"
...
...
@@ -88,7 +88,7 @@
<
/el-table-column
>
<
el
-
table
-
column
align
=
"
center
"
label
=
"
是否结款
"
prop
=
"
state
"
>
<
template
slot
-
scope
=
"
scope
"
>
<
span
class
=
"
tooltip-span
"
>
{{
`${scope.row.state === 1 ? `
是
` : scope.row.state ===
1
? '否' : '-'
}
`
}}
<
/span
>
<
span
class
=
"
tooltip-span
"
>
{{
`${scope.row.state === 1 ? `
是
` : scope.row.state ===
0
? '否' : '-'
}
`
}}
<
/span
>
<
/template
>
<
/el-table-column
>
<
el
-
table
-
column
align
=
"
center
"
label
=
"
银行卡账号
"
width
=
"
200
"
prop
=
"
bankCardId
"
/>
...
...
@@ -170,7 +170,7 @@ export default {
value
:
1
,
label
:
'
是
'
}
,
{
value
:
2
,
value
:
0
,
label
:
'
否
'
}
],
listLoading
:
true
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment