Commit 39162b10 authored by liudong1993's avatar liudong1993

1

parent 5a6a22cc
...@@ -762,7 +762,7 @@ ...@@ -762,7 +762,7 @@
</div> </div>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="6" v-if="currentUserInfo&& currentUserInfo.RB_Branch_id !=1252&& currentUserInfo.RB_Branch_id !=1257"> <el-col :span="6" v-if="!showTravelAICustomer && currentUserInfo&& currentUserInfo.RB_Branch_id !=1252&& currentUserInfo.RB_Branch_id !=1257">
<el-form-item :label="$t('objFill.pingtaiyhm')"> <el-form-item :label="$t('objFill.pingtaiyhm')">
<div style="display: flex;flex-wrap: nowrap;justify-content: space-between;"> <div style="display: flex;flex-wrap: nowrap;justify-content: space-between;">
<div style="display: flex; flex-wrap: wrap;align-items: center;"> <div style="display: flex; flex-wrap: wrap;align-items: center;">
...@@ -809,6 +809,11 @@ ...@@ -809,6 +809,11 @@
</el-col> </el-col>
</template> </template>
<template v-if="isShow"> <template v-if="isShow">
<el-col :span="6" v-if="showTravelAICustomer">
<el-form-item label="统一编码" prop="UniqueCode">
<el-input v-model="addMsg.UniqueCode" :placeholder="$t('objFill.qingshurtybm')" maxlength="30"></el-input>
</el-form-item>
</el-col>
<el-col :span="6"> <el-col :span="6">
<el-form-item :label="$t('salesModule.CustomerSource')" prop="CustomerSourceType"> <el-form-item :label="$t('salesModule.CustomerSource')" prop="CustomerSourceType">
<el-select filterable v-model='addMsg.CustomerSourceType' style="width: 100%;" <el-select filterable v-model='addMsg.CustomerSourceType' style="width: 100%;"
...@@ -843,18 +848,28 @@ ...@@ -843,18 +848,28 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="6"> <el-col :span="6" v-if="showTravelAICustomer">
<el-form-item label="TravelAI邮箱" prop="TravelAIEmail">
<el-input v-model="addMsg.TravelAIEmail" placeholder="多个邮箱请用英文逗号分隔" maxlength="200"></el-input>
</el-form-item>
</el-col>
<el-col :span="6" v-if="showTravelAICustomer">
<el-form-item label="TravelAI域名" prop="TravelAIDomain">
<el-input v-model="addMsg.TravelAIDomain" placeholder="请输入完整域名" maxlength="50"></el-input>
</el-form-item>
</el-col>
<el-col :span="showTravelAICustomer?4:6">
<el-form-item label="" > <el-form-item label="" >
<el-checkbox v-model='addMsg.IsGuideOrLeader'>是否领队/导游 <el-checkbox v-model='addMsg.IsGuideOrLeader'>是否领队/导游
</el-checkbox> </el-checkbox>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="6"> <el-col :span="showTravelAICustomer?4:6">
<el-form-item :label="$t('hotel.hotel_remark')" prop="remark"> <el-form-item :label="$t('hotel.hotel_remark')" prop="remark">
<el-input v-model="addMsg.remark" autosize type="textarea" maxlength="500"></el-input> <el-input v-model="addMsg.remark" autosize type="textarea" maxlength="500"></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="6"> <el-col :span="showTravelAICustomer?4:6">
<el-form-item :label="$t('salesModule.CustomerInfo')" prop="remark" v-show='addMsg.CustomerSourceType==6'> <el-form-item :label="$t('salesModule.CustomerInfo')" prop="remark" v-show='addMsg.CustomerSourceType==6'>
<el-input v-model="addMsg.CustomerSource" maxlength="20"></el-input> <el-input v-model="addMsg.CustomerSource" maxlength="20"></el-input>
</el-form-item> </el-form-item>
...@@ -922,6 +937,21 @@ ...@@ -922,6 +937,21 @@
<el-input v-model='updateMsg.Contact'></el-input> <el-input v-model='updateMsg.Contact'></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="4" v-if="showTravelAICustomer">
<el-form-item label="统一编码" prop="uniqueCode">
<el-input v-model="updateMsg.uniqueCode" :placeholder="$t('objFill.qingshurtybm')" maxlength="50"></el-input>
</el-form-item>
</el-col>
<el-col :span="6" v-if="showTravelAICustomer">
<el-form-item label="TravelAI邮箱" prop="TravelAIEmail">
<el-input v-model="updateMsg.TravelAIEmail" placeholder="多个邮箱请用英文逗号分隔" maxlength="200"></el-input>
</el-form-item>
</el-col>
<el-col :span="4" v-if="showTravelAICustomer">
<el-form-item label="TravelAI域名" prop="TravelAIDomain">
<el-input v-model="updateMsg.TravelAIDomain" placeholder="请输入完整域名" maxlength="50"></el-input>
</el-form-item>
</el-col>
<el-col :span="6"> <el-col :span="6">
<el-form-item label="" > <el-form-item label="" >
<el-checkbox v-model='updateMsg.IsGuideOrLeader'>是否领队/导游 <el-checkbox v-model='updateMsg.IsGuideOrLeader'>是否领队/导游
...@@ -1148,7 +1178,9 @@ ...@@ -1148,7 +1178,9 @@
LINEID: '', LINEID: '',
Email: '', Email: '',
PlatformUserNameList: [], PlatformUserNameList: [],
IsMember:'' IsMember:'',
TravelAIEmail:'',
TravelAIDomain:''
}, },
addMsgS: { addMsgS: {
isPreFilled: true, isPreFilled: true,
...@@ -1274,7 +1306,9 @@ ...@@ -1274,7 +1306,9 @@
lineid: '', lineid: '',
email: '', email: '',
PlatformUserNameList: [], PlatformUserNameList: [],
IsMember: '' IsMember: '',
TravelAIEmail:'',
TravelAIDomain:''
}, },
cityList: [], cityList: [],
regionList: [], regionList: [],
...@@ -1299,6 +1333,7 @@ ...@@ -1299,6 +1333,7 @@
{ Name: this.$t('fnc.fou'),Id: 0 }, { Name: this.$t('fnc.fou'),Id: 0 },
], ],
customerStatus: 0, customerStatus: 0,
showTravelAICustomer: false,
} }
}, },
methods: { methods: {
...@@ -1425,10 +1460,10 @@ ...@@ -1425,10 +1460,10 @@
this.$message.error(this.$t('rule.EnterContratPerson')) this.$message.error(this.$t('rule.EnterContratPerson'))
return return
} }
// if(!this.updateMsg.uniqueCode){ if(this.showTravelAICustomer && !this.updateMsg.uniqueCode){
// this.$message.error(this.$t('objFill.qingshurtybm')) this.$message.error(this.$t('objFill.qingshurtybm'))
// return return
// } }
// if(!this.updateMsg.lineid){ // if(!this.updateMsg.lineid){
// this.$message.error(this.$t('objFill.qingshurlineid')) // this.$message.error(this.$t('objFill.qingshurlineid'))
// return // return
...@@ -1571,6 +1606,8 @@ ...@@ -1571,6 +1606,8 @@
this.updateMsg.CustomerName = x.customerName this.updateMsg.CustomerName = x.customerName
this.updateMsg.Contact = x.contactName this.updateMsg.Contact = x.contactName
this.updateMsg.CustomerId = x.customerId this.updateMsg.CustomerId = x.customerId
this.updateMsg.TravelAIEmail = x.travelAIEmail
this.updateMsg.TravelAIDomain = x.travelAIDomain
this.updateMsg.IsGuideOrLeader=x.isGuideOrLeader==1?true:false this.updateMsg.IsGuideOrLeader=x.isGuideOrLeader==1?true:false
this.updateMsg.Address = x.address //x.address.split(',')[1] this.updateMsg.Address = x.address //x.address.split(',')[1]
this.updateMsg.Province = x.province this.updateMsg.Province = x.province
...@@ -1732,6 +1769,9 @@ ...@@ -1732,6 +1769,9 @@
this.addMsg.IsGuideOrLeader=x.IsGuideOrLeader==1?true:false this.addMsg.IsGuideOrLeader=x.IsGuideOrLeader==1?true:false
this.addMsg.Premises = x.premises this.addMsg.Premises = x.premises
this.addMsg.CustomerSourceType = x.customerSourceType this.addMsg.CustomerSourceType = x.customerSourceType
this.addMsg.TravelAIEmail = x.travelAIEmail
this.addMsg.TravelAIDomain = x.travelAIDomain
this.addMsg.UniqueCode = x.uniqueCode
let dictid = [] let dictid = []
res.data.data.brandList.forEach(x => { res.data.data.brandList.forEach(x => {
dictid.push(x.dictId) dictid.push(x.dictId)
...@@ -2061,6 +2101,8 @@ ...@@ -2061,6 +2101,8 @@
cancelData() { cancelData() {
this.addMsg.CustomerId = 0; this.addMsg.CustomerId = 0;
this.addMsg.IsGuideOrLeader=false; this.addMsg.IsGuideOrLeader=false;
this.addMsg.TravelAIEmail = "";
this.addMsg.TravelAIDomain = "";
this.addMsg.customerName = ""; this.addMsg.customerName = "";
this.addMsg.contact = ""; this.addMsg.contact = "";
this.addMsg.contactNumber = ""; this.addMsg.contactNumber = "";
...@@ -2107,6 +2149,9 @@ ...@@ -2107,6 +2149,9 @@
}, },
created() { created() {
this.currentUserInfo = this.getLocalStorage(); this.currentUserInfo = this.getLocalStorage();
if(this.currentUserInfo.ActionMenuCode.indexOf('S_TravelAICustomer')!=-1){
this.showTravelAICustomer = true;
}
}, },
mounted() { mounted() {
this.getList() this.getList()
......
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