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
f21e1742
Commit
f21e1742
authored
Apr 18, 2019
by
华国豪
🙄
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.oytour.com/luochao/superman
parents
640b4652
d7277f93
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
529 additions
and
189 deletions
+529
-189
HotelProductManage2.vue
src/components/Hotel/HotelProductManage2.vue
+2
-2
ModifyVisaProduct.vue
src/components/SalesVisa/ModifyVisaProduct.vue
+1
-0
VisaProductCountryManager.vue
src/components/SalesVisa/VisaProductCountryManager.vue
+90
-25
VisaManagement.vue
src/components/VisaCenter/VisaManagement.vue
+435
-162
BusInfo.vue
src/components/busManagement/BusInfo.vue
+1
-0
No files found.
src/components/Hotel/HotelProductManage2.vue
View file @
f21e1742
...
...
@@ -139,7 +139,7 @@
<el-select
v-model=
"msg2.BatchNumber"
placeholder=
"请选择"
>
<el-option
label=
"第一批"
:value=
"1"
></el-option>
<el-option
label=
"第二批"
:value=
"2"
></el-option>
<
el-option
label=
"第三批"
:value=
"3"
></el-option
>
<
!-- <el-option label="第三批" :value="3"></el-option> --
>
</el-select>
</el-form-item>
</el-col>
...
...
@@ -345,7 +345,7 @@
<el-select
v-model=
"msg.BatchNumber"
placeholder=
"请选择"
>
<el-option
label=
"第一批"
:value=
"1"
></el-option>
<el-option
label=
"第二批"
:value=
"2"
></el-option>
<
el-option
label=
"第三批"
:value=
"3"
></el-option
>
<
!-- <el-option label="第三批" :value="3"></el-option> --
>
</el-select>
</el-form-item>
</el-col>
...
...
src/components/SalesVisa/ModifyVisaProduct.vue
View file @
f21e1742
...
...
@@ -881,6 +881,7 @@ export default {
let
path
=
"/Upload/DMC/Icon/"
;
this
.
UploadSelfFileT
(
path
,
newArr
,
x
=>
{
let
url
=
this
.
domainManager
().
ViittoFileUrl
+
x
.
data
.
FilePath
;
console
.
log
(
'url'
,
url
)
let
Name
=
x
.
data
.
SourceFileName
;
this
.
addMsg
.
VisaProductInfo
.
DownloadMaterialsFileList
.
push
({
Url
:
url
,
Name
:
Name
,
name
:
Name
})
...
...
src/components/SalesVisa/VisaProductCountryManager.vue
View file @
f21e1742
...
...
@@ -204,6 +204,7 @@
margin-left
:
10px
;
}
._top
img
{
display
:
inline-block
;
width
:
71px
;
height
:
46px
;
}
...
...
@@ -237,7 +238,46 @@
top
:
2px
;
right
:
0px
;
}
.visa_pro_country
.TFimgList
{
float
:
left
;
width
:
170px
;
height
:
120px
;
border-radius
:
4px
;
position
:
relative
;
margin
:
0
10px
10px
0
;
overflow
:
hidden
;
}
.visa_pro_country
.TFIMGzhe
{
width
:
100%
;
height
:
100%
;
background
:
rgba
(
0
,
0
,
0
,
0.4
);
position
:
absolute
;
top
:
0
;
text-align
:
center
;
line-height
:
115px
;
border-radius
:
4px
;
display
:
none
;
}
.visa_pro_country
.TFreupload
{
width
:
32px
;
height
:
32px
;
border-radius
:
50%
;
line-height
:
32px
;
top
:
50px
;
left
:
53px
;
display
:
inline-block
;
text-align
:
center
;
background-color
:
gray
;
color
:
#fff
;
}
.visa_pro_country
.TFimgList
:hover
.TFIMGzhe
{
display
:
block
;
}
.visa_pro_country
.TFimgList
img
{
width
:
100%
;
height
:
100%
;
}
</
style
>
<
template
>
<div
class=
"page_visaMG visa_pro_country"
>
...
...
@@ -313,31 +353,56 @@
<el-input
v-model=
"country.Sort"
placeholder=
"排序"
/>
</el-form-item>
<el-form-item
label=
"国家图标"
>
<el-upload
:file-list=
"fileList"
:http-request=
"uploadTest"
:multiple=
"true"
:limit=
"2"
:on-change=
"handleChange1"
action=
""
>
<!--
<el-upload
:file-list=
"fileList"
:http-request=
"uploadTest"
:multiple=
"true"
:limit=
"2"
:on-change=
"handleChange1"
action=
""
>
<el-button
size=
"small"
type=
"primary"
>
点击上传
</el-button>
</el-upload>
</el-upload>
-->
<div
class=
"TFimgList"
>
<img
v-if=
"!country.Icon"
src=
"../../assets/img/bg_c3@3x.png"
>
<img
v-else
:src=
'country.Icon'
>
<div
class=
"TFIMGzhe"
>
<div
class=
"TFreupload"
>
<el-upload
:file-list=
"fileList"
:http-request=
"uploadTest"
:multiple=
"true"
:limit=
"2"
:on-change=
"handleChange1"
accept=
"image/jpeg, image/gif, image/png, image/bmp"
:show-file-list=
"false"
action=
""
>
<i
class=
"iconfont icon-Edit"
></i>
</el-upload>
</div>
</div>
</div>
</el-form-item>
<el-form-item
label=
"背景图片"
>
<el-upload
:file-list=
"fileList2"
:http-request=
"uploadTest2"
:multiple=
"true"
:limit=
"2"
:on-change=
"handleChange2"
<
!--
<
el-upload
:file-list=
"fileList2"
:http-request=
"uploadTest2"
:multiple=
"true"
:limit=
"2"
:on-change=
"handleChange2"
action=
""
>
<el-button
size=
"small"
type=
"primary"
>
点击上传
</el-button>
</el-upload>
<el-button
size=
"small"
type=
"primary"
>
点击上传
</el-button></el-upload>
-->
<div
class=
"TFimgList"
>
<img
v-if=
"!country.ImageFileList[0]"
src=
"../../assets/img/bg_c3@3x.png"
>
<img
v-else
:src=
'country.ImageFileList[0]'
>
<div
class=
"TFIMGzhe"
>
<div
class=
"TFreupload"
>
<el-upload
:file-list=
"fileList2"
:http-request=
"uploadTest2"
:multiple=
"true"
:limit=
"2"
:on-change=
"handleChange2"
accept=
"image/jpeg, image/gif, image/png, image/bmp"
:show-file-list=
"false"
action=
""
>
<i
class=
"iconfont icon-Edit"
></i>
</el-upload>
</div>
</div>
</div>
</el-form-item>
<!--
<el-form-item>
<button
class=
"hollowFixedBtn"
type=
"button"
@
click=
"cancelEdit()"
>
取消
</button>
<button
type=
"button"
class=
"normalBtn"
@
click=
"saveVisa"
>
保存
</button>
</el-form-item>
-->
</el-form>
</div>
<!-- 国家产品标签 -->
...
...
@@ -488,7 +553,7 @@ export default {
},
// 编辑标签
EditTag
(
tag
,
num
){
console
.
log
(
tag
);
this
.
showInput
(
num
);
this
.
inputValue
=
tag
.
TagTame
;
this
.
productlabel
.
Id
=
tag
.
Id
;
...
...
@@ -587,11 +652,9 @@ export default {
"dmc_post_visa_GetVisaProductCountryTagList"
,
{
VisaCountryId
:
item
},
res
=>
{
console
.
log
(
res
);
this
.
tagloading
=
false
;
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
CountryTagList
=
res
.
data
.
data
;
console
.
log
(
this
.
CountryTagList
,
'countrylist'
);
}
else
{
this
.
Error
(
res
.
data
.
message
);
}
...
...
@@ -648,8 +711,10 @@ export default {
this
.
fileList2
=
fileList
.
slice
(
-
1
);
},
handleChange1
(
file
,
fileList
)
{
this
.
fileList
=
fileList
.
slice
(
-
1
);
this
.
fileList
=
fileList
.
slice
(
-
1
);
},
// 修改国家图标
uploadTest
(
file
)
{
let
newArr
=
[];
newArr
.
push
(
file
.
file
);
...
...
@@ -700,7 +765,7 @@ export default {
},
saveVisa
()
{
//修改保存
// console.log("this.country",this.country);
if
(
this
.
country
.
CountryId
==
""
)
{
this
.
$message
.
error
(
"请选择国家!"
);
return
;
...
...
src/components/VisaCenter/VisaManagement.vue
View file @
f21e1742
<
style
>
.page_visaMG
._vMG_edit
{
overflow
:
auto
;
display
:
none
;
position
:
absolute
;
font-family
:
'PingFangSc-Fine'
;
bottom
:
0
;
left
:
0
;
border-top
:
3px
solid
#38425d
;
background-color
:
#fff
;
padding
:
10px
;
width
:
100%
;
min-width
:
1146px
;
padding-right
:
10px
}
.page_visaMG
.edHeight
{
display
:
block
;
height
:
330px
;}
.page_visaMG
._vMG_conten
{
padding
:
30px
0
;
overflow-x
:
auto
;}
.page_visaMG
._vMG_conten
ul
li
{
width
:
175px
;
height
:
auto
;
float
:
left
;
background-color
:
#FFFFFF
;
margin-right
:
26px
}
.page_visaMG
._vMG_conten
ul
li
._top
{
text-align
:
center
;
position
:
relative
;}
.page_visaMG
._vMG_conten
ul
li
._top
p
{
font-size
:
14px
;
color
:
#333333
;
font-weight
:
bold
;
margin-top
:
8px
;
padding-bottom
:
20px
;
font-weight
:
bold
}
.page_visaMG
._vMG_conten
ul
li
._btm
{
border-top
:
1px
dashed
#B8B8B8
;
display
:
flex
;
text-align
:
center
;
padding-top
:
22px
}
.page_visaMG
._vMG_conten
ul
li
._btmt
{
border
:
none
;}
.page_visaMG
._vMG_conten
ul
li
._btm
>
div
{
width
:
50%
;}
.page_visaMG
._vMG_conten
ul
li
._btm
>
div
:nth-child
(
1
)
{
border-right
:
1px
solid
#B8B8B8
}
.page_visaMG
._vMG_conten
ul
li
._btm
>
div
._num
{
font-size
:
16px
;
color
:
#333333
;
font-weight
:
bold
}
.page_visaMG
._vMG_conten
ul
li
._btmt
>
div
._num
{
font-size
:
14px
}
.page_visaMG
._vMG_conten
ul
li
._btm
>
div
._text
{
font-size
:
12px
;
color
:
#666666
}
.page_visaMG
._vMG_conten
ul
li
.tcenter
{
margin-top
:
20px
}
.page_visaMG
._vMG_conten
li
:hover
{
box-shadow
:
0px
0px
20px
rgba
(
191
,
191
,
191
,
1
);
transition
:
all
linear
0.5s
;}
.page_visaMG
._black
{
filter
:
gray
;
-webkit-filter
:
grayscale
(
100%
);}
.page_visaMG
._noOpen
{
line-height
:
34px
;
color
:
#666666
;
font-size
:
12px
;
text-align
:
center
;
padding-top
:
22px
;
border-top
:
1px
dashed
#B8B8B8
;}
.page_visaMG
._vMG_edit
._tit
{
padding-left
:
10px
;
border-left
:
3px
solid
#E95252
;
font-size
:
16px
;
color
:
#000000
}
.page_visaMG
._vMG_edit
._tit
span
{
color
:
#666666
;
font-size
:
14px
;}
.page_visaMG
._info_box
{
padding
:
30px
15px
;
font-size
:
12px
!important
}
.page_visaMG
._info_box
>
div
{
float
:
left
;}
.page_visaMG
.w400
{
width
:
450px
;
margin-right
:
20px
;
height
:
100px
;}
.page_visaMG
.w225
{
width
:
225px
;
margin-right
:
20px
}
.page_visaMG
.wauto
label
{
width
:
98px
;}
.page_visaMG
._info_box
{
padding-bottom
:
0
}
.page_visaMG
._info_box
ul
{
margin-top
:
10px
}
.page_visaMG
._info_box
ul
li
{}
.page_visaMG
._info_box
ul
li
.el-form-item
{
display
:
flex
;
height
:
30px
;
line-height
:
30px
;}
.page_visaMG
._info_box
ul
li
.el-form-item
.el-input
{
display
:
flex
;
height
:
30px
;
line-height
:
30px
;}
.page_visaMG
._info_box
ul
li
:nth-child
(
odd
)
{
margin-right
:
15px
}
.page_visaMG
._info_box
ul
li
.el-form-item__label
{
font-size
:
12px
!important
;
line-height
:
30px
}
.page_visaMG
._info_box
ul
li
.el-form-item
input
{
height
:
30px
;
line-height
:
30px
}
.page_visaMG
._info_box
ul
li
.el-form-item
textarea
{
height
:
80px
;
resize
:
none
;
width
:
280px
;}
.page_visaMG
._edHeight
{
height
:
400px
;}
.page_visaMG
._scrollbar
::-webkit-scrollbar
{
width
:
4px
;
height
:
8px
;}
.page_visaMG
._scrollbar
::-webkit-scrollbar-thumb
{
border-radius
:
4px
;
-webkit-box-shadow
:
inset
0
0
2px
rgba
(
0
,
0
,
0
,
0.2
);
background
:
#c9c9c9
;}
.page_visaMG
._scrollbar
::-webkit-scrollbar-track
{
-webkit-box-shadow
:
inset
0
0
2px
rgba
(
0
,
0
,
0
,
0.2
);
border-radius
:
4px
;
background
:
#EDEDED
;}
.page_visaMG
._status
{
position
:
absolute
;
left
:
-20px
;
top
:
0px
}
.page_visaMG
._status
span
{
display
:
inline-block
;
padding
:
2px
5px
;
background-color
:
#4BCA81
;
color
:
white
;
font-size
:
12px
;
border-top-right-radius
:
15px
;
border-bottom-right-radius
:
15px
;}
.page_visaMG
._status
span
:nth-child
(
2
)
{
background-color
:
#E95252
}
.page_visaMG
._tips
{
display
:
inline-block
;
width
:
16px
;
height
:
16px
;
border-radius
:
50%
;
border
:
1px
solid
#E95252
;
color
:
#E95252
;
font-size
:
12px
;
line-height
:
15px
;
cursor
:
pointer
;}
.page_visaMG_tips
{
text-align
:
center
}
.page_visaMG_tips
.hollowFixedBtn
{
margin-top
:
10px
}
._form_item
{
padding-left
:
13px
}
.page_visaMG
._vMG_edit
{
overflow
:
auto
;
display
:
none
;
position
:
absolute
;
font-family
:
"PingFangSc-Fine"
;
bottom
:
0
;
left
:
0
;
border-top
:
3px
solid
#38425d
;
background-color
:
#fff
;
padding
:
10px
;
width
:
100%
;
min-width
:
1146px
;
padding-right
:
10px
;
}
.page_visaMG
.edHeight
{
display
:
block
;
height
:
330px
;
}
.page_visaMG
._vMG_conten
{
padding
:
30px
0
;
overflow-x
:
auto
;
}
.page_visaMG
._vMG_conten
ul
li
{
width
:
175px
;
height
:
auto
;
float
:
left
;
background-color
:
#ffffff
;
margin-right
:
26px
;
}
.page_visaMG
._vMG_conten
ul
li
._top
{
text-align
:
center
;
position
:
relative
;
}
.page_visaMG
._vMG_conten
ul
li
._top
p
{
font-size
:
14px
;
color
:
#333333
;
font-weight
:
bold
;
margin-top
:
8px
;
padding-bottom
:
20px
;
font-weight
:
bold
;
}
.page_visaMG
._vMG_conten
ul
li
._btm
{
border-top
:
1px
dashed
#b8b8b8
;
display
:
flex
;
text-align
:
center
;
padding-top
:
22px
;
}
.page_visaMG
._vMG_conten
ul
li
._btmt
{
border
:
none
;
}
.page_visaMG
._vMG_conten
ul
li
._btm
>
div
{
width
:
50%
;
}
.page_visaMG
._vMG_conten
ul
li
._btm
>
div
:nth-child
(
1
)
{
border-right
:
1px
solid
#b8b8b8
;
}
.page_visaMG
._vMG_conten
ul
li
._btm
>
div
._num
{
font-size
:
16px
;
color
:
#333333
;
font-weight
:
bold
;
}
.page_visaMG
._vMG_conten
ul
li
._btmt
>
div
._num
{
font-size
:
14px
;
}
.page_visaMG
._vMG_conten
ul
li
._btm
>
div
._text
{
font-size
:
12px
;
color
:
#666666
;
}
.page_visaMG
._vMG_conten
ul
li
.tcenter
{
margin-top
:
20px
;
}
.page_visaMG
._vMG_conten
li
:hover
{
box-shadow
:
0px
0px
20px
rgba
(
191
,
191
,
191
,
1
);
transition
:
all
linear
0.5s
;
}
.page_visaMG
._black
{
filter
:
gray
;
-webkit-filter
:
grayscale
(
100%
);
}
.page_visaMG
._noOpen
{
line-height
:
34px
;
color
:
#666666
;
font-size
:
12px
;
text-align
:
center
;
padding-top
:
22px
;
border-top
:
1px
dashed
#b8b8b8
;
}
.page_visaMG
._vMG_edit
._tit
{
padding-left
:
10px
;
border-left
:
3px
solid
#e95252
;
font-size
:
16px
;
color
:
#000000
;
}
.page_visaMG
._vMG_edit
._tit
span
{
color
:
#666666
;
font-size
:
14px
;
}
.page_visaMG
._info_box
{
padding
:
30px
15px
;
font-size
:
12px
!important
;
}
.page_visaMG
._info_box
>
div
{
float
:
left
;
}
.page_visaMG
.w400
{
width
:
450px
;
margin-right
:
20px
;
height
:
100px
;
}
.page_visaMG
.w225
{
width
:
225px
;
margin-right
:
20px
;
}
.page_visaMG
.wauto
label
{
width
:
98px
;
}
.page_visaMG
._info_box
{
padding-bottom
:
0
;
}
.page_visaMG
._info_box
ul
{
margin-top
:
10px
;
}
.page_visaMG
._info_box
ul
li
{
}
.page_visaMG
._info_box
ul
li
.el-form-item
{
display
:
flex
;
height
:
30px
;
line-height
:
30px
;
}
.page_visaMG
._info_box
ul
li
.el-form-item
.el-input
{
display
:
flex
;
height
:
30px
;
line-height
:
30px
;
}
.page_visaMG
._info_box
ul
li
:nth-child
(
odd
)
{
margin-right
:
15px
;
}
.page_visaMG
._info_box
ul
li
.el-form-item__label
{
font-size
:
12px
!important
;
line-height
:
30px
;
}
.page_visaMG
._info_box
ul
li
.el-form-item
input
{
line-height
:
30px
;
}
.page_visaMG
._info_box
ul
li
.el-form-item
textarea
{
height
:
80px
;
resize
:
none
;
width
:
280px
;
}
.page_visaMG
._edHeight
{
height
:
400px
;
}
.page_visaMG
._scrollbar
::-webkit-scrollbar
{
width
:
4px
;
height
:
8px
;
}
.page_visaMG
._scrollbar
::-webkit-scrollbar-thumb
{
border-radius
:
4px
;
-webkit-box-shadow
:
inset
0
0
2px
rgba
(
0
,
0
,
0
,
0.2
);
background
:
#c9c9c9
;
}
.page_visaMG
._scrollbar
::-webkit-scrollbar-track
{
-webkit-box-shadow
:
inset
0
0
2px
rgba
(
0
,
0
,
0
,
0.2
);
border-radius
:
4px
;
background
:
#ededed
;
}
.page_visaMG
._status
{
position
:
absolute
;
left
:
-20px
;
top
:
0px
;
}
.page_visaMG
._status
span
{
display
:
inline-block
;
padding
:
2px
5px
;
background-color
:
#4bca81
;
color
:
white
;
font-size
:
12px
;
border-top-right-radius
:
15px
;
border-bottom-right-radius
:
15px
;
}
.page_visaMG
._status
span
:nth-child
(
2
)
{
background-color
:
#e95252
;
}
.page_visaMG
._tips
{
display
:
inline-block
;
width
:
16px
;
height
:
16px
;
border-radius
:
50%
;
border
:
1px
solid
#e95252
;
color
:
#e95252
;
font-size
:
12px
;
line-height
:
15px
;
cursor
:
pointer
;
}
.page_visaMG_tips
{
text-align
:
center
;
}
.page_visaMG_tips
.hollowFixedBtn
{
margin-top
:
10px
;
}
._form_item
{
padding-left
:
13px
;
}
</
style
>
<
template
>
<div
class=
"page_visaMG"
>
...
...
@@ -154,7 +313,7 @@
</li>
</ul>
</div>
<div
class=
"w225"
>
<div
style=
"width:500px"
class=
"w225"
>
<p>
{{
$t
(
'visa.v_qianzhengst'
)
}}
</p>
<ul
class=
"clearfix"
>
<li>
...
...
@@ -178,9 +337,9 @@
</el-select>
</el-form-item>
</li>
<li>
<el-form-item
:label=
"$t('hotel.hotel_Supplier')+':'"
class=
"_form_item"
>
<el-select
v-model=
"
addMsg
.CommuneId "
class=
"w135"
>
<li
v-for=
"(item,index) in MRList"
:key=
"index+2000"
>
<el-form-item
style=
"width:220px;display:inline-block"
:label=
"$t('hotel.hotel_Supplier')+':'"
class=
"_form_item"
>
<el-select
v-model=
"
item
.CommuneId "
class=
"w135"
>
<el-option
v-for=
"item in CommuneInfoList"
:key=
"item.Id"
...
...
@@ -188,7 +347,21 @@
:value=
"item.Id"
>
</el-option>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
style=
"width:230px;display:inline-block"
label=
"公司"
class=
"_form_item collapse_select"
>
<el-select
multiple
collapse-tags
v-model=
"item.BranchList"
style=
"width:170px"
>
<el-option
v-for=
"item in companyList"
:key=
"item.Id"
:label=
"item.BName"
:value=
"item.Id"
>
</el-option>
</el-select>
</el-form-item>
<span><el-button
@
click=
"DeleteMRList(item,index)"
style=
"padding:4px"
type=
"danger"
icon=
"el-icon-delete"
circle
></el-button></span>
</li>
<li>
<el-button
@
click=
"AddMRList"
type=
"danger"
size=
"small"
>
新增
</el-button>
</li>
</ul>
</div>
...
...
@@ -224,120 +397,220 @@
</
template
>
<
script
>
export
default
{
data
(){
return
{
msg
:{
pageIndex
:
1
,
pageSize
:
15
,
StartTime
:
''
,
EndTime
:
''
,
orderId
:
''
,
IsSaveFile
:
''
,
},
addMsg
:{
Id
:
0
,
Discription
:
''
,
Icon
:
''
,
Sort
:
1
,
Status
:
0
,
B2B_Price
:
''
,
B2C_Price
:
''
,
DaySet
:
''
,
Interior_Price
:
''
,
SalesPlatform
:
''
,
Unit_Price
:
''
,
CommuneId
:
''
,
TCInterior_Price
:
''
,
TCUnit_Price
:
''
,
},
DataList
:[],
editData
:[],
VisaSalesPlatformEnum
:[],
CommuneInfoList
:[],
addShow
:
false
,
data
()
{
return
{
msg
:
{
pageIndex
:
1
,
pageSize
:
15
,
StartTime
:
""
,
EndTime
:
""
,
orderId
:
""
,
IsSaveFile
:
""
},
addMsg
:
{
Id
:
0
,
Discription
:
""
,
Icon
:
""
,
Sort
:
1
,
Status
:
0
,
B2B_Price
:
""
,
B2C_Price
:
""
,
DaySet
:
""
,
Interior_Price
:
""
,
SalesPlatform
:
""
,
Unit_Price
:
""
,
CommuneId
:
""
,
TCInterior_Price
:
""
,
TCUnit_Price
:
""
},
DataList
:
[],
editData
:
[],
VisaSalesPlatformEnum
:
[],
CommuneInfoList
:
[],
addShow
:
false
,
companyList
:
[],
MRList
:
[]
};
},
methods
:
{
// 删除公司
DeleteMRList
(
item
,
index
)
{
this
.
MRList
.
splice
(
index
,
1
);
},
AddMRList
()
{
let
obj
=
{};
obj
.
CommuneId
=
12
;
obj
.
BranchList
=
[];
this
.
MRList
.
push
(
obj
);
},
getCompanyList
()
{
let
userInfo
=
this
.
getLocalStorage
();
let
RB_Group_id
=
userInfo
.
RB_Group_id
;
let
msg
=
{
Status
:
0
,
is_show
:
0
,
RB_Group_Id
:
RB_Group_id
};
this
.
apipost
(
"admin_get_BranchGetList"
,
msg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
companyList
=
[
{
Id
:
"-1"
,
BName
:
"不限"
}
];
res
.
data
.
data
.
forEach
(
x
=>
{
var
obj
=
{
Id
:
""
,
BName
:
""
};
obj
.
Id
=
x
.
Id
.
toString
();
obj
.
BName
=
x
.
BName
;
this
.
companyList
.
push
(
obj
);
});
}
},
err
=>
{}
);
},
editVisa
(
item
)
{
let
data
=
item
;
data
.
Status
=
data
.
Status
.
toString
();
this
.
addShow
=
true
;
this
.
addMsg
=
JSON
.
parse
(
JSON
.
stringify
(
data
));
this
.
MRList
=
this
.
addMsg
.
MRList
;
for
(
let
i
=
0
;
i
<
this
.
MRList
.
length
;
i
++
)
{
let
obj
=
this
.
MRList
[
i
];
for
(
let
j
=
0
;
j
<
obj
.
BranchList
.
length
;
j
++
)
{
obj
.
BranchList
[
j
]
=
obj
.
BranchList
[
j
].
toString
();
}
},
methods
:{
editVisa
(
item
){
let
data
=
item
data
.
Status
=
data
.
Status
.
toString
()
this
.
addShow
=
true
this
.
addMsg
=
JSON
.
parse
(
JSON
.
stringify
(
data
))
}
},
getVisaSalesPlatformEnum
()
{
// 获取签证销售平台枚举
this
.
apipost
(
"dmc_get_visa_GetVisaSalesPlatformEnum"
,
{},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
VisaSalesPlatformEnum
=
res
.
data
.
data
;
}
else
{
this
.
$message
.
error
(
res
.
data
.
message
);
}
},
err
=>
{}
);
},
getVisaManagementList
()
{
// 获取签证管理
this
.
apipost
(
"dmc_get_visa_GetVisaManagementList"
,
{
Status
:
-
1
,
BranchId
:
-
1
},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
DataList
=
res
.
data
.
data
;
this
.
DataList
.
forEach
(
x
=>
{
x
.
SalesPlatform
=
x
.
SalesPlatform
.
toString
();
});
}
else
{
this
.
$message
.
error
(
res
.
data
.
message
);
}
},
getVisaSalesPlatformEnum
(){
// 获取签证销售平台枚举
this
.
apipost
(
'dmc_get_visa_GetVisaSalesPlatformEnum'
,{},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
){
this
.
VisaSalesPlatformEnum
=
res
.
data
.
data
}
else
{
this
.
$message
.
error
(
res
.
data
.
message
)
}
},
err
=>
{})
},
getVisaManagementList
(){
// 获取签证管理
this
.
apipost
(
'dmc_get_visa_GetVisaManagementList'
,{
Status
:
-
1
,
BranchId
:
-
1
},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
){
this
.
DataList
=
res
.
data
.
data
this
.
DataList
.
forEach
(
x
=>
{
x
.
SalesPlatform
=
x
.
SalesPlatform
.
toString
()
})
}
else
{
this
.
$message
.
error
(
res
.
data
.
message
)
}
},
err
=>
{})
},
getCommuneInfoList
(){
// 获取签证供应商
this
.
apipost
(
'dmc_post_visa_GetCommuneInfoList'
,{},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
){
this
.
CommuneInfoList
=
res
.
data
.
data
}
else
{
this
.
$message
.
error
(
res
.
data
.
message
)
}
},
err
=>
{})
},
saveVisa
(){
//修改保存
if
(
!
this
.
addMsg
.
Icon
){
this
.
addMsg
.
Icon
=
''
}
this
.
apipost
(
'dmc_post_visa_SetVisaManagement'
,
this
.
addMsg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
){
this
.
addMsg
=
{
Id
:
0
,
Discription
:
''
,
Sort
:
1
,
Status
:
0
,
B2B_Price
:
''
,
B2C_Price
:
''
,
DaySet
:
''
,
Interior_Price
:
''
,
SalesPlatform
:
''
,
Unit_Price
:
''
,
}
this
.
addShow
=
false
this
.
$message
.
success
(
res
.
data
.
message
)
this
.
getVisaManagementList
()
}
else
{
this
.
$message
.
error
(
res
.
data
.
message
)
}
},
err
=>
{})
},
cancelEdit
(){
this
.
addMsg
=
{
Id
:
0
,
Discription
:
''
,
Sort
:
1
,
Status
:
0
,
B2B_Price
:
''
,
B2C_Price
:
''
,
DaySet
:
''
,
Interior_Price
:
''
,
SalesPlatform
:
''
,
Unit_Price
:
''
,
}
this
.
addShow
=
false
}
},
mounted
(){
this
.
getVisaManagementList
()
this
.
getVisaSalesPlatformEnum
()
this
.
getCommuneInfoList
()
err
=>
{}
);
},
getCommuneInfoList
()
{
// 获取签证供应商
this
.
apipost
(
"dmc_post_visa_GetCommuneInfoList"
,
{},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
CommuneInfoList
=
res
.
data
.
data
;
}
else
{
this
.
$message
.
error
(
res
.
data
.
message
);
}
},
err
=>
{}
);
},
isRepeat
(
arr
)
{
var
hash
=
{};
for
(
var
i
in
arr
)
{
if
(
hash
[
arr
[
i
]])
return
true
;
hash
[
arr
[
i
]]
=
true
;
}
return
false
;
},
saveVisa
()
{
//修改保存
this
.
addMsg
.
MRList
=
this
.
MRList
;
let
arr
=
[];
for
(
let
i
=
0
;
i
<
this
.
MRList
.
length
;
i
++
)
{
let
obj
=
this
.
MRList
[
i
];
arr
.
push
(
obj
.
CommuneId
);
}
if
(
this
.
isRepeat
(
arr
)){
this
.
Error
(
"存在相同的供应商!"
)
return
;
}
if
(
!
this
.
addMsg
.
Icon
)
{
this
.
addMsg
.
Icon
=
""
;
}
this
.
apipost
(
"dmc_post_visa_SetVisaManagement"
,
this
.
addMsg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
addMsg
=
{
Id
:
0
,
Discription
:
""
,
Sort
:
1
,
Status
:
0
,
B2B_Price
:
""
,
B2C_Price
:
""
,
DaySet
:
""
,
Interior_Price
:
""
,
SalesPlatform
:
""
,
Unit_Price
:
""
};
this
.
addShow
=
false
;
this
.
$message
.
success
(
res
.
data
.
message
);
this
.
getVisaManagementList
();
}
else
{
this
.
$message
.
error
(
res
.
data
.
message
);
}
},
err
=>
{}
);
},
cancelEdit
()
{
this
.
addMsg
=
{
Id
:
0
,
Discription
:
""
,
Sort
:
1
,
Status
:
0
,
B2B_Price
:
""
,
B2C_Price
:
""
,
DaySet
:
""
,
Interior_Price
:
""
,
SalesPlatform
:
""
,
Unit_Price
:
""
};
this
.
addShow
=
false
;
}
}
},
mounted
()
{
this
.
getCompanyList
();
this
.
getVisaManagementList
();
this
.
getVisaSalesPlatformEnum
();
this
.
getCommuneInfoList
();
}
};
</
script
>
src/components/busManagement/BusInfo.vue
View file @
f21e1742
...
...
@@ -824,6 +824,7 @@
newPlanData
.
DriverTel
=
oldPlanData
.
DriverTel
;
newPlanData
.
BusNum
=
oldPlanData
.
BusNum
;
newPlanData
.
BusCompany
=
oldPlanData
.
BusCompany
;
newPlanData
.
BusType
=
oldPlanData
.
BusType
;
newPlanData
.
PayType
=
oldPlanData
.
PayType
;
newPlanData
.
BookGroup
=
oldPlanData
.
BookGroup
;
}
...
...
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