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
34abb4b6
Commit
34abb4b6
authored
Apr 26, 2023
by
沈良进
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save
parent
0950b08e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
126 additions
and
2 deletions
+126
-2
HotelManagement.vue
src/components/Hotel/HotelManagement.vue
+124
-1
CostNewPriceAudit.vue
...ts/TravelManager/TravelNewQuotation/CostNewPriceAudit.vue
+2
-1
No files found.
src/components/Hotel/HotelManagement.vue
View file @
34abb4b6
...
...
@@ -216,7 +216,20 @@
.hotelmanagement
.comCursorUrl
{
cursor
:
pointer
;
}
.editInfo
{
padding
:
2px
!important
;
}
.list-item
{
margin
:
20px
0
;
}
.file-title
{
font-size
:
16px
;
font-weight
:
bold
;
}
.submit-box
{
display
:
flex
;
justify-content
:
center
;
}
</
style
>
<
template
>
<div
class=
"flexOne hotelmanagement"
>
...
...
@@ -353,17 +366,56 @@
<!--v-if="IsHotelPriceStock==1" HK 10-21注释-->
<button
style=
"width:80px;margin-top:10px;"
@
click=
"goUrl('HotelProductManage2',item)"
class=
"hotelBtnMan"
>
{{
$t
(
'ground.baojiayukucun'
)
}}
</button>
<button
style=
"width:80px;margin-top:10px;"
@
click=
"downloadFile(item)"
class=
"hotelBtnMan"
>
查看报价
</button>
</div>
</div>
</div>
<el-pagination
background
@
current-change=
"handleCurrentChange"
:current-page
.
sync=
"msg.currentPage"
:page-size=
"this.msg.pageSize"
layout=
"total,prev, pager, next, jumper"
:total=
"msg.total"
></el-pagination>
<el-dialog
title=
"上传报价单"
:visible
.
sync=
"showUpload"
>
<div>
<el-input
style=
"margin-bottom: 20px"
v-model=
"uploadTitle"
placeholder=
"请填写报价单标题"
></el-input>
<el-upload
class=
"upload-demo"
:file-list=
"DownloadMaterialsFileList"
:http-request=
"uploadTest"
:on-remove=
"handleRemove"
:multiple=
"true"
:limit=
"10"
action=
""
>
<el-button
size=
"small"
type=
"primary"
>
点击上传
</el-button>
</el-upload>
<div
class=
"submit-box"
>
<el-button
type=
"primary"
style=
"margin: 20px auto;"
@
click=
"submitFile"
>
提交
</el-button></div>
</div>
</el-dialog>
<el-dialog
title=
"查看报价"
:visible
.
sync=
"showFilelist"
>
<button
style=
"width:80px;margin-top:10px;"
@
click=
"uploadFile()"
class=
"hotelBtnMan"
>
上传报价
</button>
<div
class=
"list-item"
v-for=
"(item, index) in DmcFileStoreList"
:key=
"item.Id"
>
<span
class=
"file-title"
>
{{
item
.
Title
}}
</span>
<el-button
class=
"editInfo"
type=
"danger"
@
click=
"deleteFile(item, index)"
>
删除
</el-button>
<el-button
class=
"editInfo"
type=
"primary"
@
click=
"editFile(item)"
>
编辑
</el-button>
<div
style=
"margin: 10px 0"
v-for=
"(ele, index) in item.FileInfoList"
:key=
"index"
>
<span>
{{
ele
.
Name
}}
</span>
<a
:href=
"ele.Url"
type=
"download"
>
<el-button
class=
"editInfo"
type=
"primary"
>
下载
</el-button></a>
</div>
</div>
</el-dialog>
</div>
</
template
>
<
script
>
export
default
{
data
()
{
return
{
editInfo
:
{},
uploadTitle
:
''
,
DownloadMaterialsFileList
:
[],
showFilelist
:
false
,
showUpload
:
false
,
DmcFileStoreList
:
[],
userInfo
:{},
//登录用户信息
IsHotelPriceStock
:
0
,
//1-有获取酒店库存与报价添加修改权限
countryList
:
""
,
...
...
@@ -407,6 +459,77 @@
};
},
methods
:
{
uploadFile
()
{
this
.
showUpload
=
true
this
.
uploadTitle
=
''
},
downloadFile
(
hotel
)
{
this
.
hotel
=
hotel
this
.
getFilelist
()
this
.
showFilelist
=
true
},
handleRemove
(
file
,
fileList
)
{
this
.
DownloadMaterialsFileList
=
fileList
;
},
uploadTest
(
file
)
{
let
newArr
=
[];
newArr
.
push
(
file
.
file
);
let
path
=
"/Upload/DMC/Icon/"
;
this
.
UploadSelfFileT
(
path
,
newArr
,
x
=>
{
let
url
=
this
.
domainManager
().
ViittoFileUrl
+
x
.
data
.
FilePath
;
let
Name
=
x
.
data
.
SourceFileName
;
this
.
DownloadMaterialsFileList
.
push
({
Url
:
url
,
Name
:
Name
,
name
:
Name
})
});
},
submitFile
()
{
this
.
apipost
(
"hotel_get_SetDMCFileStore"
,
{
Id
:
this
.
editInfo
.
Id
||
0
,
Title
:
this
.
uploadTitle
,
ProcudtType
:
1
,
ProductId
:
this
.
hotel
.
ID
,
FileInfoList
:
this
.
DownloadMaterialsFileList
},
res
=>
{
this
.
showUpload
=
false
this
.
getFilelist
()
},
err
=>
{}
);
},
deleteFile
(
file
,
index
)
{
this
.
apipost
(
"hotel_get_RemoveDMCFileStore"
,
{
Id
:
file
.
Id
,
},
res
=>
{
this
.
DmcFileStoreList
.
splice
(
index
,
1
)
},
err
=>
{}
);
},
editFile
(
file
)
{
this
.
editInfo
=
file
this
.
showUpload
=
true
this
.
uploadTitle
=
file
.
Title
file
.
FileInfoList
.
forEach
(
item
=>
item
.
name
=
item
.
Name
)
this
.
DownloadMaterialsFileList
=
file
.
FileInfoList
},
getFilelist
()
{
this
.
apipost
(
"hotel_get_GetDMCFileStoreList"
,
{
HotelId
:
this
.
hotel
.
Id
,
},
res
=>
{
if
(
res
.
data
.
resultCode
)
{
this
.
DmcFileStoreList
=
res
.
data
.
data
}
},
err
=>
{}
);
},
CopyHotel
(
Id
)
{
var
that
=
this
;
that
.
Confirm
(
'是否要复制此酒店?'
,
function
()
{
...
...
src/components/TravelManager/TravelNewQuotation/CostNewPriceAudit.vue
View file @
34abb4b6
...
...
@@ -719,7 +719,8 @@
<
td
colspan
=
"14"
class
=
"CP_ComTitle2"
>
成本统计(以下报价为每人费用)
<
br
/>
计算规则
:
(
房
+
餐
+
车
+
景点
)
*
汇率
+
内陆段交通
*
汇率
+
杂支部分
*
汇率
+
其他资产
+
机票票
+
收入
-
团负费
+
领队分摊
+
地接报价
*
汇率
-
导游回补
-
小费回补
<
/td
>
<
/tr><tr
>
<
/tr
>
<
tr
>
<
td
class
=
"CP_ComTitle2"
>
人数统计
<
/td
>
<
td
class
=
"CP_ComTitle2"
>
成本价
(
人民币
)
<
/td
>
<
td
class
=
"CP_ComTitle2"
><
template
v
-
if
=
"postConfig.LineId==14"
>
成本价
(
日元
)
<
/template></
td
>
...
...
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