Commit 9196014c authored by 黄奎's avatar 黄奎

页面修改

parent 80c698dc
...@@ -243,14 +243,16 @@ ...@@ -243,14 +243,16 @@
</el-select> </el-select>
</span></li> </span></li>
<li><span><em>{{$t('advmanager.v_line')}}</em> <li><span><em>{{$t('advmanager.v_line')}}</em>
<el-select class='w150' v-model="msg.LineId" filterable :placeholder="$t('pub.pleaseSel')" @change="getLineTeamList(msg.LineId),getAimPlaceList(msg.LineId,'')"> <el-select class='w150' v-model="msg.LineId" filterable :placeholder="$t('pub.pleaseSel')"
@change="getLineTeamList(msg.LineId),getAimPlaceList(msg.LineId,'')">
<el-option :label="$t('pub.unlimitedSel')" value='-1'></el-option> <el-option :label="$t('pub.unlimitedSel')" value='-1'></el-option>
<el-option v-for="item in LineList" :label='item.LineName' :value='item.LineID' :key='item.LineID'> <el-option v-for="item in LineList" :label='item.LineName' :value='item.LineID' :key='item.LineID'>
</el-option> </el-option>
</el-select> </el-select>
</span></li> </span></li>
<li><span><em>{{$t('advmanager.v_xilie')}}</em> <li><span><em>{{$t('advmanager.v_xilie')}}</em>
<el-select class='w150' v-model="msg.LineTeamId" filterable :placeholder="$t('pub.pleaseSel')" @change="getAimPlaceList('',msg.LineTeamId)"> <el-select class='w150' v-model="msg.LineTeamId" filterable :placeholder="$t('pub.pleaseSel')"
@change="getAimPlaceList('',msg.LineTeamId)">
<el-option :label="$t('pub.unlimitedSel')" value='-1'></el-option> <el-option :label="$t('pub.unlimitedSel')" value='-1'></el-option>
<el-option v-for="item in LineTeamList" :label='item.LtName' :value='item.LtID' :key='item.LtID'> <el-option v-for="item in LineTeamList" :label='item.LtName' :value='item.LtID' :key='item.LtID'>
</el-option> </el-option>
...@@ -270,54 +272,45 @@ ...@@ -270,54 +272,45 @@
</span> </span>
</li> </li>
<li><span><em>{{$t('hotel.hotel_StarDate')}}</em> <li><span><em>{{$t('hotel.hotel_StarDate')}}</em>
<el-date-picker v-model='msg.StartTime' @change="dataDui()" class='w135' value-format="yyyy-MM-dd" type="date"></el-date-picker> <el-date-picker v-model='msg.StartTime' @change="dataDui()" class='w135' value-format="yyyy-MM-dd"
type="date"></el-date-picker>
- -
<el-date-picker v-model='msg.EndTime' @change="dataDui()" class='w135' value-format="yyyy-MM-dd" type="date"></el-date-picker> <el-date-picker v-model='msg.EndTime' @change="dataDui()" class='w135' value-format="yyyy-MM-dd"
type="date"></el-date-picker>
</span> </span>
</li> </li>
<!-- <li><span><em>出发城市</em>
<el-select class='w150' v-model="msg.CityId" filterable :placeholder="$t('pub.pleaseSel')">
<el-option label="不限" value='-1'></el-option>
<el-option v-for="item in startCityList1" :label='item.startCityName' :value='item.ID' :key='item.ID'>
</el-option>
</el-select>
</span></li> -->
<li style="height:34px;line-height:34px;padding: 0 0 0 20px;vertical-align: middle;"> <li style="height:34px;line-height:34px;padding: 0 0 0 20px;vertical-align: middle;">
<el-popover width="270" trigger="click"> <el-popover width="270" trigger="click">
<div class="superSearchLayer"> <div class="superSearchLayer">
<p>{{$t('visa.v_tkgjcx')}}</p> <p>{{$t('visa.v_tkgjcx')}}</p>
<!-- <div>
<span>航空公司</span>
<el-select v-model="msg.FlightID" filterable :placeholder="$t('system.ph_buxian')" class="w150">
<el-option label='不限' value='-1'></el-option>
<el-option v-for="item in airlineList" :key="item.AirLineId" :label="item.AlName" :value="item.AirLineId">
</el-option>
</el-select>
</div> -->
<!-- <div><span>行程天数</span>
<el-input class='w150' v-model='msg.DaysTrip' @keyup.native="checkInteger(msg,'DaysTrip')"></el-input>
</div> -->
<div><span>{{$t('visa.v_teamnum')}}</span> <div><span>{{$t('visa.v_teamnum')}}</span>
<el-input class='w69' v-model='msg.minGroupSize' @keyup.native="checkInteger(msg,'minGroupSize')"></el-input> <el-input class='w69' v-model='msg.minGroupSize' @keyup.native="checkInteger(msg,'minGroupSize')">
</el-input>
- -
<el-input class='w69' v-model='msg.maxGroupSize' @keyup.native="checkInteger(msg,'maxGroupSize')"></el-input> <el-input class='w69' v-model='msg.maxGroupSize' @keyup.native="checkInteger(msg,'maxGroupSize')">
</el-input>
</div> </div>
<div><span>{{$t('leader.leader_registraNum')}}</span> <div><span>{{$t('leader.leader_registraNum')}}</span>
<el-input class='w69' v-model='msg.minApplySize' @keyup.native="checkInteger(msg,'minApplySize')"></el-input> <el-input class='w69' v-model='msg.minApplySize' @keyup.native="checkInteger(msg,'minApplySize')">
</el-input>
- -
<el-input class='w69' v-model='msg.maxApplySize' @keyup.native="checkInteger(msg,'maxApplySize')"></el-input> <el-input class='w69' v-model='msg.maxApplySize' @keyup.native="checkInteger(msg,'maxApplySize')">
</el-input>
</div> </div>
<div><span>{{$t('Airticket.Air_salesPlatform')}}</span> <div><span>{{$t('Airticket.Air_salesPlatform')}}</span>
<el-select filterable multiple v-model="msg.SalePlat" :placeholder="$t('system.ph_buxian')" class="w150 multiple_input"> <el-select filterable multiple v-model="msg.SalePlat" :placeholder="$t('system.ph_buxian')"
class="w150 multiple_input">
<el-option v-for="item in salePlace" :key="item.Id" :label="item.Name" :value="item.Id"> <el-option v-for="item in salePlace" :key="item.Id" :label="item.Name" :value="item.Id">
</el-option> </el-option>
</el-select> </el-select>
</div> </div>
<div> <div>
<input type="button" style="width: 230px!important;" class="normalBtn" :value="$t('pub.searchBtn')" @click="getList();resetPageIndex()" /> <input type="button" style="width: 230px!important;" class="normalBtn" :value="$t('pub.searchBtn')"
@click="getList();resetPageIndex()" />
</div> </div>
</div> </div>
<span slot="reference" style="cursor: pointer;">{{$t('visa.v_gjchaxun')}}<i class="el-icon-caret-bottom"></i></span> <span slot="reference" style="cursor: pointer;">{{$t('visa.v_gjchaxun')}}<i
class="el-icon-caret-bottom"></i></span>
</el-popover> </el-popover>
</li> </li>
<li style="height:34px;line-height:34px;padding: 0 0 0 20px;vertical-align: middle;"> <li style="height:34px;line-height:34px;padding: 0 0 0 20px;vertical-align: middle;">
...@@ -327,7 +320,8 @@ ...@@ -327,7 +320,8 @@
<div class="clearfix"> <div class="clearfix">
<div class="TC_leftSearch"> <div class="TC_leftSearch">
<div> <div>
<span style="display:inline-block;margin: 0 5px 0 0;width:50px;text-align:right;">{{$t('leader.leader_registraNum')}}</span> <span
style="display:inline-block;margin: 0 5px 0 0;width:50px;text-align:right;">{{$t('leader.leader_registraNum')}}</span>
<el-select v-model="msg.WarningQuery" filterable :placeholder="$t('system.ph_buxian')" class="w150"> <el-select v-model="msg.WarningQuery" filterable :placeholder="$t('system.ph_buxian')" class="w150">
<el-option :label='$t("system.ph_buxian")' value='-1'></el-option> <el-option :label='$t("system.ph_buxian")' value='-1'></el-option>
<el-option :label="$t('salesModule.Nobaoming')" value='1'></el-option> <el-option :label="$t('salesModule.Nobaoming')" value='1'></el-option>
...@@ -338,7 +332,8 @@ ...@@ -338,7 +332,8 @@
</el-select> </el-select>
</div> </div>
<div> <div>
<span style="display:inline-block;margin: 0 5px 0 0;width:50px;text-align:right;">{{$t('Operation.Op_daysChoice')}}</span> <span
style="display:inline-block;margin: 0 5px 0 0;width:50px;text-align:right;">{{$t('Operation.Op_daysChoice')}}</span>
<el-select v-model="msg.RateOnDay" filterable :placeholder="$t('system.ph_buxian')" class="w150"> <el-select v-model="msg.RateOnDay" filterable :placeholder="$t('system.ph_buxian')" class="w150">
<el-option :label='$t("system.ph_buxian")' value='-1'></el-option> <el-option :label='$t("system.ph_buxian")' value='-1'></el-option>
<el-option :label="$t('salesModule.Inner10')" value='1'></el-option> <el-option :label="$t('salesModule.Inner10')" value='1'></el-option>
...@@ -348,7 +343,8 @@ ...@@ -348,7 +343,8 @@
</el-select> </el-select>
</div> </div>
<div> <div>
<span style="display:inline-block;margin: 0 5px 0 0;width:50px;text-align:right;">{{$t('Operation.Op_Attendance')}}</span> <span
style="display:inline-block;margin: 0 5px 0 0;width:50px;text-align:right;">{{$t('Operation.Op_Attendance')}}</span>
<el-select v-model="msg.RateOn" filterable :placeholder="$t('system.ph_buxian')" class="w150"> <el-select v-model="msg.RateOn" filterable :placeholder="$t('system.ph_buxian')" class="w150">
<el-option :label='$t("system.ph_buxian")' value='-1'></el-option> <el-option :label='$t("system.ph_buxian")' value='-1'></el-option>
<el-option label='100%' value='1'></el-option> <el-option label='100%' value='1'></el-option>
...@@ -359,30 +355,35 @@ ...@@ -359,30 +355,35 @@
</div> </div>
</div> </div>
</div> </div>
<button class="normalBtn TC_SearchBtn" @click="getList();resetPageIndex()">{{$t('pub.searchBtn')}}</button> <button class="normalBtn TC_SearchBtn"
@click="getList();resetPageIndex()">{{$t('pub.searchBtn')}}</button>
</div> </div>
<span slot="reference" style="cursor: pointer;">{{$t('Operation.Op_warningSearch')}}<i class="iconfont icon-xiaotuziCduan_1"></i></span> <span slot="reference" style="cursor: pointer;">{{$t('Operation.Op_warningSearch')}}<i
class="iconfont icon-xiaotuziCduan_1"></i></span>
</el-popover> </el-popover>
</li> </li>
<li> <li>
<input type="button" class="hollowFixedBtn" :value="$t('pub.searchBtn')" @click="getList();resetPageIndex()" /> <input type="button" class="hollowFixedBtn" :value="$t('pub.searchBtn')"
@click="getList();resetPageIndex()" />
</li> </li>
</ul> </ul>
</div> </div>
<el-pagination background @current-change="handleCurrentChange" :current-page.sync="currentPage" layout="total,prev, pager, next, jumper" <el-pagination background @current-change="handleCurrentChange" :current-page.sync="currentPage"
:page-size="msg.pageSize" :total="total"> layout="total,prev, pager, next, jumper" :page-size="msg.pageSize" :total="total">
</el-pagination> </el-pagination>
<!-- 产品列表 --> <!-- 产品列表 -->
<productOrderList :loading="loading" :list="list" @success="resetPageIndex" :pagesTitle="pagesTitle"></productOrderList> <productOrderList :loading="loading" :list="list" @success="resetPageIndex" :pagesTitle="pagesTitle">
<el-pagination background @current-change="handleCurrentChange" :current-page.sync="currentPage" layout="total,prev, pager, next, jumper" </productOrderList>
:page-size="msg.pageSize" :total="total"> <el-pagination background @current-change="handleCurrentChange" :current-page.sync="currentPage"
layout="total,prev, pager, next, jumper" :page-size="msg.pageSize" :total="total">
</el-pagination> </el-pagination>
<el-dialog custom-class='ComTeamPlan_info_box' :title="tripTitle" :visible.sync="outerVisible" center> <el-dialog custom-class='ComTeamPlan_info_box' :title="tripTitle" :visible.sync="outerVisible" center>
<commonTeamInfo ref="comTeam"></commonTeamInfo> <commonTeamInfo ref="comTeam"></commonTeamInfo>
</el-dialog> </el-dialog>
<el-dialog custom-class='w450' title="行程下载" :visible.sync="travelControlTripLayerShow" center> <el-dialog custom-class='w450' title="行程下载" :visible.sync="travelControlTripLayerShow" center>
<tripDownLoadCommon ref="tripDownLoadCommon" :tripObj="tripObj" @headCallBack="hideTripDown" :downType="1"></tripDownLoadCommon> <tripDownLoadCommon ref="tripDownLoadCommon" :tripObj="tripObj" @headCallBack="hideTripDown" :downType="1">
</tripDownLoadCommon>
</el-dialog> </el-dialog>
</div> </div>
</template> </template>
...@@ -431,8 +432,8 @@ ...@@ -431,8 +432,8 @@
currentPage: 1, currentPage: 1,
total: 0, total: 0,
addObj: {}, addObj: {},
Unit_PriceList:[],//成交单价下拉数据 Unit_PriceList: [], //成交单价下拉数据
LessMoney:0, LessMoney: 0,
addMsg: { addMsg: {
OrderId: '0', OrderId: '0',
TCID: '0', TCID: '0',
...@@ -462,7 +463,7 @@ ...@@ -462,7 +463,7 @@
ClientSource: '', ClientSource: '',
BrandId: '', BrandId: '',
TradeWay: '2', TradeWay: '2',
PlatformAccount:'', PlatformAccount: '',
PlatformOrder: '', PlatformOrder: '',
GuestNum: 0, GuestNum: 0,
IsChildrenTour: '0', IsChildrenTour: '0',
...@@ -486,11 +487,10 @@ ...@@ -486,11 +487,10 @@
IsShowMessagesMoney: '2', IsShowMessagesMoney: '2',
GuestList: [], GuestList: [],
GatherAddress: '', GatherAddress: '',
LureEmpId: 0,//引流id LureEmpId: 0, //引流id
CRMGuestId: 0, //客人ID CRMGuestId: 0, //客人ID
}, },
GuestList: [ GuestList: [{
{
SurName: '', SurName: '',
Name: '', Name: '',
Sex: '', Sex: '',
...@@ -500,9 +500,9 @@ ...@@ -500,9 +500,9 @@
Nationality: '', Nationality: '',
PassportNo: '', PassportNo: '',
Remarks: '', Remarks: '',
MobilePhone: ''} MobilePhone: ''
], }],
GuestObj:{ GuestObj: {
SurName: '', SurName: '',
Name: '', Name: '',
Sex: '', Sex: '',
...@@ -566,50 +566,37 @@ ...@@ -566,50 +566,37 @@
message: '请输入正确的手机' message: '请输入正确的手机'
} }
], ],
SurName: [ SurName: [{
{
required: true, required: true,
message: '请输入姓', message: '请输入姓',
trigger: 'blur' trigger: 'blur'
}, }, ],
], Name: [{
Name: [
{
required: true, required: true,
message: '请输入名', message: '请输入名',
trigger: 'blur' trigger: 'blur'
}, }, ],
], Sex: [{
Sex: [
{
required: true, required: true,
message: '请选择性别', message: '请选择性别',
trigger: 'change' trigger: 'change'
}, }, ],
], Birthday: [{
Birthday: [
{
required: true, required: true,
message: '请选择出生日期', message: '请选择出生日期',
trigger: 'blur' trigger: 'blur'
}, }, ],
], Nationality: [{
Nationality: [
{
required: true, required: true,
message: '请选择国籍', message: '请选择国籍',
trigger: 'change' trigger: 'change'
}, }, ],
], PassportNo: [{
PassportNo: [
{
required: true, required: true,
message: '请输入护照号', message: '请输入护照号',
trigger: 'blur' trigger: 'blur'
}, }, ],
], MobilePhone: [{
MobilePhone: [
{
required: true, required: true,
message: '请输入联系人电话', message: '请输入联系人电话',
trigger: 'blur' trigger: 'blur'
...@@ -619,13 +606,11 @@ ...@@ -619,13 +606,11 @@
message: '请输入正确的手机' message: '请输入正确的手机'
} }
], ],
GatherAddress: [ GatherAddress: [{
{
required: true, required: true,
message: '请输入集合地', message: '请输入集合地',
trigger: 'blur' trigger: 'blur'
}, }, ]
]
}, },
msg: { msg: {
pageIndex: 1, pageIndex: 1,
...@@ -693,14 +678,19 @@ ...@@ -693,14 +678,19 @@
cityId: 0, cityId: 0,
orderId: 0 orderId: 0
}, },
SingleDMCPricex:0,// 单地接; SingleDMCPricex: 0, // 单地接;
SingleDMCPrice:0,// 单地接; SingleDMCPrice: 0, // 单地接;
optionsList: [ optionsList: [{
{Name:'男',Id:1}, Name: '男',
{Name:'女',Id:2}, Id: 1
},
{
Name: '女',
Id: 2
},
], ],
TotalNumber: 0, TotalNumber: 0,
countryList: [],//国籍 countryList: [], //国籍
//当前登录用户信息 //当前登录用户信息
CurrentUserInfo: {}, CurrentUserInfo: {},
crmOrderObj: null, crmOrderObj: null,
...@@ -713,11 +703,7 @@ ...@@ -713,11 +703,7 @@
carousel: carousel carousel: carousel
}, },
watch: { watch: {
// addMsg: {
// handler: function (val, oldVal) {
// },
// deep: true
// }
}, },
filters: { filters: {
priceFormat(value) { priceFormat(value) {
...@@ -757,13 +743,8 @@ ...@@ -757,13 +743,8 @@
}, },
methods: { methods: {
goB2Bdetail(ConfigId, tcid) { goB2Bdetail(ConfigId, tcid) {
var B2BDomain = this.CurrentUserInfo.B2BDomain//'www.oytour.com'; var B2BDomain = this.CurrentUserInfo.B2BDomain //'www.oytour.com';
this.$tripUtils.GotoB2BPage(B2BDomain,encodeURIComponent(ConfigId),tcid); this.$tripUtils.GotoB2BPage(B2BDomain, encodeURIComponent(ConfigId), tcid);
// var url = "http://" + 'www.oytour.com';
// window.open(
// url + "/#/detail/XXcsyIZsyIY%3D/" +tcid +"/" +encodeURIComponent(ConfigId),
// "_blank"
// );
}, },
getCountry() { getCountry() {
//获取国家 //获取国家
...@@ -773,7 +754,6 @@ ...@@ -773,7 +754,6 @@
msg, msg,
res => { res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.countryList = res.data.data; this.countryList = res.data.data;
} else { } else {
this.$message.error(res.data.message); this.$message.error(res.data.message);
...@@ -800,12 +780,11 @@ ...@@ -800,12 +780,11 @@
this.getTotalPrice() this.getTotalPrice()
} }
}, },
gettypechange(type){ gettypechange(type) {
if(type==4){ if (type == 4) {
this.HightUnitPrice = '1'; this.HightUnitPrice = '1';
this.addMsg.AirticketNum = 0; this.addMsg.AirticketNum = 0;
this.addMsg.ManNum = 0; this.addMsg.ManNum = 0;
// this.addMsg.ChirdNum = 0;
this.addMsg.BabyNum = 0; this.addMsg.BabyNum = 0;
this.addMsg.OldPeopleNum = 0; this.addMsg.OldPeopleNum = 0;
this.addMsg.ChirdNoNeedBedNum = 0; this.addMsg.ChirdNoNeedBedNum = 0;
...@@ -816,11 +795,10 @@ ...@@ -816,11 +795,10 @@
this.addMsg.VisaNum = 0; this.addMsg.VisaNum = 0;
this.addMsg.PredictRoomNum = 0; this.addMsg.PredictRoomNum = 0;
this.addMsg.YSeatNum = 0; this.addMsg.YSeatNum = 0;
}else { } else {
this.HightUnitPrice = '2'; this.HightUnitPrice = '2';
this.addMsg.AirticketNum = 0; this.addMsg.AirticketNum = 0;
this.addMsg.ManNum = 0; this.addMsg.ManNum = 0;
// this.addMsg.ChirdNum = 0;
this.addMsg.BabyNum = 0; this.addMsg.BabyNum = 0;
this.addMsg.OldPeopleNum = 0; this.addMsg.OldPeopleNum = 0;
this.addMsg.ChirdNoNeedBedNum = 0; this.addMsg.ChirdNoNeedBedNum = 0;
...@@ -879,7 +857,8 @@ ...@@ -879,7 +857,8 @@
this.remarkMsg.qzf = '签证费' + this.addObj.VisaPrice + '/人;'; this.remarkMsg.qzf = '签证费' + this.addObj.VisaPrice + '/人;';
} }
if (this.addObj.BackVisaPrice) { if (this.addObj.BackVisaPrice) {
this.remarkMsg.qz = text + ':' + (count - this.addMsg[key]) + ';' + '退签证费' + this.addObj.BackVisaPrice + this.remarkMsg.qz = text + ':' + (count - this.addMsg[key]) + ';' + '退签证费' + this.addObj
.BackVisaPrice +
'/人;'; '/人;';
} }
} }
...@@ -927,7 +906,8 @@ ...@@ -927,7 +906,8 @@
} }
} }
if (this.remarkMsg.fjf === '') { if (this.remarkMsg.fjf === '') {
this.remarkMsg.fjf = this.addObj['BabyChargePrice'] ? '儿童附加费:' + this.addObj['BabyChargePrice'] + '/人;' : this.remarkMsg.fjf = this.addObj['BabyChargePrice'] ? '儿童附加费:' + this.addObj['BabyChargePrice'] +
'/人;' :
''; '';
} }
} }
...@@ -1155,7 +1135,7 @@ ...@@ -1155,7 +1135,7 @@
tradeWayMethods() { tradeWayMethods() {
if (this.addMsg.TradeWay == 2) { if (this.addMsg.TradeWay == 2) {
this.addMsg.PlatformOrder = '' this.addMsg.PlatformOrder = ''
this.addMsg.PlatformAccount='' this.addMsg.PlatformAccount = ''
this.addMsg.MinOrderPrice = 0 this.addMsg.MinOrderPrice = 0
this.addMsg.CostType = '' this.addMsg.CostType = ''
this.addMsg.TradeDate = '' this.addMsg.TradeDate = ''
...@@ -1181,7 +1161,7 @@ ...@@ -1181,7 +1161,7 @@
} }
}, err => {}) }, err => {})
}, },
resetSelect(){ resetSelect() {
if (this.addMsg.CustomerType == 1) { if (this.addMsg.CustomerType == 1) {
this.addMsg.CustomerId = '' this.addMsg.CustomerId = ''
} }
...@@ -1215,22 +1195,26 @@ ...@@ -1215,22 +1195,26 @@
this.addMsg.CustomerId = '0' this.addMsg.CustomerId = '0'
this.addMsg.CommissionShareMoney = '0' this.addMsg.CommissionShareMoney = '0'
} }
let maxPeopleNum = (Number(this.addMsg.ManNum) + Number(this.addMsg.ChirdNoNeedBedNum) + Number(this.addMsg.ChirdNeedBedNum) + Number(this.addMsg.OldPeopleNum) + Number(this.addMsg.AirticketNum) ) let maxPeopleNum = (Number(this.addMsg.ManNum) + Number(this.addMsg.ChirdNoNeedBedNum) + Number(this.addMsg
if(maxPeopleNum >0 ){ .ChirdNeedBedNum) + Number(this.addMsg.OldPeopleNum) + Number(this.addMsg.AirticketNum))
this.apipost('sellorder_post_GetLessPrice', {"TCID":this.addObj.TCID,"MaxPeopleNum" :maxPeopleNum }, res => { if (maxPeopleNum > 0) {
this.apipost('sellorder_post_GetLessPrice', {
"TCID": this.addObj.TCID,
"MaxPeopleNum": maxPeopleNum
}, res => {
this.LessMoney = res.data.data.lessMoney; this.LessMoney = res.data.data.lessMoney;
if (parseFloat(this.LessMoney)>0){ if (parseFloat(this.LessMoney) > 0) {
this.Unit_PriceList=[]; this.Unit_PriceList = [];
for (var i = 0; i <= parseInt(this.LessMoney)/10; i++) { for (var i = 0; i <= parseInt(this.LessMoney) / 10; i++) {
var obj = { var obj = {
ID: '', ID: '',
LessMoney: '' LessMoney: ''
} }
obj.ID = this.addMsg.Unit_Price-i*10; obj.ID = this.addMsg.Unit_Price - i * 10;
obj.LessMoney = this.addMsg.Unit_Price-i*10; obj.LessMoney = this.addMsg.Unit_Price - i * 10;
this.Unit_PriceList.push(obj); this.Unit_PriceList.push(obj);
} }
if(this.Unit_PriceList.findIndex(markers => markers.ID == this.addMsg.Unit_Price)<0) { if (this.Unit_PriceList.findIndex(markers => markers.ID == this.addMsg.Unit_Price) < 0) {
var obj = { var obj = {
ID: '', ID: '',
LessMoney: '' LessMoney: ''
...@@ -1240,7 +1224,7 @@ ...@@ -1240,7 +1224,7 @@
this.Unit_PriceList.push(obj); this.Unit_PriceList.push(obj);
} }
} else { } else {
this.Unit_PriceList=[]; this.Unit_PriceList = [];
var obj = { var obj = {
ID: '', ID: '',
LessMoney: '' LessMoney: ''
...@@ -1269,7 +1253,8 @@ ...@@ -1269,7 +1253,8 @@
let ewtc = chajia > 0 ? chajia * 0.5 * num : chajia * num //额外提成 let ewtc = chajia > 0 ? chajia * 0.5 * num : chajia * num //额外提成
this.addMsg.Commission = (Number(this.addMsg.PreferPrice) * 0.01 + ewtc).toFixed(2) this.addMsg.Commission = (Number(this.addMsg.PreferPrice) * 0.01 + ewtc).toFixed(2)
this.addMsg.CommissionShareMoney = '0' this.addMsg.CommissionShareMoney = '0'
if ((this.addMsg.CustomerType == 1 || this.addMsg.CustomerType == 2) && this.addMsg.CommissionSharePeople != '') { if ((this.addMsg.CustomerType == 1 || this.addMsg.CustomerType == 2) && this.addMsg.CommissionSharePeople !=
'') {
if (this.addMsg.CommissionSharePeople != '-1') { if (this.addMsg.CommissionSharePeople != '-1') {
if (this.addMsg.Commission > 0) { if (this.addMsg.Commission > 0) {
this.addMsg.CommissionShareMoney = this.addMsg.Commission / 2 this.addMsg.CommissionShareMoney = this.addMsg.Commission / 2
...@@ -1284,21 +1269,26 @@ ...@@ -1284,21 +1269,26 @@
}, },
getHouseNo() { getHouseNo() {
//算法:((成人+儿童占床数+老人-(三人房数量*3))-单房数)/2+单房数+三人房数量 //算法:((成人+儿童占床数+老人-(三人房数量*3))-单房数)/2+单房数+三人房数量
this.addMsg.PredictRoomNum = (Number(this.addMsg.AirticketNum) + (Number(this.addMsg.ManNum) + Number(this.addMsg this.addMsg.PredictRoomNum = (Number(this.addMsg.AirticketNum) + (Number(this.addMsg.ManNum) + Number(this
.addMsg
.ChirdNeedBedNum) + Number(this.addMsg.OldPeopleNum)) - Number(this.addMsg.TripleRoomNum) * 3 - Number( .ChirdNeedBedNum) + Number(this.addMsg.OldPeopleNum)) - Number(this.addMsg.TripleRoomNum) * 3 - Number(
this.addMsg.SingleRoomNum)) / 2 + Number(this.addMsg.SingleRoomNum) + Number(this.addMsg.TripleRoomNum) this.addMsg.SingleRoomNum)) / 2 + Number(this.addMsg.SingleRoomNum) + Number(this.addMsg.TripleRoomNum)
}, },
getNumber() { getNumber() {
// this.addMsg.ChirdNum = this.addMsg.ChirdNoNeedBedNum * 1 + this.addMsg.ChirdNeedBedNum * 1 // this.addMsg.ChirdNum = this.addMsg.ChirdNoNeedBedNum * 1 + this.addMsg.ChirdNeedBedNum * 1
this.addMsg.VisaNum = (Number(this.addMsg.AirticketNum) + Number(this.addMsg.ManNum) + Number(this.addMsg.ChirdNum) + this.addMsg.VisaNum = (Number(this.addMsg.AirticketNum) + Number(this.addMsg.ManNum) + Number(this.addMsg
.ChirdNum) +
Number(this.addMsg.BabyNum) + Number(this.addMsg.OldPeopleNum)) Number(this.addMsg.BabyNum) + Number(this.addMsg.OldPeopleNum))
this.addMsg.SafeNum = (Number(this.addMsg.AirticketNum) + Number(this.addMsg.ManNum) + Number(this.addMsg.ChirdNum) + this.addMsg.SafeNum = (Number(this.addMsg.AirticketNum) + Number(this.addMsg.ManNum) + Number(this.addMsg
.ChirdNum) +
Number(this.addMsg.BabyNum) + Number(this.addMsg.OldPeopleNum)) Number(this.addMsg.BabyNum) + Number(this.addMsg.OldPeopleNum))
var SeatNum = (Number(this.addMsg.ManNum) + Number(this.addMsg.ChirdNum) + Number(this.addMsg.OldPeopleNum)+ Number(this.addMsg.BabyNum))- var SeatNum = (Number(this.addMsg.ManNum) + Number(this.addMsg.ChirdNum) + Number(this.addMsg.OldPeopleNum) +
(Number(this.addMsg.ESeatNum)+Number(this.addMsg.FSeatNum)); Number(this.addMsg.BabyNum)) -
this.TotalNumber = (Number(this.addMsg.AirticketNum) + Number(this.addMsg.ManNum) + Number(this.addMsg.ChirdNum) + (Number(this.addMsg.ESeatNum) + Number(this.addMsg.FSeatNum));
this.TotalNumber = (Number(this.addMsg.AirticketNum) + Number(this.addMsg.ManNum) + Number(this.addMsg
.ChirdNum) +
Number(this.addMsg.BabyNum) + Number(this.addMsg.OldPeopleNum)) Number(this.addMsg.BabyNum) + Number(this.addMsg.OldPeopleNum))
this.addMsg.YSeatNum = SeatNum<0?0:SeatNum; this.addMsg.YSeatNum = SeatNum < 0 ? 0 : SeatNum;
this.autoRemarks("VisaNum", "不要签证数量") this.autoRemarks("VisaNum", "不要签证数量")
}, },
getTotalPrice(t) { getTotalPrice(t) {
...@@ -1313,7 +1303,7 @@ ...@@ -1313,7 +1303,7 @@
this.addMsg.Unit_Price = this.addMsg.TC_Price this.addMsg.Unit_Price = this.addMsg.TC_Price
return return
} }
if(parseFloat(this.SingleDMCPrice) < this.SingleDMCPricex){ if (parseFloat(this.SingleDMCPrice) < this.SingleDMCPricex) {
this.$message.error('成交单价必须大于等于本团单价!') this.$message.error('成交单价必须大于等于本团单价!')
this.SingleDMCPrice = this.SingleDMCPricex this.SingleDMCPrice = this.SingleDMCPricex
return return
...@@ -1334,18 +1324,20 @@ ...@@ -1334,18 +1324,20 @@
this.addObj.OldManChargePrice) this.addObj.OldManChargePrice)
let zafeiqianzhen = this.addObj.OtherPrice * (Number(this.addMsg.ManNum) + Number(this.addMsg.ChirdNum) + let zafeiqianzhen = this.addObj.OtherPrice * (Number(this.addMsg.ManNum) + Number(this.addMsg.ChirdNum) +
Number(this.addMsg.OldPeopleNum)) + this.addObj.VisaPrice * (Number(this.addMsg.AirticketNum) + Number( Number(this.addMsg.OldPeopleNum)) + this.addObj.VisaPrice * (Number(this.addMsg.AirticketNum) + Number(
this.addMsg.ManNum) + Number(this.addMsg.ChirdNum) + Number(this.addMsg.OldPeopleNum)) - this.addObj.BackVisaPrice * this.addMsg.ManNum) + Number(this.addMsg.ChirdNum) + Number(this.addMsg.OldPeopleNum)) - this.addObj
.BackVisaPrice *
((Number(this.addMsg.AirticketNum) + Number(this.addMsg.ManNum) + Number(this.addMsg.ChirdNum) + Number( ((Number(this.addMsg.AirticketNum) + Number(this.addMsg.ManNum) + Number(this.addMsg.ChirdNum) + Number(
this.addMsg.BabyNum) + Number(this.addMsg.OldPeopleNum)) - Number(this.addMsg.VisaNum)) this.addMsg.BabyNum) + Number(this.addMsg.OldPeopleNum)) - Number(this.addMsg.VisaNum))
let danfang = Number(this.addMsg.SingleRoomNum) * this.addObj.SingleRoomPrice let danfang = Number(this.addMsg.SingleRoomNum) * this.addObj.SingleRoomPrice
let ertongbed = this.addObj.ChildNeedPrice * Number(this.addMsg.ChirdNeedBedNum) - this.addObj.ChildNoNeedPrice * let ertongbed = this.addObj.ChildNeedPrice * Number(this.addMsg.ChirdNeedBedNum) - this.addObj
.ChildNoNeedPrice *
(Number(this.addMsg.ChirdNum) - Number(this.addMsg.ChirdNeedBedNum)) (Number(this.addMsg.ChirdNum) - Number(this.addMsg.ChirdNeedBedNum))
let lianyun = (Number(this.addMsg.ManNum) + Number(this.addMsg.ChirdNum) + Number(this.addMsg.OldPeopleNum)) * let lianyun = (Number(this.addMsg.ManNum) + Number(this.addMsg.ChirdNum) + Number(this.addMsg.OldPeopleNum)) *
(Number(this.stratPrice) + Number(this.returnPrice)) (Number(this.stratPrice) + Number(this.returnPrice))
let dandijie let dandijie
if(this.addMsg.GroupType == 4){ if (this.addMsg.GroupType == 4) {
dandijie = this.SingleDMCPrice * Number(this.addMsg.AirticketNum) dandijie = this.SingleDMCPrice * Number(this.addMsg.AirticketNum)
}else { } else {
dandijie = this.addObj.SingleDMCPrice * Number(this.addMsg.AirticketNum) dandijie = this.addObj.SingleDMCPrice * Number(this.addMsg.AirticketNum)
} }
this.addMsg.PreferPrice = dandijie + lianyun + chengren + ertong + yinger + laoren + zafeiqianzhen + danfang + this.addMsg.PreferPrice = dandijie + lianyun + chengren + ertong + yinger + laoren + zafeiqianzhen + danfang +
...@@ -1355,35 +1347,35 @@ ...@@ -1355,35 +1347,35 @@
let chengren = Number(this.addMsg.ManNum) * (Number(this.addMsg.Unit_Price)) let chengren = Number(this.addMsg.ManNum) * (Number(this.addMsg.Unit_Price))
let ertong = Number(this.addMsg.ChirdNum) * (Number(this.addMsg.Unit_Price) + this.addObj.BabyChargePrice) let ertong = Number(this.addMsg.ChirdNum) * (Number(this.addMsg.Unit_Price) + this.addObj.BabyChargePrice)
let yinger = Number(this.addMsg.BabyNum) * Number(this.addMsg.Unit_Price) let yinger = Number(this.addMsg.BabyNum) * Number(this.addMsg.Unit_Price)
let laoren = Number(this.addMsg.OldPeopleNum) * (Number(this.addMsg.Unit_Price) + this.addObj.OldManChargePrice) let laoren = Number(this.addMsg.OldPeopleNum) * (Number(this.addMsg.Unit_Price) + this.addObj
.OldManChargePrice)
let zafeiqianzhen = this.addObj.OtherPrice * (Number(this.addMsg.ManNum) + Number(this.addMsg.ChirdNum) + let zafeiqianzhen = this.addObj.OtherPrice * (Number(this.addMsg.ManNum) + Number(this.addMsg.ChirdNum) +
Number(this.addMsg.OldPeopleNum)) + this.addObj.VisaPrice * (Number(this.addMsg.AirticketNum) + Number( Number(this.addMsg.OldPeopleNum)) + this.addObj.VisaPrice * (Number(this.addMsg.AirticketNum) + Number(
this.addMsg.ManNum) + Number(this.addMsg.ChirdNum) + Number(this.addMsg.OldPeopleNum)) - this.addObj.BackVisaPrice * this.addMsg.ManNum) + Number(this.addMsg.ChirdNum) + Number(this.addMsg.OldPeopleNum)) - this.addObj
.BackVisaPrice *
((Number(this.addMsg.AirticketNum) + Number(this.addMsg.ManNum) + Number(this.addMsg.ChirdNum) + Number( ((Number(this.addMsg.AirticketNum) + Number(this.addMsg.ManNum) + Number(this.addMsg.ChirdNum) + Number(
this.addMsg.BabyNum) + Number(this.addMsg.OldPeopleNum)) - Number(this.addMsg.VisaNum)) this.addMsg.BabyNum) + Number(this.addMsg.OldPeopleNum)) - Number(this.addMsg.VisaNum))
let danfang = Number(this.addMsg.SingleRoomNum) * this.addObj.SingleRoomPrice let danfang = Number(this.addMsg.SingleRoomNum) * this.addObj.SingleRoomPrice
let ertongbed = this.addObj.ChildNeedPrice * Number(this.addMsg.ChirdNeedBedNum) - this.addObj.ChildNoNeedPrice * let ertongbed = this.addObj.ChildNeedPrice * Number(this.addMsg.ChirdNeedBedNum) - this.addObj
.ChildNoNeedPrice *
(Number(this.addMsg.ChirdNum) - Number(this.addMsg.ChirdNeedBedNum)) (Number(this.addMsg.ChirdNum) - Number(this.addMsg.ChirdNeedBedNum))
let lianyun = (Number(this.addMsg.ManNum) + Number(this.addMsg.ChirdNum) + Number(this.addMsg.OldPeopleNum)) * let lianyun = (Number(this.addMsg.ManNum) + Number(this.addMsg.ChirdNum) + Number(this.addMsg.OldPeopleNum)) *
(Number(this.stratPrice) + Number(this.returnPrice)) (Number(this.stratPrice) + Number(this.returnPrice))
let dandijie let dandijie
if(this.addMsg.GroupType == 4){ if (this.addMsg.GroupType == 4) {
dandijie = this.SingleDMCPrice * Number(this.addMsg.AirticketNum) dandijie = this.SingleDMCPrice * Number(this.addMsg.AirticketNum)
}else { } else {
dandijie = this.addObj.SingleDMCPrice * Number(this.addMsg.AirticketNum) dandijie = this.addObj.SingleDMCPrice * Number(this.addMsg.AirticketNum)
} }
this.addMsg.PreferPrice = dandijie + lianyun + chengren + ertong + yinger + laoren + zafeiqianzhen + danfang + this.addMsg.PreferPrice = dandijie + lianyun + chengren + ertong + yinger + laoren + zafeiqianzhen + danfang +
ertongbed - this.ScenicRefundMoney * (Number(this.addMsg.ManNum) + Number(this.addMsg.ChirdNum) + Number( ertongbed - this.ScenicRefundMoney * (Number(this.addMsg.ManNum) + Number(this.addMsg.ChirdNum) + Number(
this.addMsg.OldPeopleNum)); this.addMsg.OldPeopleNum));
} }
this.getTicheng(); this.getTicheng();
if (!t) { if (!t) {
this.getTypePrice() this.getTypePrice()
} }
}, },
yzBigBed2() { yzBigBed2() {
let x = Number(this.addMsg.AirticketNum) + Number(this.addMsg.ManNum) + Number(this.addMsg.ChirdNeedBedNum) + let x = Number(this.addMsg.AirticketNum) + Number(this.addMsg.ManNum) + Number(this.addMsg.ChirdNeedBedNum) +
Number(this.addMsg.OldPeopleNum) - Number(this.addMsg.SingleRoomNum) Number(this.addMsg.OldPeopleNum) - Number(this.addMsg.SingleRoomNum)
...@@ -1394,7 +1386,6 @@ ...@@ -1394,7 +1386,6 @@
this.getHouseNo() this.getHouseNo()
this.autoRemarks("SingleRoomNum", "单房数量"); this.autoRemarks("SingleRoomNum", "单房数量");
}, },
yzBigBed() { yzBigBed() {
let x = Number(this.addMsg.AirticketNum) + Number(this.addMsg.ManNum) + Number(this.addMsg.ChirdNeedBedNum) + let x = Number(this.addMsg.AirticketNum) + Number(this.addMsg.ManNum) + Number(this.addMsg.ChirdNeedBedNum) +
Number(this.addMsg.OldPeopleNum) - Number(this.addMsg.SingleRoomNum) Number(this.addMsg.OldPeopleNum) - Number(this.addMsg.SingleRoomNum)
...@@ -1416,7 +1407,7 @@ ...@@ -1416,7 +1407,7 @@
this.autoRemarks("TripleRoomNum", "三人房"); this.autoRemarks("TripleRoomNum", "三人房");
}, },
submitForm(addMsg) { //提交创建、修改表单 submitForm(addMsg) { //提交创建、修改表单
if(this.TotalNumber==0){ if (this.TotalNumber == 0) {
this.$message.error('总人数不能小于1人') this.$message.error('总人数不能小于1人')
return return
} }
...@@ -1452,7 +1443,7 @@ ...@@ -1452,7 +1443,7 @@
this.addMsg.FSeatNum = '0' this.addMsg.FSeatNum = '0'
this.addMsg.Commission = '0' this.addMsg.Commission = '0'
this.addMsg.BrandId = '' this.addMsg.BrandId = ''
this.addMsg.PlatformAccount='' this.addMsg.PlatformAccount = ''
this.addMsg.TradeWay = '2' this.addMsg.TradeWay = '2'
this.addMsg.GuestNum = '0' this.addMsg.GuestNum = '0'
this.addMsg.IsChildrenTour = '0' this.addMsg.IsChildrenTour = '0'
...@@ -1490,58 +1481,23 @@ ...@@ -1490,58 +1481,23 @@
} }
}, },
saveOrder() { saveOrder() {
//验证人数和机位数
// if ((Number(this.addMsg.ManNum) + Number(this.addMsg.ChirdNum) + Number(this.addMsg.OldPeopleNum)) != Number(
// this.addMsg.YSeatNum) + Number(this.addMsg.ESeatNum) + Number(this.addMsg.FSeatNum)) {
// this.$message.warning('人数和机位数不相等!')
// return
// }
// if ((Number(this.addMsg.AirticketNum) + Number(this.addMsg.ManNum) + Number(this.addMsg.ChirdNum) + Number(this
// .addMsg.OldPeopleNum) + Number(this.addMsg.BabyNum)) < Number(this.addMsg.VisaNum)) {
// this.$message.warning('签证数量不能大于人数总和!')
// return
// }
if ((Number(this.addMsg.AirticketNum) + Number(this.addMsg.ManNum) + Number(this.addMsg.ChirdNum) + Number(this if ((Number(this.addMsg.AirticketNum) + Number(this.addMsg.ManNum) + Number(this.addMsg.ChirdNum) + Number(this
.addMsg.OldPeopleNum) + Number(this.addMsg.BabyNum)) < Number(this.addMsg.SafeNum)) { .addMsg.OldPeopleNum) + Number(this.addMsg.BabyNum)) < Number(this.addMsg.SafeNum)) {
this.$message.warning('保险数量不能大于人数总和!') this.$message.warning('保险数量不能大于人数总和!')
return return
} }
// if((Number(this.addMsg.ManNum)+Number(this.addMsg.ChirdNoNeedBedNum)+Number(this.addMsg.ChirdNeedBedNum)+Number(this.addMsg.OldPeopleNum))
// <(Number(this.addMsg.YSeatNum)+Number(this.addMsg.ESeatNum)+Number(this.addMsg.FSeatNum)))
// {
// this.$message.warning('机票数量不能大于人数总和!')
// return
// }
// if (Number(this.addMsg.ChirdNeedBedNum) > Number(this.addMsg.ChirdNum)) {
// this.$message.warning('儿童占床不能大于儿童数!')
// return
// }
// if (Number(this.addMsg.ChirdNum) - Number(this.addMsg.ChirdNeedBedNum) + Number(this.addMsg.BabyNum) > Number(
// this.addMsg.ManNum) + Number(this.addMsg.OldPeopleNum) + Number(this.addMsg.ChirdNeedBedNum)) {
// this.$message.warning('儿童占床数量不足!')
// return
// }
if (this.userId == this.createByInfo) { if (this.userId == this.createByInfo) {
if (this.addMsg.CommissionSharePeople == '-1') { if (this.addMsg.CommissionSharePeople == '-1') {
this.addMsg.CommissionShareMoney = '0' this.addMsg.CommissionShareMoney = '0'
} }
} }
if (this.addMsg.GroupType == 4) {
if(this.addMsg.GroupType == 4){ this.addMsg.TC_Price = this.SingleDMCPricex; //地接时 本团单价
this.addMsg.TC_Price = this.SingleDMCPricex;//地接时 本团单价
this.addMsg.Unit_Price = this.SingleDMCPrice; // 地接时 成交单价 this.addMsg.Unit_Price = this.SingleDMCPrice; // 地接时 成交单价
} }
this.addMsg.TCID = this.addObj.TCID this.addMsg.TCID = this.addObj.TCID
this.addMsg.GuestNum = Number(this.addMsg.ManNum) + Number(this.addMsg.ChirdNum) + Number(this.addMsg.OldPeopleNum) + this.addMsg.GuestNum = Number(this.addMsg.ManNum) + Number(this.addMsg.ChirdNum) + Number(this.addMsg
.OldPeopleNum) +
Number(this.addMsg.BabyNum) + Number(this.addMsg.AirticketNum) Number(this.addMsg.BabyNum) + Number(this.addMsg.AirticketNum)
this.addMsg.IsChildrenTour = this.addObj.IsSupportChildren this.addMsg.IsChildrenTour = this.addObj.IsSupportChildren
this.addMsg.IsBirdDiscount = this.addObj.IsBirdDiscount this.addMsg.IsBirdDiscount = this.addObj.IsBirdDiscount
...@@ -1557,26 +1513,26 @@ ...@@ -1557,26 +1513,26 @@
} }
}, err => {}) }, err => {})
}, },
getNumGuest(){ getNumGuest() {
let num = 0 let num = 0
if(this.addMsg.GuestList.length==0){ if (this.addMsg.GuestList.length == 0) {
for(let i = 0;i<this.TotalNumber;i++){ for (let i = 0; i < this.TotalNumber; i++) {
this.addMsg.GuestList.push(JSON.parse(JSON.stringify(this.GuestObj))) this.addMsg.GuestList.push(JSON.parse(JSON.stringify(this.GuestObj)))
} }
}else if(this.addMsg.GuestList.length<this.TotalNumber){ } else if (this.addMsg.GuestList.length < this.TotalNumber) {
num = this.TotalNumber-this.addMsg.GuestList.length num = this.TotalNumber - this.addMsg.GuestList.length
for(let i = 0;i<num;i++){ for (let i = 0; i < num; i++) {
this.addMsg.GuestList.push(JSON.parse(JSON.stringify(this.GuestObj))) this.addMsg.GuestList.push(JSON.parse(JSON.stringify(this.GuestObj)))
} }
}else if(this.addMsg.GuestList.length>this.TotalNumber){ } else if (this.addMsg.GuestList.length > this.TotalNumber) {
num = this.addMsg.GuestList.length-this.TotalNumber num = this.addMsg.GuestList.length - this.TotalNumber
for(let i = 0;i<num;i++){ for (let i = 0; i < num; i++) {
let x = this.addMsg.GuestList.length-1 let x = this.addMsg.GuestList.length - 1
this.addMsg.GuestList.splice(x,1) this.addMsg.GuestList.splice(x, 1)
} }
} }
}, },
Transformation(val, type,index) { Transformation(val, type, index) {
let text = this.pinyin(val, { let text = this.pinyin(val, {
style: this.pinyin.STYLE_NORMAL style: this.pinyin.STYLE_NORMAL
}); });
...@@ -1613,9 +1569,10 @@ ...@@ -1613,9 +1569,10 @@
this.SingleDMCPricex = obj.SingleDMCPrice; this.SingleDMCPricex = obj.SingleDMCPrice;
}, },
getPlatformAccount(typeIdtwo) { getPlatformAccount(typeIdtwo) {
let platBranchId=this.getLocalStorage().RB_Branch_id; let platBranchId = this.getLocalStorage().RB_Branch_id;
this.apipost('FinancialInstitutions_post_GetALLAccountList', { this.apipost('FinancialInstitutions_post_GetALLAccountList', {
TypeId: typeIdtwo,BranchId:platBranchId TypeId: typeIdtwo,
BranchId: platBranchId
}, res => { }, res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.PlatformAccountList = res.data.data this.PlatformAccountList = res.data.data
...@@ -1747,7 +1704,9 @@ ...@@ -1747,7 +1704,9 @@
}, err => {}) }, err => {})
}, },
getLineList() { getLineList() {
this.apipost("line_post_GetAllList_V2", {LineDirection: 3}, res => { this.apipost("line_post_GetAllList_V2", {
LineDirection: 3
}, res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.LineList = res.data.data; this.LineList = res.data.data;
} }
...@@ -1798,8 +1757,7 @@ ...@@ -1798,8 +1757,7 @@
this.apipost("sellorder_get_GetAllStartCity", {}, res => { this.apipost("sellorder_get_GetAllStartCity", {}, res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.startCityList = res.data.data; this.startCityList = res.data.data;
} else { } else {}
}
}); });
}, },
getStartList1() { getStartList1() {
...@@ -1809,8 +1767,7 @@ ...@@ -1809,8 +1767,7 @@
}, res => { }, res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.startCityList1 = res.data.data; this.startCityList1 = res.data.data;
} else { } else {}
}
}); });
}, },
getCompanyList() { getCompanyList() {
...@@ -1882,9 +1839,9 @@ ...@@ -1882,9 +1839,9 @@
}, },
mounted() { mounted() {
// crm自动登陆传过来的参数 // crm自动登陆传过来的参数
if(this.$route.query.crmOrderObj){ if (this.$route.query.crmOrderObj) {
this.crmOrderObj = JSON.parse(this.$route.query.crmOrderObj) this.crmOrderObj = JSON.parse(this.$route.query.crmOrderObj)
this.addMsg.LureEmpId = this.crmOrderObj.LureEmpId//引流id this.addMsg.LureEmpId = this.crmOrderObj.LureEmpId //引流id
this.addMsg.CRMGuestId = this.crmOrderObj.CRMGuestId //客人ID this.addMsg.CRMGuestId = this.crmOrderObj.CRMGuestId //客人ID
} }
...@@ -1898,7 +1855,7 @@ ...@@ -1898,7 +1855,7 @@
this.msg.TCIDList = this.TCIDList = this.$route.query.TCIDList; this.msg.TCIDList = this.TCIDList = this.$route.query.TCIDList;
} }
if (this.msg.StartTime === "") { if (this.msg.StartTime === "") {
let nowDay =this.FormartDate(new Date()); let nowDay = this.FormartDate(new Date());
this.msg.StartTime = nowDay; this.msg.StartTime = nowDay;
} }
let userInfo = this.getLocalStorage() let userInfo = this.getLocalStorage()
...@@ -1919,7 +1876,7 @@ ...@@ -1919,7 +1876,7 @@
// this.getKhmdList() // this.getKhmdList()
this.getJyfs() this.getJyfs()
this.getFylx() this.getFylx()
this.getCountry()//国籍 this.getCountry() //国籍
} }
} }
......
...@@ -298,11 +298,12 @@ ...@@ -298,11 +298,12 @@
.TC-MainContent .ql-editor { .TC-MainContent .ql-editor {
min-height: 200px; min-height: 200px;
} }
.TC-MainContent .disClick { .TC-MainContent .disClick {
background-color: #d1d1d1!important; background-color: #d1d1d1 !important;
color: #fff!important; color: #fff !important;
background-image: none; background-image: none;
border: 1px solid #d1d1d1!important; border: 1px solid #d1d1d1 !important;
} }
.TC-MainContent .disClick:hover { .TC-MainContent .disClick:hover {
...@@ -324,7 +325,8 @@ ...@@ -324,7 +325,8 @@
单项委托协议 单项委托协议
</span> </span>
<div class="pull-right"> <div class="pull-right">
<input type="button" class="btn-warning" :class="{'disClick':!isSubmit}" @click="submitForm('CtObj')" value="保存" /> <input type="button" class="btn-warning" :class="{'disClick':!isSubmit}" @click="submitForm('CtObj')"
value="保存" />
</div> </div>
</div> </div>
<el-form label-width="180px" :model="CtObj" :rules="rules" ref="CtObj"> <el-form label-width="180px" :model="CtObj" :rules="rules" ref="CtObj">
...@@ -411,11 +413,22 @@ ...@@ -411,11 +413,22 @@
<div class="createTableTitle">受托方(旅行社)信息</div> <div class="createTableTitle">受托方(旅行社)信息</div>
<table class="createTable"> <table class="createTable">
<tbody> <tbody>
<tr>
<td>
<el-form-item label="合同章">
<el-select v-model="CtObj.SignType" placeholder="请选择">
<el-option key="0" label="和平章" :value="0">
</el-option>
<el-option key="1" label="日本公司章" :value="1">
</el-option>
</el-select>
</el-form-item>
</td>
</tr>
<tr> <tr>
<td> <td>
<el-form-item label="名称"> <el-form-item label="名称">
<el-input type="text" v-model="CtObj.TravelAgency_Name" class="w300" <el-input type="text" v-model="CtObj.TravelAgency_Name" class="w300" maxlength="70"></el-input>
maxlength="70"></el-input>
</el-form-item> </el-form-item>
</td> </td>
</tr> </tr>
...@@ -1258,6 +1271,7 @@ ...@@ -1258,6 +1271,7 @@
Tourists_Fax: "", Tourists_Fax: "",
Tourists_EmergencyLinkMan: "", Tourists_EmergencyLinkMan: "",
Tourists_EmergencyLinkTel: "", Tourists_EmergencyLinkTel: "",
SignType:0,//合同章类型
TravelAgency_Name: "(株)ピースインターナショナル", //旅行社名称 TravelAgency_Name: "(株)ピースインターナショナル", //旅行社名称
TravelAgency_LicenseNum: "L-SC-CJ00015", TravelAgency_LicenseNum: "L-SC-CJ00015",
TravelAgency_DealMan: "", TravelAgency_DealMan: "",
...@@ -1418,8 +1432,8 @@ ...@@ -1418,8 +1432,8 @@
}; };
}, },
filters:{ filters: {
YMD(date){ YMD(date) {
return moment(date).format("YYYY-MM-DD HH:mm"); return moment(date).format("YYYY-MM-DD HH:mm");
} }
}, },
......
...@@ -809,7 +809,7 @@ ...@@ -809,7 +809,7 @@
<td>受托方(旅行社)签章:</td> <td>受托方(旅行社)签章:</td>
<td style="position:relative;"> <td style="position:relative;">
<font>{{CtObj.TravelAgency_Name}}</font> <font>{{CtObj.TravelAgency_Name}}</font>
<img :src="CurrentUserInfo.ZhangImg" v-if="CtObj.IsTravelAgencySignature==1" alt="" <img :src="CtObj.ZhangImg" v-if="CtObj.IsTravelAgencySignature==1" alt=""
style="width:120px;heigth:120px;position:absolute;top:0;" /> style="width:120px;heigth:120px;position:absolute;top:0;" />
</td> </td>
</tr> </tr>
...@@ -1350,7 +1350,7 @@ ...@@ -1350,7 +1350,7 @@
</td> </td>
<td style="width:15%">出境社盖章:</td> <td style="width:15%">出境社盖章:</td>
<td style="width:35%;position:relative;"> <td style="width:35%;position:relative;">
<img :src="CurrentUserInfo.ZhangImg" v-if="CtObj.IsTravelAgencySignature==1" alt="" <img :src="CtObj.ZhangImg" v-if="CtObj.IsTravelAgencySignature==1" alt=""
style="width:120px;heigth:120px;position:absolute;top:0;" /> style="width:120px;heigth:120px;position:absolute;top:0;" />
</td> </td>
</tr> </tr>
...@@ -1799,7 +1799,7 @@ ...@@ -1799,7 +1799,7 @@
<td>乙方签字(盖章)</td> <td>乙方签字(盖章)</td>
<td style="position:relative;"> <td style="position:relative;">
<font>{{CtObj.TravelAgency_Name}}</font> <font>{{CtObj.TravelAgency_Name}}</font>
<img :src="CurrentUserInfo.ZhangImg" v-if="CtObj.IsTravelAgencySignature==1" alt="" <img :src="CtObj.ZhangImg" v-if="CtObj.IsTravelAgencySignature==1" alt=""
style="width:120px;heigth:120px;position:absolute;top:0;" /> style="width:120px;heigth:120px;position:absolute;top:0;" />
</td> </td>
</tr> </tr>
...@@ -2123,7 +2123,8 @@ ...@@ -2123,7 +2123,8 @@
TripType: 0, //行程类型(0-简易行程,1-标准行程) TripType: 0, //行程类型(0-简易行程,1-标准行程)
Tourists_Sign: '', Tourists_Sign: '',
CreateTimeStr: "", CreateTimeStr: "",
IsTravelAgencySignature: 0 //是否盖章 IsTravelAgencySignature: 0, //是否盖章
ZhangImg: "", //合同章
}, },
}; };
}, },
...@@ -2257,8 +2258,7 @@ ...@@ -2257,8 +2258,7 @@
this.CtObj.OtherConventionPrice = tempObj.OtherConventionPrice; this.CtObj.OtherConventionPrice = tempObj.OtherConventionPrice;
this.CtObj.TicketTotalNum = tempObj.TicketTotalNum; this.CtObj.TicketTotalNum = tempObj.TicketTotalNum;
this.CtObj.TicketOutDayNum = tempObj.TicketOutDayNum; this.CtObj.TicketOutDayNum = tempObj.TicketOutDayNum;
this.CtObj.TicketTotalDepositPrice = this.CtObj.TicketTotalDepositPrice = tempObj.TicketTotalDepositPrice;
tempObj.TicketTotalDepositPrice;
this.CtObj.HotelTotal = tempObj.HotelTotal; this.CtObj.HotelTotal = tempObj.HotelTotal;
this.CtObj.HotelCheckInType = tempObj.HotelCheckInType; this.CtObj.HotelCheckInType = tempObj.HotelCheckInType;
this.CtObj.HotelNotice = tempObj.HotelNotice; this.CtObj.HotelNotice = tempObj.HotelNotice;
...@@ -2267,6 +2267,7 @@ ...@@ -2267,6 +2267,7 @@
this.CtObj.VisaTotalPrice = tempObj.VisaTotalPrice; this.CtObj.VisaTotalPrice = tempObj.VisaTotalPrice;
this.CtObj.Tourists_Sign = tempObj.Tourists_Sign; this.CtObj.Tourists_Sign = tempObj.Tourists_Sign;
this.CtObj.IsTravelAgencySignature = tempObj.IsTravelAgencySignature; this.CtObj.IsTravelAgencySignature = tempObj.IsTravelAgencySignature;
this.CtObj.ZhangImg = tempObj.ZhangImg;
this.CtObj.TicketAndHotelTotalPrice = this.CtObj.TicketAndHotelTotalPrice =
tempObj.TicketAndHotelTotalPrice; tempObj.TicketAndHotelTotalPrice;
if ( if (
......
<style scoped> <style scoped>
.commonOrderForm { .commonOrderForm {
position: fixed; position: fixed;
left: 0; left: 0;
right: 0; right: 0;
...@@ -12,9 +12,9 @@ ...@@ -12,9 +12,9 @@
padding: 10px 10px 0; padding: 10px 10px 0;
width: 100%; width: 100%;
padding: 20px 20px 10px 80px; padding: 20px 20px 10px 80px;
} }
.title { .title {
border-left: 3px solid #e95252; border-left: 3px solid #e95252;
text-indent: 15px; text-indent: 15px;
height: 16px; height: 16px;
...@@ -23,34 +23,36 @@ ...@@ -23,34 +23,36 @@
margin-bottom: 20px; margin-bottom: 20px;
line-height: 14px; line-height: 14px;
color: #000; color: #000;
} }
.passengerSaleList_table {
.passengerSaleList_table {
width: 100%; width: 100%;
color: #333; color: #333;
border-bottom: 1px solid #cccccc; border-bottom: 1px solid #cccccc;
border-right: 1px solid #cccccc; border-right: 1px solid #cccccc;
} }
.passengerSaleList_table tr { .passengerSaleList_table tr {
background: #fff; background: #fff;
} }
.passengerSaleList_table tr th { .passengerSaleList_table tr th {
background: #e6e6e6; background: #e6e6e6;
height: 30px; height: 30px;
font-size: 12px; font-size: 12px;
text-align: center; text-align: center;
border-top: 1px solid #cccccc; border-top: 1px solid #cccccc;
border-left: 1px solid #cccccc; border-left: 1px solid #cccccc;
} }
.passengerSaleList_table tr td { .passengerSaleList_table tr td {
padding: 10px 10px 25px 10px; padding: 10px 10px 25px 10px;
font-size: 12px; font-size: 12px;
text-align: center; text-align: center;
border-top: 1px solid #cccccc; border-top: 1px solid #cccccc;
border-left: 1px solid #cccccc; border-left: 1px solid #cccccc;
} }
</style> </style>
<template> <template>
<div class="commonOrderForm" :style="{ height: ScreenHeight }"> <div class="commonOrderForm" :style="{ height: ScreenHeight }">
...@@ -58,55 +60,27 @@ ...@@ -58,55 +60,27 @@
{{ $t("salesModule.SignImdi") }} {{ $t("salesModule.SignImdi") }}
<span v-if="crmOrderObj"> <span v-if="crmOrderObj">
<span style="color: red">引流人:{{ crmOrderObj.LureEmpNmae }} </span> <span style="color: red">引流人:{{ crmOrderObj.LureEmpNmae }} </span>
<span style="color: #2aaef2" <span style="color: #2aaef2">/客人:{{ crmOrderObj.CRMGuestName }}</span>
>/客人:{{ crmOrderObj.CRMGuestName }}</span
>
</span> </span>
<span class="fr"> <span class="fr">
<input <input type="button" class="hollowFixedBtn" :value="$t('pub.cancelBtn')" @click="cancelSubmit()" />
type="button" <input type="button" class="normalBtn" :value="$t('salesModule.SignImdi')" @click="submitForm('addMsg')" />
class="hollowFixedBtn"
:value="$t('pub.cancelBtn')"
@click="cancelSubmit()"
/>
<input
type="button"
class="normalBtn"
:value="$t('salesModule.SignImdi')"
@click="submitForm('addMsg')"
/>
</span> </span>
</p> </p>
<el-form <el-form :model="addMsg" ref="addMsg" label-position="right" :rules="rules" label-width="90px">
:model="addMsg"
ref="addMsg"
label-position="right"
:rules="rules"
label-width="90px"
>
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :span="4"> <el-col :span="4">
<!-- 客户类型 --> <!-- 客户类型 -->
<el-form-item :label="$t('fnc.khleixing')" prop="CustomerType"> <el-form-item :label="$t('fnc.khleixing')" prop="CustomerType">
<el-select <el-select v-model="addMsg.CustomerType" filterable :placeholder="$t('pub.pleaseSel')" @change="
v-model="addMsg.CustomerType"
filterable
:placeholder="$t('pub.pleaseSel')"
@change="
resetMsg(addMsg.CustomerType); resetMsg(addMsg.CustomerType);
getTypePrice(); getTypePrice();
resetSelect(); resetSelect();
getClientSource(); getClientSource();
getCustomer(); getCustomer();
getTotalPrice(); getTotalPrice();
" ">
> <el-option v-for="item in customerTypeList" :label="item.Name" :value="item.Id" :key="item.Id">
<el-option
v-for="item in customerTypeList"
:label="item.Name"
:value="item.Id"
:key="item.Id"
>
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
...@@ -114,82 +88,42 @@ ...@@ -114,82 +88,42 @@
<el-col :span="4" v-if="pagesTitle != '当地游产品'"> <el-col :span="4" v-if="pagesTitle != '当地游产品'">
<!-- 参团类型 --> <!-- 参团类型 -->
<el-form-item :label="$t('fnc.ctleixing')" prop="GroupType"> <el-form-item :label="$t('fnc.ctleixing')" prop="GroupType">
<el-select <el-select v-model="addMsg.GroupType" @change="changeGroupType(addMsg.GroupType)" filterable
v-model="addMsg.GroupType" :placeholder="$t('pub.pleaseSel')">
@change="changeGroupType(addMsg.GroupType)" <el-option v-for="item in joinTypeList" :label="item.Name" :value="item.Id" :key="item.Id">
filterable
:placeholder="$t('pub.pleaseSel')"
>
<!-- v-if="item.Id != 5" -->
<el-option
v-for="item in joinTypeList"
:label="item.Name"
:value="item.Id"
:key="item.Id"
>
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="4" v-if="addMsg.GroupType == '3'"> <el-col :span="4" v-if="addMsg.GroupType == '3'">
<!--自由行占床不占床0-占床,1-不占床--> <!--自由行占床不占床0-占床,1-不占床-->
<el-form-item <el-form-item :label="$t('salesModule.IsUseRoom')" prop="GroupTypeNeedHouse">
:label="$t('salesModule.IsUseRoom')" <el-switch v-model="addMsg.GroupTypeNeedHouse" active-value="0" inactive-value="1"></el-switch>
prop="GroupTypeNeedHouse"
>
<el-switch
v-model="addMsg.GroupTypeNeedHouse"
active-value="0"
inactive-value="1"
></el-switch>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col <el-col :span="4" v-if="addMsg.CustomerType == 3 || addMsg.CustomerType == 4">
:span="4"
v-if="addMsg.CustomerType == 3 || addMsg.CustomerType == 4"
>
<!--联系人--> <!--联系人-->
<el-form-item :label="$t('hotel.suplier_contact')" prop="ContactName"> <el-form-item :label="$t('hotel.suplier_contact')" prop="ContactName">
<el-input v-model="addMsg.ContactName"></el-input> <el-input v-model="addMsg.ContactName"></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col <el-col :span="4" v-if="addMsg.CustomerType == 3 || addMsg.CustomerType == 4">
:span="4"
v-if="addMsg.CustomerType == 3 || addMsg.CustomerType == 4"
>
<!--联系电话--> <!--联系电话-->
<el-form-item <el-form-item :label="$t('restaurant.res_ContactNumber')" prop="ContactMobile">
:label="$t('restaurant.res_ContactNumber')"
prop="ContactMobile"
>
<el-input v-model="addMsg.ContactMobile" maxlength="20"></el-input> <el-input v-model="addMsg.ContactMobile" maxlength="20"></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col <el-col :span="4" v-if="
:span="4"
v-if="
addMsg.CustomerType == 1 || addMsg.CustomerType == 1 ||
addMsg.CustomerType == 2 || addMsg.CustomerType == 2 ||
addMsg.CustomerType == '' addMsg.CustomerType == ''
" ">
>
<!--同行Id--> <!--同行Id-->
<el-form-item <el-form-item :label="$t('salesModule.CustomerStore')" prop="CustomerId">
:label="$t('salesModule.CustomerStore')" <el-select v-model="addMsg.CustomerId" filterable :placeholder="$t('pub.pleaseSel')"
prop="CustomerId" @change="changeCustomer">
> <el-option v-for="(item, index) in customerList" :label="item.customerName + '-' + item.contact"
<el-select :value="item.customerId" :key="index">
v-model="addMsg.CustomerId"
filterable
:placeholder="$t('pub.pleaseSel')"
@change="changeCustomer"
>
<el-option
v-for="(item, index) in customerList"
:label="item.customerName + '-' + item.contact"
:value="item.customerId"
:key="index"
>
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
...@@ -203,501 +137,284 @@ ...@@ -203,501 +137,284 @@
<template v-if="showCity && pagesTitle == '跟团游产品'"> <template v-if="showCity && pagesTitle == '跟团游产品'">
<el-col :span="4"> <el-col :span="4">
<!--出发城市--> <!--出发城市-->
<el-form-item <el-form-item :label="$t('system.table_goCity')" prop="DepartureCityId">
:label="$t('system.table_goCity')" <el-select v-model="addMsg.DepartureCityId" :disabled="
prop="DepartureCityId"
>
<el-select
v-model="addMsg.DepartureCityId"
:disabled="
priceObj.SonControlID !== -1 && priceObj.SonControlID !== -1 &&
priceObj.OutBranchId !== priceObj.SonControlID priceObj.OutBranchId !== priceObj.SonControlID
" " filterable :placeholder="$t('pub.pleaseSel')" @change="addMsg.IsIntermodal = 2">
filterable <el-option v-for="item in startCityList" :label="item.Name" :value="item.ID" :key="item.ID">
:placeholder="$t('pub.pleaseSel')"
@change="addMsg.IsIntermodal = 2"
>
<el-option
v-for="item in startCityList"
:label="item.Name"
:value="item.ID"
:key="item.ID"
>
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="4"> <el-col :span="4">
<!--出发是否联运--> <!--出发是否联运-->
<el-form-item <el-form-item :label="$t('salesModule.IsLianYn')" prop="IsIntermodal" v-show="
:label="$t('salesModule.IsLianYn')"
prop="IsIntermodal"
v-show="
addMsg.DepartureCityId != priceObj.StartCityID && addMsg.DepartureCityId != priceObj.StartCityID &&
addMsg.DepartureCityId != '' addMsg.DepartureCityId != ''
" ">
> <el-switch v-model="addMsg.IsIntermodal" active-value="1" inactive-value="2"
<el-switch @change="getUnionTravelPrice(priceObj, 1)"></el-switch>
v-model="addMsg.IsIntermodal"
active-value="1"
inactive-value="2"
@change="getUnionTravelPrice(priceObj, 1)"
></el-switch>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="4"> <el-col :span="4">
<!--联运时间--> <!--联运时间-->
<el-form-item <el-form-item :label="$t('salesModule.LYtime')" prop="GoCityTime" v-show="
:label="$t('salesModule.LYtime')"
prop="GoCityTime"
v-show="
addMsg.IsIntermodal == 1 && addMsg.IsIntermodal == 1 &&
addMsg.DepartureCityId != priceObj.StartCityID addMsg.DepartureCityId != priceObj.StartCityID
" ">
> <el-date-picker :picker-options="pickerOptions0" v-model="addMsg.GoCityTime" value-format="yyyy-MM-dd"
<el-date-picker type="date" @change="getUnionTravelPrice(priceObj, 1)"></el-date-picker>
:picker-options="pickerOptions0"
v-model="addMsg.GoCityTime"
value-format="yyyy-MM-dd"
type="date"
@change="getUnionTravelPrice(priceObj, 1)"
></el-date-picker>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="4"> <el-col :span="4">
<!--返回城市--> <!--返回城市-->
<el-form-item <el-form-item :label="$t('salesModule.BackCity')" prop="ReturnArriveCityId">
:label="$t('salesModule.BackCity')" <el-select v-model="addMsg.ReturnArriveCityId" :disabled="
prop="ReturnArriveCityId"
>
<el-select
v-model="addMsg.ReturnArriveCityId"
:disabled="
priceObj.SonControlID !== -1 && priceObj.SonControlID !== -1 &&
priceObj.OutBranchId !== priceObj.SonControlID priceObj.OutBranchId !== priceObj.SonControlID
" " filterable :placeholder="$t('pub.pleaseSel')" @change="addMsg.IsReturnIntermodal = 2">
filterable <el-option v-for="item in startCityList" :label="item.Name" :value="item.ID" :key="item.ID">
:placeholder="$t('pub.pleaseSel')"
@change="addMsg.IsReturnIntermodal = 2"
>
<el-option
v-for="item in startCityList"
:label="item.Name"
:value="item.ID"
:key="item.ID"
>
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="4"> <el-col :span="4">
<!--返程是否联运--> <!--返程是否联运-->
<el-form-item <el-form-item :label="$t('salesModule.IsLianYn')" prop="IsReturnIntermodal" v-show="
:label="$t('salesModule.IsLianYn')"
prop="IsReturnIntermodal"
v-show="
addMsg.ReturnArriveCityId != priceObj.ReturnArriveCityId && addMsg.ReturnArriveCityId != priceObj.ReturnArriveCityId &&
addMsg.ReturnArriveCityId != '' addMsg.ReturnArriveCityId != ''
" ">
> <el-switch v-model="addMsg.IsReturnIntermodal" active-value="1" inactive-value="2"
<el-switch @change="getUnionTravelPrice(priceObj, 2)"></el-switch>
v-model="addMsg.IsReturnIntermodal"
active-value="1"
inactive-value="2"
@change="getUnionTravelPrice(priceObj, 2)"
></el-switch>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="4"> <el-col :span="4">
<!--返程联运时间--> <!--返程联运时间-->
<el-form-item <el-form-item :label="$t('salesModule.LYtime')" prop="IsReturnIntermodal" v-show="
:label="$t('salesModule.LYtime')"
prop="IsReturnIntermodal"
v-show="
addMsg.IsReturnIntermodal == 1 && addMsg.IsReturnIntermodal == 1 &&
addMsg.ReturnArriveCityId != priceObj.ReturnArriveCityId addMsg.ReturnArriveCityId != priceObj.ReturnArriveCityId
" ">
> <el-date-picker :picker-options="pickerOptions1" v-model="addMsg.BackCityTime" value-format="yyyy-MM-dd"
<el-date-picker type="date" @change="getUnionTravelPrice(priceObj, 2)"></el-date-picker>
:picker-options="pickerOptions1"
v-model="addMsg.BackCityTime"
value-format="yyyy-MM-dd"
type="date"
@change="getUnionTravelPrice(priceObj, 2)"
></el-date-picker>
</el-form-item> </el-form-item>
</el-col> </el-col>
</template> </template>
<el-col :span="4"> <el-col :span="4">
<el-form-item :label="$t('salesModule.TeamPrice')" prop="TC_Price"> <el-form-item :label="$t('salesModule.TeamPrice')" prop="TC_Price">
<el-input <el-input v-if="addMsg.GroupType != 4" v-model="addMsg.TC_Price"
v-if="addMsg.GroupType != 4" :disabled="pagesTitle == '跟团游产品' ? false : true" @input="getTotalPrice()">
v-model="addMsg.TC_Price"
:disabled="pagesTitle == '跟团游产品' ? false : true"
@input="getTotalPrice()"
>
</el-input> </el-input>
<el-input <el-input v-else v-model="SingleDMCPricex" :disabled="true" @input="getTotalPrice()"></el-input>
v-else
v-model="SingleDMCPricex"
:disabled="true"
@input="getTotalPrice()"
></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col <el-col :span="4" v-show="
:span="4"
v-show="
addMsg.IsIntermodal == 1 && addMsg.IsIntermodal == 1 &&
addMsg.DepartureCityId != priceObj.StartCityID addMsg.DepartureCityId != priceObj.StartCityID
" ">
>
<el-form-item :label="$t('salesModule.StartLY')"> <el-form-item :label="$t('salesModule.StartLY')">
<el-input <el-input v-model="stratPrice" v-show="stratPriceShow" :disabled="true"></el-input>
v-model="stratPrice" <span class="colorE95252" v-show="!stratPriceShow">{{ $t("pub.NoPrice") }}!</span>
v-show="stratPriceShow"
:disabled="true"
></el-input>
<span class="colorE95252" v-show="!stratPriceShow"
>{{ $t("pub.NoPrice") }}!</span
>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col <el-col :span="4" v-show="
:span="4"
v-show="
addMsg.IsReturnIntermodal == 1 && addMsg.IsReturnIntermodal == 1 &&
addMsg.ReturnArriveCityId != priceObj.ReturnArriveCityId addMsg.ReturnArriveCityId != priceObj.ReturnArriveCityId
" ">
>
<el-form-item :label="$t('salesModule.BackLY')"> <el-form-item :label="$t('salesModule.BackLY')">
<el-input <el-input v-model="returnPrice" v-show="returnPriceShow" :disabled="true"></el-input>
v-model="returnPrice" <span class="colorE95252" v-show="!returnPriceShow">{{ $t("pub.NoPrice") }}!</span>
v-show="returnPriceShow"
:disabled="true"
></el-input>
<span class="colorE95252" v-show="!returnPriceShow"
>{{ $t("pub.NoPrice") }}!</span
>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="4" v-if="HightUnitPrice === '2'"> <el-col :span="4" v-if="HightUnitPrice === '2'">
<el-form-item :label="$t('fnc.cjdanjia')" prop="Unit_Price"> <el-form-item :label="$t('fnc.cjdanjia')" prop="Unit_Price">
<el-select <el-select v-model="addMsg.Unit_Price" filterable :placeholder="$t('pub.pleaseSel')"
v-model="addMsg.Unit_Price" @change="getTotalPrice(2)">
filterable <el-option v-for="item in Unit_PriceList" :label="item.LessMoney" :value="item.ID" :key="item.ID">
:placeholder="$t('pub.pleaseSel')"
@change="getTotalPrice(2)"
>
<el-option
v-for="item in Unit_PriceList"
:label="item.LessMoney"
:value="item.ID"
:key="item.ID"
>
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="4" v-else> <el-col :span="4" v-else>
<el-form-item :label="$t('fnc.cjdanjia')" prop="Unit_Price"> <el-form-item :label="$t('fnc.cjdanjia')" prop="Unit_Price">
<el-input <el-input v-if="addMsg.GroupType != 4" v-model="addMsg.Unit_Price" @change="getTotalPrice(3)">
v-if="addMsg.GroupType != 4"
v-model="addMsg.Unit_Price"
@change="getTotalPrice(3)"
>
</el-input> </el-input>
<el-input <el-input v-else v-model="SingleDMCPrice" @change="getTotalPrice(3)"></el-input>
v-else
v-model="SingleDMCPrice"
@change="getTotalPrice(3)"
></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="4" v-show="addMsg.GroupType != '4'"> <el-col :span="4" v-show="addMsg.GroupType != '4'">
<!--高于本团单价--> <!--高于本团单价-->
<el-form-item :label="$t('salesModule.UpTeamPrice')"> <el-form-item :label="$t('salesModule.UpTeamPrice')">
<el-switch <el-switch v-model="HightUnitPrice" active-value="1" inactive-value="2"></el-switch>
v-model="HightUnitPrice"
active-value="1"
inactive-value="2"
></el-switch>
<!--少价金额--> <!--少价金额-->
<p v-if="LessMoney == 0" style="line-height: 18px; color: #e95252"> <p v-if="LessMoney == 0" style="line-height: 18px; color: #e95252">
{{ $t("salesModule.Notice1") }} {{ $t("salesModule.Notice1") }}
</p> </p>
<p <p v-else-if="LessMoney > 0" style="line-height: 18px; color: #e95252">
v-else-if="LessMoney > 0"
style="line-height: 18px; color: #e95252"
>
{{ $t("salesModule.Notice2") }}{{ LessMoney {{ $t("salesModule.Notice2") }}{{ LessMoney
}}{{ $t("salesModule.Notice3") }} }}{{ $t("salesModule.Notice3") }}
</p> </p>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<div <div style="width: 100%; border-top: 1px dashed #ccc; margin-bottom: 25px"></div>
style="width: 100%; border-top: 1px dashed #ccc; margin-bottom: 25px"
></div>
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :span="4"> <el-col :span="4">
<el-form-item <el-form-item :label="$t('salesModule.SingleNum')" prop="AirticketNum" v-show="addMsg.GroupType == 4">
:label="$t('salesModule.SingleNum')" <el-input v-model="addMsg.AirticketNum" @keyup.native="checkInteger(addMsg, 'AirticketNum')" @input="
prop="AirticketNum"
v-show="addMsg.GroupType == 4"
>
<el-input
v-model="addMsg.AirticketNum"
@keyup.native="checkInteger(addMsg, 'AirticketNum')"
@input="
getNumber(); getNumber();
getTotalPrice(); getTotalPrice();
getHouseNo(); getHouseNo();
autoRemarks('AirticketNum', '单地接数量'); autoRemarks('AirticketNum', '单地接数量');
" "></el-input>
></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="4" v-show="addMsg.GroupType !== '4'"> <el-col :span="4" v-show="addMsg.GroupType !== '4'">
<!--成人人数--> <!--成人人数-->
<el-form-item :label="$t('salesModule.AdultNum')" prop="ManNum"> <el-form-item :label="$t('salesModule.AdultNum')" prop="ManNum">
<el-input <el-input v-model="addMsg.ManNum" :disabled="addMsg.GroupType === '4'"
v-model="addMsg.ManNum" @keyup.native="checkInteger(addMsg, 'ManNum')" @input="
:disabled="addMsg.GroupType === '4'"
@keyup.native="checkInteger(addMsg, 'ManNum')"
@input="
getNumber(); getNumber();
getHouseNo(); getHouseNo();
getTotalPrice(); getTotalPrice();
" " @change="getNumGuest"></el-input>
@change="getNumGuest"
></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<template v-if="pagesTitle == '跟团游产品'"> <template v-if="pagesTitle == '跟团游产品'">
<el-col :span="4"> <el-col :span="4">
<p <p v-if="priceObj.IsSupportChildren == 2" style="
v-if="priceObj.IsSupportChildren == 2"
style="
color: #e95252; color: #e95252;
font-size: 12px; font-size: 12px;
line-height: 40px; line-height: 40px;
text-align: center; text-align: center;
" ">
>
{{ $t("salesModule.NoSupplier") }}! {{ $t("salesModule.NoSupplier") }}!
</p> </p>
<el-form-item <el-form-item v-if="priceObj.IsSupportChildren == 1" :label="$t('Operation.Op_childNobed')"
v-if="priceObj.IsSupportChildren == 1" prop="ChirdNoNeedBedNum">
:label="$t('Operation.Op_childNobed')" <el-input v-model="addMsg.ChirdNoNeedBedNum" @keyup.native="checkInteger(addMsg, 'ChirdNoNeedBedNum')"
prop="ChirdNoNeedBedNum"
>
<el-input
v-model="addMsg.ChirdNoNeedBedNum"
@keyup.native="checkInteger(addMsg, 'ChirdNoNeedBedNum')"
@input=" @input="
getNumber(); getNumber();
getHouseNo(); getHouseNo();
getTotalPrice(); getTotalPrice();
autoRemarks('ChirdNoNeedBedNum', '儿童不占床'); autoRemarks('ChirdNoNeedBedNum', '儿童不占床');
" "></el-input>
></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col <el-col :span="4" v-if="priceObj.IsSupportChildren == 1" v-show="addMsg.GroupType !== '4'">
:span="4" <el-form-item :label="$t('Operation.Op_childBed')" prop="ChirdNeedBedNum">
v-if="priceObj.IsSupportChildren == 1" <el-input v-model="addMsg.ChirdNeedBedNum" :disabled="addMsg.GroupType === '4'"
v-show="addMsg.GroupType !== '4'" @keyup.native="checkInteger(addMsg, 'ChirdNeedBedNum')" @input="
>
<el-form-item
:label="$t('Operation.Op_childBed')"
prop="ChirdNeedBedNum"
>
<el-input
v-model="addMsg.ChirdNeedBedNum"
:disabled="addMsg.GroupType === '4'"
@keyup.native="checkInteger(addMsg, 'ChirdNeedBedNum')"
@input="
getNumber(); getNumber();
getHouseNo(); getHouseNo();
getTotalPrice(); getTotalPrice();
autoRemarks('ChirdNeedBedNum', '儿童占床'); autoRemarks('ChirdNeedBedNum', '儿童占床');
" "></el-input>
></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
</template> </template>
<template v-if="pagesTitle == '当地游产品'"> <template v-if="pagesTitle == '当地游产品'">
<el-col :span="4"> <el-col :span="4">
<p <p v-if="priceObj.IsSupportChildren == 2" style="
v-if="priceObj.IsSupportChildren == 2"
style="
color: #e95252; color: #e95252;
font-size: 12px; font-size: 12px;
line-height: 40px; line-height: 40px;
text-align: center; text-align: center;
" ">
>
{{ $t("salesModule.NoSupplier") }}! {{ $t("salesModule.NoSupplier") }}!
</p> </p>
<!-- getHouseNo(); --> <!-- getHouseNo(); -->
<el-form-item <el-form-item v-if="priceObj.IsSupportChildren == 1" v-show="addMsg.GroupType !== '4'"
v-if="priceObj.IsSupportChildren == 1" :label="$t('salesModule.ChildNum')" prop="ChirdNum">
v-show="addMsg.GroupType !== '4'" <el-input v-model="addMsg.ChirdNum" :disabled="addMsg.GroupType === '4'"
:label="$t('salesModule.ChildNum')" @keyup.native="checkInteger(addMsg, 'ChirdNum')" @input="
prop="ChirdNum"
>
<el-input
v-model="addMsg.ChirdNum"
:disabled="addMsg.GroupType === '4'"
@keyup.native="checkInteger(addMsg, 'ChirdNum')"
@input="
getNumber(); getNumber();
getTotalPrice(); getTotalPrice();
autoRemarks('ChirdNum', '儿童人数'); autoRemarks('ChirdNum', '儿童人数');
" " @change="getNumGuest()"></el-input>
@change="getNumGuest()"
></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
</template> </template>
<el-col <el-col :span="4" v-if="priceObj.IsSupportChildren == 1" v-show="addMsg.GroupType !== '4'">
:span="4"
v-if="priceObj.IsSupportChildren == 1"
v-show="addMsg.GroupType !== '4'"
>
<el-form-item :label="$t('salesModule.BabyNum')" prop="BabyNum"> <el-form-item :label="$t('salesModule.BabyNum')" prop="BabyNum">
<el-input <el-input v-model="addMsg.BabyNum" :disabled="addMsg.GroupType === '4'"
v-model="addMsg.BabyNum" @keyup.native="checkInteger(addMsg, 'BabyNum')" @input="
:disabled="addMsg.GroupType === '4'"
@keyup.native="checkInteger(addMsg, 'BabyNum')"
@input="
getNumber(); getNumber();
getTotalPrice(); getTotalPrice();
autoRemarks('BabyNum', '婴儿人数'); autoRemarks('BabyNum', '婴儿人数');
" " @change="getNumGuest"></el-input>
@change="getNumGuest"
></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<template v-if="pagesTitle == '跟团游产品'"> <template v-if="pagesTitle == '跟团游产品'">
<el-col :span="4" v-show="addMsg.GroupType !== '4'"> <el-col :span="4" v-show="addMsg.GroupType !== '4'">
<el-form-item <el-form-item :label="$t('salesModule.OldPeopleNum')" prop="OldPeopleNum">
:label="$t('salesModule.OldPeopleNum')" <el-input v-model="addMsg.OldPeopleNum" :disabled="addMsg.GroupType === '4'"
prop="OldPeopleNum" @keyup.native="checkInteger(addMsg, 'OldPeopleNum')" @input="
>
<el-input
v-model="addMsg.OldPeopleNum"
:disabled="addMsg.GroupType === '4'"
@keyup.native="checkInteger(addMsg, 'OldPeopleNum')"
@input="
getNumber(); getNumber();
getHouseNo(); getHouseNo();
getTotalPrice(); getTotalPrice();
autoRemarks('OldPeopleNum', '老人人数'); autoRemarks('OldPeopleNum', '老人人数');
" "></el-input>
></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
</template> </template>
<template v-if="pagesTitle == '跟团游产品'"> <template v-if="pagesTitle == '跟团游产品'">
<el-col :span="4" v-if="addMsg.GroupTypeNeedHouse == '0'"> <el-col :span="4" v-if="addMsg.GroupTypeNeedHouse == '0'">
<el-form-item <el-form-item :label="$t('salesModule.SingleRoomNum')" prop="SingleRoomNum">
:label="$t('salesModule.SingleRoomNum')" <el-input v-model="addMsg.SingleRoomNum" @keyup.native="checkInteger(addMsg, 'SingleRoomNum')" @input="
prop="SingleRoomNum"
>
<el-input
v-model="addMsg.SingleRoomNum"
@keyup.native="checkInteger(addMsg, 'SingleRoomNum')"
@input="
yzSingleBed(); yzSingleBed();
getTotalPrice(); getTotalPrice();
autoRemarks('SingleRoomNum', '单房数量'); autoRemarks('SingleRoomNum', '单房数量');
" "></el-input>
></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="4" v-if="addMsg.GroupTypeNeedHouse == '0' && showCity"> <el-col :span="4" v-if="addMsg.GroupTypeNeedHouse == '0' && showCity">
<el-form-item <el-form-item :label="$t('salesModule.BigRoomNum')" prop="BigRoomNum">
:label="$t('salesModule.BigRoomNum')" <el-input v-model="addMsg.BigRoomNum" @keyup.native="checkInteger(addMsg, 'BigRoomNum')" @input="
prop="BigRoomNum"
>
<el-input
v-model="addMsg.BigRoomNum"
@keyup.native="checkInteger(addMsg, 'BigRoomNum')"
@input="
yzBigBed(); yzBigBed();
getTotalPrice(); getTotalPrice();
autoRemarks('BigRoomNum', '大床房'); autoRemarks('BigRoomNum', '大床房');
" "></el-input>
></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="4" v-if="addMsg.GroupTypeNeedHouse == '0' && showCity"> <el-col :span="4" v-if="addMsg.GroupTypeNeedHouse == '0' && showCity">
<el-form-item <el-form-item :label="$t('salesModule.TripleRoomNum')" prop="TripleRoomNum">
:label="$t('salesModule.TripleRoomNum')" <el-input v-model="addMsg.TripleRoomNum" @keyup.native="checkInteger(addMsg, 'TripleRoomNum')" @input="
prop="TripleRoomNum"
>
<el-input
v-model="addMsg.TripleRoomNum"
@keyup.native="checkInteger(addMsg, 'TripleRoomNum')"
@input="
yzThreeBed(); yzThreeBed();
getTotalPrice(); getTotalPrice();
autoRemarks('TripleRoomNum', '三人房'); autoRemarks('TripleRoomNum', '三人房');
" "></el-input>
></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
</template> </template>
<el-col :span="4" v-if="pagesTitle == '跟团游产品'"> <el-col :span="4" v-if="pagesTitle == '跟团游产品'">
<el-form-item :label="$t('salesModule.VisaNum')" prop="VisaNum"> <el-form-item :label="$t('salesModule.VisaNum')" prop="VisaNum">
<el-input <el-input v-model="addMsg.VisaNum" @keyup.native="checkInteger(addMsg, 'VisaNum')" @input="
v-model="addMsg.VisaNum"
@keyup.native="checkInteger(addMsg, 'VisaNum')"
@input="
yzVisaNum(); yzVisaNum();
getTotalPrice(); getTotalPrice();
autoRemarks('VisaNum', '不要签证数量'); autoRemarks('VisaNum', '不要签证数量');
" "></el-input>
></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="4" v-if="showCity || pagesTitle == '当地游产品'"> <el-col :span="4" v-if="showCity || pagesTitle == '当地游产品'">
<el-form-item :label="$t('salesModule.SaleNum')" prop="SaleNum"> <el-form-item :label="$t('salesModule.SaleNum')" prop="SaleNum">
<el-input <el-input v-model="addMsg.SafeNum" @keyup.native="checkInteger(addMsg, 'SafeNum')" @input="
v-model="addMsg.SafeNum"
@keyup.native="checkInteger(addMsg, 'SafeNum')"
@input="
yzSafeNum(); yzSafeNum();
getTotalPrice(); getTotalPrice();
" " @change="getNumGuest"></el-input>
@change="getNumGuest"
></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="4" v-if="pagesTitle == '跟团游产品'"> <el-col :span="4" v-if="pagesTitle == '跟团游产品'">
<el-form-item :label="$t('salesModule.SingleFM')"> <el-form-item :label="$t('salesModule.SingleFM')">
<el-radio v-model="addMsg.OneSex" label="1" <el-radio v-model="addMsg.OneSex" label="1">{{ $t("pub.man") }}
>{{ $t("pub.man") }}
</el-radio> </el-radio>
<el-radio v-model="addMsg.OneSex" label="2" <el-radio v-model="addMsg.OneSex" label="2">{{ $t("pub.woman") }}
>{{ $t("pub.woman") }}
</el-radio> </el-radio>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col <el-col :span="4" v-if="addMsg.GroupTypeNeedHouse == '0' && pagesTitle == '跟团游产品'">
:span="4" <el-form-item :label="$t('salesModule.PredictRoomNum')" prop="PredictRoomNum">
v-if="addMsg.GroupTypeNeedHouse == '0' && pagesTitle == '跟团游产品'" <el-input v-model="addMsg.PredictRoomNum" :disabled="true"></el-input>
>
<el-form-item
:label="$t('salesModule.PredictRoomNum')"
prop="PredictRoomNum"
>
<el-input
v-model="addMsg.PredictRoomNum"
:disabled="true"
></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="4"> <el-col :span="4">
...@@ -705,188 +422,85 @@ ...@@ -705,188 +422,85 @@
<el-input v-model="addMsg.PreferPrice" :disabled="true"></el-input> <el-input v-model="addMsg.PreferPrice" :disabled="true"></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col <el-col :span="4" v-show="addMsg.CustomerType == 1 || addMsg.CustomerType == 2">
:span="4" <el-form-item :label="$t('salesModule.SharePeople')" prop="CommissionSharePeople">
v-show="addMsg.CustomerType == 1 || addMsg.CustomerType == 2" <el-select :disabled="isUpdateSharePeople" filterable clearable @change="getTotalPrice"
> v-model="addMsg.CommissionSharePeople" :placeholder="$t('pub.pleaseSel')">
<el-form-item
:label="$t('salesModule.SharePeople')"
prop="CommissionSharePeople"
>
<el-select
:disabled="isUpdateSharePeople"
filterable
clearable
@change="getTotalPrice"
v-model="addMsg.CommissionSharePeople"
:placeholder="$t('pub.pleaseSel')"
>
<el-option :label="$t('fnc.no')" value="-1" key="-1"></el-option> <el-option :label="$t('fnc.no')" value="-1" key="-1"></el-option>
<el-option <el-option v-for="item in employeeList" :label="item.EmName" :value="item.EmployeeId"
v-for="item in employeeList" :key="item.EmployeeId"></el-option>
:label="item.EmName"
:value="item.EmployeeId"
:key="item.EmployeeId"
></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col <el-col :span="4" v-show="
:span="4"
v-show="
addMsg.CommissionSharePeople != '-1' && addMsg.CommissionSharePeople != '-1' &&
(addMsg.CustomerType == 1 || addMsg.CustomerType == 2) (addMsg.CustomerType == 1 || addMsg.CustomerType == 2)
" ">
> <el-form-item :label="$t('salesModule.ShareMoney')" prop="CommissionShareMoney">
<el-form-item <el-input v-model="addMsg.CommissionShareMoney" :disabled="true"></el-input>
:label="$t('salesModule.ShareMoney')"
prop="CommissionShareMoney"
>
<el-input
v-model="addMsg.CommissionShareMoney"
:disabled="true"
></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<template v-if="pagesTitle == '跟团游产品'"> <template v-if="pagesTitle == '跟团游产品'">
<el-col :span="4"> <el-col :span="4">
<el-form-item <el-form-item :label="$t('Airticket.Air_EconomyClass')" prop="YSeatNum">
:label="$t('Airticket.Air_EconomyClass')" <el-input v-model="addMsg.YSeatNum" @keyup.native="checkInteger(addMsg, 'YSeatNum')"></el-input>
prop="YSeatNum"
>
<el-input
v-model="addMsg.YSeatNum"
@keyup.native="checkInteger(addMsg, 'YSeatNum')"
></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="4"> <el-col :span="4">
<el-form-item <el-form-item :label="$t('Airticket.Air_businessClass')" prop="ESeatNum">
:label="$t('Airticket.Air_businessClass')" <el-input v-model="addMsg.ESeatNum" @input="getNumber()"></el-input>
prop="ESeatNum"
>
<el-input
v-model="addMsg.ESeatNum"
@input="getNumber()"
></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="4"> <el-col :span="4">
<el-form-item <el-form-item :label="$t('Airticket.Air_firstClass')" prop="FSeatNum">
:label="$t('Airticket.Air_firstClass')" <el-input v-model="addMsg.FSeatNum" @input="getNumber()"></el-input>
prop="FSeatNum"
>
<el-input
v-model="addMsg.FSeatNum"
@input="getNumber()"
></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
</template> </template>
<!--<el-col :span="4">
<el-form-item label="单地接数量" prop="AirticketNum">
<el-input v-model='addMsg.AirticketNum' @keyup.native="checkInteger(addMsg,'AirticketNum')" @input='getTotalPrice();getHouseNo()'></el-input>
</el-form-item>
</el-col>-->
<el-col :span="4" v-if="showCity && pagesTitle == '跟团游产品'"> <el-col :span="4" v-if="showCity && pagesTitle == '跟团游产品'">
<el-form-item :label="$t('salesModule.ScenicRefund')"> <el-form-item :label="$t('salesModule.ScenicRefund')">
<el-select <el-select filterable multiple class="multiple_input" v-model="addMsg.ScenicRefundArr"
filterable :placeholder="$t('pub.pleaseSel')" @change="ScenicRefundMethods">
multiple <el-option v-for="(item, index) in ScenicRefundList" :label="item.ScenicName" :value="item.Id"
class="multiple_input" :key="index">
v-model="addMsg.ScenicRefundArr"
:placeholder="$t('pub.pleaseSel')"
@change="ScenicRefundMethods"
>
<el-option
v-for="(item, index) in ScenicRefundList"
:label="item.ScenicName"
:value="item.Id"
:key="index"
>
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="4" v-if="showCity || pagesTitle == '当地游产品'"> <el-col :span="4" v-if="showCity || pagesTitle == '当地游产品'">
<el-form-item :label="$t('salesModule.MsgMoney')"> <el-form-item :label="$t('salesModule.MsgMoney')">
<el-select <el-select filterable v-model="addMsg.IsShowMessagesMoney" :placeholder="$t('pub.pleaseSel')">
filterable <el-option :label="$t('system.table_isShows')" value="1"></el-option>
v-model="addMsg.IsShowMessagesMoney" <el-option :label="$t('MarketingActi.notShow')" value="2"></el-option>
:placeholder="$t('pub.pleaseSel')"
>
<el-option
:label="$t('system.table_isShows')"
value="1"
></el-option>
<el-option
:label="$t('MarketingActi.notShow')"
value="2"
></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="4"> <el-col :span="4">
<el-form-item <el-form-item :label="$t('salesModule.CustomFrom')" prop="ClientSource">
:label="$t('salesModule.CustomFrom')" <el-select v-model="addMsg.ClientSource" filterable :placeholder="$t('pub.pleaseSel')"
prop="ClientSource" @change="changeClientSource">
> <el-option v-for="(item, index) in clientSourceList" :label="item.Name" :value="item.Id" :key="index">
<el-select
v-model="addMsg.ClientSource"
filterable
:placeholder="$t('pub.pleaseSel')"
@change="changeClientSource"
>
<el-option
v-for="(item, index) in clientSourceList"
:label="item.Name"
:value="item.Id"
:key="index"
>
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="4"> <el-col :span="4">
<el-form-item <el-form-item :label="$t('salesModule.SSPT')" prop="BrandId"
:label="$t('salesModule.SSPT')" v-show="addMsg.ClientSource == 1 || addMsg.ClientSource == 4">
prop="BrandId" <el-select v-model="addMsg.BrandId" filterable :placeholder="$t('pub.pleaseSel')">
v-show="addMsg.ClientSource == 1 || addMsg.ClientSource == 4" <el-option v-for="item in customerBrandList" :label="item.brandName" :value="item.dictId"
> :key="item.dictId">
<el-select
v-model="addMsg.BrandId"
filterable
:placeholder="$t('pub.pleaseSel')"
>
<el-option
v-for="item in customerBrandList"
:label="item.brandName"
:value="item.dictId"
:key="item.dictId"
>
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="4"> <el-col :span="4">
<!--交易方式--> <!--交易方式-->
<el-form-item <el-form-item :label="$t('tips.jiaoyifangshi')" prop="TradeWay"
:label="$t('tips.jiaoyifangshi')" v-show="addMsg.ClientSource == 1 || addMsg.ClientSource == 4">
prop="TradeWay" <el-select v-model="addMsg.TradeWay" filterable :placeholder="$t('pub.pleaseSel')"
v-show="addMsg.ClientSource == 1 || addMsg.ClientSource == 4" @change="tradeWayMethods">
> <el-option v-for="item in tradeWayList" :label="item.Name" :value="item.Id" :key="item.Id">
<el-select
v-model="addMsg.TradeWay"
filterable
:placeholder="$t('pub.pleaseSel')"
@change="tradeWayMethods"
>
<el-option
v-for="item in tradeWayList"
:label="item.Name"
:value="item.Id"
:key="item.Id"
>
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
...@@ -894,57 +508,24 @@ ...@@ -894,57 +508,24 @@
<!--平台账户--> <!--平台账户-->
<el-col :span="4" v-if="addMsg.TradeWay == 1 || addMsg.TradeWay == 3"> <el-col :span="4" v-if="addMsg.TradeWay == 1 || addMsg.TradeWay == 3">
<el-form-item :label="$t('fnc.fkuanzhanghu')"> <el-form-item :label="$t('fnc.fkuanzhanghu')">
<el-select <el-select filterable v-model="addMsg.PlatformAccount" :placeholder="$t('pub.pleaseSel')">
filterable <el-option v-for="item in PlatformAccountList" :label="item.Alias" :value="item.ID" :key="item.ID">
v-model="addMsg.PlatformAccount"
:placeholder="$t('pub.pleaseSel')"
>
<el-option
v-for="item in PlatformAccountList"
:label="item.Alias"
:value="item.ID"
:key="item.ID"
>
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
<!--平台订单--> <!--平台订单-->
<el-col :span="4" v-if="addMsg.TradeWay == 1 || addMsg.TradeWay == 3"> <el-col :span="4" v-if="addMsg.TradeWay == 1 || addMsg.TradeWay == 3">
<el-form-item <el-form-item :label="$t('salesModule.PlatOrder')" prop="PlatformOrder">
:label="$t('salesModule.PlatOrder')" <el-input v-model="addMsg.PlatformOrder" @input="platformOrderMethods" maxlength="20"></el-input>
prop="PlatformOrder"
>
<el-input
v-model="addMsg.PlatformOrder"
@input="platformOrderMethods"
maxlength="20"
></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<!--报价单--> <!--报价单-->
<el-col :span="4"> <el-col :span="4">
<el-form-item <el-form-item label="报价单" prop="QuotationUrl" v-show="addMsg.GroupType == '2'">
label="报价单" <div style="margin-bottom: 10px; width: 32%" v-loading="uploadLloading" element-loading-text="拼命上传中">
prop="QuotationUrl" <el-upload ref="my-upload" class="upload-demo" :http-request="uploadFileBtn" :multiple="true"
v-show="addMsg.GroupType == '2'" :show-file-list="true" :on-preview="previewFile" :on-remove="removeFile" :limit="1" action>
>
<div
style="margin-bottom: 10px; width: 32%"
v-loading="uploadLloading"
element-loading-text="拼命上传中"
>
<el-upload
ref="my-upload"
class="upload-demo"
:http-request="uploadFileBtn"
:multiple="true"
:show-file-list="true"
:on-preview="previewFile"
:on-remove="removeFile"
:limit="1"
action
>
<el-button size="small" type="primary">点击上传</el-button> <el-button size="small" type="primary">点击上传</el-button>
</el-upload> </el-upload>
</div> </div>
...@@ -955,12 +536,7 @@ ...@@ -955,12 +536,7 @@
<el-row :gutter="20" style="margin-bottom: 20px"> <el-row :gutter="20" style="margin-bottom: 20px">
<el-col :span="24"> <el-col :span="24">
<el-form-item label="房客信息" prop=""> <el-form-item label="房客信息" prop="">
<table <table class="passengerSaleList_table" border="0" cellspacing="0" cellpadding="0">
class="passengerSaleList_table"
border="0"
cellspacing="0"
cellpadding="0"
>
<thead> <thead>
<tr> <tr>
<th width="20%" style="min-width: 260px">姓名</th> <th width="20%" style="min-width: 260px">姓名</th>
...@@ -976,137 +552,57 @@ ...@@ -976,137 +552,57 @@
<tr v-for="(item, index) in addMsg.GuestList" :key="index"> <tr v-for="(item, index) in addMsg.GuestList" :key="index">
<td width="20%" style="min-width: 260px"> <td width="20%" style="min-width: 260px">
<div style="display: flex; flex-direction: row"> <div style="display: flex; flex-direction: row">
<el-form-item <el-form-item style="width: 50%" :label="`姓 ${index + 1} `" :prop="`GuestList.${index}.SurName`"
style="width: 50%" :rules="rules.SurName" label-width="50px" label-position="left">
:label="`姓 ${index + 1} `" <el-input size="small" v-model="item.SurName" placeholder="请输入姓" style="width: 100%" @input="
:prop="`GuestList.${index}.SurName`"
:rules="rules.SurName"
label-width="50px"
label-position="left"
>
<el-input
size="small"
v-model="item.SurName"
placeholder="请输入姓"
style="width: 100%"
@input="
Transformation(item.SurName, 'SurName', index) Transformation(item.SurName, 'SurName', index)
" "></el-input>
></el-input>
</el-form-item> </el-form-item>
<el-form-item <el-form-item style="width: 50%" :label="`名 ${index + 1} `" :prop="`GuestList.${index}.Name`"
style="width: 50%" :rules="rules.Name" label-width="50px" label-position="left">
:label="`名 ${index + 1} `" <el-input size="small" v-model="item.Name" placeholder="请输入名" style="width: 100%"
:prop="`GuestList.${index}.Name`" @input="Transformation(item.Name, 'Name', index)"></el-input>
:rules="rules.Name"
label-width="50px"
label-position="left"
>
<el-input
size="small"
v-model="item.Name"
placeholder="请输入名"
style="width: 100%"
@input="Transformation(item.Name, 'Name', index)"
></el-input>
</el-form-item> </el-form-item>
</div> </div>
</td> </td>
<td width="20%" style="min-width: 220px"> <td width="20%" style="min-width: 220px">
<el-form-item <el-form-item :label="`性别 ${index + 1} `" :prop="`GuestList.${index}.Sex`" :rules="rules.Sex"
:label="`性别 ${index + 1} `" label-width="70px" label-position="left">
:prop="`GuestList.${index}.Sex`" <el-select v-model="item.Sex" placeholder="请选择性别" style="width: 100%">
:rules="rules.Sex" <el-option v-for="item in optionsList" :key="item.Id" :label="item.Name" :value="item.Id">
label-width="70px"
label-position="left"
>
<el-select
v-model="item.Sex"
placeholder="请选择性别"
style="width: 100%"
>
<el-option
v-for="item in optionsList"
:key="item.Id"
:label="item.Name"
:value="item.Id"
>
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
</td> </td>
<td width="20%" style="min-width: 220px"> <td width="20%" style="min-width: 220px">
<el-form-item <el-form-item :label="`出生日期 ${index + 1} `" :prop="`GuestList.${index}.Birthday`"
:label="`出生日期 ${index + 1} `" :rules="rules.Birthday" label-width="100px" label-position="left">
:prop="`GuestList.${index}.Birthday`" <el-date-picker v-model="item.Birthday" type="date" value-format="yyyy-MM-dd"
:rules="rules.Birthday" placeholder="选择出生日期">
label-width="100px"
label-position="left"
>
<el-date-picker
v-model="item.Birthday"
type="date"
value-format="yyyy-MM-dd"
placeholder="选择出生日期"
>
</el-date-picker> </el-date-picker>
</el-form-item> </el-form-item>
</td> </td>
<td width="20%" style="min-width: 220px"> <td width="20%" style="min-width: 220px">
<el-form-item <el-form-item :label="`国籍 ${index + 1} `" :prop="`GuestList.${index}.Nationality`"
:label="`国籍 ${index + 1} `" :rules="rules.PassportNo" label-width="80px" label-position="left">
:prop="`GuestList.${index}.Nationality`" <el-select v-model="item.Nationality" filterable size="mini" class="w230">
:rules="rules.PassportNo" <el-option v-for="item in countryList" :key="item.ID" :label="item.Name" :value="item.ID">
label-width="80px"
label-position="left"
>
<el-select
v-model="item.Nationality"
filterable
size="mini"
class="w230"
>
<el-option
v-for="item in countryList"
:key="item.ID"
:label="item.Name"
:value="item.ID"
>
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
</td> </td>
<td width="20%" style="min-width: 220px"> <td width="20%" style="min-width: 220px">
<el-form-item <el-form-item :label="`护照号 ${index + 1} `" :prop="`GuestList.${index}.PassportNo`"
:label="`护照号 ${index + 1} `" :rules="rules.PassportNo" label-width="80px" label-position="left">
:prop="`GuestList.${index}.PassportNo`" <el-input size="small" v-model="item.PassportNo" placeholder="请输入护照号" style="width: 100%">
:rules="rules.PassportNo" </el-input>
label-width="80px"
label-position="left"
>
<el-input
size="small"
v-model="item.PassportNo"
placeholder="请输入护照号"
style="width: 100%"
></el-input>
</el-form-item> </el-form-item>
</td> </td>
<td width="20%" style="min-width: 220px"> <td width="20%" style="min-width: 220px">
<el-form-item <el-form-item :label="`手机号 ${index + 1} `" :prop="`GuestList.${index}.MobilePhone`"
:label="`手机号 ${index + 1} `" :rules="rules.MobilePhone" label-width="80px" label-position="left">
:prop="`GuestList.${index}.MobilePhone`" <el-input size="small" type="Number" v-model="item.MobilePhone" placeholder="请输入手机号"
:rules="rules.MobilePhone" style="width: 100%"></el-input>
label-width="80px"
label-position="left"
>
<el-input
size="small"
type="Number"
v-model="item.MobilePhone"
placeholder="请输入手机号"
style="width: 100%"
></el-input>
</el-form-item> </el-form-item>
</td> </td>
</tr> </tr>
...@@ -1121,43 +617,22 @@ ...@@ -1121,43 +617,22 @@
</template> </template>
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :span="12" v-if="pagesTitle == '当地游产品'"> <el-col :span="12" v-if="pagesTitle == '当地游产品'">
<el-form-item <el-form-item label="集合地" prop="GatherAddress" label-width="125px" label-position="left">
label="集合地" <el-input type="textarea" size="small" v-model="addMsg.GatherAddress" placeholder="请输入集合地"
prop="GatherAddress" style="width: 100%"></el-input>
label-width="125px"
label-position="left"
>
<el-input
type="textarea"
size="small"
v-model="addMsg.GatherAddress"
placeholder="请输入集合地"
style="width: 100%"
></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<!--备注--> <!--备注-->
<el-col :span="pagesTitle == '当地游产品' ? 12 : 24"> <el-col :span="pagesTitle == '当地游产品' ? 12 : 24">
<el-form-item :label="$t('pub.pubRemark')" prop="Remarks"> <el-form-item :label="$t('pub.pubRemark')" prop="Remarks">
<el-input <el-input v-model="addMsg.Remarks" type="textarea" maxlength="500"></el-input>
v-model="addMsg.Remarks"
type="textarea"
maxlength="500"
></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row <el-row :gutter="20" v-if="addMsg.IsIntermodal == 1 || addMsg.IsReturnIntermodal == 1">
:gutter="20"
v-if="addMsg.IsIntermodal == 1 || addMsg.IsReturnIntermodal == 1"
>
<el-col :span="24"> <el-col :span="24">
<el-form-item label="联运备注" prop="UnionRemark"> <el-form-item label="联运备注" prop="UnionRemark">
<el-input <el-input v-model="addMsg.UnionRemark" type="textarea" maxlength="500" placeholder=""></el-input>
v-model="addMsg.UnionRemark"
type="textarea"
maxlength="500"
></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
...@@ -1165,7 +640,7 @@ ...@@ -1165,7 +640,7 @@
</div> </div>
</template> </template>
<script> <script>
export default { export default {
//团期编号,订单编号(新增传0),下单人选择的公司 //团期编号,订单编号(新增传0),下单人选择的公司
props: [ props: [
"showCity", "showCity",
...@@ -1269,131 +744,98 @@ export default { ...@@ -1269,131 +744,98 @@ export default {
}, },
uploadLloading: false, uploadLloading: false,
rules: { rules: {
CustomerType: [ CustomerType: [{
{
required: true, required: true,
message: "请选择客户类型", message: "请选择客户类型",
trigger: "change", trigger: "change",
}, }, ],
], CustomerId: [{
CustomerId: [
{
required: false, required: false,
message: "请选择客户门店", message: "请选择客户门店",
trigger: "change", trigger: "change",
}, }, ],
], DepartureCityId: [{
DepartureCityId: [
{
required: true, required: true,
message: "请选择出发城市", message: "请选择出发城市",
trigger: "change", trigger: "change",
}, }, ],
], GroupType: [{
GroupType: [
{
required: true, required: true,
message: "请选择参团类型", message: "请选择参团类型",
trigger: "change", trigger: "change",
}, }, ],
], ClientSource: [{
ClientSource: [
{
required: true, required: true,
message: "请选择客人来源", message: "请选择客人来源",
trigger: "change", trigger: "change",
}, }, ],
], TradeWay: [{
TradeWay: [
{
required: true, required: true,
message: "请选择交易方式", message: "请选择交易方式",
trigger: "change", trigger: "change",
}, }, ],
], ContactName: [{
ContactName: [
{
required: true, required: true,
message: "请输入联系人姓名", message: "请输入联系人姓名",
trigger: "blur", trigger: "blur",
}, }, ],
], ContactMobile: [{
ContactMobile: [
{
required: true, required: true,
message: "请输入联系人电话", message: "请输入联系人电话",
trigger: "blur", trigger: "blur",
}, },
{ {
pattern: pattern: /^(0|86|17951)?(13[0-9]|15[012356789]|17[012356789]|18[0-9]|19[0-9]|14[57])[0-9]{8}$/,
/^(0|86|17951)?(13[0-9]|15[012356789]|17[012356789]|18[0-9]|19[0-9]|14[57])[0-9]{8}$/,
message: "请输入正确的手机", message: "请输入正确的手机",
}, },
], ],
SurName: [ SurName: [{
{
required: true, required: true,
message: "请输入姓", message: "请输入姓",
trigger: "blur", trigger: "blur",
}, }, ],
], Name: [{
Name: [
{
required: true, required: true,
message: "请输入名", message: "请输入名",
trigger: "blur", trigger: "blur",
}, }, ],
], Sex: [{
Sex: [
{
required: true, required: true,
message: "请选择性别", message: "请选择性别",
trigger: "change", trigger: "change",
}, }, ],
], Birthday: [{
Birthday: [
{
required: true, required: true,
message: "请选择出生日期", message: "请选择出生日期",
trigger: "blur", trigger: "blur",
}, }, ],
], Nationality: [{
Nationality: [
{
required: true, required: true,
message: "请选择国籍", message: "请选择国籍",
trigger: "change", trigger: "change",
}, }, ],
], PassportNo: [{
PassportNo: [
{
required: true, required: true,
message: "请输入护照号", message: "请输入护照号",
trigger: "blur", trigger: "blur",
}, }, ],
], MobilePhone: [{
MobilePhone: [
{
required: true, required: true,
message: "请输入联系人电话", message: "请输入联系人电话",
trigger: "blur", trigger: "blur",
}, },
{ {
pattern: pattern: /^(0|86|17951)?(13[0-9]|15[012356789]|17[012356789]|18[0-9]|19[0-9]|14[57])[0-9]{8}$/,
/^(0|86|17951)?(13[0-9]|15[012356789]|17[012356789]|18[0-9]|19[0-9]|14[57])[0-9]{8}$/,
message: "请输入正确的手机", message: "请输入正确的手机",
}, },
], ],
GatherAddress: [ GatherAddress: [{
{
required: true, required: true,
message: "请输入集合地", message: "请输入集合地",
trigger: "blur", trigger: "blur",
}, ],
}, },
], GuestList: [{
},
GuestList: [
{
SurName: "", SurName: "",
Name: "", Name: "",
Sex: "", Sex: "",
...@@ -1404,8 +846,7 @@ export default { ...@@ -1404,8 +846,7 @@ export default {
PassportNo: "", PassportNo: "",
Remarks: "", Remarks: "",
MobilePhone: "", MobilePhone: "",
}, }, ],
],
GuestObj: { GuestObj: {
SurName: "", SurName: "",
Name: "", Name: "",
...@@ -1448,9 +889,14 @@ export default { ...@@ -1448,9 +889,14 @@ export default {
otherRemark: "", otherRemark: "",
SingleDMCPricex: 0, // 单地接; SingleDMCPricex: 0, // 单地接;
SingleDMCPrice: 0, // 单地接; SingleDMCPrice: 0, // 单地接;
optionsList: [ optionsList: [{
{ Name: "男", Id: 1 }, Name: "男",
{ Name: "女", Id: 2 }, Id: 1
},
{
Name: "女",
Id: 2
},
], ],
TotalNumber: 0, //总人数 TotalNumber: 0, //总人数
countryList: [], //国籍 countryList: [], //国籍
...@@ -1733,9 +1179,9 @@ export default { ...@@ -1733,9 +1179,9 @@ export default {
} }
} }
if (this.remarkMsg.fjf === "") { if (this.remarkMsg.fjf === "") {
this.remarkMsg.fjf = this.priceObj["BabyChargePrice"] this.remarkMsg.fjf = this.priceObj["BabyChargePrice"] ?
? "儿童附加费:" + this.priceObj["BabyChargePrice"] + "/人;" "儿童附加费:" + this.priceObj["BabyChargePrice"] + "/人;" :
: ""; "";
} }
} }
if (text === "老人人数") { if (text === "老人人数") {
...@@ -1970,8 +1416,7 @@ export default { ...@@ -1970,8 +1416,7 @@ export default {
//获取线路最低定金金额 //获取线路最低定金金额
getMinPrice(id) { getMinPrice(id) {
this.apipost( this.apipost(
"line_post_Get", "line_post_Get", {
{
ID: id, ID: id,
}, },
(res) => { (res) => {
...@@ -2030,8 +1475,7 @@ export default { ...@@ -2030,8 +1475,7 @@ export default {
Number(this.addMsg.AirticketNum); Number(this.addMsg.AirticketNum);
if (maxPeopleNum > 0) { if (maxPeopleNum > 0) {
this.apipost( this.apipost(
"sellorder_post_GetLessPrice", "sellorder_post_GetLessPrice", {
{
TCID: this.priceObj.TCID, TCID: this.priceObj.TCID,
MaxPeopleNum: maxPeopleNum, MaxPeopleNum: maxPeopleNum,
}, },
...@@ -2084,8 +1528,7 @@ export default { ...@@ -2084,8 +1528,7 @@ export default {
let yh = 0; let yh = 0;
if (num > 0) { if (num > 0) {
this.apipost( this.apipost(
"sellorder_get_GetOrderMinPrice", "sellorder_get_GetOrderMinPrice", {
{
ltID: this.priceObj.ltID, ltID: this.priceObj.ltID,
Num: num, Num: num,
}, },
...@@ -2122,9 +1565,9 @@ export default { ...@@ -2122,9 +1565,9 @@ export default {
//算法:((成人+儿童占床数+老人-(三人房数量*3))-单房数)/2+单房数+三人房数量 8.7新增单地接儿童不占床 减去 儿童不占床 //算法:((成人+儿童占床数+老人-(三人房数量*3))-单房数)/2+单房数+三人房数量 8.7新增单地接儿童不占床 减去 儿童不占床
let etbzc = 0; let etbzc = 0;
if (this.addMsg.GroupType == 4) { if (this.addMsg.GroupType == 4) {
etbzc = this.addMsg.ChirdNoNeedBedNum etbzc = this.addMsg.ChirdNoNeedBedNum ?
? Number(this.addMsg.ChirdNoNeedBedNum) Number(this.addMsg.ChirdNoNeedBedNum) :
: 0; 0;
} }
this.addMsg.PredictRoomNum = this.addMsg.PredictRoomNum =
(Number(this.addMsg.AirticketNum) + (Number(this.addMsg.AirticketNum) +
...@@ -2558,8 +2001,7 @@ export default { ...@@ -2558,8 +2001,7 @@ export default {
getPlatformAccount(typeIdtwo) { getPlatformAccount(typeIdtwo) {
let platBranchId = this.CurrentUserInfo.RB_Branch_id; let platBranchId = this.CurrentUserInfo.RB_Branch_id;
this.apipost( this.apipost(
"FinancialInstitutions_post_GetALLAccountList", "FinancialInstitutions_post_GetALLAccountList", {
{
TypeId: typeIdtwo, TypeId: typeIdtwo,
BranchId: platBranchId, BranchId: platBranchId,
}, },
...@@ -2589,8 +2031,7 @@ export default { ...@@ -2589,8 +2031,7 @@ export default {
//可退景点 //可退景点
getScenicRefund(TCID) { getScenicRefund(TCID) {
this.apipost( this.apipost(
"sellorder_get_GetScenicRefundList", "sellorder_get_GetScenicRefundList", {
{
TCID, TCID,
}, },
(res) => { (res) => {
...@@ -2630,8 +2071,7 @@ export default { ...@@ -2630,8 +2071,7 @@ export default {
this.isUpdateSharePeople = false; this.isUpdateSharePeople = false;
} }
this.apipost( this.apipost(
"app_today_visit_GetCustomerBrandByCustomerId", "app_today_visit_GetCustomerBrandByCustomerId", {
{
customerInfoId: this.addMsg.CustomerId, customerInfoId: this.addMsg.CustomerId,
}, },
(res) => { (res) => {
...@@ -2645,8 +2085,7 @@ export default { ...@@ -2645,8 +2085,7 @@ export default {
//获取客户列表 //获取客户列表
getCustomer() { getCustomer() {
this.apipost( this.apipost(
"app_today_visit_GetOrderMyCustomerList", "app_today_visit_GetOrderMyCustomerList", {
{
typeId: this.addMsg.CustomerType, typeId: this.addMsg.CustomerType,
lineId: this.priceObj.LineID, lineId: this.priceObj.LineID,
IsLineId: 1, IsLineId: 1,
...@@ -2663,8 +2102,7 @@ export default { ...@@ -2663,8 +2102,7 @@ export default {
getClientSource() { getClientSource() {
this.addMsg.ClientSource = ""; this.addMsg.ClientSource = "";
this.apipost( this.apipost(
"sellorder_get_GetSellClientSourceEnumList", "sellorder_get_GetSellClientSourceEnumList", {
{
typeId: this.addMsg.CustomerType, typeId: this.addMsg.CustomerType,
}, },
(res) => { (res) => {
...@@ -2872,5 +2310,6 @@ export default { ...@@ -2872,5 +2310,6 @@ export default {
// } // }
}, },
}, },
}; };
</script> </script>
...@@ -460,8 +460,8 @@ ...@@ -460,8 +460,8 @@
width: 200px; width: 200px;
} }
</style> </style>
<template> <template>
<div class="productQueryList" v-loading="loading"> <div class="productQueryList" v-loading="loading">
<ul v-if="list.length != 0"> <ul v-if="list.length != 0">
<li v-for="(item, index) in list" :key="index"> <li v-for="(item, index) in list" :key="index">
...@@ -868,17 +868,19 @@ ...@@ -868,17 +868,19 @@
<el-tooltip class="item" effect="dark" :content="$t('salesModule.LookBM')" placement="top-start"> <el-tooltip class="item" effect="dark" :content="$t('salesModule.LookBM')" placement="top-start">
<el-button @click=" <el-button @click="
goUrl(item.TCID, item.TCNUM) goUrl(item.TCID, item.TCNUM)
" type="primary" style="background-color: #00c6ff !important; border-color: #00c6ff !important" icon="iconfont icon-sousuo"> " type="primary" style="background-color: #00c6ff !important; border-color: #00c6ff !important"
icon="iconfont icon-sousuo">
</el-button> </el-button>
</el-tooltip> </el-tooltip>
<!--关内团后不能在报名 hk 2022-07-13去掉 && item.IsB2B === 1 修改为可报名 --> <!--关内团后不能在报名 hk 2022-07-13去掉 && item.IsB2B === 1 修改为可报名 -->
<el-tooltip class="item" effect="dark" :content="$t('salesModule.LJXD')" placement="top-start" <el-tooltip class="item" effect="dark" :content="$t('salesModule.LJXD')" placement="top-start"
v-if="item.IsPayOrder !== 1 "> v-if="item.IsPayOrder !== 1 ">
<el-button type="primary" style="background-color: #f16c3c !important; border-color: #f16c3c !important" v-if="!TCIDList" <el-button type="primary" style="background-color: #f16c3c !important; border-color: #f16c3c !important"
icon="iconfont icon-fukuan1" @click="goBuy(item)"></el-button> v-if="!TCIDList" icon="iconfont icon-fukuan1" @click="goBuy(item)"></el-button>
</el-tooltip> </el-tooltip>
<el-tooltip class="item" effect="dark" :content="$t('Operation.Op_tripDownLoad')" placement="top-start"> <el-tooltip class="item" effect="dark" :content="$t('Operation.Op_tripDownLoad')" placement="top-start">
<el-button @click="toTrip(item)" type="primary" style="background-color: #47bf8c !important; border-color: #47bf8c !important" <el-button @click="toTrip(item)" type="primary"
style="background-color: #47bf8c !important; border-color: #47bf8c !important"
icon="iconfont icon-xiazai"></el-button> icon="iconfont icon-xiazai"></el-button>
</el-tooltip> </el-tooltip>
<el-tooltip v-if=" <el-tooltip v-if="
...@@ -888,7 +890,8 @@ ...@@ -888,7 +890,8 @@
item.LineID != 8 item.LineID != 8
" class="item" effect="dark" content="直客版预览" placement="top-start"> " class="item" effect="dark" content="直客版预览" placement="top-start">
<el-button @click.native="goB2B(item)" type="primary" <el-button @click.native="goB2B(item)" type="primary"
style="background-color: #f16c3c !important; border-color: #f16c3c !important" icon="iconfont icon-view"></el-button> style="background-color: #f16c3c !important; border-color: #f16c3c !important"
icon="iconfont icon-view"></el-button>
</el-tooltip> </el-tooltip>
</el-button-group> </el-button-group>
<el-button-group v-show="qjGroupId == userInfo.RB_Group_id || S_Travel_Share" style="display: block"> <el-button-group v-show="qjGroupId == userInfo.RB_Group_id || S_Travel_Share" style="display: block">
...@@ -941,8 +944,8 @@ ...@@ -941,8 +944,8 @@
</el-popover> </el-popover>
</el-tooltip> </el-tooltip>
<el-tooltip class="item" effect="dark" :content="'广告数量' + item.AdvertCount" placement="top-start"> <el-tooltip class="item" effect="dark" :content="'广告数量' + item.AdvertCount" placement="top-start">
<el-button type="primary" style="background-color: #e95252 !important; border-color: #e95252 !important" v-if="!TCIDList" <el-button type="primary" style="background-color: #e95252 !important; border-color: #e95252 !important"
icon="iconfont icon-guanggao" @click="goUrlX(item)"></el-button> v-if="!TCIDList" icon="iconfont icon-guanggao" @click="goUrlX(item)"></el-button>
</el-tooltip> </el-tooltip>
</el-button-group> </el-button-group>
</div> </div>
...@@ -979,28 +982,20 @@ ...@@ -979,28 +982,20 @@
</el-dialog> </el-dialog>
<!-- 下单 --> <!-- 下单 -->
<div class="buy-box" v-show="isShowTeamOrder"> <div class="buy-box" v-show="isShowTeamOrder">
<orderForm @success="reSearchPage" @close="closeForm" <orderForm @success="reSearchPage" @close="closeForm" :PTCID="teamInfo.TCID" :POrderId="0" :PBranchId="0"
:PTCID="teamInfo.TCID" :PProductType="1" :showCity="true" :productObj="teamInfo" :pagesTitle="pagesTitle">
:POrderId="0"
:PBranchId="0"
:PProductType="1"
:showCity="true"
:productObj="teamInfo"
:pagesTitle="pagesTitle">
</orderForm> </orderForm>
</div> </div>
</div> </div>
</template> </template>
<script>
<script>
import commonTeamInfo from "../commonPage/commonTeamInfo.vue"; import commonTeamInfo from "../commonPage/commonTeamInfo.vue";
import tripDownLoadCommon from "../commonPage/TripDownLoadCommon.vue"; import tripDownLoadCommon from "../commonPage/TripDownLoadCommon.vue";
import carousel from "../commonPage/carousel.vue"; import carousel from "../commonPage/carousel.vue";
import commonHotelInfo from "../commonPage/commonHotelInfo.vue"; import commonHotelInfo from "../commonPage/commonHotelInfo.vue";
import orderForm from "./order-form2.vue"; import orderForm from "./order-form2.vue";
export default { export default {
props:['loading','list','pagesTitle'], props: ['loading', 'list', 'pagesTitle'],
data() { data() {
return { return {
//当前登录用户信息 //当前登录用户信息
...@@ -1134,10 +1129,10 @@ ...@@ -1134,10 +1129,10 @@
}, },
goUrl(id, tcmun) { goUrl(id, tcmun) {
let path let path
if(this.pagesTitle=='跟团游产品'){ if (this.pagesTitle == '跟团游产品') {
path = 'groupTourOrderByTuan' path = 'groupTourOrderByTuan'
} }
if(this.pagesTitle=='当地游产品'){ if (this.pagesTitle == '当地游产品') {
path = 'groupTourOrderByTuanOne' path = 'groupTourOrderByTuanOne'
} }
this.$router.push({ this.$router.push({
...@@ -1170,16 +1165,17 @@ ...@@ -1170,16 +1165,17 @@
this.isShowTeamOrder = true; this.isShowTeamOrder = true;
}, },
// 产品详情 // 产品详情
getTitledetail(item){ getTitledetail(item) {
if(this.pagesTitle=='跟团游产品'){ if (this.pagesTitle == '跟团游产品') {
this.getJourney(item.ConfigID, item.TCID, item.LineName) this.getJourney(item.ConfigID, item.TCID, item.LineName)
}if(this.pagesTitle=='当地游产品'){ }
if (this.pagesTitle == '当地游产品') {
this.goB2Bdetail(item.ConfigID, item.TCID) this.goB2Bdetail(item.ConfigID, item.TCID)
} }
}, },
goB2Bdetail(ConfigId, tcid) { goB2Bdetail(ConfigId, tcid) {
var B2BDomain = this.CurrentUserInfo.B2BDomain//'www.oytour.com'; var B2BDomain = this.CurrentUserInfo.B2BDomain //'www.oytour.com';
this.$tripUtils.GotoB2BPage(B2BDomain,encodeURIComponent(ConfigId),tcid); this.$tripUtils.GotoB2BPage(B2BDomain, encodeURIComponent(ConfigId), tcid);
}, },
getJourney(id, TCID, title) { getJourney(id, TCID, title) {
var that = this; var that = this;
...@@ -1212,9 +1208,9 @@ ...@@ -1212,9 +1208,9 @@
}, },
mounted() { mounted() {
this.userInfo = this.getLocalStorage(); this.userInfo = this.getLocalStorage();
this.GetSupperOrderEditAuth();//分享权限 this.GetSupperOrderEditAuth(); //分享权限
this.qjGroupId = this.QjGroupId(); this.qjGroupId = this.QjGroupId();
this.CurrentUserInfo = this.userInfo ; this.CurrentUserInfo = this.userInfo;
this.userId = this.userInfo.EmployeeId; this.userId = this.userInfo.EmployeeId;
if (this.$route.query.TCIDList) { if (this.$route.query.TCIDList) {
this.TCIDList = this.$route.query.TCIDList; this.TCIDList = this.$route.query.TCIDList;
...@@ -1222,5 +1218,4 @@ ...@@ -1222,5 +1218,4 @@
}, },
}; };
</script> </script>
\ No newline at end of file
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