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
e66ea37b
Commit
e66ea37b
authored
Jan 14, 2025
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
117d15ba
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
138 additions
and
50 deletions
+138
-50
roomReservationsDetails.vue
src/components/Hotel/roomReservationsDetails.vue
+50
-29
CostNewPriceAudit.vue
...ts/TravelManager/TravelNewQuotation/CostNewPriceAudit.vue
+3
-0
changeOffer.vue
src/components/commonPage/changeOffer.vue
+73
-17
HotelTripThree.vue
...onents/newTravelmanager/travelLineTrip/HotelTripThree.vue
+12
-4
No files found.
src/components/Hotel/roomReservationsDetails.vue
View file @
e66ea37b
...
...
@@ -30,7 +30,6 @@
.roomReservationsDetailsTalbe
{
table-layout
:
fixed
;
}
.roomReservationsDetailsTalbe
thead
tr
th
{
...
...
@@ -333,7 +332,7 @@
<td>
<
template
v-if=
"childIndex==1"
>
<template
v-if=
"(subItem.LineId==14||subItem.LineId==118)&&subItem.HotelBookType==2"
>
<template
v-if=
"subItem.IsHaveHotelStock==1"
>
<template
v-if=
"subItem.IsHaveHotelStock==1
||childItem.UnitPrice>0
"
>
<el-input
@
keyup
.
native=
"checkInteger(childItem,'UnitPrice')"
class=
'w60 tcenter'
@
input=
"calculationPrice(subItem)"
v-model=
'childItem.UnitPrice'
></el-input>
</
template
>
...
...
@@ -344,7 +343,7 @@
:HotelId=
"subItem.NewHotelId"
:HotelName=
"subItem.NewHotelName"
@
success=
"GetNewHotelPrice"
>
</set-hotel-stock>
<el-button
size=
"small"
type=
"danger"
:data-index=
"'comSetHotelPrice'+index+subIndex+''"
slot=
"reference"
@
click=
"subItem.isShowHStock=true"
>
slot=
"reference"
@
click=
"subItem.isShowHStock=true
,getHotelPrice(index,subIndex)
"
>
添加报价
</el-button>
</el-popover>
...
...
@@ -810,6 +809,7 @@
var
useTime
=
oldData
.
CheckInDateStr
;
var
hotelId
=
ckedObj
.
ID
;
var
TCID
=
oldData
.
TCID
;
console
.
log
(
"checkHotel"
,
ckedObj
);
this
.
apipost
(
'travel_get_GetHotelUsePriceListService_V2'
,
{
HotelId
:
hotelId
,
UseTime
:
useTime
,
...
...
@@ -833,28 +833,30 @@
}
//库存充足或没有酒店库存的情况
else
if
(
objData
.
isOverStock
==
1
||
objData
.
isOverStock
==
-
1
)
{
this
.
list
[
this
.
findex
].
HotelOrderList
[
this
.
childIndex
].
Address
=
ckedObj
.
Address
;
this
.
list
[
this
.
findex
].
HotelOrderList
[
this
.
childIndex
].
NewHotelName
=
ckedObj
.
Name
;
this
.
list
[
this
.
findex
].
HotelOrderList
[
this
.
childIndex
].
Tel
=
ckedObj
.
Tel
;
this
.
list
[
this
.
findex
].
HotelOrderList
[
this
.
childIndex
].
NewHotelId
=
ckedObj
.
ID
;
this
.
list
[
this
.
findex
].
HotelOrderList
[
this
.
childIndex
].
PayStyle
=
ckedObj
.
PayStyle
;
this
.
list
[
this
.
findex
].
HotelOrderList
[
this
.
childIndex
].
PayStyleExt
=
ckedObj
.
PayStyle
;
//判断供应商编号是否大于0
if
(
ckedObj
.
Supplier
>
0
)
{
this
.
list
[
this
.
findex
].
HotelOrderList
[
this
.
childIndex
].
SupplierId
=
ckedObj
.
Supplier
;
}
this
.
list
[
this
.
findex
].
HotelOrderList
[
this
.
childIndex
].
OrderDetailsList
.
forEach
((
subItem
,
subIndex
)
=>
{
//判断是否有库存价格
if
(
subIndex
==
1
&&
ckedObj
.
CostPrice
>
0
&&
ckedObj
.
Inventory
>
0
)
{
subItem
.
IsHaveStockPrice
=
1
;
}
else
{
subItem
.
IsHaveStockPrice
=
0
;
var
tempOrderObj
=
this
.
list
[
this
.
findex
].
HotelOrderList
[
this
.
childIndex
];
if
(
tempOrderObj
)
{
tempOrderObj
.
Address
=
ckedObj
.
Address
;
tempOrderObj
.
NewHotelName
=
ckedObj
.
Name
;
tempOrderObj
.
Tel
=
ckedObj
.
Tel
;
tempOrderObj
.
NewHotelId
=
ckedObj
.
ID
;
tempOrderObj
.
PayStyle
=
ckedObj
.
PayStyle
;
tempOrderObj
.
PayStyleExt
=
ckedObj
.
PayStyle
;
tempOrderObj
.
IsHaveHotelStock
=
0
;
if
(
ckedObj
&&
ckedObj
.
Inventory
>
0
)
{
tempOrderObj
.
IsHaveHotelStock
=
1
;
}
subItem
.
UnitPrice
=
ckedObj
.
CostPrice
;
subItem
.
RebateRatio
=
ckedObj
.
RebateRatio
;
});
//判断供应商编号是否大于0
if
(
ckedObj
.
Supplier
>
0
)
{
tempOrderObj
.
SupplierId
=
ckedObj
.
Supplier
;
}
tempOrderObj
.
OrderDetailsList
.
forEach
((
subItem
,
subIndex
)
=>
{
//判断是否有库存价格
if
(
subItem
.
HouseType
==
2
)
{
subItem
.
UnitPrice
=
ckedObj
.
CostPrice
;
}
});
}
this
.
calculationPrice
(
this
.
list
[
this
.
findex
].
HotelOrderList
[
this
.
childIndex
]);
let
str
=
`elPopoverHotel
${
this
.
findex
}${
this
.
childIndex
}
`
//关闭组件
...
...
@@ -865,9 +867,31 @@
}
},
err
=>
{})
},
//酒店报价
GetNewHotelPrice
(
newHPObj
)
{
console
.
log
(
"newHPObj"
,
newHPObj
);
this
.
getList
();
if
(
newHPObj
)
{
let
str
=
`elPopoverEditHotelPrice
${
this
.
findex
}${
this
.
childIndex
}
`
//关闭组件
this
.
$refs
[
str
][
0
].
doClose
();
var
tempObj
=
this
.
list
[
this
.
findex
].
HotelOrderList
[
this
.
childIndex
];
if
(
this
.
list
[
this
.
findex
].
HotelOrderList
[
this
.
childIndex
])
{
if
(
tempObj
&&
tempObj
.
IsHaveHotelStock
)
{
tempObj
.
IsHaveHotelStock
=
1
;
}
if
(
tempObj
&&
tempObj
.
OrderDetailsList
&&
tempObj
.
OrderDetailsList
.
length
>
0
)
{
tempObj
.
OrderDetailsList
.
forEach
((
subItem
,
subIndex
)
=>
{
if
(
subItem
.
HouseType
==
2
)
{
subItem
.
UnitPrice
=
newHPObj
.
CostPrice
;
}
});
}
}
}
},
getHotelPrice
(
index
,
subIndex
)
{
this
.
findex
=
index
;
this
.
childIndex
=
subIndex
;
},
//点击酒店选择
getChildHotel
(
index
,
subIndex
)
{
...
...
@@ -1374,9 +1398,6 @@
color
:
red
;
}
.roomReservationsDetailsTalbe
.hotelTable
{
border
:
none
;
}
...
...
src/components/TravelManager/TravelNewQuotation/CostNewPriceAudit.vue
View file @
e66ea37b
...
...
@@ -991,6 +991,7 @@
EditType
:
0
,
OfferId
:
0
,
DayNum
:
0
,
checkObj
:
{}
},
dialogDiningTitle
:
"行程变更"
,
}
...
...
@@ -1004,6 +1005,7 @@
this
.
changMsg
.
isShowChangeOffer
=
false
;
this
.
changMsg
.
EditType
=
0
;
this
.
changMsg
.
DayNum
=
0
;
this
.
changMsg
.
checkObj
=
{};
},
refreshPage
(
rType
)
{
this
.
changMsg
.
isShowChangeOffer
=
false
;
...
...
@@ -1023,6 +1025,7 @@
this
.
dialogDiningTitle
=
"报价单变更"
if
(
item
&&
item
.
DayNum
)
{
this
.
changMsg
.
DayNum
=
item
.
DayNum
;
this
.
changMsg
.
checkObj
=
item
;
}
},
GetDayStr
(
dayNum
)
{
...
...
src/components/commonPage/changeOffer.vue
View file @
e66ea37b
...
...
@@ -47,6 +47,8 @@
<td
style=
"width:100px;"
class=
"CP_ComTitle2 CostcomCenter"
>
类别
</td>
<td
style=
"width:100px;"
class=
"CP_ComTitle2 CostcomCenter"
>
变更类型
</td>
<td
style=
"width:100px;"
class=
"CP_ComTitle2 CostcomCenter"
>
天数
</td>
<td
style=
"width:100px;"
class=
"CP_ComTitle2 CostcomCenter"
>
原金额
</td>
<td
style=
"width:100px;"
class=
"CP_ComTitle2 CostcomCenter"
>
地接金额
</td>
<td
style=
"width:100px;"
class=
"CP_ComTitle2 CostcomCenter"
>
变更值
</td>
<td
style=
"width:250px;"
class=
"CP_ComTitle2 CostcomCenter"
>
变更备注
</td>
<td
style=
"width:100px;"
class=
"CP_ComTitle2 CostcomCenter"
>
...
...
@@ -64,7 +66,8 @@
</
template
>
</td>
<td>
<el-select
v-model=
"item.ChangeType"
style=
"width:100px;"
@
change=
"checkChangeType(item,index)"
>
<el-select
v-model=
"item.ChangeType"
style=
"width:100px;"
@
change=
"checkChangeType(item,index),getDiJiePrice(item)"
>
<el-option
v-for=
"item in changeTypeList"
:key=
"item.Id"
:label=
"item.Name"
:value=
"item.Id"
>
</el-option>
</el-select>
...
...
@@ -72,6 +75,12 @@
<td>
{{item.DayNum}}
</td>
<td>
{{item.OldPrice}}
</td>
<td>
{{item.DJPrice}}
</td>
<td>
<el-input
v-model=
"item.ChangeValue"
style=
"width:100px;"
max=
"6"
></el-input>
</td>
...
...
@@ -109,22 +118,67 @@
},
methods
:
{
getDiJiePrice
(
item
)
{
// var postMsg = {
// OfferId: this.qMsg.OfferId,
// ChangeType: item.ChangeType,
// DayNum: this.qMsg.DayNum,
// };
// this.apipost(
// "dmcstatistics_post_GetGroupDayUserMoney", postMsg,
// res => {
// // if (res.data.resultCode == 1) {
// // that.Success(that.$t('objFill.v101.hote.shanchucg'));
// // that.getOfferChange();
// // } else {
// // that.Error(that.$t('objFill.v101.hote.shanchusb'));
// // }
// }
// );
var
postMsg
=
{
OfferId
:
this
.
qMsg
.
OfferId
,
ChangeType
:
item
.
ChangeType
,
DayNum
:
this
.
qMsg
.
DayNum
,
};
item
.
OldPrice
=
0
;
item
.
DJPrice
=
0
;
item
.
ChangeValue
=
0
;
this
.
apipost
(
"dmcstatistics_post_GetGroupDayUserMoney"
,
postMsg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
var
tempValue
=
res
.
data
.
data
;
if
(
tempValue
)
{
item
.
DJPrice
=
Number
(
tempValue
);
}
//酒店变更
if
(
item
.
ChangeType
==
1
)
{
item
.
OldPrice
=
Number
(
this
.
qMsg
.
checkObj
.
HotelCostPrice
);
}
//用车变更
else
if
(
item
.
ChangeType
==
2
)
{
var
totalBus
=
Number
(
this
.
qMsg
.
checkObj
.
BusCostPrice
)
+
Number
(
this
.
qMsg
.
checkObj
.
PassFee
)
item
.
OldPrice
=
totalBus
;
}
//早餐变更
else
if
(
item
.
ChangeType
==
3
)
{
item
.
OldPrice
=
Number
(
this
.
qMsg
.
checkObj
.
BreakfastCostPrice
);
}
//午餐变更
else
if
(
item
.
ChangeType
==
4
)
{
item
.
OldPrice
=
Number
(
this
.
qMsg
.
checkObj
.
LunchCostPrice
);
}
//晚餐变更
else
if
(
item
.
ChangeType
==
5
)
{
item
.
OldPrice
=
Number
(
this
.
qMsg
.
checkObj
.
DinnerCostPrice
);
}
//景点变更
else
if
(
item
.
ChangeType
==
6
)
{
var
tempScenic
=
0
;
if
(
this
.
qMsg
.
checkObj
.
ScenicList
&&
this
.
qMsg
.
checkObj
.
ScenicList
.
length
>
0
)
{
this
.
qMsg
.
checkObj
.
ScenicList
.
forEach
(
sItem
=>
{
if
(
sItem
.
TicketName
!=
''
||
sItem
.
TicketId
>
0
)
{
tempScenic
+=
Number
(
sItem
.
TicketCostPrice
);
}
})
}
item
.
OldPrice
=
Number
(
tempScenic
);
}
//其他费用
else
if
(
item
.
ChangeType
==
7
)
{
item
.
OldPrice
=
Number
(
this
.
qMsg
.
checkObj
.
OtherPrice
);
}
if
(
Number
(
item
.
DJPrice
)
>=
Number
(
item
.
OldPrice
))
{
item
.
ChangeValue
=
Number
(
tempValue
)
-
Number
(
item
.
OldPrice
);
}
else
{
item
.
ChangeValue
=
Number
(
tempValue
)
-
Number
(
item
.
OldPrice
);
}
}
}
);
},
AddOfferObj
()
{
var
obj
=
{
...
...
@@ -135,6 +189,8 @@
ChangeType
:
""
,
ChangeValue
:
0
,
ChangeRemarks
:
""
,
OldPrice
:
0
,
//原报价项目单金额
DJPrice
:
0
,
//地接价格
}
obj
.
OfferId
=
this
.
qMsg
.
OfferId
;
obj
.
EidtType
=
this
.
qMsg
.
EditType
;
...
...
src/components/newTravelmanager/travelLineTrip/HotelTripThree.vue
View file @
e66ea37b
...
...
@@ -160,8 +160,7 @@
<
template
v-if=
"PostConfig.LineId==14||PostConfig.LineId==118"
>
<template
v-if=
"hotelArray&&hotelArray.length>0"
>
<el-select
placeholder=
"预定方式"
v-model=
"hotelArray[0].HotelBookType"
@
change=
"ChangeHotelBookType"
style=
"width:100px;display:none;"
>
<el-option
:value=
"0"
:key=
"0"
label=
"请选择"
></el-option>
style=
"width:100px;"
>
<el-option
:value=
"1"
:key=
"1"
label=
"自订"
></el-option>
<el-option
:value=
"2"
:key=
"2"
label=
"PIC预订"
></el-option>
</el-select>
...
...
@@ -313,12 +312,10 @@
ChangeHotelBookType
()
{
if
(
this
.
hotelArray
&&
this
.
hotelArray
.
length
>
0
)
{
let
tempHotelBookType
=
this
.
hotelArray
[
0
].
HotelBookType
;
console
.
log
(
"tempHotelBookType"
,
tempHotelBookType
);
this
.
hotelArray
.
forEach
(
item
=>
{
item
.
HotelBookType
=
tempHotelBookType
;
});
}
console
.
log
(
"this.hotelArray"
,
this
.
hotelArray
);
},
//酒店选择改变
changeHotelList
()
{
...
...
@@ -369,6 +366,17 @@
}
});
}
if
(
newHotelArray
&&
newHotelArray
.
length
>
0
)
{
let
tempHotelBookType
=
newHotelArray
[
0
].
HotelBookType
;
if
(
this
.
PostConfig
.
LineId
==
14
||
this
.
PostConfig
.
LineId
==
118
)
{
if
(
tempHotelBookType
==
0
)
{
tempHotelBookType
=
2
;
}
newHotelArray
.
forEach
(
item
=>
{
item
.
HotelBookType
=
tempHotelBookType
;
});
}
}
this
.
hotelArray
=
newHotelArray
;
//清除数据
let
hotelDescribeArr
=
[];
...
...
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