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
ff066d81
Commit
ff066d81
authored
Apr 10, 2023
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
c1ea6d40
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
35 deletions
+20
-35
editTeamInfo.vue
src/components/TravelManager/TravelTeam/editTeamInfo.vue
+20
-35
No files found.
src/components/TravelManager/TravelTeam/editTeamInfo.vue
View file @
ff066d81
...
...
@@ -359,8 +359,8 @@
<!--真实采购机票-->
<el-row
v-if=
"isVirtuallyFlight==1"
>
<el-col
:span=
"24"
>
<el-form-item
label=
"机票绑定"
>
<el-input
placeholder=
"绑定机票信息"
v-model=
"TicketMsg"
>
<el-form-item
label=
"机票绑定"
style=
"padding-top:10px;"
>
<el-input
placeholder=
"绑定机票信息"
v-model=
"TicketMsg"
disabled
>
<
template
slot=
"append"
>
<el-popover
popper-class=
"_TravelPricePopover"
>
<div>
...
...
@@ -527,9 +527,8 @@
<el-row>
<el-col
:span=
"24"
>
<el-form-item
label=
"WORD行程"
>
<el-upload
v-show=
"!ContractArray.length"
class=
"upload-demo"
style=
"display:inline-block;position:relative;top:-1px;left:3px;"
:http-request=
"uploadFileBtn"
:show-file-list=
"false"
action=
""
>
<el-upload
class=
"upload-demo"
style=
"display:inline-block;position:relative;top:-1px;left:3px;"
:http-request=
"uploadFileBtn"
:show-file-list=
"false"
action=
""
>
<el-button
size=
"small"
type=
"primary"
>
添加附件
</el-button>
</el-upload>
<
template
v-if=
"editForm.WordUrl && editForm.WordUrl!='' "
>
...
...
@@ -573,7 +572,6 @@
data
()
{
return
{
loading
:
false
,
ContractArray
:
[],
rules
:
{
GTeamName
:
[{
required
:
true
,
...
...
@@ -696,19 +694,20 @@
}
},
methods
:
{
//查询航班列表
getSelectFilght
()
{
let
fqMsg
=
{
QFlightDateStart
:
this
.
QFlightDateStart
,
QFlightDateEnd
:
this
.
QFlightDateEnd
,
QFlightDateStart
:
""
,
QFlightDateEnd
:
""
,
CreateBy
:
this
.
userInfo
.
EmployeeId
,
AirTicketId
:
0
,
TCID
:
0
};
if
(
this
.
editForm
.
TicketId
&&
this
.
editForm
.
TicketId
>
0
)
{
fqMsg
.
AirTicketId
=
this
.
editForm
.
TicketId
;
}
if
(
this
.
editForm
.
TCID
&&
this
.
editForm
.
TCID
>
0
)
{
fqMsg
.
TCID
=
this
.
editForm
.
TCID
;
}
else
{
fqMsg
.
QFlightDateStart
=
this
.
QFlightDateStart
;
fqMsg
.
QFlightDateEnd
=
this
.
QFlightDateEnd
;
}
let
that
=
this
;
this
.
apipost
(
...
...
@@ -722,9 +721,11 @@
that
.
selectFilghtList
.
push
(
x
);
});
that
.
selectFilghtList
.
forEach
(
y
=>
{
if
(
y
.
PurchaseId
==
that
.
editForm
.
TicketId
&&
y
.
BindNum
>
0
)
{
if
(
y
.
AirticketId
==
that
.
editForm
.
TicketId
)
{
console
.
log
(
"1111"
);
y
.
IsSelected
=
true
;
that
.
editForm
.
TicketNum
=
x
.
Bind
Num
;
y
.
BindNum
=
that
.
editForm
.
Ticket
Num
;
that
.
TicketMsg
=
y
.
AlName
+
"/"
+
y
.
FlightDate
;
}
});
...
...
@@ -816,6 +817,7 @@
//判断是否是虚拟航班
if
(
tempObj
.
TicketId
>
0
)
{
this
.
isVirtuallyFlight
=
1
;
this
.
getSelectFilght
();
}
if
(
tempObj
.
TravelTeamFlightList
&&
tempObj
.
TravelTeamFlightList
.
length
>
0
)
{
this
.
addMsg
.
flightList
=
tempObj
.
TravelTeamFlightList
;
...
...
@@ -931,23 +933,6 @@
this
.
Warning
(
"请选择合作伙伴"
);
return
;
}
// if (
// this.editForm.TravelTeamFlightList.findIndex(
// (item) => item.TicketType === 1
// ) === -1
// ) {
// this.Warning("请选择去程航班");
// return;
// }
// if (
// this.editForm.TravelTeamFlightList.findIndex(
// (item) => item.TicketType === 2
// ) === -1
// ) {
// this.Warning("请选择回程航班");
// return;
// }
this
.
apipost
(
"post_SetTeavelTeam"
,
this
.
editForm
,
...
...
@@ -988,7 +973,10 @@
downloadFile
(
fileUrl
,
fileName
)
{
const
link
=
document
.
createElement
(
"a"
);
link
.
href
=
fileUrl
;
link
.
download
=
fileName
;
if
(
fileName
)
{
link
.
download
=
fileName
;
}
link
.
target
=
"_blank"
;
document
.
body
.
appendChild
(
link
);
link
.
click
();
},
...
...
@@ -1000,10 +988,7 @@
this
.
$message
.
info
(
this
.
$t
(
"tips.shangchuanzhong"
));
this
.
UploadSelfFileT
(
path
,
newArr
,
(
x
)
=>
{
var
newUrl
=
this
.
domainManager
().
ViittoFileUrl
+
x
.
data
.
FilePath
;
this
.
ContractArray
.
push
({
Name
:
x
.
data
.
SourceFileName
,
Url
:
newUrl
,
});
this
.
editForm
.
WordUrl
=
newUrl
this
.
Success
(
this
.
$t
(
"tips.scchenggong"
));
});
},
...
...
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