Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
SuperMan
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
罗超
SuperMan
Commits
5038e0d3
Commit
5038e0d3
authored
Oct 26, 2023
by
youjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
93471306
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
53 additions
and
19 deletions
+53
-19
index.vue
src/components/index.vue
+26
-16
OrderListExaminePrice.vue
...ents/myOrdersAllType/components/OrderListExaminePrice.vue
+27
-3
No files found.
src/components/index.vue
View file @
5038e0d3
...
...
@@ -222,7 +222,7 @@
机票未绑团查看
<i
class=
"iconfont icon-right1"
></i>
</el-dropdown-item>
<el-dropdown-item
class=
"clearfix _dropdown_other"
@
click
.
native=
"ChangeThePriceVisible=true"
>
<el-dropdown-item
v-if=
"ChangeThePriceList.length>0"
class=
"clearfix _dropdown_other"
@
click
.
native=
"ChangeThePriceVisible=true"
>
<i
class=
"iconfont icon-Newspaper"
style=
"color:#f39c12"
></i>
订单改价查看
<i
class=
"iconfont icon-right1"
></i>
...
...
@@ -1247,6 +1247,7 @@
},
data
()
{
return
{
ChangeThePriceList
:
[],
ChangeThePriceData
:[],
ChangeThePriceVisible
:
false
,
//改价提醒
UnboundDate
:
{},
...
...
@@ -1873,24 +1874,33 @@
}
// 获取改价提醒
if
(
!
localStorage
.
getItem
(
"ChangeThePriceDataTime"
)
||
(
localStorage
.
getItem
(
"ChangeThePriceDataTime"
)
!=
this
.
getBeforeDate
(
0
,
new
Date
().
Format
(
"yyyy-MM-dd"
)))){
this
.
GetChangeThePrice
()
}
else
{
// if(localStorage.getItem("ChangeThePriceData")){
// this.ChangeThePriceData = JSON.parse(localStorage.getItem("ChangeThePriceData"))
// }
// 获取改价提醒 每月1到10号提示
let
DateTime
=
new
Date
();
let
Year
=
DateTime
.
getFullYear
()
let
Month
=
DateTime
.
getMonth
()
+
1
let
Months
=
Month
>
9
?
Month
:
'0'
+
Month
let
StartDate
=
Year
+
'-'
+
Months
+
'-01'
let
DateList
=
[]
for
(
let
i
=
0
;
i
<
10
;
i
++
){
DateList
.
push
(
this
.
getBeforeDate
(
-
i
,
new
Date
(
StartDate
).
Format
(
"yyyy-MM-dd"
)))
}
// 两小时请求一次改价提醒
setInterval
(()
=>
{
if
(
!
this
.
ChangeThePriceVisible
){
this
.
ChangeThePriceList
=
DateList
.
filter
(
x
=>
{
return
x
==
this
.
getBeforeDate
(
0
,
new
Date
().
Format
(
"yyyy-MM-dd"
))
})
if
(
this
.
ChangeThePriceList
.
length
>
0
){
if
(
!
localStorage
.
getItem
(
"ChangeThePriceDataTime"
)
||
(
localStorage
.
getItem
(
"ChangeThePriceDataTime"
)
!=
this
.
getBeforeDate
(
0
,
new
Date
().
Format
(
"yyyy-MM-dd"
)))){
this
.
GetChangeThePrice
()
}
else
{
clearInterval
()
}
},
7200000
)
// 两小时请求一次改价提醒
setInterval
(()
=>
{
if
(
!
this
.
ChangeThePriceVisible
){
this
.
GetChangeThePrice
()
}
else
{
clearInterval
()
}
},
7200000
)
}
},
created
()
{
if
(
!
localStorage
.
getItem
(
"tsNumber"
)
||
localStorage
.
getItem
(
"tsNumber"
)
!=
this
.
tsNumber
)
{
...
...
src/components/myOrdersAllType/components/OrderListExaminePrice.vue
View file @
5038e0d3
...
...
@@ -35,6 +35,20 @@
<span>
{{
scope
.
row
.
OrderId
}}
</span>
</p>
<p>
{{
scope
.
row
.
CreateTimeStr
}}
</p>
<p
v-if=
"scope.row.PlatformMoney"
>
<span>
在途金额:
</span>
<span
style=
"color: red;"
>
{{
scope
.
row
.
PlatformMoney
}}
</span>
</p>
<p
style=
"font-size: 13px;"
v-if=
"scope.row.SaleRemarks"
>
<span>
销售备注:
</span>
<span
style=
"color: red;"
>
{{
scope
.
row
.
SaleRemarks
?
scope
.
row
.
SaleRemarks
:
'无'
}}
</span>
</p>
<p
style=
"font-size: 13px;"
v-if=
"scope.row.OP_Remarks"
>
<span>
OP备注:
</span>
<span
style=
"color: red;"
>
{{
scope
.
row
.
OP_Remarks
?
scope
.
row
.
OP_Remarks
:
'无'
}}
</span>
</p>
</div>
</
template
>
</el-table-column>
...
...
@@ -240,13 +254,16 @@
type="primary" @click="setChangePrice">保存</button> -->
</div>
<el-form
label-width=
"1
0
0px"
>
<el-form
label-width=
"1
2
0px"
>
<el-row>
<el-col
:span=
"4"
>
<el-form-item
label=
"申请总金额"
>
<span
rows=
"6"
>
{{ changePriceMsg.PreferPrice }}
</span>
<el-form-item
label=
"订单应收总金额"
>
<span
rows=
"6"
>
{{changePriceMsg.Money2}}
</span>
</el-form-item></el-col
>
<el-col
:span=
"8"
>
<el-form-item
label=
"申请理由"
>
<span
rows=
"6"
>
{{ changePriceMsg.ApplyForReason }}
</span>
...
...
@@ -254,6 +271,11 @@
>
</el-row>
<el-row>
<el-col
:span=
"4"
>
<el-form-item
label=
"申请总金额"
>
<span
rows=
"6"
>
{{ changePriceMsg.PreferPrice }}
</span>
</el-form-item></el-col
>
<el-col
:span=
"4"
>
<el-form-item
label=
"应收总金额"
prop=
"Money"
>
<el-input
...
...
@@ -405,9 +427,11 @@ export default {
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
let
data
=
res
.
data
.
data
;
this
.
changePriceMsg
.
Money2
=
data
.
Money
;
this
.
changePriceMsg
.
Money
=
data
.
Money
;
this
.
changePriceMsg
.
ApplyForState
=
data
.
ApplyForState
;
this
.
changePriceMsg
.
ApplyForReason
=
data
.
ApplyForReason
;
this
.
changePriceMsg
.
PreferPrice
=
item
.
ApplyForMoney
;
if
(
type
==
0
)
{
this
.
changePriceMsg
.
PreferPrice
=
item
.
ApplyForMoney
;
}
else
{
...
...
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