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
b89d112a
Commit
b89d112a
authored
Nov 05, 2019
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
车辆报价调整
parent
eaa41f5b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
40 additions
and
28 deletions
+40
-28
BusInfo.vue
src/components/busManagement/BusInfo.vue
+40
-28
No files found.
src/components/busManagement/BusInfo.vue
View file @
b89d112a
...
...
@@ -411,10 +411,10 @@
</el-table-column>
</el-table>
<div
class=
"upBtnList"
>
<input
v-if=
"IsEditBus==0"
type=
"button"
class=
"normalBtn"
:class=
"{'disClick':!isSubmit}"
@
click=
"SaveList(0)"
:disabled=
"disButton"
value=
"保存草稿"
/>
<input
v-if=
"IsEditBus==1"
type=
"button"
class=
"normalBtn"
:class=
"{'disClick':!isSubmit}"
@
click=
"SaveList(1)"
:disabled=
"disButton"
value=
"保存"
/>
<input
v-if=
"IsEditBus==0"
type=
"button"
class=
"normalBtn"
:class=
"{'disClick':!isSubmit}"
@
click=
"SaveList(0)"
:disabled=
"disButton"
value=
"保存草稿"
/>
<input
v-if=
"IsEditBus==1"
type=
"button"
class=
"normalBtn"
:class=
"{'disClick':!isSubmit}"
@
click=
"SaveList(1)"
:disabled=
"disButton"
value=
"保存"
/>
<span
v-if=
"isShowBtn==1"
style=
"color:red;margin-left:10px;"
>
已制单,不能再修改价格和付款方式!
</span>
...
...
@@ -548,7 +548,7 @@
loading
:
false
,
isSubmit
:
true
,
isShowBtn
:
1
,
//1禁用高速费,成本费,高速付款方式文本框
IsEditBus
:
0
,
//车辆修改权限
IsEditBus
:
0
,
//车辆修改权限
};
},
methods
:
{
...
...
@@ -574,30 +574,42 @@
}
//高速付款方式默认现付
obj
.
HighSpeedPayType
=
1
;
let
busTypeObj
=
this
.
BusTypeList
.
find
(
item
=>
item
.
Id
===
obj
.
BusType
);
if
(
busTypeObj
)
{
//接送价格
if
(
obj
.
AirportPickUp
==
1
||
obj
.
AirportPickUp
==
2
)
{
tempCostFee
+=
parseFloat
(
busTypeObj
.
ReceivePrice
);
//接送高速
tempHighSpeedFee
+=
parseFloat
(
busTypeObj
.
PickUpHighSpeedFee
);
}
//全天价格
if
(
obj
.
AirportPickUp
==
12
)
{
tempCostFee
+=
parseFloat
(
busTypeObj
.
AllDayPrice
);
//全天高速
tempHighSpeedFee
+=
parseFloat
(
busTypeObj
.
AllDayHighSpeedFee
);
}
obj
.
HighSpeedPrice
=
tempHighSpeedFee
;
obj
.
CostPrice
=
tempCostFee
;
this
.
apipost
(
"bus_get_GetBusTypePriceByDateList"
,
{
StartDate
:
obj
.
PlanDateStr
,
Id
:
obj
.
BusType
,
},
response
=>
{
if
(
response
.
data
.
resultCode
==
1
)
{
let
busTypeObj
=
response
.
data
.
data
;
if
(
busTypeObj
)
{
//接送价格
if
(
obj
.
AirportPickUp
==
1
||
obj
.
AirportPickUp
==
2
)
{
tempCostFee
+=
parseFloat
(
busTypeObj
.
ReceivePrice
);
//接送高速
tempHighSpeedFee
+=
parseFloat
(
busTypeObj
.
PickUpHighSpeedFee
);
}
//全天价格
if
(
obj
.
AirportPickUp
==
12
)
{
tempCostFee
+=
parseFloat
(
busTypeObj
.
AllDayPrice
);
//全天高速
tempHighSpeedFee
+=
parseFloat
(
busTypeObj
.
AllDayHighSpeedFee
);
}
obj
.
HighSpeedPrice
=
tempHighSpeedFee
;
obj
.
CostPrice
=
tempCostFee
;
if
(
!
obj
.
HighSpeedPrice
)
{
obj
.
HighSpeedPrice
=
0
;
}
if
(
!
obj
.
CostPrice
)
{
obj
.
CostPrice
=
0
;
}
}
}
},
null
);
if
(
!
obj
.
HighSpeedPrice
)
{
obj
.
HighSpeedPrice
=
0
;
}
if
(
!
obj
.
CostPrice
)
{
obj
.
CostPrice
=
0
;
}
}
}
},
AddSubItem
(
item
)
{
...
...
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