Commit 6842a1e4 authored by youjie's avatar youjie

no message

parent 6665015f
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
...@@ -491,13 +491,15 @@ ...@@ -491,13 +491,15 @@
</div> </div>
<!-- <p v-if="GetDetail.OrderSource==4&&GetDetail.SourceID>0" @click="jumpPage('FinancialOrder',GetDetail.SourceID,4)" class="_jump_page _font_bold">机票收支</p> --> <!-- <p v-if="GetDetail.OrderSource==4&&GetDetail.SourceID>0" @click="jumpPage('FinancialOrder',GetDetail.SourceID,4)" class="_jump_page _font_bold">机票收支</p> -->
</template> </template>
<el-tooltip content="配置手配费" placement="top"> <template v-if="isHandFee">
<el-tooltip content="配置手配费" placement="top"></el-tooltip>
<el-switch <el-switch
v-model="isHandFee" @change="getHandFee"> v-model="is_HandFee" @change="getHandFee">
</el-switch> </el-switch>
</el-tooltip> </el-tooltip>
</template>
</div> </div>
<template v-if="isHandFee"> <template v-if="is_HandFee">
<div> <div>
<p> <p>
手配费: 手配费:
...@@ -792,7 +794,8 @@ export default { ...@@ -792,7 +794,8 @@ export default {
{Name:'车',Id:3,disabled:false}, {Name:'车',Id:3,disabled:false},
{Name:'门票',Id:4,disabled:false}, {Name:'门票',Id:4,disabled:false},
], //类型 ], //类型
isHandFee: false isHandFee: false,
is_HandFee: false,
} }
}, },
methods:{ methods:{
...@@ -807,16 +810,19 @@ export default { ...@@ -807,16 +810,19 @@ export default {
}, },
// 获取当前手配费选项 // 获取当前手配费选项
chooseHandFee(){ chooseHandFee(){
if(!this.isHandFee) return
if(this.msg.detailList.length>0){ if(this.msg.detailList.length>0){
let HandFeeObj = this.HandFeeList.map(item=>{if(item.BranchId==this.HandFee.BranchId) return item}) let HandFeeObj = this.HandFeeList.map(item=>{if(item.BranchId==this.HandFee.BranchId) return item})
this.HandFeeDetail = HandFeeObj[0] this.HandFeeDetail = HandFeeObj[0]
this.HandFeeDetail.DetailList.forEach(x=>{x.show = false})
let numToFANG = 0 let numToFANG = 0
let numToCAN = 0 let numToCAN = 0
let numToCE = 0 let numToCE = 0
let numToMEN = 0 let numToMEN = 0
this.msg.detailList.forEach((x,index)=>{ this.msg.detailList.forEach((x,index)=>{
let obj = JSON.parse(JSON.stringify(x)) let obj = x
if(x.CostTypeName.indexOf('房')!=-1 if(x.CostTypeName.indexOf('房')!=-1
||x.CostTypeName.indexOf('餐')!=-1 ||x.CostTypeName.indexOf('餐')!=-1
||x.CostTypeName.indexOf('车')!=-1 ||x.CostTypeName.indexOf('车')!=-1
...@@ -1110,9 +1116,10 @@ export default { ...@@ -1110,9 +1116,10 @@ export default {
this.msg.ReFinanceId = this.orderObj.ReFinanceId?this.orderObj.ReFinanceId:0; this.msg.ReFinanceId = this.orderObj.ReFinanceId?this.orderObj.ReFinanceId:0;
this.msg.ReFinanceId2 = this.orderObj.ReFinanceId2?this.orderObj.ReFinanceId2:0; this.msg.ReFinanceId2 = this.orderObj.ReFinanceId2?this.orderObj.ReFinanceId2:0;
this.msg.ECOrderList = this.orderObj.ECOrderList?this.orderObj.ECOrderList:[]; this.msg.ECOrderList = this.orderObj.ECOrderList?this.orderObj.ECOrderList:[];
this.msg.StandardCurrencyName = this.orderObj.StandardCurrencyName?this.orderObj.StandardCurrencyName:'';
} }
// 台湾提成汇率 // 台湾提成汇率
if(this.orderObj&&this.orderObj.Rate&&this.orderObj.Money){ if((this.orderObj&&this.orderObj.Rate&&this.orderObj.Money)||(this.orderObj&&this.orderObj.Money)){
let yballPrice = 0 let yballPrice = 0
this.msg&&this.msg.detailList&&this.msg.detailList.forEach((item,i)=>{ this.msg&&this.msg.detailList&&this.msg.detailList.forEach((item,i)=>{
yballPrice += Number(yballPrice)+Number(item.UnitPrice) yballPrice += Number(yballPrice)+Number(item.UnitPrice)
......
...@@ -1347,7 +1347,20 @@ ...@@ -1347,7 +1347,20 @@
this.msg.ReFinanceId = this.orderObj.ReFinanceId ? this.orderObj.ReFinanceId : 0; this.msg.ReFinanceId = this.orderObj.ReFinanceId ? this.orderObj.ReFinanceId : 0;
this.msg.ReFinanceId2 = this.orderObj.ReFinanceId2 ? this.orderObj.ReFinanceId2 : 0; this.msg.ReFinanceId2 = this.orderObj.ReFinanceId2 ? this.orderObj.ReFinanceId2 : 0;
this.msg.ECOrderList = this.orderObj.ECOrderList ? this.orderObj.ECOrderList : []; this.msg.ECOrderList = this.orderObj.ECOrderList ? this.orderObj.ECOrderList : [];
this.msg.StandardCurrencyName = this.orderObj.StandardCurrencyName?this.orderObj.StandardCurrencyName:'';
} }
// 原币总金验证
if(this.orderObj&&this.orderObj.Money){
let yballPrice = 0
this.msg&&this.msg.detailList&&this.msg.detailList.forEach((item,i)=>{
yballPrice += Number(yballPrice)+Number(item.UnitPrice)
})
this.yballPriceTo = yballPrice
if(this.orderObj.Money!=this.yballPriceTo){
this.Error(`原币总金额需等于${this.orderObj.Money}!`)
return
}
}
// crm自动登陆传过来的参数 // crm自动登陆传过来的参数
if(this.crmOrderObj){ if(this.crmOrderObj){
this.msg.OtherType = this.crmOrderObj.OtherType this.msg.OtherType = this.crmOrderObj.OtherType
...@@ -1897,6 +1910,9 @@ ...@@ -1897,6 +1910,9 @@
this.tradeObj = JSON.parse(this.$route.query.tradeObj); this.tradeObj = JSON.parse(this.$route.query.tradeObj);
}else{ }else{
this.orderObj = this.$route.query.orderObj ? JSON.parse(this.$route.query.orderObj) : null; this.orderObj = this.$route.query.orderObj ? JSON.parse(this.$route.query.orderObj) : null;
if(this.orderObj&&this.orderObj.Money){
this.detailList.UnitPrice = this.orderObj.Money
}
} }
let TCID = (this.orderObj && this.orderObj.TCIDList && this.orderObj.TCIDList.length>0) ? this.orderObj.TCIDList[0] : 0 let TCID = (this.orderObj && this.orderObj.TCIDList && this.orderObj.TCIDList.length>0) ? this.orderObj.TCIDList[0] : 0
......
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