Commit 40d161e3 authored by huangyuanyuan's avatar huangyuanyuan

订单拆分

parent 73c4a3f6
...@@ -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()
} }
} }
......
...@@ -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),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment