Commit 40d161e3 authored by huangyuanyuan's avatar huangyuanyuan

订单拆分

parent 73c4a3f6
......@@ -16,7 +16,7 @@
<template>
<div class="wrapper">
<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>
<div class="fr">
<el-dropdown split-button type="primary" trigger="click" @command="bindVisa">
......@@ -79,7 +79,7 @@ export default {
return {
id:0,
num:0,
VisaManagementList:[],
// VisaManagementList:[],
dataList:[],
checkList:[],
checkListAll:[],
......@@ -101,6 +101,10 @@ export default {
Name:'拒签'
},
],
orderSplitInfo:{
OrderId:0,
GuestIdStr:[],
},
}
},
watch:{},
......@@ -108,6 +112,17 @@ export default {
methods:{
// 订单拆分
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 {
return
}
this.checkd = false
},
checkAll(){ //全选
if(this.checkList.length==this.checkListAll.length){
......@@ -125,25 +141,24 @@ export default {
}
this.checkList = this.checkListAll
},
getVisaManagementList(){ // 获取签证管理
this.apipost('dmc_get_visa_GetVisaManagementList',{Status:0,BranchId:-1,SignStatus:0},res=>{
if(res.data.resultCode==1){
this.VisaManagementList = res.data.data
}else{
this.$message.error(res.data.message)
}
},err=>{})
},
// getVisaManagementList(){ // 获取签证管理
// this.apipost('dmc_get_visa_GetVisaManagementList',{Status:0,BranchId:-1,SignStatus:0},res=>{
// if(res.data.resultCode==1){
// this.VisaManagementList = res.data.data
// }else{
// this.$message.error(res.data.message)
// }
// },err=>{})
// },
getData(){ //获取数据
this.loading = true
this.checkListAll=[]
this.apipost('dmc_get_GetTCGuestSplitList',{OrderId:this.id},res=>{
console.log("res",res);
// console.log("res",res);
if(res.data.resultCode==1){
this.dataList = res.data.data
this.dataList.forEach(x=>{
if(x.IsSplit==
1){
if(x.IsSplit==1){
this.checkListAll.push(x.Id)
}
})
......@@ -158,7 +173,8 @@ export default {
mounted(){
this.id = this.$route.query.id
this.num = this.$route.query.num
this.getVisaManagementList()
this.orderSplitInfo.OrderId=this.$route.query.id;
// this.getVisaManagementList()
this.getData()
}
}
......
......@@ -2518,7 +2518,7 @@ export default {
title: '签证产品下单'
},
},
{ // 销售 签证产品下单
{ // 签证 签证产品下单
path: '/VisaProductOrder',
name: 'VisaProductOrder',
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