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
2e7ef853
Commit
2e7ef853
authored
6 years ago
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
上传修改
parent
fdd05e2f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
14 deletions
+18
-14
roomReservationsDetails.vue
src/components/Hotel/roomReservationsDetails.vue
+18
-14
No files found.
src/components/Hotel/roomReservationsDetails.vue
View file @
2e7ef853
...
@@ -106,8 +106,11 @@
...
@@ -106,8 +106,11 @@
</div>
</div>
<el-upload
<el-upload
:http-request=
"uploadFileBtn"
:http-request=
"uploadFileBtn"
:multiple=
"true"
:show-file-list=
"false"
action=
""
style=
"display:none"
>
:multiple=
"true"
:show-file-list=
"false"
action=
""
>
<el-button
size=
"small"
type=
"danger"
icon=
"el-icon-upload2"
>
合同上传
</el-button>
<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>
</el-upload>
</td>
</td>
<td>
<td>
...
@@ -218,6 +221,8 @@
...
@@ -218,6 +221,8 @@
CreateByAccount
:
''
,
CreateByAccount
:
''
,
//创建人姓名
//创建人姓名
CreateByName
:
''
,
CreateByName
:
''
,
//点击项
ClickItem
:{},
}
}
},
},
methods
:
{
methods
:
{
...
@@ -270,11 +275,16 @@
...
@@ -270,11 +275,16 @@
this
.
CreateByPhoto
=
res
.
data
.
data
.
CreateByPhoto
;
this
.
CreateByPhoto
=
res
.
data
.
data
.
CreateByPhoto
;
this
.
CreateByAccount
=
res
.
data
.
data
.
CreateByAccount
;
this
.
CreateByAccount
=
res
.
data
.
data
.
CreateByAccount
;
this
.
list
.
forEach
(
item
=>
{
this
.
list
.
forEach
(
item
=>
{
this
.
calculationPrice
(
item
)
this
.
calculationPrice
(
item
)
;
item
.
hotelList
.
push
({
item
.
hotelList
.
push
({
Name
:
item
.
NewHotelName
,
Name
:
item
.
NewHotelName
,
ID
:
item
.
NewHotelId
ID
:
item
.
NewHotelId
})
})
item
.
ContractUrlArray
=
[];
if
(
item
.
ContractUrl
&&
item
.
ContractUrl
!=
''
)
{
item
.
ContractUrlArray
=
item
.
ContractUrl
.
split
(
','
);
}
item
.
PayStyle
=
item
.
PayStyle
.
toString
()
item
.
PayStyle
=
item
.
PayStyle
.
toString
()
item
.
OrderDetailsList
.
forEach
((
x
,
index1
)
=>
{
item
.
OrderDetailsList
.
forEach
((
x
,
index1
)
=>
{
if
(
x
.
HouseTypeCount
<=
0
)
{
if
(
x
.
HouseTypeCount
<=
0
)
{
...
@@ -290,7 +300,7 @@
...
@@ -290,7 +300,7 @@
item
.
ReserveNo
=
this
.
$route
.
query
.
NewCombinationNum
;
item
.
ReserveNo
=
this
.
$route
.
query
.
NewCombinationNum
;
}
}
})
})
console
.
log
(
this
.
list
,
'lists'
);
console
.
log
(
"this.List"
,
this
.
list
);
}
else
{
}
else
{
this
.
$message
.
error
(
res
.
data
.
message
);
this
.
$message
.
error
(
res
.
data
.
message
);
}
}
...
@@ -368,7 +378,7 @@
...
@@ -368,7 +378,7 @@
},
},
//合同上传
//合同上传
uploadFileBtn
(
file
)
{
uploadFileBtn
(
file
)
{
//上传
console
.
log
(
"clickItem"
,
this
.
ClickItem
);
if
(
file
.
file
.
size
>
1024
*
1024
*
100
)
{
if
(
file
.
file
.
size
>
1024
*
1024
*
100
)
{
this
.
$message
.
warning
(
"文件大小不能超过100M!"
);
this
.
$message
.
warning
(
"文件大小不能超过100M!"
);
return
;
return
;
...
@@ -378,16 +388,10 @@
...
@@ -378,16 +388,10 @@
let
path
=
"/Upload/DMC/"
;
let
path
=
"/Upload/DMC/"
;
this
.
$message
.
info
(
"上传中..."
);
this
.
$message
.
info
(
"上传中..."
);
this
.
UploadSelfFileT
(
path
,
newArr
,
x
=>
{
this
.
UploadSelfFileT
(
path
,
newArr
,
x
=>
{
let
fileSize
=
var
fileUrl
=
this
.
domainManager
().
ViittoFileUrl
+
x
.
data
.
FilePath
;
file
.
file
.
size
<
1024
this
.
ClickItem
.
ContractUrlArray
.
push
(
fileUrl
);
?
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
// });
});
});
this
.
ClickItem
.
ContractUrl
=
JSON
.
stringify
(
this
.
ClickItem
.
ContractUrlArray
);
},
},
},
},
mounted
()
{
mounted
()
{
...
...
This diff is collapsed.
Click to expand it.
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