Commit 570ad2e9 authored by 王悦's avatar 王悦
parents 9af5d8c3 8508ac43
...@@ -615,6 +615,7 @@ export const visa = { ...@@ -615,6 +615,7 @@ export const visa = {
v_weibangding:'未绑定', v_weibangding:'未绑定',
v_chulizhong:'处理中', v_chulizhong:'处理中',
v_lvkebianma:'旅客编码', v_lvkebianma:'旅客编码',
v_chaifenzhuangtai:'拆分状态',
} }
export const advmanager = { export const advmanager = {
v_all:'全部', v_all:'全部',
......
...@@ -386,10 +386,10 @@ tr._item_list td:last-child { ...@@ -386,10 +386,10 @@ tr._item_list td:last-child {
._TCIDAndTCNUMList { ._TCIDAndTCNUMList {
display: flex; display: flex;
} }
.other_report{ .other_report {
padding: 0 28px 15px 28px; padding: 0 28px 15px 28px;
} }
.other_report li{ .other_report li {
float: left; float: left;
color: #fff; color: #fff;
background-color: #b00; background-color: #b00;
...@@ -511,10 +511,10 @@ tr._item_list td:last-child { ...@@ -511,10 +511,10 @@ tr._item_list td:last-child {
<ul class="clearfix"> <ul class="clearfix">
<li class="hight_query"> <li class="hight_query">
<!-- <button class="normalBtn" @click="openKaiQiZzBox('一键开启')">一键开启</button> <!-- <button class="normalBtn" @click="openKaiQiZzBox('一键开启')">一键开启</button>
<button class="hollowFixedBtn" @click="openKaiQiZzBox('一键关闭')">一键关闭</button> --> <button class="hollowFixedBtn" @click="openKaiQiZzBox('一键关闭')">一键关闭</button>-->
<button class="normalBtn" @click="resetPageIndex(),getPageList()">{{$t('pub.searchBtn')}}</button> <button class="normalBtn" @click="resetPageIndex(),getPageList()">{{$t('pub.searchBtn')}}</button>
<button class="hollowFixedBtn" @click="method5()">导出</button> <button class="hollowFixedBtn" @click="method5()">导出</button>
<button class="normalBtn " @click="togbu">一键同步</button> <button class="normalBtn" @click="togbu">一键同步</button>
<!--<button class="hollowFixedBtn" @click="exportExcelCurrentPage">导出2</button>--> <!--<button class="hollowFixedBtn" @click="exportExcelCurrentPage">导出2</button>-->
</li> </li>
</ul> </ul>
...@@ -606,12 +606,13 @@ Vue.component("TCIDJump", { ...@@ -606,12 +606,13 @@ Vue.component("TCIDJump", {
path: "/" + path, path: "/" + path,
query: { id: id, blank: "y" } query: { id: id, blank: "y" }
}); });
},goUrlVisa(path, id) { },
goUrlVisa(path, id) {
this.$router.push({ this.$router.push({
path: "/" + path, path: "/" + path,
query: { VisaID: id, blank: "y" } query: { VisaID: id, blank: "y" }
}); });
}, }
} }
}); });
Vue.component("TCNUMJump", { Vue.component("TCNUMJump", {
...@@ -645,12 +646,13 @@ Vue.component("TCNUMJump", { ...@@ -645,12 +646,13 @@ Vue.component("TCNUMJump", {
path: "/" + path, path: "/" + path,
query: { id: id, blank: "y" } query: { id: id, blank: "y" }
}); });
},goUrlVisa(path, id) { },
goUrlVisa(path, id) {
this.$router.push({ this.$router.push({
path: "/" + path, path: "/" + path,
query: { VisaID: id, blank: "y" } query: { VisaID: id, blank: "y" }
}); });
}, }
} }
}); });
Vue.component("GuestNum", { Vue.component("GuestNum", {
...@@ -683,6 +685,31 @@ Vue.component("Transport", { ...@@ -683,6 +685,31 @@ Vue.component("Transport", {
} }
} }
}); });
Vue.component("TCIDJumpWang", {
template: `<div>
<span style="cursor: pointer" v-if="rowData.DataType===1" @click="goUrl('TeamBalancePayment',rowData.TCID)">{{rowData[field]}}</span>
<span v-else >{{rowData[field]}}</span>
</div>`,
props: {
rowData: {
type: Object
},
field: {
type: String
},
index: {
type: Number
}
},
methods: {
goUrl(path, id) {
this.$router.push({
path: "/" + path,
query: { id: id, blank: "y" }
});
}
}
});
export default { export default {
data() { data() {
return { return {
...@@ -700,8 +727,8 @@ export default { ...@@ -700,8 +727,8 @@ export default {
startDate: "", startDate: "",
endDate: "", endDate: "",
Type: 1, Type: 1,
QueryCondition:"-1", QueryCondition: "-1",
DataType:"1" DataType: "1"
}, },
getCompanyMsg: { getCompanyMsg: {
// 公司 // 公司
...@@ -737,9 +764,9 @@ export default { ...@@ -737,9 +764,9 @@ export default {
} }
}, },
disabledDate: time => { disabledDate: time => {
if(time < new Date("2018-12-31")){ if (time < new Date("2018-12-31")) {
return true; return true;
} else{ } else {
if (this.choiceDate) { if (this.choiceDate) {
const one = 365 * 24 * 3600 * 1000; const one = 365 * 24 * 3600 * 1000;
const minTime = this.choiceDate - one; const minTime = this.choiceDate - one;
...@@ -818,7 +845,8 @@ export default { ...@@ -818,7 +845,8 @@ export default {
width: 100, width: 100,
titleAlign: "left", titleAlign: "left",
columnAlign: "left", columnAlign: "left",
isResize: true isResize: true,
componentName: "TCIDJumpWang"
}, //,orderBy:'' }, //,orderBy:''
{ {
field: "ShiShou", field: "ShiShou",
...@@ -827,7 +855,8 @@ export default { ...@@ -827,7 +855,8 @@ export default {
width: 100, width: 100,
titleAlign: "left", titleAlign: "left",
columnAlign: "left", columnAlign: "left",
isResize: true isResize: true,
componentName: "TCIDJumpWang"
}, },
{ {
field: "TuiKuan", field: "TuiKuan",
...@@ -836,7 +865,8 @@ export default { ...@@ -836,7 +865,8 @@ export default {
width: 100, width: 100,
titleAlign: "left", titleAlign: "left",
columnAlign: "left", columnAlign: "left",
isResize: true isResize: true,
componentName: "TCIDJumpWang"
}, },
{ {
field: "PingTaiShuiJin", field: "PingTaiShuiJin",
...@@ -845,7 +875,8 @@ export default { ...@@ -845,7 +875,8 @@ export default {
width: 100, width: 100,
titleAlign: "left", titleAlign: "left",
columnAlign: "left", columnAlign: "left",
isResize: true isResize: true,
componentName: "TCIDJumpWang"
}, },
{ {
field: "ZaiTu", field: "ZaiTu",
...@@ -855,6 +886,7 @@ export default { ...@@ -855,6 +886,7 @@ export default {
titleAlign: "left", titleAlign: "left",
columnAlign: "left", columnAlign: "left",
isResize: true, isResize: true,
componentName: "TCIDJumpWang"
}, },
{ {
field: "DaiShou", field: "DaiShou",
...@@ -863,7 +895,8 @@ export default { ...@@ -863,7 +895,8 @@ export default {
width: 100, width: 100,
titleAlign: "left", titleAlign: "left",
columnAlign: "left", columnAlign: "left",
isResize: true isResize: true,
componentName: "TCIDJumpWang"
}, },
{ {
field: "YiShou", field: "YiShou",
...@@ -872,7 +905,8 @@ export default { ...@@ -872,7 +905,8 @@ export default {
width: 100, width: 100,
titleAlign: "left", titleAlign: "left",
columnAlign: "left", columnAlign: "left",
isResize: true isResize: true,
componentName: "TCIDJumpWang"
}, },
{ {
field: "GuestNum", field: "GuestNum",
...@@ -890,7 +924,8 @@ export default { ...@@ -890,7 +924,8 @@ export default {
width: 90, width: 90,
titleAlign: "left", titleAlign: "left",
columnAlign: "left", columnAlign: "left",
isResize: true isResize: true,
componentName: "TCIDJumpWang"
}, },
{ {
field: "CheZi", field: "CheZi",
...@@ -899,7 +934,8 @@ export default { ...@@ -899,7 +934,8 @@ export default {
width: 90, width: 90,
titleAlign: "left", titleAlign: "left",
columnAlign: "left", columnAlign: "left",
isResize: true isResize: true,
componentName: "TCIDJumpWang"
}, },
{ {
field: "JiPiao", field: "JiPiao",
...@@ -908,7 +944,8 @@ export default { ...@@ -908,7 +944,8 @@ export default {
width: 90, width: 90,
titleAlign: "left", titleAlign: "left",
columnAlign: "left", columnAlign: "left",
isResize: true isResize: true,
componentName: "TCIDJumpWang"
}, },
{ {
field: "GuoNeiLianYunJiPiao", field: "GuoNeiLianYunJiPiao",
...@@ -917,7 +954,8 @@ export default { ...@@ -917,7 +954,8 @@ export default {
width: 120, width: 120,
titleAlign: "left", titleAlign: "left",
columnAlign: "left", columnAlign: "left",
isResize: true isResize: true,
componentName: "TCIDJumpWang"
}, },
// {field: 'Money11', title: '房费',width: 90, titleAlign: 'left',columnAlign:'left',isResize:true}, // {field: 'Money11', title: '房费',width: 90, titleAlign: 'left',columnAlign:'left',isResize:true},
{ {
...@@ -927,7 +965,8 @@ export default { ...@@ -927,7 +965,8 @@ export default {
width: 90, width: 90,
titleAlign: "left", titleAlign: "left",
columnAlign: "left", columnAlign: "left",
isResize: true isResize: true,
componentName: "TCIDJumpWang"
}, },
{ {
field: "TiCheng", field: "TiCheng",
...@@ -935,7 +974,8 @@ export default { ...@@ -935,7 +974,8 @@ export default {
width: 100, width: 100,
titleAlign: "left", titleAlign: "left",
columnAlign: "left", columnAlign: "left",
isResize: true isResize: true,
componentName: "TCIDJumpWang"
}, },
{ {
field: "CompensationMoney", field: "CompensationMoney",
...@@ -944,7 +984,8 @@ export default { ...@@ -944,7 +984,8 @@ export default {
width: 100, width: 100,
titleAlign: "left", titleAlign: "left",
columnAlign: "left", columnAlign: "left",
isResize: true isResize: true,
componentName: "TCIDJumpWang"
}, },
{ {
field: "QiTa", field: "QiTa",
...@@ -953,7 +994,8 @@ export default { ...@@ -953,7 +994,8 @@ export default {
width: 90, width: 90,
titleAlign: "left", titleAlign: "left",
columnAlign: "left", columnAlign: "left",
isResize: true isResize: true,
componentName: "TCIDJumpWang"
}, },
{ {
field: "DiJieZhiChu", field: "DiJieZhiChu",
...@@ -962,7 +1004,8 @@ export default { ...@@ -962,7 +1004,8 @@ export default {
width: 90, width: 90,
titleAlign: "left", titleAlign: "left",
columnAlign: "left", columnAlign: "left",
isResize: true isResize: true,
componentName: "TCIDJumpWang"
}, },
{ {
field: "DiJieShouRu", field: "DiJieShouRu",
...@@ -971,7 +1014,8 @@ export default { ...@@ -971,7 +1014,8 @@ export default {
width: 90, width: 90,
titleAlign: "left", titleAlign: "left",
columnAlign: "left", columnAlign: "left",
isResize: true isResize: true,
componentName: "TCIDJumpWang"
}, },
{ {
field: "ZiFei", field: "ZiFei",
...@@ -980,7 +1024,8 @@ export default { ...@@ -980,7 +1024,8 @@ export default {
width: 90, width: 90,
titleAlign: "left", titleAlign: "left",
columnAlign: "left", columnAlign: "left",
isResize: true isResize: true,
componentName: "TCIDJumpWang"
}, },
{ {
field: "XiaoFeiShouRu", field: "XiaoFeiShouRu",
...@@ -989,7 +1034,8 @@ export default { ...@@ -989,7 +1034,8 @@ export default {
width: 90, width: 90,
titleAlign: "left", titleAlign: "left",
columnAlign: "left", columnAlign: "left",
isResize: true isResize: true,
componentName: "TCIDJumpWang"
}, },
{ {
field: "YongJinShouRu", field: "YongJinShouRu",
...@@ -998,7 +1044,8 @@ export default { ...@@ -998,7 +1044,8 @@ export default {
width: 90, width: 90,
titleAlign: "left", titleAlign: "left",
columnAlign: "left", columnAlign: "left",
isResize: true isResize: true,
componentName: "TCIDJumpWang"
}, },
{ {
field: "YingFu", field: "YingFu",
...@@ -1007,7 +1054,8 @@ export default { ...@@ -1007,7 +1054,8 @@ export default {
width: 90, width: 90,
titleAlign: "left", titleAlign: "left",
columnAlign: "left", columnAlign: "left",
isResize: true isResize: true,
componentName: "TCIDJumpWang"
}, },
{ {
field: "MaoLi", field: "MaoLi",
...@@ -1016,7 +1064,8 @@ export default { ...@@ -1016,7 +1064,8 @@ export default {
width: 90, width: 90,
titleAlign: "left", titleAlign: "left",
columnAlign: "left", columnAlign: "left",
isResize: true isResize: true,
componentName: "TCIDJumpWang"
}, },
{ {
field: "MaoLiRate", field: "MaoLiRate",
...@@ -1025,7 +1074,8 @@ export default { ...@@ -1025,7 +1074,8 @@ export default {
width: 90, width: 90,
titleAlign: "left", titleAlign: "left",
columnAlign: "left", columnAlign: "left",
isResize: true isResize: true,
componentName: "TCIDJumpWang"
}, },
{ {
field: "ShiJiLiRun", field: "ShiJiLiRun",
...@@ -1034,7 +1084,8 @@ export default { ...@@ -1034,7 +1084,8 @@ export default {
width: 90, width: 90,
titleAlign: "left", titleAlign: "left",
columnAlign: "left", columnAlign: "left",
isResize: true isResize: true,
componentName: "TCIDJumpWang"
}, },
{ {
field: "Remark", field: "Remark",
...@@ -1287,7 +1338,7 @@ export default { ...@@ -1287,7 +1338,7 @@ export default {
footer: [], footer: [],
pageSize: 6, pageSize: 6,
pageIndex: 1, pageIndex: 1,
AALloading: false, AALloading: false
}; };
}, },
created() {}, created() {},
...@@ -1297,7 +1348,7 @@ export default { ...@@ -1297,7 +1348,7 @@ export default {
allH = document.documentElement.clientHeight; allH = document.documentElement.clientHeight;
allW = document.documentElement.clientWidth; allW = document.documentElement.clientWidth;
cW = allW - 90; cW = allW - 90;
cH = allH - 350 -52; cH = allH - 350 - 52;
this.msg.pageSize = parseInt(cH / 30) - 1; this.msg.pageSize = parseInt(cH / 30) - 1;
let userInfo = this.getLocalStorage(); let userInfo = this.getLocalStorage();
this.getCompanyMsg.RB_Group_Id = userInfo.RB_Group_id; //集团ID this.getCompanyMsg.RB_Group_Id = userInfo.RB_Group_id; //集团ID
...@@ -1308,23 +1359,29 @@ export default { ...@@ -1308,23 +1359,29 @@ export default {
this.getStartList1(); this.getStartList1();
}, },
methods: { methods: {
goEasyReport: function () { goEasyReport: function() {
let year = this.productionDate[0] ? this.productionDate[0].substring(0,4) : '' let year = this.productionDate[0]
? this.productionDate[0].substring(0, 4)
: "";
this.$router.push({ this.$router.push({
path: "/EasyReport", path: "/EasyReport",
query: { year: year, blank: "y" } query: { year: year, blank: "y" }
}); });
}, },
togbu: function () { togbu: function() {
this.AALloading = true this.AALloading = true;
this.apipost('financestatistics_post_InsertFinanceStatistics', {}, res=>{ this.apipost(
"financestatistics_post_InsertFinanceStatistics",
{},
res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.$message.success(res.data.message) this.$message.success(res.data.message);
} else { } else {
this.AALloading = false this.AALloading = false;
this.$message.error(res.data.message) this.$message.error(res.data.message);
} }
}) }
);
}, },
submitKaiqiZzBox: function() { submitKaiqiZzBox: function() {
// 开关闸提交 // 开关闸提交
...@@ -1585,7 +1642,8 @@ export default { ...@@ -1585,7 +1642,8 @@ export default {
return this.priceFormat(rowData.GuoNeiLianYunJiPiao); return this.priceFormat(rowData.GuoNeiLianYunJiPiao);
if (field === "Visa") return this.priceFormat(rowData.Visa); if (field === "Visa") return this.priceFormat(rowData.Visa);
if (field === "TiCheng") return this.priceFormat(rowData.TiCheng); if (field === "TiCheng") return this.priceFormat(rowData.TiCheng);
if (field === "CompensationMoney") return this.priceFormat(rowData.CompensationMoney); if (field === "CompensationMoney")
return this.priceFormat(rowData.CompensationMoney);
if (field === "QiTa") return this.priceFormat(rowData.QiTa); if (field === "QiTa") return this.priceFormat(rowData.QiTa);
if (field === "DiJieZhiChu") return this.priceFormat(rowData.DiJieZhiChu); if (field === "DiJieZhiChu") return this.priceFormat(rowData.DiJieZhiChu);
if (field === "DiJieShouRu") return this.priceFormat(rowData.DiJieShouRu); if (field === "DiJieShouRu") return this.priceFormat(rowData.DiJieShouRu);
...@@ -1598,7 +1656,7 @@ export default { ...@@ -1598,7 +1656,7 @@ export default {
return this.priceFormat(rowData.YongJinShouRu); return this.priceFormat(rowData.YongJinShouRu);
if (field === "YingFu") return this.priceFormat(rowData.YingFu); if (field === "YingFu") return this.priceFormat(rowData.YingFu);
if (field === "MaoLi") return this.priceFormat(rowData.MaoLi); if (field === "MaoLi") return this.priceFormat(rowData.MaoLi);
if (field === "MaoLiRate") return rowData.MaoLiRate+'%'; if (field === "MaoLiRate") return rowData.MaoLiRate + "%";
if (field === "ShiJiLiRun") return this.priceFormat(rowData.ShiJiLiRun); if (field === "ShiJiLiRun") return this.priceFormat(rowData.ShiJiLiRun);
if (field === "TransportCost") if (field === "TransportCost")
return this.priceFormat(rowData.TransportCost); return this.priceFormat(rowData.TransportCost);
...@@ -1781,10 +1839,20 @@ export default { ...@@ -1781,10 +1839,20 @@ export default {
x.Is_Transport = x.Is_Transport === 0 ? "否" : "是"; x.Is_Transport = x.Is_Transport === 0 ? "否" : "是";
newData.push(x); newData.push(x);
} else { } else {
x.MaoLiRate = this.total===0 ? 0 : parseFloat(x.MaoLiRate/this.total); x.MaoLiRate =
x.AverageIncome = this.total===0 ? 0 : parseFloat(x.AverageIncome/this.total); this.total === 0 ? 0 : parseFloat(x.MaoLiRate / this.total);
x.AverageCost = this.total===0 ? 0 : parseFloat(x.AverageCost/this.total); x.AverageIncome =
x.AverageProfit = this.total===0 ? 0 : parseFloat(x.AverageProfit/this.total); this.total === 0
? 0
: parseFloat(x.AverageIncome / this.total);
x.AverageCost =
this.total === 0
? 0
: parseFloat(x.AverageCost / this.total);
x.AverageProfit =
this.total === 0
? 0
: parseFloat(x.AverageProfit / this.total);
x.LineName = "合计"; x.LineName = "合计";
x.TCID = ""; x.TCID = "";
x.TCNUM = ""; x.TCNUM = "";
......
...@@ -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">
...@@ -41,6 +41,7 @@ ...@@ -41,6 +41,7 @@
<th>{{$t('visa.v_ziliaowanshan')}}</th> <th>{{$t('visa.v_ziliaowanshan')}}</th>
<th>{{$t('visa.v_visaType')}}</th> <th>{{$t('visa.v_visaType')}}</th>
<th>{{$t('visa.v_qianzhengst')}}</th> <th>{{$t('visa.v_qianzhengst')}}</th>
<th>{{$t('visa.v_chaifenzhuangtai')}}</th>
<th>{{$t('admin.admin_czPerson')}}</th> <th>{{$t('admin.admin_czPerson')}}</th>
<!-- <th>{{$t('hotel.table_operat')}}</th> --> <!-- <th>{{$t('hotel.table_operat')}}</th> -->
</tr> </tr>
...@@ -64,6 +65,10 @@ ...@@ -64,6 +65,10 @@
<img v-if="item.ApplyStatus==1" src="../../assets/img/pass@2x.png" alt=""> <img v-if="item.ApplyStatus==1" src="../../assets/img/pass@2x.png" alt="">
<img v-if="item.ApplyStatus==2" src="../../assets/img/fail@2x.png" alt=""> <img v-if="item.ApplyStatus==2" src="../../assets/img/fail@2x.png" alt="">
</td> </td>
<td>
<span v-if="item.IsSplit==1">未拆分</span>
<span v-else>已拆分</span>
</td>
<td>{{item.UpdateName}} <img class="_head_img" :src="item.UpdatePhoto" alt=""></td> <td>{{item.UpdateName}} <img class="_head_img" :src="item.UpdatePhoto" alt=""></td>
<!-- <td> <i @click="deletelist(item.Id)" class="iconfont icon-img_delete_small"></i></td> --> <!-- <td> <i @click="deletelist(item.Id)" class="iconfont icon-img_delete_small"></i></td> -->
</tr> </tr>
...@@ -79,7 +84,7 @@ export default { ...@@ -79,7 +84,7 @@ export default {
return { return {
id:0, id:0,
num:0, num:0,
VisaManagementList:[], // VisaManagementList:[],
dataList:[], dataList:[],
checkList:[], checkList:[],
checkListAll:[], checkListAll:[],
...@@ -101,6 +106,10 @@ export default { ...@@ -101,6 +106,10 @@ export default {
Name:'拒签' Name:'拒签'
}, },
], ],
orderSplitInfo:{
OrderId:0,
GuestIdStr:[],
},
} }
}, },
watch:{}, watch:{},
...@@ -108,6 +117,17 @@ export default { ...@@ -108,6 +117,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 +137,7 @@ export default { ...@@ -117,6 +137,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 +146,24 @@ export default { ...@@ -125,25 +146,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 +178,8 @@ export default { ...@@ -158,7 +178,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()
} }
} }
......
...@@ -77,7 +77,7 @@ export default { ...@@ -77,7 +77,7 @@ export default {
return { return {
//请求数据 //请求数据
msg: { msg: {
VisaPlanId: 0 OrderId: 0
}, },
dataList: [], dataList: [],
loading: true loading: true
...@@ -98,7 +98,7 @@ export default { ...@@ -98,7 +98,7 @@ export default {
getList() { getList() {
this.loading = true; this.loading = true;
this.apipost( this.apipost(
"dmc_get_visa_GetVisaOrderGuestList", "dmc_get_visa_GetVisaOrderGuestListForOrder",
this.msg, this.msg,
res => { res => {
this.loading = false; this.loading = false;
...@@ -111,7 +111,7 @@ export default { ...@@ -111,7 +111,7 @@ export default {
} }
}, },
mounted() { mounted() {
this.msg.VisaPlanId = this.$route.query.id; this.msg.OrderId = this.$route.query.id;
this.getList(); this.getList();
} }
}; };
......
...@@ -83,7 +83,7 @@ ...@@ -83,7 +83,7 @@
</style> </style>
<template> <template>
<div class="page_MyCustomer"> <div class="page_MyCustomer">
<div v-show="nameShow" style="width:220px; color: #333; margin-top: 20px; text-align: center; line-height: 34px;font-size: 14px; font-weight: bold; height:34px;background:rgba(212,212,212,1);border:1px solid rgba(210,210,210,1);border-radius:4px;">{{visaProduct}}</div> <div v-show="nameShow" style="display:inline-block;padding:0 6px;color: #333; margin-top: 20px; text-align: center; line-height: 34px;font-size: 14px; font-weight: bold; height:34px;background:rgba(212,212,212,1);border:1px solid rgba(210,210,210,1);border-radius:4px;">{{visaProduct}}</div>
<div class="query-box" style="border:none"> <div class="query-box" style="border:none">
<ul> <ul>
<li v-if="isShow==0"> <li v-if="isShow==0">
...@@ -189,7 +189,7 @@ ...@@ -189,7 +189,7 @@
<td colspan="12" class="RL_Order" style="height:40px;"> <td colspan="12" class="RL_Order" style="height:40px;">
<span class="VO-remarkTitle">名单:</span> <span class="VO-remarkTitle">名单:</span>
<span class="VO-redType VO-remarkCon" v-if="item.GuestList.length>0"> <span class="VO-redType VO-remarkCon" v-if="item.GuestList.length>0">
<span v-for="(childItem) in item.GuestList" style="margin-right:10px;" @click="goUrl2('VisapassengerList',item.VisaPlanId,'旅客名单')">{{childItem.userName}}</span> <span v-for="(childItem) in item.GuestList" style="margin-right:10px;" @click="goUrl2('VisapassengerList',item.Id,'旅客名单')">{{childItem.userName}}</span>
</span> </span>
<span class="VO-redType VO-remarkCon" v-else> <span class="VO-redType VO-remarkCon" v-else>
<span>暂无名单</span> <span>暂无名单</span>
...@@ -261,7 +261,13 @@ export default { ...@@ -261,7 +261,13 @@ export default {
} }
},methods:{ },methods:{
goUrlVisaList(obj){ goUrlVisaList(obj){
if(obj.VisaPlanIdStr=="" || obj.VisaPlanIdStr==null){
this.$router.push({ name: 'visaList2',query:{"visaPlanId":obj.VisaPlanId,blank:'y',tab:'签证详情'} }) this.$router.push({ name: 'visaList2',query:{"visaPlanId":obj.VisaPlanId,blank:'y',tab:'签证详情'} })
}else{
this.$router.push({ name: 'visaList2',query:{"VisaPlanIdStr":obj.VisaPlanIdStr,blank:'y',tab:'签证详情'} })
}
}, },
goUrl2(path, id, name) { goUrl2(path, id, name) {
this.$router.push({ this.$router.push({
......
...@@ -65,7 +65,7 @@ ...@@ -65,7 +65,7 @@
.FweekList{ .FweekList{
width:100%; width:100%;
margin-top:5px; margin-top:5px;
padding-bottom: 5px; padding:0 0 5px 42px;
border-bottom:1px solid #d1d1d1; border-bottom:1px solid #d1d1d1;
} }
.FweekList:last-child{ .FweekList:last-child{
...@@ -73,7 +73,6 @@ ...@@ -73,7 +73,6 @@
} }
.flightChildTable{ .flightChildTable{
width:100%; width:100%;
text-align: center;
} }
.flightChildTable td{ .flightChildTable td{
border: 1px solid #d1d1d1; border: 1px solid #d1d1d1;
...@@ -93,6 +92,9 @@ ...@@ -93,6 +92,9 @@
background-color:#E95252; background-color:#E95252;
border-color:#E95252; border-color:#E95252;
} }
.flightDateSearch{
margin-bottom:10px;
}
</style> </style>
<template> <template>
<div class="flexOne flightMg"> <div class="flexOne flightMg">
...@@ -108,7 +110,7 @@ ...@@ -108,7 +110,7 @@
<li> <li>
<input type="button" class="hollowFixedBtn" :value="$t('pub.searchBtn')" @click="resetPageIndex(),getList()" /> <input type="button" class="hollowFixedBtn" :value="$t('pub.searchBtn')" @click="resetPageIndex(),getList()" />
&nbsp; &nbsp;
<input type="button" class="normalBtn" :value="$t('pub.addBtn')" @click="outerVisible = true,dialogTitle='新增效期'" /> <input type="button" class="normalBtn" :value="$t('pub.addBtn')" @click="outerVisible = true,editVisible = false"/>
&nbsp; &nbsp;
<input type="button" class="normalBtn" value="删除" @click="PostDeleteArray()" /> <input type="button" class="normalBtn" value="删除" @click="PostDeleteArray()" />
</li> </li>
...@@ -136,10 +138,10 @@ ...@@ -136,10 +138,10 @@
<td> <td>
<el-row> <el-row>
<el-tooltip class="item" effect="dark" :content="$t('system.table_edit')" placement="top-start"> <el-tooltip class="item" effect="dark" :content="$t('system.table_edit')" placement="top-start">
<el-button type="primary" icon="el-icon-edit" circle @click="outerVisible = true,dialogTitle='修改航班',updateData(item.ID)"></el-button> <el-button type="primary" icon="el-icon-edit" circle @click="editVisible = true,outerVisible=false"></el-button>
</el-tooltip> </el-tooltip>
<el-tooltip class="item" effect="dark" :content="$t('system.table_edit')" placement="top-start"> <el-tooltip class="item" effect="dark" :content="$t('system.table_edit')" placement="top-start">
<el-button type="primary" icon="el-icon-delete" circle @click="DeleteSingleChild(item)"></el-button> <el-button type="danger" icon="el-icon-delete" circle @click="DeleteSingleChild(item)"></el-button>
</el-tooltip> </el-tooltip>
</el-row> </el-row>
</td> </td>
...@@ -151,35 +153,30 @@ ...@@ -151,35 +153,30 @@
<el-pagination background @current-change="handleCurrentChange" :current-page.sync="msg.currentPage" layout="total,prev, pager, next, jumper" <el-pagination background @current-change="handleCurrentChange" :current-page.sync="msg.currentPage" layout="total,prev, pager, next, jumper"
:page-size="msg.pageSize" :total="msg.total"> :page-size="msg.pageSize" :total="msg.total">
</el-pagination> </el-pagination>
<el-dialog custom-class='flightAddCompany' :title="dialogTitle" :visible.sync="outerVisible" center> <el-dialog custom-class='flightAddCompany' title="新增效期" :visible.sync="outerVisible" center>
<el-form> <el-form>
<table class="flightChildTable" style="border-collapse: collapse;"> <div class="flightDateSearch">
<tr> 日期:<el-date-picker clearable class="w135" v-model="PostData.StartDate"
<td width="350"> type="date" :picker-options="beforeCheck" value-format="yyyy-MM-dd" :placeholder="$t('admin.admin_choDate')"></el-date-picker> -
<div style="float:left;margin:20px 0 20px 30px;"> <el-date-picker clearable class="w135" v-model="PostData.EndDate" type="date" :picker-options="afterCheck"
<div style="margin-bottom:5px;">开始日期:<el-date-picker clearable class="w135" v-model="PostData.StartDate"
type="date" :picker-options="beforeCheck" value-format="yyyy-MM-dd" :placeholder="$t('admin.admin_choDate')"></el-date-picker>
</div>
<div>
结束日期:<el-date-picker clearable class="w135" v-model="PostData.EndDate" type="date" :picker-options="afterCheck"
value-format="yyyy-MM-dd" :placeholder="$t('admin.admin_choDate')"></el-date-picker> value-format="yyyy-MM-dd" :placeholder="$t('admin.admin_choDate')"></el-date-picker>
</div>
</div>
<el-select v-model="PostData.UpdateType" class="w100" style="margin-top:20px;"> <el-select v-model="PostData.UpdateType" class="w100" style="margin-top:20px;">
<el-option :value="1" label="全部"></el-option> <el-option :value="1" label="全部"></el-option>
<el-option :value="2" label="星期"></el-option> <el-option :value="2" label="星期"></el-option>
</el-select> </el-select>
</td> </div>
<table class="flightChildTable" style="border-collapse: collapse;text-align:left;">
<tr>
<td> <td>
<div v-if="PostData.UpdateType==1" class="FweekList" v-for="subItem in dateObj2"> <div v-if="PostData.UpdateType==1" class="FweekList" v-for="subItem in dateObj2">
<span>{{subItem.WeekDayStr}}</span> <span>{{subItem.WeekDayStr}}</span>
<el-input class="w135" v-model="subItem.CDepartTime"></el-input> <el-input class="w135" v-model="subItem.CDepartTime" onkeyup="value=value.replace(/[^\d^\:]+/g,'')"></el-input>
<el-input class="w135" v-model="subItem.CArrivalTime"></el-input> <el-input class="w135" v-model="subItem.CArrivalTime" onkeyup="value=value.replace(/[^\d^\:]+/g,'')"></el-input>
</div> </div>
<div v-if="PostData.UpdateType==2" class="FweekList" v-for="subItem in dateObj"> <div v-if="PostData.UpdateType==2" class="FweekList" v-for="subItem in dateObj">
<el-checkbox @change='changeItem(subItem)' v-model='subItem.CheckStatus'>{{subItem.WeekDayStr}}</el-checkbox> <el-checkbox v-model='subItem.CheckStatus'>{{subItem.WeekDayStr}}</el-checkbox>
<el-input class="w135" v-model="subItem.CDepartTime"></el-input> <el-input class="w135" v-model="subItem.CDepartTime" onkeyup="value=value.replace(/[^\d^\:]+/g,'')"></el-input>
<el-input class="w135" v-model="subItem.CArrivalTime"></el-input> <el-input class="w135" v-model="subItem.CArrivalTime" onkeyup="value=value.replace(/[^\d^\:]+/g,'')"></el-input>
</div> </div>
</td> </td>
</tr> </tr>
...@@ -190,6 +187,32 @@ ...@@ -190,6 +187,32 @@
<button class="hollowFixedBtn" @click="outerVisible = false">{{$t('pub.cancelBtn')}}</button> <button class="hollowFixedBtn" @click="outerVisible = false">{{$t('pub.cancelBtn')}}</button>
</div> </div>
</el-dialog> </el-dialog>
<el-dialog custom-class='flightAddCompany' title="修改效期" :visible.sync="editVisible" center>
<el-form>
<div class="flightDateSearch">
日期:
<el-date-picker clearable class="w135" type="date" value-format="yyyy-MM-dd" disabled :placeholder="$t('admin.admin_choDate')"></el-date-picker> -
<el-date-picker clearable class="w135" type="date" value-format="yyyy-MM-dd" disabled :placeholder="$t('admin.admin_choDate')"></el-date-picker>
</div>
<table class="flightChildTable" style="border-collapse: collapse;text-align:left;">
<tr>
<td>
<div class="FweekList">
<span>全部</span>
<el-input class="w135" onkeyup="value=value.replace(/[^\d^\:]+/g,'')"></el-input>
<el-input class="w135" onkeyup="value=value.replace(/[^\d^\:]+/g,'')"></el-input>
</div>
</td>
</tr>
</table>
</el-form>
<div slot="footer" class="dialog-footer">
<button class="normalBtn" type="primary" @click="">{{$t('pub.saveBtn')}}</button> &nbsp;
<button class="hollowFixedBtn" @click="editVisible = false">{{$t('pub.cancelBtn')}}</button>
</div>
</el-dialog>
</div> </div>
</template> </template>
<script> <script>
...@@ -198,6 +221,7 @@ ...@@ -198,6 +221,7 @@
return { return {
checked: false, checked: false,
outerVisible: false, outerVisible: false,
editVisible: false,
msg: { msg: {
//请求数据参数 //请求数据参数
pageIndex: 1, pageIndex: 1,
...@@ -219,7 +243,6 @@ ...@@ -219,7 +243,6 @@
}, },
//删除数组 //删除数组
DeleteArray: [], DeleteArray: [],
dialogTitle: '',
dateObj2: [{ dateObj2: [{
WeekDayStr: '全部', WeekDayStr: '全部',
WeekDay: 0, WeekDay: 0,
...@@ -306,10 +329,6 @@ ...@@ -306,10 +329,6 @@
}; };
}, },
methods: { methods: {
changeItem(subItem)
{
subItem.CheckStatus=!subItem.CheckStatus;
},
//获取列表数据 //获取列表数据
getList() { getList() {
this.loading = true; this.loading = true;
...@@ -335,15 +354,62 @@ ...@@ -335,15 +354,62 @@
}, },
SaveData() { SaveData() {
this.PostData.SubList = []; this.PostData.SubList = [];
var isSubmit = true;
if (this.PostData.UpdateType == 1) { if (this.PostData.UpdateType == 1) {
this.PostData.SubList.push(this.dateObj2[0]); this.PostData.SubList.push(this.dateObj2[0]);
if(this.PostData.StartDate==''){
this.Error('请选择开始日期');
return;
}
if(this.PostData.EndDate==''){
this.Error('请选择结束日期');
return;
}
if(this.dateObj2[0].CDepartTime==''){
this.Error('请填写出发时间');
return;
}
if(this.dateObj2[0].CArrivalTime==''){
this.Error('请填写到达时间');
return;
};
} else { } else {
this.dateObj.forEach(item => { this.dateObj.forEach(item => {
if (item.CheckStatus) { if (item.CheckStatus) {
this.PostData.SubList.push(item); this.PostData.SubList.push(item);
if(this.PostData.StartDate==''){
this.Error('请选择开始日期');
isSubmit = false;
}
if(this.PostData.EndDate==''){
this.Error('请选择结束日期');
isSubmit = false;
}
if(item.CDepartTime==''){
this.Error('请填写周'+item.WeekDayStr+'开始时间');
isSubmit = false;
}
if(item.CArrivalTime==''){
this.Error('请填写周'+item.WeekDayStr+'到达时间');
isSubmit = false;
}
}else{
if(this.PostData.StartDate==''){
this.Error('请选择开始日期');
isSubmit = false;
}
if(this.PostData.EndDate==''){
this.Error('请选择结束日期');
isSubmit = false;
}
if(this.PostData.SubList.length==0){
this.Error('请选择星期');
isSubmit = false;
}
} }
}); });
} }
if(isSubmit){
this.apipost( this.apipost(
"flight_get_SetFlightChild", "flight_get_SetFlightChild",
this.PostData, this.PostData,
...@@ -361,12 +427,14 @@ ...@@ -361,12 +427,14 @@
item.CArrivalTime = ""; item.CArrivalTime = "";
}); });
this.getList(); this.getList();
this.outerVisible = false;
} else { } else {
this.Error(res.data.message); this.Error(res.data.message);
} }
}, },
err => {} err => {}
); );
}
}, },
//翻页功能按钮 //翻页功能按钮
handleCurrentChange(val) { handleCurrentChange(val) {
......
...@@ -263,7 +263,8 @@ export default { ...@@ -263,7 +263,8 @@ export default {
// } // }
}, },
} }
},methods:{ },
methods:{
downLoadAllInfo(id){ // 下载全部资料 downLoadAllInfo(id){ // 下载全部资料
this.loading2 = true this.loading2 = true
this.apipost('dmc_get_VisaMergingDownload',{VisaPlanId:id},res=>{ this.apipost('dmc_get_VisaMergingDownload',{VisaPlanId:id},res=>{
...@@ -495,7 +496,9 @@ export default { ...@@ -495,7 +496,9 @@ export default {
},mounted(){ },mounted(){
this.msg.VisaProductId = this.$route.query.id===undefined?'0':this.$route.query.id this.msg.VisaProductId = this.$route.query.id===undefined?'0':this.$route.query.id
this.msg.TCID = this.$route.query.tcid===undefined?'0':this.$route.query.tcid this.msg.TCID = this.$route.query.tcid===undefined?'0':this.$route.query.tcid
this.msg.VisaPlanId = this.$route.query.visaPlanId===undefined?'0':this.$route.query.visaPlanId this.msg.VisaPlanId = this.$route.query.visaPlanId===undefined?'0':this.$route.query.visaPlanId;
this.msg.VisaPlanIdStr = this.$route.query.VisaPlanIdStr===undefined?'0':this.$route.query.VisaPlanIdStr;
this.getList() this.getList()
this.getVisaManagementList() this.getVisaManagementList()
} }
......
...@@ -161,7 +161,7 @@ ...@@ -161,7 +161,7 @@
<td>{{flight.arrivalAirPortName}}<span class="citycode"></span></td> <td>{{flight.arrivalAirPortName}}<span class="citycode"></span></td>
<td width="18" class="gap">&nbsp;</td> <td width="18" class="gap">&nbsp;</td>
<td width="140">{{flight.alName}}</td> <td width="140">{{flight.alName}}</td>
<td width="100">{{flight.flightNumber}}({{(priceList.length>0&&priceList[0].OutNotice==1)?"正常":"暂定"}})</td> <td width="110">{{flight.flightNumber}}({{(priceList.length>0&&priceList[0].outNotice==1)?"OK":"暂定"}})</td>
</tr> </tr>
</tbody> </tbody>
<tbody v-else-if="priceList.length>0&&priceList[0].priceFlight&&priceList[0].priceFlight.length>0"> <tbody v-else-if="priceList.length>0&&priceList[0].priceFlight&&priceList[0].priceFlight.length>0">
...@@ -173,7 +173,7 @@ ...@@ -173,7 +173,7 @@
<td>{{flight.arrivalAirPortName}}<span class="citycode"></span></td> <td>{{flight.arrivalAirPortName}}<span class="citycode"></span></td>
<td width="18" class="gap">&nbsp;</td> <td width="18" class="gap">&nbsp;</td>
<td width="140">{{flight.alName}}</td> <td width="140">{{flight.alName}}</td>
<td width="100">{{flight.flightNumber}}({{(priceList.length>0&&priceList[0].OutNotice==1)?"正常":"暂定"}})</td> <td width="110">{{flight.flightNumber}}({{(priceList.length>0&&priceList[0].outNotice==1)?"OK":"暂定"}})</td>
</tr> </tr>
</tbody> </tbody>
<tbody v-else> <tbody v-else>
......
...@@ -2526,7 +2526,7 @@ export default { ...@@ -2526,7 +2526,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