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
d300046f
Commit
d300046f
authored
May 30, 2019
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
b837f169
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
16 deletions
+27
-16
BusInfo.vue
src/components/busManagement/BusInfo.vue
+27
-16
No files found.
src/components/busManagement/BusInfo.vue
View file @
d300046f
...
...
@@ -129,6 +129,7 @@
background
:
#EAEAEA
!important
;
text-align
:
center
;
}
.disClick
{
background-color
:
#d1d1d1
;
color
:
#fff
;
...
...
@@ -265,9 +266,10 @@
</el-select>
</
template
>
</el-table-column>
<el-table-column
label=
"付款方式"
min-width=
"150"
>
<el-table-column
label=
"付款方式"
min-width=
"150"
>
<
template
slot-scope=
"scope"
>
<el-select
class=
'sel'
v-model=
'scope.row.PayType'
:placeholder=
"$t('pub.pleaseSel')"
>
<el-select
class=
'sel'
v-model=
'scope.row.PayType'
:placeholder=
"$t('pub.pleaseSel')"
@
change=
"PayTypeChange(scope.row)"
>
<el-option
label=
'请选择'
:value=
'0'
></el-option>
<el-option
label=
'现付'
:value=
'1'
></el-option>
<el-option
label=
'公司结算'
:value=
'2'
></el-option>
...
...
@@ -277,9 +279,10 @@
</el-select>
</
template
>
</el-table-column>
<el-table-column
label=
"合团支付团号"
min-width=
"150"
>
<el-table-column
label=
"合团支付团号"
min-width=
"150"
>
<
template
slot-scope=
"scope"
>
<el-input
class=
'w120'
type=
"text"
v-model=
'scope.row.PayTypeTCNUM'
v-show=
"scope.row.PayType==6"
></el-input>
<el-input
class=
'w120'
type=
"text"
v-model=
'scope.row.PayTypeTCNUM'
v-show=
"scope.row.PayType==6"
>
</el-input>
</
template
>
</el-table-column>
<el-table-column
label=
"定团号"
min-width=
"230"
>
...
...
@@ -320,7 +323,7 @@
<el-table-column
label=
"高速费用付款方式"
min-width=
"150"
>
<
template
slot-scope=
"scope"
>
<div>
<el-select
class=
'sel'
v-model=
'scope.row.HighSpeedPayType'
:placeholder=
"$t('pub.pleaseSel')"
>
<el-select
class=
'sel'
v-model=
'scope.row.HighSpeedPayType'
:placeholder=
"$t('pub.pleaseSel')"
@
change=
"PayTypeChange(scope.row)"
>
<el-option
label=
'请选择'
:value=
'0'
></el-option>
<el-option
label=
'现付'
:value=
'1'
></el-option>
<el-option
label=
'公司结算'
:value=
'2'
></el-option>
...
...
@@ -359,8 +362,10 @@
</el-table-column>
</el-table>
<div
class=
"upBtnList"
>
<input
type=
"button"
class=
"normalBtn"
:class=
"{'disClick':!isSubmit}"
@
click=
"SaveList(0)"
:disabled=
"disButton"
value=
"保存草稿"
/>
<input
type=
"button"
class=
"normalBtn"
:class=
"{'disClick':!isSubmit}"
@
click=
"SaveList(1)"
:disabled=
"disButton"
value=
"保存"
/>
<input
type=
"button"
class=
"normalBtn"
:class=
"{'disClick':!isSubmit}"
@
click=
"SaveList(0)"
:disabled=
"disButton"
value=
"保存草稿"
/>
<input
type=
"button"
class=
"normalBtn"
:class=
"{'disClick':!isSubmit}"
@
click=
"SaveList(1)"
:disabled=
"disButton"
value=
"保存"
/>
</div>
</el-form>
</div>
...
...
@@ -513,12 +518,20 @@
};
},
methods
:
{
PayTypeChange
(
obj
)
{
if
(
obj
.
PayType
==
7
)
{
obj
.
CostPrice
=
0
;
}
if
(
obj
.
HighSpeedPayType
==
7
)
{
obj
.
HighSpeedPrice
=
0
;
}
},
/*获取车辆成本价格*/
getBusPrice
(
obj
)
{
let
tempCostFee
=
0
;
var
tempHighSpeedFee
=
0
;
if
(
obj
.
BusType
)
{
obj
.
PayType
=
2
;
obj
.
PayType
=
2
;
obj
.
HighSpeedPayType
=
1
;
let
busTypeObj
=
this
.
BusTypeList
.
find
(
item
=>
item
.
Id
===
obj
.
BusType
);
if
(
busTypeObj
)
{
...
...
@@ -536,17 +549,15 @@
tempHighSpeedFee
+=
parseFloat
(
busTypeObj
.
AllDayHighSpeedFee
);
}
});
if
(
obj
.
HighSpeedPrice
==
0
)
{
obj
.
HighSpeedPrice
=
tempHighSpeedFee
;
if
(
obj
.
HighSpeedPrice
==
0
)
{
obj
.
HighSpeedPrice
=
tempHighSpeedFee
;
}
if
(
obj
.
CostPrice
==
0
)
{
obj
.
CostPrice
=
tempCostFee
;
if
(
obj
.
CostPrice
==
0
)
{
obj
.
CostPrice
=
tempCostFee
;
}
}
}
else
{
obj
.
PayType
=
null
;
}
else
{
obj
.
PayType
=
null
;
}
},
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