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
729420b7
Commit
729420b7
authored
Mar 25, 2019
by
qiaoyajun
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.oytour.com/luochao/superman
parents
0ae3bc69
8a6e8730
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
23 deletions
+31
-23
roomReservationsDetails.vue
src/components/Hotel/roomReservationsDetails.vue
+31
-23
No files found.
src/components/Hotel/roomReservationsDetails.vue
View file @
729420b7
...
...
@@ -104,10 +104,11 @@
</el-option>
</el-select>
</div>
<el-upload
:http-request=
"uploadFileBtn"
:multiple=
"true"
:show-file-list=
"false"
action=
""
style=
"display:none"
>
<el-button
size=
"small"
type=
"danger"
icon=
"el-icon-upload2"
>
合同上传
</el-button>
<el-upload
:http-request=
"uploadFileBtn"
:multiple=
"true"
:show-file-list=
"false"
action=
""
>
<el-button
size=
"small"
type=
"danger"
icon=
"el-icon-upload2"
>
<i
class=
"el-icon-plus avatar-uploader-icon"
@
click=
"ClickItem=item"
></i>
<div
class=
"el-upload__text"
@
click=
"ClickItem=item"
>
点击上传
</div>
</el-button>
</el-upload>
</td>
<td>
...
...
@@ -218,6 +219,8 @@
CreateByAccount
:
''
,
//创建人姓名
CreateByName
:
''
,
//点击项
ClickItem
:
{},
}
},
methods
:
{
...
...
@@ -270,11 +273,15 @@
this
.
CreateByPhoto
=
res
.
data
.
data
.
CreateByPhoto
;
this
.
CreateByAccount
=
res
.
data
.
data
.
CreateByAccount
;
this
.
list
.
forEach
(
item
=>
{
this
.
calculationPrice
(
item
)
this
.
calculationPrice
(
item
)
;
item
.
hotelList
.
push
({
Name
:
item
.
NewHotelName
,
ID
:
item
.
NewHotelId
})
item
.
ContractUrlArray
=
[];
if
(
item
.
ContractUrl
&&
item
.
ContractUrl
!=
''
)
{
item
.
ContractUrlArray
=
item
.
ContractUrl
.
split
(
','
);
}
item
.
PayStyle
=
item
.
PayStyle
.
toString
()
item
.
OrderDetailsList
.
forEach
((
x
,
index1
)
=>
{
if
(
x
.
HouseTypeCount
<=
0
)
{
...
...
@@ -286,11 +293,11 @@
x
.
UnitPrice
=
x
.
UnitPrice
.
toString
();
x
.
HotelDiscount
=
x
.
HotelDiscount
.
toString
();
})
if
(
item
.
ReserveNo
==
''
||
item
.
ReserveNo
==
null
)
{
item
.
ReserveNo
=
this
.
$route
.
query
.
NewCombinationNum
;
}
if
(
item
.
ReserveNo
==
''
||
item
.
ReserveNo
==
null
)
{
item
.
ReserveNo
=
this
.
$route
.
query
.
NewCombinationNum
;
}
})
console
.
log
(
this
.
list
,
'lists'
);
console
.
log
(
"this.List"
,
this
.
list
);
}
else
{
this
.
$message
.
error
(
res
.
data
.
message
);
}
...
...
@@ -366,9 +373,9 @@
}
},
err
=>
{})
},
//合同上传
//合同上传
uploadFileBtn
(
file
)
{
//上传
console
.
log
(
"clickItem"
,
this
.
ClickItem
);
if
(
file
.
file
.
size
>
1024
*
1024
*
100
)
{
this
.
$message
.
warning
(
"文件大小不能超过100M!"
);
return
;
...
...
@@ -378,16 +385,15 @@
let
path
=
"/Upload/DMC/"
;
this
.
$message
.
info
(
"上传中..."
);
this
.
UploadSelfFileT
(
path
,
newArr
,
x
=>
{
let
fileSize
=
file
.
file
.
size
<
1024
?
file
.
file
.
size
:
(
file
.
file
.
size
/
1024
).
toFixed
(
0
);
console
.
log
(
x
);
// this.uploadList.push({
// Url: this.domainManager().ViittoFileUrl + x.data.FilePath,
// Name: file.file.name
// });
var
fileUrl
=
this
.
domainManager
().
ViittoFileUrl
+
x
.
data
.
FilePath
;
this
.
ClickItem
.
ContractUrlArray
.
push
(
fileUrl
);
var
str
=
""
;
this
.
ClickItem
.
ContractUrlArray
.
forEach
(
subItem
=>
{
str
+=
subItem
+
","
;
})
this
.
ClickItem
.
ContractUrl
=
str
!=
""
?
str
.
substring
(
0
,
str
.
length
-
1
)
:
str
;
});
},
},
mounted
()
{
...
...
@@ -397,12 +403,14 @@
this
.
getList
();
},
}
</
script
>
<
style
>
.roomReservationsDetailsTalbe
.el-button--small
{
padding
:
5px
;
margin-top
:
10px
;
.roomReservationsDetailsTalbe
.el-button--small
{
padding
:
5px
;
margin-top
:
10px
;
}
.roomReservationsDetailsTalbe
.roomBtn
{
color
:
#fff
;
padding
:
0
10px
!important
;
...
...
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