Commit 270dde29 authored by 黄奎's avatar 黄奎

前端验证调整

parent c33aff69
...@@ -110,6 +110,7 @@ ...@@ -110,6 +110,7 @@
</tr> </tr>
<tr> <tr>
<td class="CP_ComTitle2 CostcomCenter">{{$t('admin.admin_personNumber')}}</td> <td class="CP_ComTitle2 CostcomCenter">{{$t('admin.admin_personNumber')}}</td>
<template v-if="CostNumberList&&CostNumberList.length>0">
<td v-for="(item,index) in CostNumberList" :key='item.subCode'> <td v-for="(item,index) in CostNumberList" :key='item.subCode'>
<el-input class="w100" v-model='item.PeopleNumber' @keyup.native="checkInteger(item,'PeopleNumber')"> <el-input class="w100" v-model='item.PeopleNumber' @keyup.native="checkInteger(item,'PeopleNumber')">
</el-input> </el-input>
...@@ -117,7 +118,8 @@ ...@@ -117,7 +118,8 @@
<i class="iconfont icon-quxiao" @click="DeletePNumber(index),getchange()"></i> <i class="iconfont icon-quxiao" @click="DeletePNumber(index),getchange()"></i>
</span> </span>
</td> </td>
<td :colspan="13-2-CostNumberList.length+1"> </template>
<td v-if="CostNumberList&&CostNumberList.length>0" :colspan="13-2-CostNumberList.length+1">
<el-form-item> <el-form-item>
<el-input :placeholder="$t('objFill.qingtxrs')" v-model='priceObj.priceNum' style="width:140px;" <el-input :placeholder="$t('objFill.qingtxrs')" v-model='priceObj.priceNum' style="width:140px;"
@keyup.native="checkInteger(priceObj,'priceNum'),getchange()"> @keyup.native="checkInteger(priceObj,'priceNum'),getchange()">
...@@ -396,8 +398,7 @@ ...@@ -396,8 +398,7 @@
<tr> <tr>
<td colspan="13">{{$t('objFill.qitacbrmb')}}</td> <td colspan="13">{{$t('objFill.qitacbrmb')}}</td>
</tr> </tr>
<template> <template v-if="otherPrice&&teamPrice">
</template>
<tr> <tr>
<td colspan="2"> <td colspan="2">
<el-form-item :label="$t('active.cl_jipiao')" label-position="right"> <el-form-item :label="$t('active.cl_jipiao')" label-position="right">
...@@ -472,15 +473,16 @@ ...@@ -472,15 +473,16 @@
<tr> <tr>
<td colspan="2"> <td colspan="2">
<el-form-item :label="$t('Operation.Op_baby')"> <el-form-item :label="$t('Operation.Op_baby')">
<el-input v-model="teamPrice.BabyPrice" @keyup.native="checkInteger(teamPrice,'BabyPrice')" class="w70"> <el-input v-model="teamPrice.BabyPrice" @keyup.native="checkInteger(teamPrice,'BabyPrice')"
class="w70">
</el-input> </el-input>
</el-form-item> </el-form-item>
</td> </td>
<td> <td>
<template v-if="teamPrice&&teamPrice.SingleDMCPrice"> <template v-if="teamPrice&&teamPrice.SingleDMCPrice">
<el-form-item :label="$t('objFill.dandijcb')"> <el-form-item :label="$t('objFill.dandijcb')">
<el-input v-model="teamPrice.SingleDMCPrice" @keyup.native="checkInteger(teamPrice,'SingleDMCPrice')" <el-input v-model="teamPrice.SingleDMCPrice"
@change="getchange()" class="w70"> @keyup.native="checkInteger(teamPrice,'SingleDMCPrice')" @change="getchange()" class="w70">
</el-input> </el-input>
</el-form-item> </el-form-item>
</template> </template>
...@@ -520,6 +522,7 @@ ...@@ -520,6 +522,7 @@
</el-form-item> </el-form-item>
</td> </td>
</tr> </tr>
</template>
<tr> <tr>
<td colspan="2"> <td colspan="2">
<el-form-item :label="$t('Operation.Op_zhu')+`OP`"> <el-form-item :label="$t('Operation.Op_zhu')+`OP`">
...@@ -554,12 +557,13 @@ ...@@ -554,12 +557,13 @@
</el-form-item> </el-form-item>
</td> </td>
<td colspan="6"> <td colspan="6">
{{$t('objFill.fj')}}: <el-upload v-if="!teamPrice.ContractArray || !teamPrice.ContractArray.length" {{$t('objFill.fj')}}: <el-upload
class="upload-demo" style="display:inline-block;position:relative;top:-1px;left:3px;" v-if="teamPrice&&(!teamPrice.ContractArray || !teamPrice.ContractArray.length)" class="upload-demo"
:http-request="UploadAttachment" :show-file-list="false" action=""> style="display:inline-block;position:relative;top:-1px;left:3px;" :http-request="UploadAttachment"
:show-file-list="false" action="">
<el-button size="small" type="primary">{{$t('objFill.bjdfj')}}</el-button> <el-button size="small" type="primary">{{$t('objFill.bjdfj')}}</el-button>
</el-upload> </el-upload>
<template v-if="teamPrice.ContractArray&& teamPrice.ContractArray.length>0"> <template v-if="teamPrice&&teamPrice.ContractArray&& teamPrice.ContractArray.length>0">
<template v-for="(subItem,subIndex) in teamPrice.ContractArray"> <template v-for="(subItem,subIndex) in teamPrice.ContractArray">
<a style="margin-left:20px;color:blue;cursor:pointer;" target="_blank" :key="subIndex" <a style="margin-left:20px;color:blue;cursor:pointer;" target="_blank" :key="subIndex"
@click="downloadFile(subItem.Url,subItem.Name)">{{subItem.Name}}</a> @click="downloadFile(subItem.Url,subItem.Name)">{{subItem.Name}}</a>
...@@ -1102,7 +1106,9 @@ ...@@ -1102,7 +1106,9 @@
//其它成本价格 //其它成本价格
getOtherCostMoney() { getOtherCostMoney() {
//机票+中段机票+火车票+税金+领队导游分摊+联运+过夜+保险 //机票+中段机票+火车票+税金+领队导游分摊+联运+过夜+保险
let otherMoney = this.getConvertMoney(this.otherPrice.AirTicketMoeny) + let otherMoney = 0;
if (this.otherPrice && this.teamPrice) {
otherMoney = this.getConvertMoney(this.otherPrice.AirTicketMoeny) +
this.getConvertMoney(this.otherPrice.InlandAirTicketMoney) + this.getConvertMoney(this.otherPrice.InlandAirTicketMoney) +
this.getConvertMoney(this.teamPrice.TaxPrice) + this.getConvertMoney(this.teamPrice.TaxPrice) +
this.getConvertMoney(this.teamPrice.UnionPrice) + this.getConvertMoney(this.teamPrice.UnionPrice) +
...@@ -1112,6 +1118,7 @@ ...@@ -1112,6 +1118,7 @@
this.getConvertMoney(this.otherPrice.InlandTrainTicketMoney) + this.getConvertMoney(this.otherPrice.InlandTrainTicketMoney) +
this.getConvertMoney(this.otherPrice.SafeMoney) - this.getConvertMoney(this.otherPrice.SafeMoney) -
this.getConvertMoney(this.otherPrice.KBMoney) this.getConvertMoney(this.otherPrice.KBMoney)
}
return otherMoney; return otherMoney;
}, },
//获取币种对应 的人数报价 //获取币种对应 的人数报价
......
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