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
250dc8a7
Commit
250dc8a7
authored
Jun 04, 2019
by
huangyuanyuan
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.oytour.com/luochao/superman
parents
fde696b0
979e3470
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
128 additions
and
62 deletions
+128
-62
AddSupplierComplaints.vue
src/components/Supplier/AddSupplierComplaints.vue
+47
-20
HotelInfo.vue
src/components/Supplier/HotelInfo.vue
+50
-36
roomQuery.vue
src/components/Supplier/roomQuery.vue
+31
-6
No files found.
src/components/Supplier/AddSupplierComplaints.vue
View file @
250dc8a7
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
margin-bottom
:
20px
;
margin-bottom
:
20px
;
}
}
.Supplier_AC_contDetail
>
p
{
.Supplier_AC_contDetail
>
p
{
background
:
#ccc
;
background
:
#ccc
;
color
:
#333
;
color
:
#333
;
padding
:
5px
;
padding
:
5px
;
...
@@ -83,7 +83,7 @@
...
@@ -83,7 +83,7 @@
border
:
1px
#d81e06
solid
;
border
:
1px
#d81e06
solid
;
}
}
.Supplier_AC_contDetail
>
a
{
.Supplier_AC_contDetail
>
a
{
color
:
#3980c8
!important
;
color
:
#3980c8
!important
;
}
}
...
@@ -129,12 +129,13 @@
...
@@ -129,12 +129,13 @@
</li>
</li>
</ul>
</ul>
</div>
</div>
<el-input
type=
"textarea"
style=
"margin-top:10px;"
:rows=
"5"
v-model=
"EditMsg.ComplainContent"
placeholder=
"具体问题描述,以及投诉人的姓名、联系方式"
></el-input>
<el-input
type=
"textarea"
style=
"margin-top:10px;"
:rows=
"5"
v-model=
"EditMsg.ComplainContent"
placeholder=
"具体问题描述,以及投诉人的姓名、联系方式"
></el-input>
</div>
</div>
<p
style=
"text-align: center; margin: 10px 0 15px 0;"
>
<p
style=
"text-align: center; margin: 10px 0 15px 0;"
>
<input
type=
"button"
class=
"normalBtn"
value=
"保存"
@
click=
"SaveData()"
/>
<input
type=
"button"
class=
"normalBtn"
value=
"保存"
@
click=
"SaveData()"
/>
<input
type=
"button"
class=
"normalBtn"
value=
"取消"
/>
<input
type=
"button"
class=
"normalBtn"
value=
"取消"
/>
</p>
</p>
</div>
</div>
</
template
>
</
template
>
...
@@ -148,11 +149,11 @@
...
@@ -148,11 +149,11 @@
themeCked
:
[],
themeCked
:
[],
//添加修改投诉
//添加修改投诉
EditMsg
:
{
EditMsg
:
{
Id
:
0
,
//编号
Id
:
0
,
//编号
SupplierId
:
0
,
//供应商编号
SupplierId
:
0
,
//供应商编号
TCID
:
0
,
//团队编号
TCID
:
0
,
//团队编号
ComplainContentrs
:
''
,
//投诉内容
ComplainContentrs
:
''
,
//投诉内容
ComplainContent
:
''
,
//问题描述
ComplainContent
:
''
,
//问题描述
},
},
//查询参数
//查询参数
QMsg
:
{
QMsg
:
{
...
@@ -164,8 +165,7 @@
...
@@ -164,8 +165,7 @@
ExitCount
:
0
ExitCount
:
0
};
};
},
},
mounted
()
{
mounted
()
{},
},
methods
:
{
methods
:
{
//选取主题内容
//选取主题内容
getTheme
(
item
)
{
getTheme
(
item
)
{
...
@@ -192,8 +192,7 @@
...
@@ -192,8 +192,7 @@
}
else
{
}
else
{
this
.
Error
(
res
.
data
.
message
)
this
.
Error
(
res
.
data
.
message
)
}
}
},
err
=>
{
},
err
=>
{});
});
},
},
//保存数据
//保存数据
SaveData
(
status
)
{
SaveData
(
status
)
{
...
@@ -201,7 +200,6 @@
...
@@ -201,7 +200,6 @@
this
.
Error
(
"请选择主题内容"
);
this
.
Error
(
"请选择主题内容"
);
return
false
;
return
false
;
}
}
//数据组装
//数据组装
this
.
EditMsg
.
ComplainContentrs
=
""
;
this
.
EditMsg
.
ComplainContentrs
=
""
;
let
contentrArr
=
[];
let
contentrArr
=
[];
...
@@ -213,7 +211,6 @@
...
@@ -213,7 +211,6 @@
if
(
contentrArr
.
length
>
0
)
{
if
(
contentrArr
.
length
>
0
)
{
this
.
EditMsg
.
ComplainContentrs
=
contentrArr
.
join
(
","
)
this
.
EditMsg
.
ComplainContentrs
=
contentrArr
.
join
(
","
)
}
}
this
.
ApiPost2
(
'supplierComplain_Post_SetSupplierComplain'
,
this
.
EditMsg
,
res
=>
{
this
.
ApiPost2
(
'supplierComplain_Post_SetSupplierComplain'
,
this
.
EditMsg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
Success
(
"添加成功"
);
this
.
Success
(
"添加成功"
);
...
@@ -224,8 +221,7 @@
...
@@ -224,8 +221,7 @@
}
else
{
}
else
{
this
.
Error
(
res
.
data
.
message
);
this
.
Error
(
res
.
data
.
message
);
}
}
},
err
=>
{
},
err
=>
{});
});
},
},
//获取投诉枚举集合
//获取投诉枚举集合
getEnumeration
()
{
getEnumeration
()
{
...
@@ -241,12 +237,43 @@
...
@@ -241,12 +237,43 @@
}
}
});
});
},
},
GetData
()
{
this
.
ApiPost2
(
'supplierComplain_Get_GetSupplierComplain'
,
{
Id
:
this
.
EditMsg
.
Id
},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
EditMsg
=
res
.
data
.
data
;
if
(
this
.
EditMsg
.
ComplainContentrs
&&
this
.
EditMsg
.
ComplainContentrs
!=
''
)
{
var
array
=
this
.
EditMsg
.
ComplainContentrs
.
split
(
','
);
if
(
array
!=
null
&&
array
.
length
>
0
)
{
array
.
forEach
(
subItem
=>
{
this
.
themeList
.
forEach
(
x
=>
{
if
(
subItem
==
x
.
Name
)
{
x
.
isCheck
=
true
;
this
.
themeCked
.
push
(
x
.
Id
)
}
});
});
}
}
}
else
{
this
.
Error
(
res
.
data
.
message
);
}
},
err
=>
{});
}
},
},
created
()
{
created
()
{
this
.
EditMsg
.
Id
=
this
.
$route
.
query
.
id
;
this
.
EditMsg
.
Id
=
this
.
$route
.
query
.
Id
;
this
.
QMsg
.
TCID
=
this
.
$route
.
query
.
TCID
;
},
},
mounted
()
{
mounted
()
{
this
.
getEnumeration
();
this
.
getEnumeration
();
if
(
this
.
QMsg
.
TCID
)
{
this
.
CheckTCID
();
}
if
(
this
.
EditMsg
.
Id
&&
this
.
EditMsg
.
Id
>
0
)
{
this
.
GetData
();
}
}
}
};
};
...
...
src/components/Supplier/HotelInfo.vue
View file @
250dc8a7
<
style
>
<
style
>
@import
"../../assets/css/DMC.css"
;
@import
"../../assets/css/DMC.css"
;
.title
{
width
:
100%
;
display
:
-webkit-box
;
margin-top
:
20px
}
.tu_img
{
width
:
100%
;
display
:
-webkit-box
;
padding
:
20px
50px
}
</
style
>
</
style
>
<
template
>
<
template
>
<div
class=
"flexOne changInfo"
>
<div
class=
"flexOne changInfo"
>
<div
class=
"resource-content clearfix"
>
<div
class=
"resource-content clearfix"
:style=
"
{height:(orderHight-90) + 'px'}"
>
<el-form
:model=
"addMsg"
:rules=
"rules"
ref=
"addMsg"
>
<el-form
:model=
"addMsg"
:rules=
"rules"
ref=
"addMsg"
>
<div
class=
"resource-baseinfo"
>
<div
class=
"resource-baseinfo"
>
<span
class=
"resource-lititle"
>
{{
$t
(
'hotel.hotel_baseinfo'
)
}}
</span>
<span
class=
"resource-lititle"
>
{{
$t
(
'hotel.hotel_baseinfo'
)
}}
</span>
<el-form-item
:label=
"$t('hotel.hotel_name')"
prop=
"Name"
>
<el-form-item
:label=
"$t('hotel.hotel_name')"
prop=
"Name"
>
...
@@ -72,8 +74,8 @@
...
@@ -72,8 +74,8 @@
</el-select>
</el-select>
</span>
</span>
</div>
</div>
<span
class=
"resource-lititle sheshi"
>
酒店优惠
<el-button
icon=
"el-icon-plus"
circle
@
click=
"addAir"
></el-button
>
<!-- <span class="resource-lititle sheshi">酒店优惠 <el-button icon="el-icon-plus" circle @click="addAir"></el-button>--
>
</span
>
<!-- </span>--
>
<div
class=
"jiudianyouhuiDiv"
>
<div
class=
"jiudianyouhuiDiv"
>
<el-row
v-for=
"(list,index) in addMsg.DiscountList"
:key=
"index"
>
<el-row
v-for=
"(list,index) in addMsg.DiscountList"
:key=
"index"
>
...
@@ -116,7 +118,7 @@
...
@@ -116,7 +118,7 @@
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col :span="6" style='padding-top: 5px;'>
<el-col :span="6" style='padding-top: 5px;'>
</el-col>
</el-col>
</el-row> -->
</el-row> -->
</div>
</div>
...
@@ -215,42 +217,54 @@
...
@@ -215,42 +217,54 @@
<el-switch
v-model=
"addMsg.IsHavearking"
:active-value=
"1"
:inactive-value=
"0"
></el-switch>
<el-switch
v-model=
"addMsg.IsHavearking"
:active-value=
"1"
:inactive-value=
"0"
></el-switch>
</el-form-item>
</el-form-item>
</div>
</div>
<span
class=
"resource-lititle"
>
{{$t('hotel.hotel_imgintroduce')}}
</span>
</div>
<div
class=
"resource-list"
>
<div
class=
"title"
>
<div
class=
"resource-imglist clearfix"
>
<span
class=
"resource-lititle"
style=
"margin-left: 30px"
>
{{$t('hotel.hotel_imgintroduce')}}
</span>
<div
class=
"re-img"
v-for=
"(item,index) in HotelImageArray"
:key=
"item.subCode"
>
</div>
<img
:src=
"item.ShowPath"
/>
<div
class=
"tu_img"
>
<div
class=
"imgzhe"
>
<div
class=
"resource-list"
>
<div
class=
"re-delte"
><i
@
click
.
stop=
"showImg(item.ShowPath)"
class=
"iconfont icon-img_cz"
></i></div>
<div
class=
"resource-imglist clearfix"
>
<div
class=
"re-delte"
@
click=
"delImg(index)"
><i
class=
"iconfont icon-xingzhuang"
></i></div>
<div
class=
"re-img"
v-for=
"(item,index) in HotelImageArray"
:key=
"item.subCode"
>
<img
:src=
"item.ShowPath"
/>
<div
class=
"imgzhe"
>
<div
class=
"re-delte"
><i
@
click
.
stop=
"showImg(item.ShowPath)"
class=
"iconfont icon-img_cz"
></i></div>
<div
class=
"re-delte"
@
click=
"delImg(index)"
><i
class=
"iconfont icon-xingzhuang"
></i></div>
<!-- <div class="re-delte" @click.stop="ExchangeImg(index,0)" v-if="index!=0&&item.ShowPath">
<!-- <div class="re-delte" @click.stop="ExchangeImg(index,0)" v-if="index!=0&&item.ShowPath">
<i class="iconfont icon-zuoyi"></i>
<i class="iconfont icon-zuoyi"></i>
</div>
<div class="re-delte" @click.stop="ExchangeImg(index,1)" v-if="index!=HotelImageArray.length-1&&item.ShowPath">
<i class="iconfont icon-youyi"></i>
</div> -->
</div>
</div>
<div class="re-delte" @click.stop="ExchangeImg(index,1)" v-if="index!=HotelImageArray.length-1&&item.ShowPath">
<i class="iconfont icon-youyi"></i>
</div> -->
</div>
</div>
</div>
</div>
</div>
<div
class=
"add-img"
>
<div
class=
"add-img"
>
<div
class=
"reimg-add"
>
<div
class=
"reimg-add"
>
<i
class=
"iconfont icon-img_haha"
></i>
<i
class=
"iconfont icon-img_haha"
></i>
<div
class=
"ad-one"
>
<div
class=
"ad-one"
>
<div
class=
"re-upload"
>
<div
class=
"re-upload"
>
<el-upload
class=
"upload-demo"
:http-request=
"UploadImage"
:multiple=
"true"
<el-upload
class=
"upload-demo"
:http-request=
"UploadImage"
:multiple=
"true"
accept=
"image/jpeg,image/gif,image/png,image/bmp"
:show-file-list=
"false"
action=
""
>
accept=
"image/jpeg,image/gif,image/png,image/bmp"
:show-file-list=
"false"
action=
""
>
<i
class=
"iconfont icon-img_bdsc"
></i>
<i
class=
"iconfont icon-img_bdsc"
></i>
</el-upload>
</el-upload>
</div>
<div
class=
"re-find"
@
click=
"addImgOpen"
><i
class=
"iconfont icon-img_cz"
></i></div>
</div>
</div>
<div
class=
"re-find"
@
click=
"addImgOpen"
><i
class=
"iconfont icon-img_cz"
></i></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</el-form>
</el-form>
<div
class=
"btn-list"
style=
"width: 350px;position: fixed;right: 20px;top:50px"
>
<span
class=
"common-lefttit"
></span>
<button
class=
"save-Btn"
@
click=
"submitForm('addMsg')"
>
{{$t('pub.saveBtn')}}
</button>
<button
class=
"cancel-Btn"
@
click=
"goUrl('HotelManagement')"
>
{{$t('pub.cancelBtn')}}
</button>
</div>
</div>
</div>
<el-dialog
custom-class=
"resourceImgAdd"
title=
"选择图片"
center
:visible
.
sync=
"addimg"
>
<el-dialog
custom-class=
"resourceImgAdd"
title=
"选择图片"
center
:visible
.
sync=
"addimg"
>
<DMCchooseImg
@
closeImg=
"closeDMCchooseImg"
ref=
"DMCchooseImg1"
@
headCallBack=
"getDMCimg"
v-bind:imgType=
"1"
>
<DMCchooseImg
@
closeImg=
"closeDMCchooseImg"
ref=
"DMCchooseImg1"
@
headCallBack=
"getDMCimg"
v-bind:imgType=
"1"
>
</DMCchooseImg>
</DMCchooseImg>
...
@@ -258,11 +272,7 @@
...
@@ -258,11 +272,7 @@
<el-dialog
custom-class=
"mapList"
title=
"地图选址"
center
:visible
.
sync=
"selectAddress"
>
<el-dialog
custom-class=
"mapList"
title=
"地图选址"
center
:visible
.
sync=
"selectAddress"
>
<googleMap
@
refList=
"googleMap"
v-bind:address=
"addMsg.Address"
@
headCallBack=
"headCall"
></googleMap>
<googleMap
@
refList=
"googleMap"
v-bind:address=
"addMsg.Address"
@
headCallBack=
"headCall"
></googleMap>
</el-dialog>
</el-dialog>
<div
class=
"btn-list"
>
<span
class=
"common-lefttit"
></span>
<button
class=
"save-Btn"
@
click=
"submitForm('addMsg')"
>
{{$t('pub.saveBtn')}}
</button>
<button
class=
"cancel-Btn"
@
click=
"goUrl('HotelManagement')"
>
{{$t('pub.cancelBtn')}}
</button>
</div>
<viewer
:images=
"images"
:options=
'imageOptions'
@
inited=
"inited"
class=
"viewer"
ref=
"viewer"
>
<viewer
:images=
"images"
:options=
'imageOptions'
@
inited=
"inited"
class=
"viewer"
ref=
"viewer"
>
<img
v-for=
"src in images"
:src=
"src"
:key=
"src"
>
<img
v-for=
"src in images"
:src=
"src"
:key=
"src"
>
</viewer>
</viewer>
...
@@ -399,7 +409,8 @@
...
@@ -399,7 +409,8 @@
pattern
:
this
.
$commonUtils
.
Regex
.
el_isInteger
,
pattern
:
this
.
$commonUtils
.
Regex
.
el_isInteger
,
message
:
"请输入正确的数字"
message
:
"请输入正确的数字"
}]
}]
}
},
orderHight
:
1000
,
};
};
},
},
components
:
{
components
:
{
...
@@ -853,6 +864,9 @@
...
@@ -853,6 +864,9 @@
},
},
mounted
()
{
mounted
()
{
var
orderHight
=
document
.
body
.
clientHeight
console
.
log
(
orderHight
);
this
.
orderHight
=
orderHight
;
let
userInfo
=
this
.
getLocalStorage
()
let
userInfo
=
this
.
getLocalStorage
()
//有权限操作的部门
//有权限操作的部门
if
(
userInfo
.
RB_Department_Id
==
240
||
userInfo
.
RB_Department_Id
==
1
||
userInfo
.
RB_Department_Id
==
3
||
if
(
userInfo
.
RB_Department_Id
==
240
||
userInfo
.
RB_Department_Id
==
1
||
userInfo
.
RB_Department_Id
==
3
||
...
...
src/components/Supplier/roomQuery.vue
View file @
250dc8a7
...
@@ -114,7 +114,7 @@
...
@@ -114,7 +114,7 @@
<th
width=
"100"
>
操作
</th>
<th
width=
"100"
>
操作
</th>
</tr>
</tr>
<tr
v-if=
"dataList.length==0"
>
<tr
v-if=
"dataList.length==0"
>
<td
colspan=
"
8
"
>
暂无数据
</td>
<td
colspan=
"
9
"
>
暂无数据
</td>
</tr>
</tr>
<template
v-for=
"(item,index) in dataList"
>
<template
v-for=
"(item,index) in dataList"
>
<template
v-for=
"(subItem,subIndex) in item.subList"
>
<template
v-for=
"(subItem,subIndex) in item.subList"
>
...
@@ -148,8 +148,13 @@
...
@@ -148,8 +148,13 @@
</span>
</span>
</td>
</td>
<td
v-if=
"childIndex==0"
:rowspan=
"subItem.hotelList.length"
>
<td
v-if=
"childIndex==0"
:rowspan=
"subItem.hotelList.length"
>
<a
@
click=
"AddSupplierComplain(subItem.TCNUMS)"
>
添加投诉
</a>
<a
style=
"text-decoration:underline;color:blue;cursor:pointer"
<a
@
click=
""
>
删除
</a>
@
click=
"AddSupplierComplain(subItem.Complain_Extend.Id,subItem.Complain_Extend.TCID)"
>
<
template
v-if=
"subItem.Complain_Extend.Id>0"
>
编辑
</
template
>
<
template
v-else
>
添加
</
template
>
</a>
<a
style=
"text-decoration:underline;color:red;cursor:pointer"
v-if=
"subItem.Complain_Extend.Id>0"
@
click=
"DeleteSupplierComplain(subItem.Complain_Extend.Id)"
>
删除
</a>
</td>
</td>
</tr>
</tr>
</template>
</template>
...
@@ -177,7 +182,6 @@
...
@@ -177,7 +182,6 @@
HotelId
:
0
,
HotelId
:
0
,
//日期
//日期
DateStr
:
""
,
DateStr
:
""
,
//出团公司
//出团公司
OutBranchIds
:
[],
OutBranchIds
:
[],
LineId
:
14
,
LineId
:
14
,
...
@@ -227,6 +231,26 @@
...
@@ -227,6 +231,26 @@
}
}
},
},
methods
:
{
methods
:
{
//删除投诉
DeleteSupplierComplain
(
Id
)
{
if
(
Id
>
0
)
{
var
that
=
this
;
this
.
Confirm
(
"是否此投诉信息删除?"
,
function
()
{
var
msg
=
{
Id
:
Id
};
that
.
ApiPost2
(
"supplierComplain_Post_RemoveSupplierComplain"
,
msg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
that
.
Success
(
'删除成功!'
);
that
.
getList
();
}
else
{
that
.
Error
(
res
.
data
.
data
);
}
},
null
);
});
}
},
getLineList
()
{
getLineList
()
{
this
.
ApiPost2
(
"line_post_GetAllList"
,
{},
res
=>
{
this
.
ApiPost2
(
"line_post_GetAllList"
,
{},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
if
(
res
.
data
.
resultCode
==
1
)
{
...
@@ -250,11 +274,12 @@
...
@@ -250,11 +274,12 @@
}
}
);
);
},
},
AddSupplierComplain
(
id
)
{
AddSupplierComplain
(
id
,
tcid
)
{
this
.
$router
.
push
({
this
.
$router
.
push
({
name
:
'AddSupplierComplaints'
,
name
:
'AddSupplierComplaints'
,
query
:
{
query
:
{
"ID"
:
id
,
Id
:
id
,
TCID
:
tcid
,
blank
:
'y'
,
blank
:
'y'
,
tab
:
'供应商投诉'
tab
:
'供应商投诉'
}
}
...
...
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