Commit daedbd0b authored by 吴春's avatar 吴春

1

parent 0ba2911b
...@@ -1191,8 +1191,23 @@ ...@@ -1191,8 +1191,23 @@
}, },
// 获取当前手配费选项 // 获取当前手配费选项
chooseHandFee() { chooseHandFee() {
console.log("我进来啦1",this.HandFeeDetail ); let handfreeCount=0;
console.log("我进来啦2", this.msg.detailList ); let companyID= this.$route.query.companyID;
if(companyID==1220){
this.msg.detailList.forEach((x, index) => {
if (x.CostTypeName.indexOf('房费送客手数料') != -1 ||
x.CostTypeName.indexOf('餐费送客手数料') != -1 ||
x.CostTypeName.indexOf('门票送客手数料') != -1 ){
handfreeCount+=1;
}});
if(handfreeCount>0){
this.is_HandFee=true;
}
else{
this.is_HandFee=false;
}
}
if (!this.is_HandFee) return if (!this.is_HandFee) return
if (this.msg.detailList.length > 0) { if (this.msg.detailList.length > 0) {
let HandFeeObj = this.HandFeeList.map(item => { let HandFeeObj = this.HandFeeList.map(item => {
...@@ -1208,7 +1223,7 @@ ...@@ -1208,7 +1223,7 @@
let numToCE = 0 let numToCE = 0
let numToMEN = 0 let numToMEN = 0
let states = true let states = true
let companyID= this.$route.query.companyID;
this.msg.detailList.forEach((x, index) => { this.msg.detailList.forEach((x, index) => {
let obj = x let obj = x
if (x.CostTypeName.indexOf('房') != -1 || if (x.CostTypeName.indexOf('房') != -1 ||
...@@ -1230,6 +1245,7 @@ ...@@ -1230,6 +1245,7 @@
y.show = true, numToMEN += Number(obj.Number)//, y.Num = numToMEN y.show = true, numToMEN += Number(obj.Number)//, y.Num = numToMEN
} }
if (x.CostTypeName.indexOf('房费送客手数料') != -1 && y.Type == 5) { if (x.CostTypeName.indexOf('房费送客手数料') != -1 && y.Type == 5) {
if(x.UnitPrice<0){ y.Unit_Price=- x.UnitPrice} if(x.UnitPrice<0){ y.Unit_Price=- x.UnitPrice}
else{ else{
y.Unit_Price=x.UnitPrice y.Unit_Price=x.UnitPrice
...@@ -1238,6 +1254,7 @@ ...@@ -1238,6 +1254,7 @@
y.show = true, numToMEN += Number(obj.Number)//, y.Num = numToMEN y.show = true, numToMEN += Number(obj.Number)//, y.Num = numToMEN
} }
if (x.CostTypeName.indexOf('餐费送客手数料') != -1 && y.Type == 6) { if (x.CostTypeName.indexOf('餐费送客手数料') != -1 && y.Type == 6) {
y.Num=x.Number y.Num=x.Number
console.log("UnitPriceTo",x.UnitPrice) console.log("UnitPriceTo",x.UnitPrice)
if(x.UnitPrice<0){ if(x.UnitPrice<0){
...@@ -1248,6 +1265,7 @@ ...@@ -1248,6 +1265,7 @@
y.show = true, numToMEN += Number(obj.Number)//, y.Num = numToMEN y.show = true, numToMEN += Number(obj.Number)//, y.Num = numToMEN
} }
if (x.CostTypeName.indexOf('门票送客手数料') != -1 && y.Type == 7) { if (x.CostTypeName.indexOf('门票送客手数料') != -1 && y.Type == 7) {
y.Num=x.Number y.Num=x.Number
if(x.UnitPrice<0){ y.Unit_Price=-x.UnitPrice} if(x.UnitPrice<0){ y.Unit_Price=-x.UnitPrice}
else{ else{
...@@ -1259,7 +1277,7 @@ ...@@ -1259,7 +1277,7 @@
}) })
} }
}) })
if (states) { if (states) {
this.msg.detailList.forEach((x, index) => { this.msg.detailList.forEach((x, index) => {
this.HandFeeDetail && this.HandFeeDetail.DetailList.forEach((y, indexs) => { this.HandFeeDetail && this.HandFeeDetail.DetailList.forEach((y, indexs) => {
......
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