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
40d161e3
Commit
40d161e3
authored
Mar 18, 2019
by
huangyuanyuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
订单拆分
parent
73c4a3f6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
16 deletions
+32
-16
OrderSplitting.vue
src/components/SalesVisa/OrderSplitting.vue
+31
-15
config.js
src/router/config.js
+1
-1
No files found.
src/components/SalesVisa/OrderSplitting.vue
View file @
40d161e3
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
<
template
>
<
template
>
<div
class=
"wrapper"
>
<div
class=
"wrapper"
>
<div
class=
"_vad_top clearfix"
>
<div
class=
"_vad_top clearfix"
>
<
!--
<el-button
@
click=
"OrderSplit"
style=
"float:right;background:#E95252;color:#fff"
size=
"mini"
>
拆分
</el-button>
--
>
<
el-button
@
click=
"OrderSplit"
style=
"float:right;background:#E95252;color:#fff"
size=
"mini"
>
拆分
</el-button
>
<!--
<span
class=
"_num PingFangSC"
>
{{
$t
(
'visa.v_tuan'
)
}}
:
{{
num
}}
</span>
<!--
<span
class=
"_num PingFangSC"
>
{{
$t
(
'visa.v_tuan'
)
}}
:
{{
num
}}
</span>
<div
class=
"fr"
>
<div
class=
"fr"
>
<el-dropdown
split-button
type=
"primary"
trigger=
"click"
@
command=
"bindVisa"
>
<el-dropdown
split-button
type=
"primary"
trigger=
"click"
@
command=
"bindVisa"
>
...
@@ -79,7 +79,7 @@ export default {
...
@@ -79,7 +79,7 @@ export default {
return
{
return
{
id
:
0
,
id
:
0
,
num
:
0
,
num
:
0
,
VisaManagementList
:[],
//
VisaManagementList:[],
dataList
:[],
dataList
:[],
checkList
:[],
checkList
:[],
checkListAll
:[],
checkListAll
:[],
...
@@ -101,6 +101,10 @@ export default {
...
@@ -101,6 +101,10 @@ export default {
Name
:
'拒签'
Name
:
'拒签'
},
},
],
],
orderSplitInfo
:{
OrderId
:
0
,
GuestIdStr
:[],
},
}
}
},
},
watch
:{},
watch
:{},
...
@@ -108,6 +112,17 @@ export default {
...
@@ -108,6 +112,17 @@ export default {
methods
:{
methods
:{
// 订单拆分
// 订单拆分
OrderSplit
(){
OrderSplit
(){
this
.
orderSplitInfo
.
GuestIdStr
=
this
.
checkList
;
this
.
apipost
(
'dmc_post_SetGuestSplitVisaInfo'
,
this
.
orderSplitInfo
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
){
this
.
$message
.
success
(
res
.
data
.
message
)
this
.
getData
()
this
.
checkList
=
[];
this
.
checkd
=
false
;
}
else
{
this
.
$message
.
error
(
res
.
data
.
message
)
}
},
err
=>
{})
},
},
...
@@ -117,6 +132,7 @@ export default {
...
@@ -117,6 +132,7 @@ export default {
return
return
}
}
this
.
checkd
=
false
this
.
checkd
=
false
},
},
checkAll
(){
//全选
checkAll
(){
//全选
if
(
this
.
checkList
.
length
==
this
.
checkListAll
.
length
){
if
(
this
.
checkList
.
length
==
this
.
checkListAll
.
length
){
...
@@ -125,25 +141,24 @@ export default {
...
@@ -125,25 +141,24 @@ export default {
}
}
this
.
checkList
=
this
.
checkListAll
this
.
checkList
=
this
.
checkListAll
},
},
getVisaManagementList
(){
// 获取签证管理
//
getVisaManagementList(){ // 获取签证管理
this
.
apipost
(
'dmc_get_visa_GetVisaManagementList'
,{
Status
:
0
,
BranchId
:
-
1
,
SignStatus
:
0
},
res
=>
{
//
this.apipost('dmc_get_visa_GetVisaManagementList',{Status:0,BranchId:-1,SignStatus:0},res=>{
if
(
res
.
data
.
resultCode
==
1
){
//
if(res.data.resultCode==1){
this
.
VisaManagementList
=
res
.
data
.
data
//
this.VisaManagementList = res.data.data
}
else
{
//
}else{
this
.
$message
.
error
(
res
.
data
.
message
)
//
this.$message.error(res.data.message)
}
//
}
},
err
=>
{})
//
},err=>{})
},
//
},
getData
(){
//获取数据
getData
(){
//获取数据
this
.
loading
=
true
this
.
loading
=
true
this
.
checkListAll
=
[]
this
.
checkListAll
=
[]
this
.
apipost
(
'dmc_get_GetTCGuestSplitList'
,{
OrderId
:
this
.
id
},
res
=>
{
this
.
apipost
(
'dmc_get_GetTCGuestSplitList'
,{
OrderId
:
this
.
id
},
res
=>
{
console
.
log
(
"res"
,
res
);
//
console.log("res",res);
if
(
res
.
data
.
resultCode
==
1
){
if
(
res
.
data
.
resultCode
==
1
){
this
.
dataList
=
res
.
data
.
data
this
.
dataList
=
res
.
data
.
data
this
.
dataList
.
forEach
(
x
=>
{
this
.
dataList
.
forEach
(
x
=>
{
if
(
x
.
IsSplit
==
if
(
x
.
IsSplit
==
1
){
1
){
this
.
checkListAll
.
push
(
x
.
Id
)
this
.
checkListAll
.
push
(
x
.
Id
)
}
}
})
})
...
@@ -158,7 +173,8 @@ export default {
...
@@ -158,7 +173,8 @@ export default {
mounted
(){
mounted
(){
this
.
id
=
this
.
$route
.
query
.
id
this
.
id
=
this
.
$route
.
query
.
id
this
.
num
=
this
.
$route
.
query
.
num
this
.
num
=
this
.
$route
.
query
.
num
this
.
getVisaManagementList
()
this
.
orderSplitInfo
.
OrderId
=
this
.
$route
.
query
.
id
;
// this.getVisaManagementList()
this
.
getData
()
this
.
getData
()
}
}
}
}
...
...
src/router/config.js
View file @
40d161e3
...
@@ -2518,7 +2518,7 @@ export default {
...
@@ -2518,7 +2518,7 @@ export default {
title
:
'签证产品下单'
title
:
'签证产品下单'
},
},
},
},
{
//
销售
签证产品下单
{
//
签证
签证产品下单
path
:
'/VisaProductOrder'
,
path
:
'/VisaProductOrder'
,
name
:
'VisaProductOrder'
,
name
:
'VisaProductOrder'
,
component
:
resolve
=>
require
([
'@/components/SalesVisa/VisaProductOrder'
],
resolve
),
component
:
resolve
=>
require
([
'@/components/SalesVisa/VisaProductOrder'
],
resolve
),
...
...
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