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
1ea6ba36
Commit
1ea6ba36
authored
Nov 05, 2019
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增车辆全权限控制
parent
8b5a7087
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
35 additions
and
22 deletions
+35
-22
bookDinnerStatisticsDetails.vue
src/components/Restaurant/bookDinnerStatisticsDetails.vue
+0
-1
BusInfo.vue
src/components/busManagement/BusInfo.vue
+35
-21
No files found.
src/components/Restaurant/bookDinnerStatisticsDetails.vue
View file @
1ea6ba36
...
@@ -464,7 +464,6 @@
...
@@ -464,7 +464,6 @@
GetAuth
()
{
GetAuth
()
{
this
.
apipost
(
'dmcstatistics_get_GetGetDmcTotalTablePageAuth'
,
{},
res
=>
{
this
.
apipost
(
'dmcstatistics_get_GetGetDmcTotalTablePageAuth'
,
{},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
if
(
res
.
data
.
resultCode
==
1
)
{
//this.IsDMCIsOpenHotel = res.data.data.IsDMCIsOpenHotel;
this
.
IsEditDinner
=
res
.
data
.
data
.
IsEditDinner
;
this
.
IsEditDinner
=
res
.
data
.
data
.
IsEditDinner
;
}
else
{
}
else
{
this
.
$message
.
error
(
res
.
data
.
message
);
this
.
$message
.
error
(
res
.
data
.
message
);
...
...
src/components/busManagement/BusInfo.vue
View file @
1ea6ba36
...
@@ -204,7 +204,8 @@
...
@@ -204,7 +204,8 @@
</td>
</td>
<td>
回送费
</td>
<td>
回送费
</td>
<td
colspan=
"4"
align=
"left"
style=
"padding-left:5px;"
>
<td
colspan=
"4"
align=
"left"
style=
"padding-left:5px;"
>
<el-input
v-model=
"PostData.BackFee"
@
keyup
.
native=
"checkPrice(PostData,'BackFee')"
placeholder=
"请输入回送费"
maxlength=
"10"
class=
'w135'
></el-input>
<el-input
v-model=
"PostData.BackFee"
@
keyup
.
native=
"checkPrice(PostData,'BackFee')"
placeholder=
"请输入回送费"
maxlength=
"10"
class=
'w135'
></el-input>
</td>
</td>
</tr>
</tr>
</tfoot>
</tfoot>
...
@@ -285,8 +286,8 @@
...
@@ -285,8 +286,8 @@
<el-table-column
label=
"付款方式"
min-width=
"150"
>
<el-table-column
label=
"付款方式"
min-width=
"150"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<div
v-for=
"subItem in scope.row.BusPlanOrderList"
class=
"comBTM"
>
<div
v-for=
"subItem in scope.row.BusPlanOrderList"
class=
"comBTM"
>
<el-select
class=
'sel'
v-model=
'subItem.PayType'
:disabled=
"isShowBtn==1
?true:false"
:placeholder=
"$t('pub.pleaseSel')
"
<el-select
class=
'sel'
v-model=
'subItem.PayType'
:disabled=
"isShowBtn==1
||IsEditBus==0?true:false
"
@
change=
"PayTypeChange(scope.row)"
>
:placeholder=
"$t('pub.pleaseSel')"
@
change=
"PayTypeChange(scope.row)"
>
<el-option
label=
'请选择'
:value=
'0'
></el-option>
<el-option
label=
'请选择'
:value=
'0'
></el-option>
<el-option
label=
'现付'
:value=
'1'
></el-option>
<el-option
label=
'现付'
:value=
'1'
></el-option>
<el-option
label=
'公司结算'
:value=
'2'
></el-option>
<el-option
label=
'公司结算'
:value=
'2'
></el-option>
...
@@ -349,7 +350,7 @@
...
@@ -349,7 +350,7 @@
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<div
v-for=
"subItem in scope.row.BusPlanOrderList"
class=
"comBTM"
>
<div
v-for=
"subItem in scope.row.BusPlanOrderList"
class=
"comBTM"
>
<el-input
v-model=
"subItem.HighSpeedPrice"
@
keyup
.
native=
"checkPrice(subItem,'HighSpeedPrice')"
<el-input
v-model=
"subItem.HighSpeedPrice"
@
keyup
.
native=
"checkPrice(subItem,'HighSpeedPrice')"
placeholder=
"请输入费用"
:disabled=
"isShowBtn==1
?true:false"
class=
'w135'
></el-input>
placeholder=
"请输入费用"
:disabled=
"isShowBtn==1
||IsEditBus==0?true:false"
class=
'w135'
></el-input>
</div>
</div>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
...
@@ -358,7 +359,7 @@
...
@@ -358,7 +359,7 @@
<div>
<div>
<div
v-for=
"(subItem,index) in scope.row.BusPlanOrderList"
class=
"comBTM"
>
<div
v-for=
"(subItem,index) in scope.row.BusPlanOrderList"
class=
"comBTM"
>
<el-select
class=
'sel w135'
v-model=
'subItem.HighSpeedPayType'
:placeholder=
"$t('pub.pleaseSel')"
<el-select
class=
'sel w135'
v-model=
'subItem.HighSpeedPayType'
:placeholder=
"$t('pub.pleaseSel')"
@
change=
"PayTypeChange(subItem)"
:disabled=
"isShowBtn==1?true:false"
>
@
change=
"PayTypeChange(subItem)"
:disabled=
"isShowBtn==1
||IsEditBus==0
?true:false"
>
<el-option
label=
'请选择'
:value=
'0'
></el-option>
<el-option
label=
'请选择'
:value=
'0'
></el-option>
<el-option
label=
'现付'
:value=
'1'
></el-option>
<el-option
label=
'现付'
:value=
'1'
></el-option>
<el-option
label=
'公司结算'
:value=
'2'
></el-option>
<el-option
label=
'公司结算'
:value=
'2'
></el-option>
...
@@ -375,15 +376,15 @@
...
@@ -375,15 +376,15 @@
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<div
v-for=
"subItem in scope.row.BusPlanOrderList"
class=
"comBTM"
>
<div
v-for=
"subItem in scope.row.BusPlanOrderList"
class=
"comBTM"
>
<el-input
v-model=
"subItem.UseNum"
@
keyup
.
native=
"checkPrice(subItem,'UseNum')"
<el-input
v-model=
"subItem.UseNum"
@
keyup
.
native=
"checkPrice(subItem,'UseNum')"
:disabled=
"isShowBtn==1?true:false"
></el-input>
:disabled=
"isShowBtn==1
||IsEditBus==0
?true:false"
></el-input>
</div>
</div>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"成本价"
min-width=
"140"
>
<el-table-column
label=
"成本价"
min-width=
"140"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<div
v-for=
"subItem in scope.row.BusPlanOrderList"
class=
"comBTM"
>
<div
v-for=
"subItem in scope.row.BusPlanOrderList"
class=
"comBTM"
>
<el-input
v-model=
"subItem.CostPrice"
:disabled=
"isShowBtn==1
?true:false"
@
keyup
.
native=
"checkPrice(subItem,'CostPrice')
"
<el-input
v-model=
"subItem.CostPrice"
:disabled=
"isShowBtn==1
||IsEditBus==0?true:false
"
placeholder=
"请输入成本价"
class=
"w135"
></el-input>
@
keyup
.
native=
"checkPrice(subItem,'CostPrice')"
placeholder=
"请输入成本价"
class=
"w135"
></el-input>
</div>
</div>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
...
@@ -410,9 +411,9 @@
...
@@ -410,9 +411,9 @@
</el-table-column>
</el-table-column>
</el-table>
</el-table>
<div
class=
"upBtnList"
>
<div
class=
"upBtnList"
>
<input
type=
"button"
class=
"normalBtn"
:class=
"{'disClick':!isSubmit}"
@
click=
"SaveList(0)"
<input
v-if=
"IsEditBus==0"
type=
"button"
class=
"normalBtn"
:class=
"{'disClick':!isSubmit}"
@
click=
"SaveList(0)"
:disabled=
"disButton"
value=
"保存草稿"
/>
:disabled=
"disButton"
value=
"保存草稿"
/>
<input
type=
"button"
class=
"normalBtn"
:class=
"{'disClick':!isSubmit}"
@
click=
"SaveList(1)"
<input
v-if=
"IsEditBus==1"
type=
"button"
class=
"normalBtn"
:class=
"{'disClick':!isSubmit}"
@
click=
"SaveList(1)"
:disabled=
"disButton"
value=
"保存"
/>
:disabled=
"disButton"
value=
"保存"
/>
<span
v-if=
"isShowBtn==1"
style=
"color:red;margin-left:10px;"
>
<span
v-if=
"isShowBtn==1"
style=
"color:red;margin-left:10px;"
>
已制单,不能再修改价格和付款方式!
已制单,不能再修改价格和付款方式!
...
@@ -547,6 +548,7 @@
...
@@ -547,6 +548,7 @@
loading
:
false
,
loading
:
false
,
isSubmit
:
true
,
isSubmit
:
true
,
isShowBtn
:
1
,
//1禁用高速费,成本费,高速付款方式文本框
isShowBtn
:
1
,
//1禁用高速费,成本费,高速付款方式文本框
IsEditBus
:
0
,
//车辆修改权限
};
};
},
},
methods
:
{
methods
:
{
...
@@ -560,7 +562,7 @@
...
@@ -560,7 +562,7 @@
},
},
/*获取车辆成本价格*/
/*获取车辆成本价格*/
getBusPrice
(
obj
)
{
getBusPrice
(
obj
)
{
if
(
this
.
isShowBtn
!=
1
)
{
if
(
this
.
isShowBtn
!=
1
)
{
let
tempCostFee
=
0
;
let
tempCostFee
=
0
;
var
tempHighSpeedFee
=
0
;
var
tempHighSpeedFee
=
0
;
if
(
obj
.
AirportPickUp
==
3
||
obj
.
AirportPickUp
==
4
)
{
if
(
obj
.
AirportPickUp
==
3
||
obj
.
AirportPickUp
==
4
)
{
...
@@ -624,8 +626,9 @@
...
@@ -624,8 +626,9 @@
/*获取车辆类型列表*/
/*获取车辆类型列表*/
getBusTypeList
()
{
getBusTypeList
()
{
this
.
apipost
(
this
.
apipost
(
"bus_get_GetBusTypePriceList"
,
"bus_get_GetBusTypePriceList"
,
{
{
StartDate
:
this
.
parametersData
.
StartDate
},
StartDate
:
this
.
parametersData
.
StartDate
},
res
=>
{
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
BusTypeList
=
res
.
data
.
data
;
this
.
BusTypeList
=
res
.
data
.
data
;
...
@@ -788,7 +791,7 @@
...
@@ -788,7 +791,7 @@
.
length
-
1
];
.
length
-
1
];
}
}
let
newPlanData
=
this
.
PlanTableData
[
index
].
BusPlanOrderList
[
subIndex
];
let
newPlanData
=
this
.
PlanTableData
[
index
].
BusPlanOrderList
[
subIndex
];
newPlanData
.
AirportPickUp
=
oldPlanData
.
AirportPickUp
;
newPlanData
.
AirportPickUp
=
oldPlanData
.
AirportPickUp
;
newPlanData
.
DriverName
=
oldPlanData
.
DriverName
;
newPlanData
.
DriverName
=
oldPlanData
.
DriverName
;
newPlanData
.
DriverTel
=
oldPlanData
.
DriverTel
;
newPlanData
.
DriverTel
=
oldPlanData
.
DriverTel
;
newPlanData
.
BusNum
=
oldPlanData
.
BusNum
;
newPlanData
.
BusNum
=
oldPlanData
.
BusNum
;
...
@@ -797,9 +800,20 @@
...
@@ -797,9 +800,20 @@
newPlanData
.
PayType
=
oldPlanData
.
PayType
;
newPlanData
.
PayType
=
oldPlanData
.
PayType
;
newPlanData
.
BookGroup
=
oldPlanData
.
BookGroup
;
newPlanData
.
BookGroup
=
oldPlanData
.
BookGroup
;
newPlanData
.
HighSpeedPayType
=
oldPlanData
.
HighSpeedPayType
;
newPlanData
.
HighSpeedPayType
=
oldPlanData
.
HighSpeedPayType
;
},
GetAuth
()
{
this
.
apipost
(
'dmcstatistics_get_GetGetDmcTotalTablePageAuth'
,
{},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
IsEditBus
=
res
.
data
.
data
.
IsEditBus
;
}
else
{
this
.
$message
.
error
(
res
.
data
.
message
);
}
}
},
err
=>
{})
}
},
},
mounted
()
{
mounted
()
{
this
.
GetAuth
();
this
.
GetUseTypeList
();
this
.
GetUseTypeList
();
this
.
GetAirportPickUpList
();
this
.
GetAirportPickUpList
();
this
.
GeAccommodationTypeList
();
this
.
GeAccommodationTypeList
();
...
...
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