Commit acb2339c authored by 黄奎's avatar 黄奎

新增修改出团日期

parent 39d02632
......@@ -183,7 +183,8 @@
<em>{{$t('scen.sc_ftTime')}}</em>
<!-- <el-date-picker class="w150" type="date" v-model="queryMsg.StartGroupDate"
:picker-options="pickerBeginDateBefore" value-format="yyyy-MM-dd" placeholder></el-date-picker> -->
<DateLimit :clearable="false" :StartGroupDate="queryMsg.StartGroupDate" :EndGroupDate="queryMsg.EndGroupDate" @change="(date)=> queryMsg.StartGroupDate = date"></DateLimit>
<DateLimit :clearable="false" :StartGroupDate="queryMsg.StartGroupDate"
:EndGroupDate="queryMsg.EndGroupDate" @change="(date)=> queryMsg.StartGroupDate = date"></DateLimit>
<el-date-picker class="w150" type="date" v-model="queryMsg.EndGroupDate"
:picker-options="pickerBeginDateAfter" value-format="yyyy-MM-dd" placeholder></el-date-picker>
</span>
......@@ -440,7 +441,8 @@
<div title="地接团" class="travel_warningDi"></div>
</template>
<template v-else>
<div v-if="item.IsWarning===1" :title="$t('objFill.jingjituan')" class="travel_warning" style="display:none;"></div>
<div v-if="item.IsWarning===1" :title="$t('objFill.jingjituan')" class="travel_warning"
style="display:none;"></div>
</template>
<div>
<div class="TC_teamType">
......@@ -450,7 +452,8 @@
<span v-if="item.IsUnion==1&&item.UnionTypeStr==2" title="联">{{$t('Operation.Op_lian')}}</span>
<span v-if="item.Status==2"
:title="'结团时间'+item.OutGroupAuditDate">{{$t('Operation.Op_jietuan')}}</span>
<span v-if="item.Status==5" title="结团审核中" style="background: rgb(0 128 255);">{{$t('fnc.a_shezhong')}}</span>
<span v-if="item.Status==5" title="结团审核中"
style="background: rgb(0 128 255);">{{$t('fnc.a_shezhong')}}</span>
<span v-if="item.Status==1" title="销售">{{$t('visaT.sale')}}</span>
<span v-if="item.GroupRecommendType==1" title="精品"></span>
<label
......@@ -626,7 +629,8 @@
<span>{{$t('scen.sc_cp')}}</span>
{{item.OutBranchName}}
<span class="TC_neibu" style="float: inherit;margin-left: 5px;color: #ffffff;"
v-if="item.StandardCurrencyName" :class="{'TCneibu':item.StandardCurrencyName=='人民币','TCb2b':item.StandardCurrencyName=='日元',
v-if="item.StandardCurrencyName"
:class="{'TCneibu':item.StandardCurrencyName=='人民币','TCb2b':item.StandardCurrencyName=='日元',
'TCb2c':item.StandardCurrencyName=='新台币','AppPlat':item.StandardCurrencyName=='',
'otherPlat':item.StandardCurrencyName=='',}">{{item.StandardCurrencyName}}{{$t('objFill.jiesuan')}}</span>
</p>
......@@ -1230,8 +1234,11 @@
<el-dropdown-item @click.native='ckOPInfo(item)'>签证OP设置
</el-dropdown-item>
<el-dropdown-item @click.native='CopyTripAndFeature(item)'>复制行程
<el-dropdown-item @click.native='CopyTripAndFeature(item,1)'>复制行程
</el-dropdown-item>
<el-dropdown-item @click.native='CopyTripAndFeature(item,2)'>修改出团日期
</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown>
</div>
......@@ -1267,7 +1274,8 @@
<a v-if="item.HotelDiningBus.HotelChangeState>0" @click="goHotelDiningBus(item,item.HotelDiningBus,1)"
style="color:blue;cursor:pointer">{{$t('Operation.Op_HotelChange')}}</a>
<a v-if="item.HotelDiningBus.DiningChangeState>0"
@click="goHotelDiningBus(item,item.HotelDiningBus,2)" style="color:blue;cursor:pointer">{{$t('sm.cantingbiangeng')}}</a>
@click="goHotelDiningBus(item,item.HotelDiningBus,2)"
style="color:blue;cursor:pointer">{{$t('sm.cantingbiangeng')}}</a>
<a
v-if="item.HotelDiningBus.ResultBusTypeStr!=''">{{$t('Operation.Op_carType')}}:{{item.HotelDiningBus.ResultBusTypeStr}}</a>
</div>
......@@ -1408,9 +1416,10 @@
</div>
<!--复制行程信息-->
<div class="combottomDiv OPremarkDiv" style="height:150px;" v-show="CopyTripAndFeatureMsg.VisaShow">
<div class="combottomTitle">复制行程</div>
<div class="combottomDiv OPremarkDiv" style="height:150px;" v-show="CopyTripAndFeatureMsg.isShowTripFeature">
<div class="combottomTitle">{{CopyTripAndFeatureMsg.updateType==1?"复制行程":"修改出团日期"}}</div>
<el-form label-width="100px">
<template v-if="CopyTripAndFeatureMsg.updateType==1">
<el-col :span="4">
<el-form-item label="团号" prop="Remark">
<el-input v-model="CopyTripAndFeatureMsg.CopyTCNUM" placeholder="KIXMF06240921C"></el-input>
......@@ -1424,9 +1433,18 @@
</el-checkbox-group>
</el-form-item>
</el-col>
</template>
<template v-if="CopyTripAndFeatureMsg.updateType==2">
<el-col :span="4">
<el-form-item label="出团日期" prop="Remark">
<el-date-picker class="w150" type="date" v-model="CopyTripAndFeatureMsg.StartDate"
value-format="yyyy-MM-dd" placeholder></el-date-picker>
</el-form-item>
</el-col>
</template>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button size="small" @click="CopyTripAndFeatureMsg.VisaShow = false">
<el-button size="small" @click="CopyTripAndFeatureMsg.isShowTripFeature = false">
{{$t('pub.cancelBtn')}}
</el-button>
<el-button type="primary" size="small" :loading="saveLoading" @click="SetCopyTripAndFeature">
......@@ -1648,8 +1666,10 @@
VisaAssistId: "",
},
CopyTripAndFeatureMsg: {
VisaShow: false,
updateType: 1, //1-复制行程,2-修改出团日期,3-修改行程版面
isShowTripFeature: false,
TCID: 0,
StartDate: "", //出发日期
CopyTCNUM: "",
CopyTrip: [],
copyType: "",
......@@ -1712,15 +1732,15 @@
pickerBeginDateBefore: {
disabledDate: time => {
if (this.queryMsg.EndGroupDate == null) {
if(this.queryMsg.StartGroupDate){
if (this.queryMsg.StartGroupDate) {
let endTime = this.TourDateRestrictions()
return time && endTime.getTime() >= time.getTime();
}else return false;
} else return false;
} else {
if(this.queryMsg.StartGroupDate){
if (this.queryMsg.StartGroupDate) {
let endTime = this.TourDateRestrictions()
return time && endTime.getTime() >= time.getTime();
}else{
} else {
let endTime = new Date(this.queryMsg.EndGroupDate);
return endTime.getTime() < time.getTime();
}
......@@ -2748,13 +2768,15 @@
);
},
//弹窗选择复制的团期信息
CopyTripAndFeature(item) {
this.CopyTripAndFeatureMsg.VisaShow = true;
CopyTripAndFeature(item, type) {
this.CopyTripAndFeatureMsg.updateType = type;
this.CopyTripAndFeatureMsg.isShowTripFeature = true;
this.CopyTripAndFeatureMsg.CopyTrip = [];
this.CopyTripAndFeatureMsg.copyType = '';
this.CopyTripAndFeatureMsg.TCID = item.TCID;
this.CopyTripAndFeatureMsg.CurrentTCNUM = item.TCNUM;
this.CopyTripAndFeatureMsg.CopyTCNUM = "";
this.CopyTripAndFeatureMsg.StartDate = item.StartDateStr;
this.getVisaEmployeeList();
},
//保存复制的行程信息
......@@ -2773,22 +2795,33 @@
}
});
}
var cmdStr = "travel_post_CopyTripAndFeature"
var tipMsg = '是否将【' + this.CopyTripAndFeatureMsg.CopyTCNUM + '】的' + sMsg + ',复制到【' + this.CopyTripAndFeatureMsg
.CurrentTCNUM + '】团?';
if (this.CopyTripAndFeatureMsg.updateType == 2) {
cmdStr = "travel_post_SetTCStartDate";
tipMsg = "是否修改【" + this.CopyTripAndFeatureMsg.CurrentTCNUM + "】的出团日期为" + this.CopyTripAndFeatureMsg.StartDate;
}
that.Confirm(tipMsg, function () {
that.saveLoading = true;
that.apipost(
"travel_post_CopyTripAndFeature",
cmdStr,
that.CopyTripAndFeatureMsg,
res => {
that.saveLoading = false;
if (res.data.resultCode == 1) {
if (that.CopyTripAndFeatureMsg.updateType == 1) {
that.Success("复制行程成功");
that.CopyTripAndFeatureMsg.VisaShow = false;
} else {
that.Success(res.data.message);
}
that.CopyTripAndFeatureMsg.isShowTripFeature = false;
that.CopyTripAndFeatureMsg.CopyTrip = [];
that.CopyTripAndFeatureMsg.copyType = '';
that.CopyTripAndFeatureMsg.TCID = 0;
that.CopyTripAndFeatureMsg.CopyTCNUM = "";
that.CopyTripAndFeatureMsg.StartDate = "";
that.getControlList();
} else {
that.Error(res.data.message);
......
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