Commit f942e9f4 authored by liudong1993's avatar liudong1993
parents 5728145f d3c578c1
...@@ -175,7 +175,7 @@ ...@@ -175,7 +175,7 @@
@change="getCustomer(1)" @change="getCustomer(1)"
class=""> class="">
<el-option v-for='item in CustomerList' <el-option v-for='item in CustomerList'
:label='item.CustomerName+"("+item.ContactNumber+")"' :label='item.CustomerName+"-"+item.Contact+"("+item.ContactNumber+")"'
:value='item.ID' :value='item.ID'
:key='item.ID'> :key='item.ID'>
</el-option> </el-option>
...@@ -398,16 +398,16 @@ export default { ...@@ -398,16 +398,16 @@ export default {
this.dialogFormVisible = true this.dialogFormVisible = true
this.addType = 2 this.addType = 2
console.log(obj) console.log(obj)
let list = obj.CustomerChildrenIds.split(',')
this.addMsg = { this.addMsg = {
...JSON.parse(JSON.stringify(obj)), ...JSON.parse(JSON.stringify(obj)),
CustomerChildrenIds: obj.CllianceChildList.map(x=>{ CustomerChildrenIds: obj.CustomerChildrenIds,
return x.ID CustomerChildrenIdList: [],
}).join(','),
CustomerChildrenIdList: obj.CllianceChildList.map(x=>{
return x.ID
}),
accountId: obj.ClientBankAccountId accountId: obj.ClientBankAccountId
} }
list.forEach(item=>{
this.addMsg.CustomerChildrenIdList.push(Number(item))
})
}, },
ViewContract(item){ ViewContract(item){
window.open(item.TravelAgency_SignAddress, '_blank'); window.open(item.TravelAgency_SignAddress, '_blank');
...@@ -640,7 +640,7 @@ export default { ...@@ -640,7 +640,7 @@ export default {
this.saveLoading = false this.saveLoading = false
}) })
}, },
iniTAddMsg: function () { iniTAddMsg() {
this.addMsg = { this.addMsg = {
Id: this.addMsg.Id,// 主账户信息(也就是customerId) Id: this.addMsg.Id,// 主账户信息(也就是customerId)
CustomerId: this.addMsg.CustomerId, CustomerId: this.addMsg.CustomerId,
......
...@@ -401,7 +401,7 @@ ...@@ -401,7 +401,7 @@
<p class="shenheInfoTitle">公司名称:</p> <p class="shenheInfoTitle">公司名称:</p>
<div class="shenheInfoCenter">{{ ContractInfor.Tourists_Name }}</div> <div class="shenheInfoCenter">{{ ContractInfor.Tourists_Name }}</div>
</el-col> </el-col>
<el-col :span="5" class="shenheInfoBox"> <el-col :span="6" class="shenheInfoBox">
<p class="shenheInfoTitle">营业执照:</p> <p class="shenheInfoTitle">营业执照:</p>
<div class="shenheInfoCenter"> <div class="shenheInfoCenter">
<el-image <el-image
...@@ -411,15 +411,15 @@ ...@@ -411,15 +411,15 @@
</el-image> </el-image>
</div> </div>
</el-col> </el-col>
<el-col :span="13" class="shenheInfoBox"> <el-col :span="11" class="shenheInfoBox">
<p class="shenheInfoTitle">经营许可证:</p> <p class="shenheInfoTitle">经营许可证:</p>
<div class="shenheInfoCenter">{{ ContractInfor.Tourists_Email }}</div> <div class="shenheInfoCenter">{{ ContractInfor.Tourists_Email }}</div>
</el-col> </el-col>
<el-col :span="6" class="shenheInfoBox shenheInfoBoxR"> <el-col :span="7" class="shenheInfoBox">
<p class="shenheInfoTitle">法人:</p> <p class="shenheInfoTitle">法人:</p>
<div class="shenheInfoCenter">{{ ContractInfor.LegalPersonName }}</div> <div class="shenheInfoCenter">{{ ContractInfor.LegalPersonName }}</div>
</el-col> </el-col>
<el-col :span="5" class="shenheInfoBox"> <el-col :span="6" class="shenheInfoBox">
<p class="shenheInfoTitle">身份证:</p> <p class="shenheInfoTitle">身份证:</p>
<div class="shenheInfoCenter"> <div class="shenheInfoCenter">
<el-image <el-image
...@@ -434,15 +434,15 @@ ...@@ -434,15 +434,15 @@
</el-image> </el-image>
</div> </div>
</el-col> </el-col>
<el-col :span="12" class="shenheInfoBox"> <el-col :span="11" class="shenheInfoBox">
<p class="shenheInfoTitle">身份证号:</p> <p class="shenheInfoTitle">身份证号:</p>
<div class="shenheInfoCenter">{{ ContractInfor.LegalIdCardNumber }}</div> <div class="shenheInfoCenter">{{ ContractInfor.LegalIdCardNumber }}</div>
</el-col> </el-col>
<el-col :span="7" class="shenheInfoBox shenheInfoBoxR"> <el-col :span="7" class="shenheInfoBox">
<p class="shenheInfoTitle">有效期:</p> <p class="shenheInfoTitle">有效期:</p>
<div class="shenheInfoCenter">{{ ContractInfor.LegalIdCardTime }}</div> <div class="shenheInfoCenter">{{ ContractInfor.LegalIdCardTime }}</div>
</el-col> </el-col>
<el-col :span="8" class="shenheInfoBox"> <el-col :span="6" class="shenheInfoBox">
<p class="shenheInfoTitle">开户支行:</p> <p class="shenheInfoTitle">开户支行:</p>
<div class="shenheInfoCenter">{{ ContractInfor.OpenBankName }}</div> <div class="shenheInfoCenter">{{ ContractInfor.OpenBankName }}</div>
</el-col> </el-col>
...@@ -450,7 +450,7 @@ ...@@ -450,7 +450,7 @@
<p class="shenheInfoTitle">所属银行:</p> <p class="shenheInfoTitle">所属银行:</p>
<div class="shenheInfoCenter">{{ ContractInfor.BankName }}</div> <div class="shenheInfoCenter">{{ ContractInfor.BankName }}</div>
</el-col> </el-col>
<el-col :span="5" class="shenheInfoBox shenheInfoBoxR"> <el-col :span="7" class="shenheInfoBox">
<p class="shenheInfoTitle">开户人:</p> <p class="shenheInfoTitle">开户人:</p>
<div class="shenheInfoCenter">{{ ContractInfor.AccountHolder }}</div> <div class="shenheInfoCenter">{{ ContractInfor.AccountHolder }}</div>
</el-col> </el-col>
...@@ -476,7 +476,7 @@ ...@@ -476,7 +476,7 @@
<tr> <tr>
<td width="100" align="right">{{$t('objFill.v102.youxiaoqks')}}</td> <td width="100" align="right">{{$t('objFill.v102.youxiaoqks')}}</td>
<td> <td>
<el-date-picker v-model="BoHuiObj.C_StartDate" style="width: 100%;" <el-date-picker v-model="BoHuiObj.StartDateStr" style="width: 100%;"
format="yyyy-MM-dd" type="date" format="yyyy-MM-dd" type="date"
value-format="yyyy-MM-dd" value-format="yyyy-MM-dd"
:picker-options="pickerBeginDateBefore3" :clearable="false"> :picker-options="pickerBeginDateBefore3" :clearable="false">
...@@ -486,7 +486,7 @@ ...@@ -486,7 +486,7 @@
<tr> <tr>
<td width="100" align="right">{{$t('objFill.v102.youxiaoqjs')}}</td> <td width="100" align="right">{{$t('objFill.v102.youxiaoqjs')}}</td>
<td> <td>
<el-date-picker v-model="BoHuiObj.C_EndDate" style="width: 100%;" <el-date-picker v-model="BoHuiObj.EndDateStr" style="width: 100%;"
format="yyyy-MM-dd" type="date" format="yyyy-MM-dd" type="date"
value-format="yyyy-MM-dd" value-format="yyyy-MM-dd"
:picker-options="pickerBeginDateAfter3" :clearable="false"> :picker-options="pickerBeginDateAfter3" :clearable="false">
...@@ -615,10 +615,10 @@ ...@@ -615,10 +615,10 @@
}, },
pickerBeginDateBefore3: { pickerBeginDateBefore3: {
disabledDate: time => { disabledDate: time => {
if (this.BoHuiObj.C_EndDate == null) { if (this.BoHuiObj.EndDateStr == null) {
return false; return false;
} else { } else {
let endTime = new Date(this.BoHuiObj.C_EndDate); let endTime = new Date(this.BoHuiObj.EndDateStr);
return endTime.getTime() < time.getTime(); return endTime.getTime() < time.getTime();
} }
} }
...@@ -637,8 +637,8 @@ ...@@ -637,8 +637,8 @@
}, },
BoHuiObj: { BoHuiObj: {
C_DayNum: '', C_DayNum: '',
C_StartDate: '', StartDateStr: '',
C_EndDate: '', EndDateStr: '',
C_NightNum: '', C_NightNum: '',
}, },
isBoHui: 0, //是否是单项、一日游、境内旅游合同驳回 isBoHui: 0, //是否是单项、一日游、境内旅游合同驳回
...@@ -707,8 +707,8 @@ ...@@ -707,8 +707,8 @@
closeContractDialog() { closeContractDialog() {
this.BoHuiObj = { this.BoHuiObj = {
C_DayNum: '', C_DayNum: '',
C_StartDate: '', StartDateStr: '',
C_EndDate: '', EndDateStr: '',
C_NightNum: '', C_NightNum: '',
} }
this.isBoHui = 0; this.isBoHui = 0;
...@@ -814,7 +814,6 @@ ...@@ -814,7 +814,6 @@
{ ContractId: item.ID }, { ContractId: item.ID },
res => { res => {
if (res.data.resultCode === 1) { if (res.data.resultCode === 1) {
console.log(res.data.data,'=====');
this.ContractInfor = res.data.data; this.ContractInfor = res.data.data;
this.inforLoading = false this.inforLoading = false
} else { } else {
...@@ -832,9 +831,10 @@ ...@@ -832,9 +831,10 @@
} }
var that = this; var that = this;
if(status==2){ if(status==2){
if(item.C_DayNum==''||item.C_StartDate==''||item.C_EndDate=='' if(item.C_DayNum==''||!item.C_DayNum||item.C_DayNum==null
||item.C_NightNum==''||!item.C_NightNum ||item.StartDateStr==''||!item.StartDateStr||item.StartDateStr==null
||item.C_NightNum==null){ ||item.EndDateStr==''||!item.EndDateStr||item.EndDateStr==null
||item.C_NightNum==''||!item.C_NightNum||item.C_NightNum==null){
this.Error(this.$t('objFill.v102.hetongdhbts')); this.Error(this.$t('objFill.v102.hetongdhbts'));
return; return;
} }
......
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