Commit 570ad2e9 authored by 王悦's avatar 王悦
parents 9af5d8c3 8508ac43
......@@ -615,6 +615,7 @@ export const visa = {
v_weibangding:'未绑定',
v_chulizhong:'处理中',
v_lvkebianma:'旅客编码',
v_chaifenzhuangtai:'拆分状态',
}
export const advmanager = {
v_all:'全部',
......
......@@ -386,10 +386,10 @@ tr._item_list td:last-child {
._TCIDAndTCNUMList {
display: flex;
}
.other_report{
.other_report {
padding: 0 28px 15px 28px;
}
.other_report li{
.other_report li {
float: left;
color: #fff;
background-color: #b00;
......@@ -488,33 +488,33 @@ tr._item_list td:last-child {
</el-col>
<el-col :span="4">
<el-form-item label="状态:">
<el-select v-model="msg.QueryCondition" filterable class="w150">
<el-option key="-1" value="-1" label="不限"></el-option>
<el-option key="0" value="0" label="待收"></el-option>
<el-option key="1" value="1" label="退款"></el-option>
<el-option key="2" value="2" label="在途"></el-option>
</el-select>
<el-select v-model="msg.QueryCondition" filterable class="w150">
<el-option key="-1" value="-1" label="不限"></el-option>
<el-option key="0" value="0" label="待收"></el-option>
<el-option key="1" value="1" label="退款"></el-option>
<el-option key="2" value="2" label="在途"></el-option>
</el-select>
</el-form-item>
</el-col>
<el-col :span="4">
<el-form-item label="数据类别:">
<el-select v-model="msg.DataType" filterable class="w150">
<el-option key="-1" value="-1" label="不限"></el-option>
<el-option key="0" value="1" label="团队营收"></el-option>
<el-option key="1" value="2" label="机票"></el-option>
<el-option key="2" value="3" label="签证"></el-option>
</el-select>
<el-select v-model="msg.DataType" filterable class="w150">
<el-option key="-1" value="-1" label="不限"></el-option>
<el-option key="0" value="1" label="团队营收"></el-option>
<el-option key="1" value="2" label="机票"></el-option>
<el-option key="2" value="3" label="签证"></el-option>
</el-select>
</el-form-item>
</el-col>
</el-col>
</el-row>
</el-form>
<ul class="clearfix">
<li class="hight_query">
<!-- <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="hollowFixedBtn" @click="method5()">导出</button>
<button class="normalBtn " @click="togbu">一键同步</button>
<button class="normalBtn" @click="togbu">一键同步</button>
<!--<button class="hollowFixedBtn" @click="exportExcelCurrentPage">导出2</button>-->
</li>
</ul>
......@@ -606,12 +606,13 @@ Vue.component("TCIDJump", {
path: "/" + path,
query: { id: id, blank: "y" }
});
},goUrlVisa(path, id) {
},
goUrlVisa(path, id) {
this.$router.push({
path: "/" + path,
query: { VisaID: id, blank: "y" }
});
},
}
}
});
Vue.component("TCNUMJump", {
......@@ -645,12 +646,13 @@ Vue.component("TCNUMJump", {
path: "/" + path,
query: { id: id, blank: "y" }
});
},goUrlVisa(path, id) {
},
goUrlVisa(path, id) {
this.$router.push({
path: "/" + path,
query: { VisaID: id, blank: "y" }
});
},
}
}
});
Vue.component("GuestNum", {
......@@ -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 {
data() {
return {
......@@ -700,8 +727,8 @@ export default {
startDate: "",
endDate: "",
Type: 1,
QueryCondition:"-1",
DataType:"1"
QueryCondition: "-1",
DataType: "1"
},
getCompanyMsg: {
// 公司
......@@ -737,9 +764,9 @@ export default {
}
},
disabledDate: time => {
if(time < new Date("2018-12-31")){
if (time < new Date("2018-12-31")) {
return true;
} else{
} else {
if (this.choiceDate) {
const one = 365 * 24 * 3600 * 1000;
const minTime = this.choiceDate - one;
......@@ -818,7 +845,8 @@ export default {
width: 100,
titleAlign: "left",
columnAlign: "left",
isResize: true
isResize: true,
componentName: "TCIDJumpWang"
}, //,orderBy:''
{
field: "ShiShou",
......@@ -827,7 +855,8 @@ export default {
width: 100,
titleAlign: "left",
columnAlign: "left",
isResize: true
isResize: true,
componentName: "TCIDJumpWang"
},
{
field: "TuiKuan",
......@@ -836,7 +865,8 @@ export default {
width: 100,
titleAlign: "left",
columnAlign: "left",
isResize: true
isResize: true,
componentName: "TCIDJumpWang"
},
{
field: "PingTaiShuiJin",
......@@ -845,7 +875,8 @@ export default {
width: 100,
titleAlign: "left",
columnAlign: "left",
isResize: true
isResize: true,
componentName: "TCIDJumpWang"
},
{
field: "ZaiTu",
......@@ -855,6 +886,7 @@ export default {
titleAlign: "left",
columnAlign: "left",
isResize: true,
componentName: "TCIDJumpWang"
},
{
field: "DaiShou",
......@@ -863,7 +895,8 @@ export default {
width: 100,
titleAlign: "left",
columnAlign: "left",
isResize: true
isResize: true,
componentName: "TCIDJumpWang"
},
{
field: "YiShou",
......@@ -872,7 +905,8 @@ export default {
width: 100,
titleAlign: "left",
columnAlign: "left",
isResize: true
isResize: true,
componentName: "TCIDJumpWang"
},
{
field: "GuestNum",
......@@ -890,7 +924,8 @@ export default {
width: 90,
titleAlign: "left",
columnAlign: "left",
isResize: true
isResize: true,
componentName: "TCIDJumpWang"
},
{
field: "CheZi",
......@@ -899,7 +934,8 @@ export default {
width: 90,
titleAlign: "left",
columnAlign: "left",
isResize: true
isResize: true,
componentName: "TCIDJumpWang"
},
{
field: "JiPiao",
......@@ -908,7 +944,8 @@ export default {
width: 90,
titleAlign: "left",
columnAlign: "left",
isResize: true
isResize: true,
componentName: "TCIDJumpWang"
},
{
field: "GuoNeiLianYunJiPiao",
......@@ -917,7 +954,8 @@ export default {
width: 120,
titleAlign: "left",
columnAlign: "left",
isResize: true
isResize: true,
componentName: "TCIDJumpWang"
},
// {field: 'Money11', title: '房费',width: 90, titleAlign: 'left',columnAlign:'left',isResize:true},
{
......@@ -927,7 +965,8 @@ export default {
width: 90,
titleAlign: "left",
columnAlign: "left",
isResize: true
isResize: true,
componentName: "TCIDJumpWang"
},
{
field: "TiCheng",
......@@ -935,7 +974,8 @@ export default {
width: 100,
titleAlign: "left",
columnAlign: "left",
isResize: true
isResize: true,
componentName: "TCIDJumpWang"
},
{
field: "CompensationMoney",
......@@ -944,8 +984,9 @@ export default {
width: 100,
titleAlign: "left",
columnAlign: "left",
isResize: true
},
isResize: true,
componentName: "TCIDJumpWang"
},
{
field: "QiTa",
formatter: this.moneyFormat,
......@@ -953,7 +994,8 @@ export default {
width: 90,
titleAlign: "left",
columnAlign: "left",
isResize: true
isResize: true,
componentName: "TCIDJumpWang"
},
{
field: "DiJieZhiChu",
......@@ -962,7 +1004,8 @@ export default {
width: 90,
titleAlign: "left",
columnAlign: "left",
isResize: true
isResize: true,
componentName: "TCIDJumpWang"
},
{
field: "DiJieShouRu",
......@@ -971,7 +1014,8 @@ export default {
width: 90,
titleAlign: "left",
columnAlign: "left",
isResize: true
isResize: true,
componentName: "TCIDJumpWang"
},
{
field: "ZiFei",
......@@ -980,7 +1024,8 @@ export default {
width: 90,
titleAlign: "left",
columnAlign: "left",
isResize: true
isResize: true,
componentName: "TCIDJumpWang"
},
{
field: "XiaoFeiShouRu",
......@@ -989,7 +1034,8 @@ export default {
width: 90,
titleAlign: "left",
columnAlign: "left",
isResize: true
isResize: true,
componentName: "TCIDJumpWang"
},
{
field: "YongJinShouRu",
......@@ -998,7 +1044,8 @@ export default {
width: 90,
titleAlign: "left",
columnAlign: "left",
isResize: true
isResize: true,
componentName: "TCIDJumpWang"
},
{
field: "YingFu",
......@@ -1007,7 +1054,8 @@ export default {
width: 90,
titleAlign: "left",
columnAlign: "left",
isResize: true
isResize: true,
componentName: "TCIDJumpWang"
},
{
field: "MaoLi",
......@@ -1016,7 +1064,8 @@ export default {
width: 90,
titleAlign: "left",
columnAlign: "left",
isResize: true
isResize: true,
componentName: "TCIDJumpWang"
},
{
field: "MaoLiRate",
......@@ -1025,7 +1074,8 @@ export default {
width: 90,
titleAlign: "left",
columnAlign: "left",
isResize: true
isResize: true,
componentName: "TCIDJumpWang"
},
{
field: "ShiJiLiRun",
......@@ -1034,7 +1084,8 @@ export default {
width: 90,
titleAlign: "left",
columnAlign: "left",
isResize: true
isResize: true,
componentName: "TCIDJumpWang"
},
{
field: "Remark",
......@@ -1182,7 +1233,7 @@ export default {
titleAlign: "left",
columnAlign: "left",
isResize: true
},
},
{
field: "RealIncome",
formatter: this.moneyFormat,
......@@ -1287,7 +1338,7 @@ export default {
footer: [],
pageSize: 6,
pageIndex: 1,
AALloading: false,
AALloading: false
};
},
created() {},
......@@ -1297,7 +1348,7 @@ export default {
allH = document.documentElement.clientHeight;
allW = document.documentElement.clientWidth;
cW = allW - 90;
cH = allH - 350 -52;
cH = allH - 350 - 52;
this.msg.pageSize = parseInt(cH / 30) - 1;
let userInfo = this.getLocalStorage();
this.getCompanyMsg.RB_Group_Id = userInfo.RB_Group_id; //集团ID
......@@ -1308,23 +1359,29 @@ export default {
this.getStartList1();
},
methods: {
goEasyReport: function () {
let year = this.productionDate[0] ? this.productionDate[0].substring(0,4) : ''
goEasyReport: function() {
let year = this.productionDate[0]
? this.productionDate[0].substring(0, 4)
: "";
this.$router.push({
path: "/EasyReport",
query: { year: year, blank: "y" }
});
},
togbu: function () {
this.AALloading = true
this.apipost('financestatistics_post_InsertFinanceStatistics', {}, res=>{
if (res.data.resultCode == 1) {
this.$message.success(res.data.message)
} else {
this.AALloading = false
this.$message.error(res.data.message)
togbu: function() {
this.AALloading = true;
this.apipost(
"financestatistics_post_InsertFinanceStatistics",
{},
res => {
if (res.data.resultCode == 1) {
this.$message.success(res.data.message);
} else {
this.AALloading = false;
this.$message.error(res.data.message);
}
}
})
);
},
submitKaiqiZzBox: function() {
// 开关闸提交
......@@ -1585,7 +1642,8 @@ export default {
return this.priceFormat(rowData.GuoNeiLianYunJiPiao);
if (field === "Visa") return this.priceFormat(rowData.Visa);
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 === "DiJieZhiChu") return this.priceFormat(rowData.DiJieZhiChu);
if (field === "DiJieShouRu") return this.priceFormat(rowData.DiJieShouRu);
......@@ -1598,7 +1656,7 @@ export default {
return this.priceFormat(rowData.YongJinShouRu);
if (field === "YingFu") return this.priceFormat(rowData.YingFu);
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 === "TransportCost")
return this.priceFormat(rowData.TransportCost);
......@@ -1781,10 +1839,20 @@ export default {
x.Is_Transport = x.Is_Transport === 0 ? "否" : "是";
newData.push(x);
} else {
x.MaoLiRate = this.total===0 ? 0 : parseFloat(x.MaoLiRate/this.total);
x.AverageIncome = 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.MaoLiRate =
this.total === 0 ? 0 : parseFloat(x.MaoLiRate / this.total);
x.AverageIncome =
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.TCID = "";
x.TCNUM = "";
......
......@@ -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">
......@@ -41,6 +41,7 @@
<th>{{$t('visa.v_ziliaowanshan')}}</th>
<th>{{$t('visa.v_visaType')}}</th>
<th>{{$t('visa.v_qianzhengst')}}</th>
<th>{{$t('visa.v_chaifenzhuangtai')}}</th>
<th>{{$t('admin.admin_czPerson')}}</th>
<!-- <th>{{$t('hotel.table_operat')}}</th> -->
</tr>
......@@ -64,6 +65,10 @@
<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="">
</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> <i @click="deletelist(item.Id)" class="iconfont icon-img_delete_small"></i></td> -->
</tr>
......@@ -79,7 +84,7 @@ export default {
return {
id:0,
num:0,
VisaManagementList:[],
// VisaManagementList:[],
dataList:[],
checkList:[],
checkListAll:[],
......@@ -101,6 +106,10 @@ export default {
Name:'拒签'
},
],
orderSplitInfo:{
OrderId:0,
GuestIdStr:[],
},
}
},
watch:{},
......@@ -108,6 +117,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 +137,7 @@ export default {
return
}
this.checkd = false
},
checkAll(){ //全选
if(this.checkList.length==this.checkListAll.length){
......@@ -125,25 +146,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 +178,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()
}
}
......
......@@ -77,7 +77,7 @@ export default {
return {
//请求数据
msg: {
VisaPlanId: 0
OrderId: 0
},
dataList: [],
loading: true
......@@ -98,7 +98,7 @@ export default {
getList() {
this.loading = true;
this.apipost(
"dmc_get_visa_GetVisaOrderGuestList",
"dmc_get_visa_GetVisaOrderGuestListForOrder",
this.msg,
res => {
this.loading = false;
......@@ -111,7 +111,7 @@ export default {
}
},
mounted() {
this.msg.VisaPlanId = this.$route.query.id;
this.msg.OrderId = this.$route.query.id;
this.getList();
}
};
......
......@@ -83,7 +83,7 @@
</style>
<template>
<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">
<ul>
<li v-if="isShow==0">
......@@ -189,7 +189,7 @@
<td colspan="12" class="RL_Order" style="height:40px;">
<span class="VO-remarkTitle">名单:</span>
<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 class="VO-redType VO-remarkCon" v-else>
<span>暂无名单</span>
......@@ -261,7 +261,13 @@ export default {
}
},methods:{
goUrlVisaList(obj){
this.$router.push({ name: 'visaList2',query:{"visaPlanId":obj.VisaPlanId,blank:'y',tab:'签证详情'} })
if(obj.VisaPlanIdStr=="" || obj.VisaPlanIdStr==null){
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) {
this.$router.push({
......
......@@ -65,7 +65,7 @@
.FweekList{
width:100%;
margin-top:5px;
padding-bottom: 5px;
padding:0 0 5px 42px;
border-bottom:1px solid #d1d1d1;
}
.FweekList:last-child{
......@@ -73,7 +73,6 @@
}
.flightChildTable{
width:100%;
text-align: center;
}
.flightChildTable td{
border: 1px solid #d1d1d1;
......@@ -93,6 +92,9 @@
background-color:#E95252;
border-color:#E95252;
}
.flightDateSearch{
margin-bottom:10px;
}
</style>
<template>
<div class="flexOne flightMg">
......@@ -108,7 +110,7 @@
<li>
<input type="button" class="hollowFixedBtn" :value="$t('pub.searchBtn')" @click="resetPageIndex(),getList()" />
&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;
<input type="button" class="normalBtn" value="删除" @click="PostDeleteArray()" />
</li>
......@@ -136,10 +138,10 @@
<td>
<el-row>
<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 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-row>
</td>
......@@ -151,35 +153,30 @@
<el-pagination background @current-change="handleCurrentChange" :current-page.sync="msg.currentPage" layout="total,prev, pager, next, jumper"
:page-size="msg.pageSize" :total="msg.total">
</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>
<table class="flightChildTable" style="border-collapse: collapse;">
<tr>
<td width="350">
<div style="float:left;margin:20px 0 20px 30px;">
<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"
<div class="flightDateSearch">
日期:<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> -
<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>
</div>
</div>
<el-select v-model="PostData.UpdateType" class="w100" style="margin-top:20px;">
<el-option :value="1" label="全部"></el-option>
<el-option :value="2" label="星期"></el-option>
</el-select>
</td>
</div>
<table class="flightChildTable" style="border-collapse: collapse;text-align:left;">
<tr>
<td>
<div v-if="PostData.UpdateType==1" class="FweekList" v-for="subItem in dateObj2">
<span>{{subItem.WeekDayStr}}</span>
<el-input class="w135" v-model="subItem.CDepartTime"></el-input>
<el-input class="w135" v-model="subItem.CArrivalTime"></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" onkeyup="value=value.replace(/[^\d^\:]+/g,'')"></el-input>
</div>
<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-input class="w135" v-model="subItem.CDepartTime"></el-input>
<el-input class="w135" v-model="subItem.CArrivalTime"></el-input>
<el-checkbox v-model='subItem.CheckStatus'>{{subItem.WeekDayStr}}</el-checkbox>
<el-input class="w135" v-model="subItem.CDepartTime" onkeyup="value=value.replace(/[^\d^\:]+/g,'')"></el-input>
<el-input class="w135" v-model="subItem.CArrivalTime" onkeyup="value=value.replace(/[^\d^\:]+/g,'')"></el-input>
</div>
</td>
</tr>
......@@ -190,6 +187,32 @@
<button class="hollowFixedBtn" @click="outerVisible = false">{{$t('pub.cancelBtn')}}</button>
</div>
</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>
</template>
<script>
......@@ -198,6 +221,7 @@
return {
checked: false,
outerVisible: false,
editVisible: false,
msg: {
//请求数据参数
pageIndex: 1,
......@@ -219,7 +243,6 @@
},
//删除数组
DeleteArray: [],
dialogTitle: '',
dateObj2: [{
WeekDayStr: '全部',
WeekDay: 0,
......@@ -306,10 +329,6 @@
};
},
methods: {
changeItem(subItem)
{
subItem.CheckStatus=!subItem.CheckStatus;
},
//获取列表数据
getList() {
this.loading = true;
......@@ -335,38 +354,87 @@
},
SaveData() {
this.PostData.SubList = [];
var isSubmit = true;
if (this.PostData.UpdateType == 1) {
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 {
this.dateObj.forEach(item => {
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;
}
}
});
}
this.apipost(
"flight_get_SetFlightChild",
this.PostData,
res => {
if (res.data.resultCode == 1) {
this.Success(res.data.message);
this.PostData.StartDate = "";
this.PostData.EndDate = "";
this.PostData.UpdateType = 1;
this.dateObj2[0].CDepartTime = "";
this.dateObj2[0].CArrivalTime = "";
this.dateObj.forEach(item => {
item.CheckStatus = false;
item.CDepartTime = "";
item.CArrivalTime = "";
});
this.getList();
} else {
this.Error(res.data.message);
}
},
err => {}
);
if(isSubmit){
this.apipost(
"flight_get_SetFlightChild",
this.PostData,
res => {
if (res.data.resultCode == 1) {
this.Success(res.data.message);
this.PostData.StartDate = "";
this.PostData.EndDate = "";
this.PostData.UpdateType = 1;
this.dateObj2[0].CDepartTime = "";
this.dateObj2[0].CArrivalTime = "";
this.dateObj.forEach(item => {
item.CheckStatus = false;
item.CDepartTime = "";
item.CArrivalTime = "";
});
this.getList();
this.outerVisible = false;
} else {
this.Error(res.data.message);
}
},
err => {}
);
}
},
//翻页功能按钮
handleCurrentChange(val) {
......
......@@ -263,7 +263,8 @@ export default {
// }
},
}
},methods:{
},
methods:{
downLoadAllInfo(id){ // 下载全部资料
this.loading2 = true
this.apipost('dmc_get_VisaMergingDownload',{VisaPlanId:id},res=>{
......@@ -495,7 +496,9 @@ export default {
},mounted(){
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.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.getVisaManagementList()
}
......
......@@ -161,7 +161,7 @@
<td>{{flight.arrivalAirPortName}}<span class="citycode"></span></td>
<td width="18" class="gap">&nbsp;</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>
</tbody>
<tbody v-else-if="priceList.length>0&&priceList[0].priceFlight&&priceList[0].priceFlight.length>0">
......@@ -173,7 +173,7 @@
<td>{{flight.arrivalAirPortName}}<span class="citycode"></span></td>
<td width="18" class="gap">&nbsp;</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>
</tbody>
<tbody v-else>
......
......@@ -2526,7 +2526,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