Commit 2093a834 authored by 黄媛媛's avatar 黄媛媛
parents 5d2bd1af 0bfaa62c
<style> <style>
.heightauto .el-input{ .heightauto .el-input {
height: auto !important; height: auto !important;
} }
.addPassenger .btmTitle { .addPassenger .btmTitle {
padding: 0 10px; padding: 0 10px;
margin: 20px 0 20px 0; margin: 20px 0 20px 0;
...@@ -134,9 +135,11 @@ ...@@ -134,9 +135,11 @@
top: 0; top: 0;
cursor: pointer; cursor: pointer;
} }
.colorRed input{
.colorRed input {
color: red !important; color: red !important;
} }
</style> </style>
<template> <template>
<div class="addPassenger"> <div class="addPassenger">
...@@ -147,11 +150,13 @@ ...@@ -147,11 +150,13 @@
<el-form :model="addMsg" ref="addMsg" label-position="right" :rules="rules" label-width="100px"> <el-form :model="addMsg" ref="addMsg" label-position="right" :rules="rules" label-width="100px">
<li> <li>
<el-form-item label="身份证号码" prop="IdCard" v-if="LineId === 14 || LineId === 2"> <el-form-item label="身份证号码" prop="IdCard" v-if="LineId === 14 || LineId === 2">
<el-input v-model="addMsg.IdCard" type="text" size=mini class="w230" maxlength="50" placeholder="请填写" @blur.prevent="authentication()"> <el-input v-model="addMsg.IdCard" type="text" size=mini class="w230" maxlength="50" placeholder="请填写"
@blur.prevent="authentication()">
</el-input> </el-input>
</el-form-item> </el-form-item>
<el-form-item label="身份证号码" v-else> <el-form-item label="身份证号码" v-else>
<el-input v-model="addMsg.IdCard" type="text" size=mini class="w230" maxlength="50" placeholder="请填写" @blur.prevent="authentication()"> <el-input v-model="addMsg.IdCard" type="text" size=mini class="w230" maxlength="50" placeholder="请填写"
@blur.prevent="authentication()">
</el-input> </el-input>
</el-form-item> </el-form-item>
</li> </li>
...@@ -169,8 +174,10 @@ ...@@ -169,8 +174,10 @@
</li> </li>
<li> <li>
<el-form-item label="性别" prop="Sex"> <el-form-item label="性别" prop="Sex">
<el-checkbox v-model="addMsg.Sex" true-label='1' false-label='2' @change="Roominformation()"></el-checkbox> <el-checkbox v-model="addMsg.Sex" true-label='1' false-label='2' @change="Roominformation()">
<el-checkbox v-model="addMsg.Sex" true-label='2' false-label='1' @change="Roominformation()"></el-checkbox> </el-checkbox>
<el-checkbox v-model="addMsg.Sex" true-label='2' false-label='1' @change="Roominformation()">
</el-checkbox>
</el-form-item> </el-form-item>
</li> </li>
<li> <li>
...@@ -193,8 +200,8 @@ ...@@ -193,8 +200,8 @@
</li> </li>
<li> <li>
<el-form-item label="出生日期" prop="Birthday"> <el-form-item label="出生日期" prop="Birthday">
<el-date-picker v-model='addMsg.Birthday' class="w230" @change="zhanchuangTips(addMsg.Birthday)" value-format="yyyy-MM-dd" type="date" <el-date-picker v-model='addMsg.Birthday' class="w230" @change="zhanchuangTips(addMsg.Birthday)"
placeholder="选择日期"></el-date-picker> value-format="yyyy-MM-dd" type="date" placeholder="选择日期"></el-date-picker>
</el-form-item> </el-form-item>
</li> </li>
<li> <li>
...@@ -224,8 +231,8 @@ ...@@ -224,8 +231,8 @@
</li> </li>
<li> <li>
<el-form-item label="护照过期日" prop="PassportExpiry"> <el-form-item label="护照过期日" prop="PassportExpiry">
<el-date-picker v-model='addMsg.PassportExpiry' class="w230" :class=" guoqi ? 'colorRed' : ''" @change="timeOver" value-format="yyyy-MM-dd" type="date" <el-date-picker v-model='addMsg.PassportExpiry' class="w230" :class=" guoqi ? 'colorRed' : ''"
placeholder="选择日期"></el-date-picker> @change="timeOver" value-format="yyyy-MM-dd" type="date" placeholder="选择日期"></el-date-picker>
</el-form-item> </el-form-item>
</li> </li>
<li> <li>
...@@ -250,8 +257,6 @@ ...@@ -250,8 +257,6 @@
</el-input> </el-input>
</el-form-item> </el-form-item>
</li> </li>
<li> <li>
<el-form-item label="家庭详细地址" prop="AddressDetail"> <el-form-item label="家庭详细地址" prop="AddressDetail">
<el-input v-model="addMsg.AddressDetail" type="text" class="w230" size=mini maxlength="200" <el-input v-model="addMsg.AddressDetail" type="text" class="w230" size=mini maxlength="200"
...@@ -325,8 +330,10 @@ ...@@ -325,8 +330,10 @@
</li> </li>
<li> <li>
<el-form-item label="是否占床"> <el-form-item label="是否占床">
<el-checkbox v-model="addMsg.IsBed" name="IsBed" :true-label='1' :false-label='0' @change="Roominformation()"></el-checkbox> <el-checkbox v-model="addMsg.IsBed" name="IsBed" :true-label='1' :false-label='0'
<el-checkbox v-model="addMsg.IsBed" name="IsBed" :true-label='0' :false-label='1' @change="Roominformation()"></el-checkbox> @change="Roominformation()"></el-checkbox>
<el-checkbox v-model="addMsg.IsBed" name="IsBed" :true-label='0' :false-label='1'
@change="Roominformation()"></el-checkbox>
</el-form-item> </el-form-item>
</li> </li>
<li v-if="isOneDay !== 1"> <li v-if="isOneDay !== 1">
...@@ -335,8 +342,10 @@ ...@@ -335,8 +342,10 @@
<el-option v-for="item in roomlist" :key="item.ID" :label="item.HouseInfo" :value="item.ID"> <el-option v-for="item in roomlist" :key="item.ID" :label="item.HouseInfo" :value="item.ID">
</el-option> </el-option>
</el-select> </el-select>
<input type="button" value="新增房间" class="normalBtn" v-if="!UpdateOrderHouseBtn" @click="addhouse()" title="需要拼房,但没有双人间(半间)的点击新增房间"/> <input type="button" value="新增房间" class="normalBtn" v-if="!UpdateOrderHouseBtn" @click="addhouse()"
<input type="button" value="刷新房间" class="normalBtn" v-if="UpdateOrderHouseBtn" @click="SellUpdateOrderHouse()" title="选择人数后没有房间的点击刷新"/> title="需要拼房,但没有双人间(半间)的点击新增房间" />
<input type="button" value="刷新房间" class="normalBtn" v-if="UpdateOrderHouseBtn"
@click="SellUpdateOrderHouse()" title="选择人数后没有房间的点击刷新" />
</el-form-item> </el-form-item>
</li> </li>
<li> <li>
...@@ -355,7 +364,7 @@ ...@@ -355,7 +364,7 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
</li> </li>
<li > <li>
<el-form-item label="签证状态"> <el-form-item label="签证状态">
<el-select v-model="addMsg.VisaState" filterable size=mini class="w120"> <el-select v-model="addMsg.VisaState" filterable size=mini class="w120">
<el-option :key="0" label="正常" :value="0"> <el-option :key="0" label="正常" :value="0">
...@@ -396,10 +405,7 @@ ...@@ -396,10 +405,7 @@
</el-form-item> </el-form-item>
<el-form-item label="景点"> <el-form-item label="景点">
<el-select v-model="addMsg.CouponsIds" multiple placeholder="请选择" class="heightauto"> <el-select v-model="addMsg.CouponsIds" multiple placeholder="请选择" class="heightauto">
<el-option <el-option v-for="item in JingDianList" :key="item.CouponsId" :label="item.CouponsName"
v-for="item in JingDianList"
:key="item.CouponsId"
:label="item.CouponsName"
:value="item.CouponsId"> :value="item.CouponsId">
</el-option> </el-option>
</el-select> </el-select>
...@@ -436,7 +442,6 @@ ...@@ -436,7 +442,6 @@
</li> </li>
</div> </div>
<p> <p>
</p> </p>
<div <div
style="width: 100%; min-height: 200px; background: #f1f1f1; line-height: 200px; margin: 10px 0; border-radius: 4px;position: relative; text-align: center;"> style="width: 100%; min-height: 200px; background: #f1f1f1; line-height: 200px; margin: 10px 0; border-radius: 4px;position: relative; text-align: center;">
...@@ -449,7 +454,6 @@ ...@@ -449,7 +454,6 @@
<input type="button" value="开始识别" class="normalBtn" @click="commonTextDiscern" /> <input type="button" value="开始识别" class="normalBtn" @click="commonTextDiscern" />
</div> </div>
</div> </div>
<p class="btmTitle">日本签证补录资料</p> <p class="btmTitle">日本签证补录资料</p>
<div class="cont1"> <div class="cont1">
<el-form label-width="120px"> <el-form label-width="120px">
...@@ -470,7 +474,6 @@ ...@@ -470,7 +474,6 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row :gutter="40"> <el-row :gutter="40">
<el-col :span="6"> <el-col :span="6">
<el-form-item label="曾有国籍"> <el-form-item label="曾有国籍">
...@@ -493,7 +496,6 @@ ...@@ -493,7 +496,6 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row :gutter="40"> <el-row :gutter="40">
<el-col :span="6"> <el-col :span="6">
<el-form-item label="配偶/监护人职位"> <el-form-item label="配偶/监护人职位">
...@@ -519,7 +521,6 @@ ...@@ -519,7 +521,6 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row :gutter="40"> <el-row :gutter="40">
<el-col :span="6"> <el-col :span="6">
<el-form-item label="上次去时间" prop="Birthday"> <el-form-item label="上次去时间" prop="Birthday">
...@@ -544,7 +545,6 @@ ...@@ -544,7 +545,6 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row :gutter="40"> <el-row :gutter="40">
<el-col :span="6"> <el-col :span="6">
<el-form-item label="酒店电话/友人电话" prop="Birthday"> <el-form-item label="酒店电话/友人电话" prop="Birthday">
...@@ -567,7 +567,6 @@ ...@@ -567,7 +567,6 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row :gutter="40"> <el-row :gutter="40">
<el-col :span="6"> <el-col :span="6">
<el-form-item label="紧急人电话" prop="Birthday"> <el-form-item label="紧急人电话" prop="Birthday">
...@@ -593,7 +592,6 @@ ...@@ -593,7 +592,6 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row :gutter="40"> <el-row :gutter="40">
<el-col :span="6"> <el-col :span="6">
<el-form-item label="报名旅行社" prop="Birthday"> <el-form-item label="报名旅行社" prop="Birthday">
...@@ -612,7 +610,6 @@ ...@@ -612,7 +610,6 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
</el-form> </el-form>
</div> </div>
<p style="text-align: center; padding: 20px 0;"> <p style="text-align: center; padding: 20px 0;">
...@@ -629,9 +626,9 @@ ...@@ -629,9 +626,9 @@
export default { export default {
data() { data() {
return { return {
TravelTypeList:[], TravelTypeList: [],
UnitTypeList:[], UnitTypeList: [],
DutyTypeList:[], DutyTypeList: [],
ppAge: 0, ppAge: 0,
loading: false, loading: false,
appkey_ocr: "OGAhU38ib8EweXMtPVqCbkpN", appkey_ocr: "OGAhU38ib8EweXMtPVqCbkpN",
...@@ -667,9 +664,9 @@ ...@@ -667,9 +664,9 @@
Duty: "", Duty: "",
EconomicCapabilityList: [], EconomicCapabilityList: [],
Remarks: "", Remarks: "",
TravelType:'', TravelType: '',
UnitType:'', UnitType: '',
DutyType:'', DutyType: '',
IsHightSchool: "2", IsHightSchool: "2",
IsRecommend: "2", IsRecommend: "2",
PassportIssued: "", PassportIssued: "",
...@@ -708,21 +705,27 @@ ...@@ -708,21 +705,27 @@
VisaReplaceId: "0", VisaReplaceId: "0",
SafeReplaceId: "0", SafeReplaceId: "0",
VisaState: 0, //签证状态 VisaState: 0, //签证状态
HouseId:'',//房间信息 HouseId: '', //房间信息
CouponsIds: [] CouponsIds: []
}, },
UpdateOrderHouseBtn: false, UpdateOrderHouseBtn: false,
EconomicCapabilityS: [], EconomicCapabilityS: [],
rules: { rules: {
DutyType: [ DutyType: [{
{ required: true, message: '请选择职务类型', trigger: 'change' } required: true,
], message: '请选择职务类型',
UnitType: [ trigger: 'change'
{ required: true, message: '请选择单位类型', trigger: 'change' } }],
], UnitType: [{
TravelType: [ required: true,
{ required: true, message: '请选择出游类型', trigger: 'change' } message: '请选择单位类型',
], trigger: 'change'
}],
TravelType: [{
required: true,
message: '请选择出游类型',
trigger: 'change'
}],
IdCard: [{ IdCard: [{
required: true, required: true,
message: "请填身份证号码", message: "请填身份证号码",
...@@ -797,8 +800,7 @@ ...@@ -797,8 +800,7 @@
required: true, required: true,
message: "请填写手机号码", message: "请填写手机号码",
trigger: "blur" trigger: "blur"
} }],
],
Nationality: [{ Nationality: [{
required: true, required: true,
message: "请选择国籍", message: "请选择国籍",
...@@ -831,7 +833,7 @@ ...@@ -831,7 +833,7 @@
AirStartStatus: 2, AirStartStatus: 2,
SafeStartStatus: 2, SafeStartStatus: 2,
btnState: true, btnState: true,
roomlist:[], roomlist: [],
isOneDay: 0, isOneDay: 0,
LineId: 0, LineId: 0,
EndDateStr: '', EndDateStr: '',
...@@ -840,54 +842,48 @@ ...@@ -840,54 +842,48 @@
}; };
}, },
methods: { methods: {
getDutyType(){ getDutyType() {
this.apipost( this.apipost(
"dict_get_GetDictValueCommonList", "dict_get_GetDictValueCommonList", {
{
Key: 'SK_CRM_DutyType', Key: 'SK_CRM_DutyType',
}, },
res => { res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.DutyTypeList = res.data.data this.DutyTypeList = res.data.data
}else{ } else {}
}
}, },
err => {} err => {}
); );
}, },
getUnitType(){ getUnitType() {
this.apipost( this.apipost(
"dict_get_GetDictValueCommonList", "dict_get_GetDictValueCommonList", {
{
Key: 'SK_CRM_UnitType', Key: 'SK_CRM_UnitType',
}, },
res => { res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.UnitTypeList = res.data.data this.UnitTypeList = res.data.data
}else{ } else {}
}
}, },
err => {} err => {}
); );
}, },
getTravelType(){ getTravelType() {
this.apipost( this.apipost(
"dict_get_GetDictValueCommonList", "dict_get_GetDictValueCommonList", {
{
Key: 'SK_CRM_TravelType', Key: 'SK_CRM_TravelType',
}, },
res => { res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.TravelTypeList = res.data.data this.TravelTypeList = res.data.data
}else{ } else {}
}
}, },
err => {} err => {}
); );
}, },
jsGetAge(strBirthday){ jsGetAge(strBirthday) {
let returnAge; let returnAge;
let strBirthdayArr=strBirthday.split("-"); let strBirthdayArr = strBirthday.split("-");
let birthYear = Number(strBirthdayArr[0]); let birthYear = Number(strBirthdayArr[0]);
let birthMonth = Number(strBirthdayArr[1]); let birthMonth = Number(strBirthdayArr[1]);
let birthDay = Number(strBirthdayArr[2]); let birthDay = Number(strBirthdayArr[2]);
...@@ -895,55 +891,44 @@ ...@@ -895,55 +891,44 @@
let nowYear = d.getFullYear(); let nowYear = d.getFullYear();
let nowMonth = d.getMonth() + 1; let nowMonth = d.getMonth() + 1;
let nowDay = d.getDate(); let nowDay = d.getDate();
if(nowYear === birthYear){ if (nowYear === birthYear) {
returnAge = 1;//同年 则为0岁 returnAge = 1; //同年 则为0岁
} else { } else {
let ageDiff = nowYear - birthYear ; //年之差 let ageDiff = nowYear - birthYear; //年之差
if(ageDiff > 0){ if (ageDiff > 0) {
if(nowMonth == birthMonth) { if (nowMonth == birthMonth) {
let dayDiff = nowDay - birthDay;//日之差 let dayDiff = nowDay - birthDay; //日之差
if(dayDiff < 0) if (dayDiff < 0) {
{
returnAge = ageDiff - 1; returnAge = ageDiff - 1;
} else {
returnAge = ageDiff;
} }
else } else {
{ let monthDiff = nowMonth - birthMonth; //月之差
returnAge = ageDiff ; if (monthDiff < 0) {
}
}
else
{
let monthDiff = nowMonth - birthMonth;//月之差
if(monthDiff < 0)
{
returnAge = ageDiff - 1; returnAge = ageDiff - 1;
} } else {
else returnAge = ageDiff;
{
returnAge = ageDiff ;
}
} }
} }
else } else {
{ returnAge = -1; //返回-1 表示出生日期输入错误 晚于今天
returnAge = -1;//返回-1 表示出生日期输入错误 晚于今天
} }
} }
return returnAge;//返回周岁年龄 return returnAge; //返回周岁年龄
}, },
zhanchuangTips: function (b){ zhanchuangTips: function (b) {
let age = this.jsGetAge(b) let age = this.jsGetAge(b)
this.ppAge = age this.ppAge = age
if (age == -1) { if (age == -1) {
this.$message.error('出生日期'+ b +'有误') this.$message.error('出生日期' + b + '有误')
this.addMsg.Birthday = '' this.addMsg.Birthday = ''
return return
} }
}, },
getJingDIan: function (){ getJingDIan: function () {
this.apipost( this.apipost(
"sellorder_post_GetGuestScenicRefundList", "sellorder_post_GetGuestScenicRefundList", {
{
TCID: this.addMsg.TCID, TCID: this.addMsg.TCID,
OrderId: this.addMsg.OrderId, OrderId: this.addMsg.OrderId,
GuestId: this.addMsg.Id GuestId: this.addMsg.Id
...@@ -951,17 +936,17 @@ ...@@ -951,17 +936,17 @@
res => { res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.JingDianList = res.data.data this.JingDianList = res.data.data
}else{ } else {
this.$message.error('操作失败') this.$message.error('操作失败')
} }
}, },
err => {} err => {}
); );
}, },
CompareDate(d1, d2){ CompareDate(d1, d2) {
return ((new Date(d1.replace(/-/g,"\/"))) < (new Date(d2.replace(/-/g,"\/")))); return ((new Date(d1.replace(/-/g, "\/"))) < (new Date(d2.replace(/-/g, "\/"))));
}, },
timeOver: function(){ timeOver: function () {
this.guoqi = this.CompareDate(this.addMsg.PassportExpiry, this.EndDateStr) this.guoqi = this.CompareDate(this.addMsg.PassportExpiry, this.EndDateStr)
if (this.guoqi) { if (this.guoqi) {
this.$message.error("客人护照过期时间小于团队出发日期后六个月") this.$message.error("客人护照过期时间小于团队出发日期后六个月")
...@@ -1147,8 +1132,7 @@ ...@@ -1147,8 +1132,7 @@
chinaFirstName = word.substring(0, 1); chinaFirstName = word.substring(0, 1);
chinaLastName = word.substring(1, word.length); chinaLastName = word.substring(1, word.length);
} }
} catch (e) { } catch (e) {}
}
} }
} else if (word_name == '性别') { } else if (word_name == '性别') {
if (word == '女/F' || word.indexOf('女') != -1 || word.indexOf('F') != -1) { if (word == '女/F' || word.indexOf('女') != -1 || word.indexOf('F') != -1) {
...@@ -1180,8 +1164,7 @@ ...@@ -1180,8 +1164,7 @@
enFirstName = word.split(',')[0]; enFirstName = word.split(',')[0];
enLastName = word.split(',')[1]; enLastName = word.split(',')[1];
} }
} catch (e) { } catch (e) {}
}
} }
} else if (word_name == '护照号码') { } else if (word_name == '护照号码') {
if (word.indexOf('i') != -1) { if (word.indexOf('i') != -1) {
...@@ -1270,8 +1253,7 @@ ...@@ -1270,8 +1253,7 @@
chinaFirstName = word.split('/')[0]; chinaFirstName = word.split('/')[0];
enFirstName = word.split('/')[1]; enFirstName = word.split('/')[1];
} }
} catch (e) { } catch (e) {}
}
} else if (word_name == '名') { } else if (word_name == '名') {
try { try {
chinaLastName = word; chinaLastName = word;
...@@ -1281,8 +1263,7 @@ ...@@ -1281,8 +1263,7 @@
chinaLastName = word.split('/')[0]; chinaLastName = word.split('/')[0];
enLastName = word.split('/')[1]; enLastName = word.split('/')[1];
} }
} catch (e) { } catch (e) {}
}
} else if (word_name == '性别') { } else if (word_name == '性别') {
try { try {
if (word == 'M' || word.indexOf('M') != -1 || word.indexOf('m') == -1 || word.indexOf('男') != -1) { if (word == 'M' || word.indexOf('M') != -1 || word.indexOf('m') == -1 || word.indexOf('男') != -1) {
...@@ -1296,8 +1277,7 @@ ...@@ -1296,8 +1277,7 @@
'Name': '女' 'Name': '女'
}; };
} }
} catch (e) { } catch (e) {}
}
} else if (word_name == '出生日期') { } else if (word_name == '出生日期') {
birthday = this.formatDateWithTaiwan(word) birthday = this.formatDateWithTaiwan(word)
} else if (word_name == '护照号') { } else if (word_name == '护照号') {
...@@ -1414,8 +1394,7 @@ ...@@ -1414,8 +1394,7 @@
'Name': '女' 'Name': '女'
}; };
} }
} catch (e) { } catch (e) {}
}
} else if (word_name == '出生日期') { } else if (word_name == '出生日期') {
birthday = this.formatDateWithTaiwan(word) birthday = this.formatDateWithTaiwan(word)
} else if (word_name == 'name') { } else if (word_name == 'name') {
...@@ -1437,8 +1416,7 @@ ...@@ -1437,8 +1416,7 @@
enFirstName = word; enFirstName = word;
enLastName = word; enLastName = word;
} }
} catch (e) { } catch (e) {}
}
} }
} else if (word_name == '护照号码') { } else if (word_name == '护照号码') {
if (word.indexOf('i') != -1) { if (word.indexOf('i') != -1) {
...@@ -1647,7 +1625,6 @@ ...@@ -1647,7 +1625,6 @@
}, },
submitForm(addMsg, type) { submitForm(addMsg, type) {
if (this.btnState === true) { if (this.btnState === true) {
//提交创建、修改表单 //提交创建、修改表单
this.$refs[addMsg].validate(valid => { this.$refs[addMsg].validate(valid => {
this.btnState = false this.btnState = false
...@@ -1665,7 +1642,6 @@ ...@@ -1665,7 +1642,6 @@
if ((this.LineId === 14 || this.LineId === 2) && this.addMsg.IdCard === '') { if ((this.LineId === 14 || this.LineId === 2) && this.addMsg.IdCard === '') {
return this.$message.error('请填写身份证号码!'); return this.$message.error('请填写身份证号码!');
} }
this.addMsg.EconomicCapabilityList = []; this.addMsg.EconomicCapabilityList = [];
this.EconomicCapabilityS.forEach(x => { this.EconomicCapabilityS.forEach(x => {
if (x.isShow == true) { if (x.isShow == true) {
...@@ -1679,7 +1655,7 @@ ...@@ -1679,7 +1655,7 @@
if (this.addMsg.Marriage == "") { if (this.addMsg.Marriage == "") {
this.addMsg.Marriage = "0"; this.addMsg.Marriage = "0";
} }
if(this.ppAge <= 10 && this.addMsg.IsBed == 1) { if (this.ppAge <= 10 && this.addMsg.IsBed == 1) {
this.$confirm(this.$t('该游客未满十岁确认占床?'), this.$t('tips.tips'), { this.$confirm(this.$t('该游客未满十岁确认占床?'), this.$t('tips.tips'), {
confirmButtonText: '确认', confirmButtonText: '确认',
cancelButtonText: '取消', cancelButtonText: '取消',
...@@ -1693,7 +1669,7 @@ ...@@ -1693,7 +1669,7 @@
this.seveInfo(type) this.seveInfo(type)
} }
}, },
seveInfo(type){ seveInfo(type) {
this.apipost( this.apipost(
"sellorder_post_SetTravelGuestInfo_V2", "sellorder_post_SetTravelGuestInfo_V2",
this.addMsg, this.addMsg,
...@@ -1719,7 +1695,7 @@ ...@@ -1719,7 +1695,7 @@
this.apipost( this.apipost(
"dict_post_GetList", { "dict_post_GetList", {
Key: "SK_Visa_EconomicCapability", Key: "SK_Visa_EconomicCapability",
IsTimer:1 IsTimer: 1
}, },
res => { res => {
this.EconomicCapabilityS = res.data.data; this.EconomicCapabilityS = res.data.data;
...@@ -1924,11 +1900,10 @@ ...@@ -1924,11 +1900,10 @@
this.SafeStartStatus = this.addMsg.IsNeedSafe; this.SafeStartStatus = this.addMsg.IsNeedSafe;
this.zhanchuangTips(obj.Birthday) this.zhanchuangTips(obj.Birthday)
this.$forceUpdate(); this.$forceUpdate();
this.getHouselist(obj.Sex.toString(),obj.TCID,obj.OrderId,obj.IsBed) this.getHouselist(obj.Sex.toString(), obj.TCID, obj.OrderId, obj.IsBed)
if ( this.$route.query.isOneDay === 1) { if (this.$route.query.isOneDay === 1) {
this.addMsg.IsBed = 0 this.addMsg.IsBed = 0
} }
// this.Roominformation()
} else { } else {
this.$message.error(); this.$message.error();
} }
...@@ -2023,7 +1998,7 @@ ...@@ -2023,7 +1998,7 @@
this.addMsg.AirReplaceId = "0"; this.addMsg.AirReplaceId = "0";
this.addMsg.VisaReplaceId = "0"; this.addMsg.VisaReplaceId = "0";
this.addMsg.SafeReplaceId = "0"; this.addMsg.SafeReplaceId = "0";
this.addMsg.VisaState=0; this.addMsg.VisaState = 0;
this.GetGuestMustVisaAir(); this.GetGuestMustVisaAir();
let userInfo = this.getLocalStorage(); let userInfo = this.getLocalStorage();
var BranchName = userInfo.BranchName; var BranchName = userInfo.BranchName;
...@@ -2039,15 +2014,19 @@ ...@@ -2039,15 +2014,19 @@
} }
this.addMsg.IssuingAuthority = "公安部出入境管理局"; this.addMsg.IssuingAuthority = "公安部出入境管理局";
}, },
Roominformation(){ Roominformation() {
let TCIDs = this.addMsg.TCID; let TCIDs = this.addMsg.TCID;
let OrderId = this.addMsg.OrderId; let OrderId = this.addMsg.OrderId;
let IsBed = this.addMsg.IsBed; let IsBed = this.addMsg.IsBed;
let Sex = this.addMsg.Sex; let Sex = this.addMsg.Sex;
if(Sex ==1 || Sex == 2) { if (Sex == 1 || Sex == 2) {
this.apipost( this.apipost(
"sellorder_post_GetHouseDetailsByOrderID", "sellorder_post_GetHouseDetailsByOrderID", {
{TCIDs: TCIDs, OrderId: OrderId, Sex: Sex, IsBed: IsBed}, TCIDs: TCIDs,
OrderId: OrderId,
Sex: Sex,
IsBed: IsBed
},
res => { res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.roomlist = res.data.data; this.roomlist = res.data.data;
...@@ -2059,16 +2038,16 @@ ...@@ -2059,16 +2038,16 @@
this.$message.error(res.data.message); this.$message.error(res.data.message);
} }
}, },
err => { err => {}
}
); );
} }
}, },
SellUpdateOrderHouse(){ SellUpdateOrderHouse() {
let OrderId = this.addMsg.OrderId; let OrderId = this.addMsg.OrderId;
this.apipost( this.apipost(
"sellorder_post_SellUpdateOrderHouse_V2", "sellorder_post_SellUpdateOrderHouse_V2", {
{OrderId: OrderId}, OrderId: OrderId
},
res => { res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.Roominformation() this.Roominformation()
...@@ -2077,15 +2056,18 @@ ...@@ -2077,15 +2056,18 @@
this.$message.error(res.data.message); this.$message.error(res.data.message);
} }
}, },
err => { err => {}
}
); );
}, },
getHouselist(Sex,TCID,OrderId,IsBed){ getHouselist(Sex, TCID, OrderId, IsBed) {
if(Sex ==1 || Sex == 2){ if (Sex == 1 || Sex == 2) {
this.apipost( this.apipost(
"sellorder_post_GetHouseDetailsByOrderID", "sellorder_post_GetHouseDetailsByOrderID", {
{TCIDs:TCID,OrderId:OrderId,Sex:Sex,IsBed:IsBed}, TCIDs: TCID,
OrderId: OrderId,
Sex: Sex,
IsBed: IsBed
},
res => { res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.roomlist = res.data.data; this.roomlist = res.data.data;
...@@ -2095,17 +2077,19 @@ ...@@ -2095,17 +2077,19 @@
}, },
err => {} err => {}
); );
}else { } else {
this.$message.error('请选择性别'); this.$message.error('请选择性别');
} }
}, },
addhouse(){ addhouse() {
let orderId = this.addMsg.OrderId; let orderId = this.addMsg.OrderId;
let sex = this.addMsg.Sex; let sex = this.addMsg.Sex;
if(sex ==1 || sex == 2) { if (sex == 1 || sex == 2) {
this.apipost( this.apipost(
"sellorder_get_BatchSetOrderHouse_V2", "sellorder_get_BatchSetOrderHouse_V2", {
{orderId: orderId, sex: sex,}, orderId: orderId,
sex: sex,
},
res => { res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.Roominformation() this.Roominformation()
...@@ -2113,22 +2097,21 @@ ...@@ -2113,22 +2097,21 @@
this.$message.error(res.data.message); this.$message.error(res.data.message);
} }
}, },
err => { err => {}
}
); );
} }
}, },
authentication() { authentication() {
let IdCard = this.addMsg.IdCard; let IdCard = this.addMsg.IdCard;
if (this.$route.query.guestId == 0) { if (this.$route.query.guestId == 0) {
if(IdCard.length == 18){ if (IdCard.length == 18) {
this.apipost( this.apipost(
"sellorder_post_GetGusetByIDCard", "sellorder_post_GetGusetByIDCard", {
{IdCard: this.addMsg.IdCard,}, IdCard: this.addMsg.IdCard,
},
res => { res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
let obj = res.data.data; let obj = res.data.data;
this.addMsg.SurName = obj.SurName; this.addMsg.SurName = obj.SurName;
this.addMsg.Name = obj.Name; this.addMsg.Name = obj.Name;
this.addMsg.ESurName = obj.ESurName; this.addMsg.ESurName = obj.ESurName;
...@@ -2152,24 +2135,18 @@ ...@@ -2152,24 +2135,18 @@
this.addMsg.HistoryRecord = obj.HistoryRecord; this.addMsg.HistoryRecord = obj.HistoryRecord;
this.addMsg.Duty = obj.Duty; this.addMsg.Duty = obj.Duty;
this.addMsg.Remarks = obj.Remarks; this.addMsg.Remarks = obj.Remarks;
this.addMsg.TravelType =Number(obj.TravelType); this.addMsg.TravelType = Number(obj.TravelType);
this.addMsg.UnitType = Number(obj.UnitType); this.addMsg.UnitType = Number(obj.UnitType);
this.addMsg.DutyType = Number(obj.DutyType); this.addMsg.DutyType = Number(obj.DutyType);
this.addMsg.IsHightSchool = obj.IsHightSchool; this.addMsg.IsHightSchool = obj.IsHightSchool;
this.addMsg.IsRecommend = obj.IsRecommend; this.addMsg.IsRecommend = obj.IsRecommend;
this.addMsg.Id = this.$route.query.guestId; this.addMsg.Id = this.$route.query.guestId;
this.addMsg.TCID = this.$route.query.TCID; this.addMsg.TCID = this.$route.query.TCID;
this.addMsg.OrderId = this.$route.query.orderId; this.addMsg.OrderId = this.$route.query.orderId;
this.Roominformation() //调取下房间信息 this.Roominformation() //调取下房间信息
} else {
// this.$message.error(res.data.message);
} }
}, },
err => { err => {}
}
); );
} }
} }
......
...@@ -1770,6 +1770,30 @@ ...@@ -1770,6 +1770,30 @@
}, },
//保存数据 //保存数据
SaveData(type) { SaveData(type) {
if (!this.postData.DayNum) {
this.postData.DayNum = 0;
}
if (!this.postData.GuestNum) {
this.postData.GuestNum = 0;
}
if (!this.postData.FocNum) {
this.postData.FocNum = 0;
}
if (!this.postData.SalePrice) {
this.postData.SalePrice = 0;
}
if (!this.postData.SingleRoomPrice) {
this.postData.SingleRoomPrice = 0;
}
if (!this.postData.HotelDisNum) {
this.postData.HotelDisNum = 0;
}
if (!this.postData.DinnerDisNum) {
this.postData.DinnerDisNum = 0;
}
if (!this.postData.TicketDisNum) {
this.postData.TicketDisNum = 0;
}
//酒店默认值赋值 //酒店默认值赋值
if (this.postData.SWTHotelList && this.postData.SWTHotelList.length > 0) { if (this.postData.SWTHotelList && this.postData.SWTHotelList.length > 0) {
this.postData.SWTHotelList.forEach(item => { this.postData.SWTHotelList.forEach(item => {
...@@ -1835,6 +1859,24 @@ ...@@ -1835,6 +1859,24 @@
}) })
}) })
} }
if (this.postData.SWTBusOtherList && this.postData.SWTBusOtherList.length > 0) {
this.postData.SWTBusOtherList.forEach(rootItem => {
rootItem.SubBusList.forEach(item => {
if (!item.Kilometre) {
item.Kilometre = 0;
}
if (!item.VNDPrice) {
item.VNDPrice = 0;
}
if (!item.Times) {
item.Times = 0;
}
if (!item.Price) {
item.Price = 0;
}
})
})
}
//船票默认值赋值 //船票默认值赋值
if (this.postData.SWTShipList && this.postData.SWTShipList.length > 0) { if (this.postData.SWTShipList && this.postData.SWTShipList.length > 0) {
this.postData.SWTShipList.forEach(item => { this.postData.SWTShipList.forEach(item => {
......
...@@ -29,6 +29,7 @@ ...@@ -29,6 +29,7 @@
.Ht_hotelSelect .el-input { .Ht_hotelSelect .el-input {
height: auto !important; height: auto !important;
} }
</style> </style>
<template> <template>
<div class="Traveltrip-item-box"> <div class="Traveltrip-item-box">
...@@ -101,10 +102,9 @@ ...@@ -101,10 +102,9 @@
<td valign="middle" colspan="5"> <td valign="middle" colspan="5">
<!--酒店--> <!--酒店-->
<el-select v-if="!dayObj.isRead &&IsDirect==1&&TeamType!=2" class="w478 Ht_hotelSelect" size="mini" <el-select v-if="!dayObj.isRead &&IsDirect==1&&TeamType!=2" class="w478 Ht_hotelSelect" size="mini"
v-model="HotelChooseArray" v-model="HotelChooseArray" multiple :multiple-limit="(TeamType==0||TeamType==3)?3:1"
multiple :multiple-limit="(TeamType==0||TeamType==3)?3:1" @visible-change="getHotelList($event)" @visible-change="getHotelList($event)" @change="changeHotelList()" filterable placeholder="请选择"
@change="changeHotelList()" :disabled="IsOpenHotel==1?true:false">
filterable placeholder="请选择" :disabled="IsOpenHotel==1?true:false">
<el-option v-for="item in QHotelList" :label="item.Name" :value="item.ID" :key="item.ID"> <el-option v-for="item in QHotelList" :label="item.Name" :value="item.ID" :key="item.ID">
<span style="float: left">{{ getHotelItemLabel(item) }}</span> <span style="float: left">{{ getHotelItemLabel(item) }}</span>
<span style="float: right; color: #8492a6; font-size: 13px">{{ item.Inventory }}</span> <span style="float: right; color: #8492a6; font-size: 13px">{{ item.Inventory }}</span>
...@@ -117,8 +117,8 @@ ...@@ -117,8 +117,8 @@
</span> </span>
<span v-if="hotelArray.length>0">&nbsp;/或同级</span> <span v-if="hotelArray.length>0">&nbsp;/或同级</span>
</span> </span>
<el-input type="text" v-if="!dayObj.isRead&&IsDirect==0&&hotelArray[0]" v-model="hotelArray[0].HotelName" @change="noDirectHotelChange" <el-input type="text" v-if="!dayObj.isRead&&IsDirect==0&&hotelArray[0]" v-model="hotelArray[0].HotelName"
class="w478"></el-input> @change="noDirectHotelChange" class="w478"></el-input>
<span class="TC-hotelName" v-if="dayObj.isRead&&IsDirect==0"> <span class="TC-hotelName" v-if="dayObj.isRead&&IsDirect==0">
{{hotelArray[0].HotelName}} &nbsp;/或同级 {{hotelArray[0].HotelName}} &nbsp;/或同级
</span> </span>
...@@ -130,7 +130,7 @@ ...@@ -130,7 +130,7 @@
</template> </template>
<script> <script>
export default { export default {
props: ["dayObj", "DayList", "CurrentIndex", "WarmTripDescribe", "IsDirect", "subConfig","TeamType", props: ["dayObj", "DayList", "CurrentIndex", "WarmTripDescribe", "IsDirect", "subConfig", "TeamType",
"IsOpenHotel" //0可以添加删除酒店,1-不能修改酒店信息 "IsOpenHotel" //0可以添加删除酒店,1-不能修改酒店信息
], ],
data() { data() {
...@@ -139,64 +139,13 @@ ...@@ -139,64 +139,13 @@
QDinnerList: [], QDinnerList: [],
QDinnerList2: [], QDinnerList2: [],
DefaultSelectValue: 0, DefaultSelectValue: 0,
breakFirstList: [{ breakFirstList: [ ],
Id: 1,
name: "酒店内享用早餐"
},
{
Id: 2,
name: "酒店外享用早餐"
},
{
Id: 4,
name: "机上简餐或自理"
},
{
Id: 3,
name: "方便游玩敬请自理"
}
],
showDining: false, showDining: false,
HotelChooseArray: this.dayObj.HotelChooseArray, HotelChooseArray: this.dayObj.HotelChooseArray,
dinnerArray: this.dayObj.DinnerArray, dinnerArray: this.dayObj.DinnerArray,
hotelArray: this.dayObj.HotelArray, hotelArray: this.dayObj.HotelArray,
otherDinner: [{ otherDinner: [],
ID: -1, hotelHotSpringDinner: [],
Name: "机上简餐或自理",
City: 0,
About: "",
PicPath: ""
},
{
ID: -2,
Name: "酒店享用",
City: 0,
About: "",
PicPath: ""
},
{
ID: -5,
Name: "方便游玩敬请自理",
City: 0,
About: "",
PicPath: ""
}
],
hotelHotSpringDinner: [{
ID: -3,
Name: "温泉御膳料理",
City: 0,
About: "",
PicPath: ""
},
{
ID: -4,
Name: "酒店自助百汇",
City: 0,
About: "",
PicPath: ""
}
],
isFirstInitDinner: false //初始含有酒店列表,加载完酒店数据在初始化餐厅列表 isFirstInitDinner: false //初始含有酒店列表,加载完酒店数据在初始化餐厅列表
}; };
}, },
...@@ -204,13 +153,14 @@ ...@@ -204,13 +153,14 @@
// 非直采酒店 // 非直采酒店
noDirectHotelChange: function () { noDirectHotelChange: function () {
if (this.hotelArray[0].MD5Sign === '') { if (this.hotelArray[0].MD5Sign === '') {
this.hotelArray[0].MD5Sign= this.md5(`DayNum=${this.hotelArray[0].DayNum}&Type=3${new Date()}`) this.hotelArray[0].MD5Sign = this.md5(`DayNum=${this.hotelArray[0].DayNum}&Type=3${new Date()}`)
} }
}, },
//非直采餐厅 //非直采餐厅
noDirectDinnerChange: function (dIndex) { noDirectDinnerChange: function (dIndex) {
if (this.dinnerArray[dIndex].MD5Sign === '') { if (this.dinnerArray[dIndex].MD5Sign === '') {
this.dinnerArray[dIndex].MD5Sign= this.md5(`DayNum=${this.dinnerArray[dIndex].DayNum}&Type=2${new Date()}`); this.dinnerArray[dIndex].MD5Sign = this.md5(
`DayNum=${this.dinnerArray[dIndex].DayNum}&Type=2${new Date()}`);
} }
}, },
//获取交通城市 //获取交通城市
...@@ -289,7 +239,6 @@ ...@@ -289,7 +239,6 @@
let hotelDescribeObj = this.$tripUtils.tripDescribeObj(); let hotelDescribeObj = this.$tripUtils.tripDescribeObj();
hotelDescribeObj.Id = hotelObj.HotelId; hotelDescribeObj.Id = hotelObj.HotelId;
hotelDescribeObj.Describe = obj.WarmTip; hotelDescribeObj.Describe = obj.WarmTip;
//this.WarmTripDescribe.HotelDescribeArr.push(hotelDescribeObj);
if (hotelDescribeObj.Describe != null && hotelDescribeObj.Describe != "") { if (hotelDescribeObj.Describe != null && hotelDescribeObj.Describe != "") {
this.dayObj.WarmTipObj.Description += "<p>" + hotelDescribeObj.Describe + "</p>"; this.dayObj.WarmTipObj.Description += "<p>" + hotelDescribeObj.Describe + "</p>";
} }
...@@ -373,8 +322,7 @@ ...@@ -373,8 +322,7 @@
this.QDinnerList2 = JSON.parse(JSON.stringify(this.QDinnerList)); this.QDinnerList2 = JSON.parse(JSON.stringify(this.QDinnerList));
} }
}, },
err => { err => {}
}
); );
} }
}, },
...@@ -419,7 +367,6 @@ ...@@ -419,7 +367,6 @@
dinnerDescribeObj.Id = dinnerObj.DinnerId; dinnerDescribeObj.Id = dinnerObj.DinnerId;
dinnerDescribeObj.Describe = obj.About; dinnerDescribeObj.Describe = obj.About;
dinnerDescribeObj.Sort = dinnerObj.UseDinnerType; dinnerDescribeObj.Sort = dinnerObj.UseDinnerType;
//this.WarmTripDescribe.DinnerDescribeArr.push(dinnerDescribeObj);
if (dinnerDescribeObj.Describe != null && dinnerDescribeObj.Describe != "") { if (dinnerDescribeObj.Describe != null && dinnerDescribeObj.Describe != "") {
this.dayObj.WarmTipObj.Description += "<p>" + dinnerDescribeObj.Describe + "</p>"; this.dayObj.WarmTipObj.Description += "<p>" + dinnerDescribeObj.Describe + "</p>";
} }
...@@ -620,7 +567,7 @@ ...@@ -620,7 +567,7 @@
}); });
}); });
this.dayObj.DinnerArray.forEach(x => { this.dayObj.DinnerArray.forEach(x => {
if (x.DinnerId != 0&&x.UseDinnerType!=1) { if (x.DinnerId != 0 && x.UseDinnerType != 1) {
if (!this.checkDinnerExists(this.QDinnerList, x.DinnerId)) { if (!this.checkDinnerExists(this.QDinnerList, x.DinnerId)) {
this.QDinnerList.push({ this.QDinnerList.push({
ID: x.DinnerId, ID: x.DinnerId,
...@@ -650,6 +597,23 @@ ...@@ -650,6 +597,23 @@
}); });
return isExist; return isExist;
}, },
//获取配置餐厅信息
getConfigDinnerList() {
this.apipost(
"travel_get_GetConfigDinnerList", {},
res => {
if (res.data.resultCode == 1) {
this.breakFirstList= res.data.data.breakFirstList;
this.otherDinner=res.data.data.otherDinner;
this.hotelHotSpringDinner=res.data.data.hotelHotSpringDinner;
}
},
err => {}
);
}
},
created() {
this.getConfigDinnerList();
}, },
mounted() { mounted() {
this.initializationData(); this.initializationData();
......
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