Commit 9d42fc62 authored by 黄奎's avatar 黄奎

页面修改

parent 94316e25
...@@ -112,6 +112,13 @@ ...@@ -112,6 +112,13 @@
</td> </td>
<td> <td>
{{item.AirportPickUpStr}} {{item.AirportPickUpStr}}
<template v-if="item.AirportPickUp==15 && item.MergeList && item.MergeList.length>0"
v-for="(subItem,subIndex) in item.MergeList">
<br v-show="subIndex==0" />
<span :key="subIndex" style="color:blue;">
{{subItem.MTCNUM}}({{subItem.MTCID}})
</span>
</template>
</td> </td>
<td> <td>
{{item.CostPrice >= 0 && item.CostPrice !== null ? moneyFormat(item.CostPrice) : ''}} {{item.CostPrice >= 0 && item.CostPrice !== null ? moneyFormat(item.CostPrice) : ''}}
...@@ -124,7 +131,7 @@ ...@@ -124,7 +131,7 @@
<span v-else-if="item.PayType === 6">合团公司支付</span> <span v-else-if="item.PayType === 6">合团公司支付</span>
<span v-else-if="item.PayType === 8">酒店接送</span> <span v-else-if="item.PayType === 8">酒店接送</span>
<span v-else></span> <span v-else></span>
<br/> <br />
<span v-show="item.PayType==6">付款团号:{{item.PayTypeTCNUM}}</span> <span v-show="item.PayType==6">付款团号:{{item.PayTypeTCNUM}}</span>
</td> </td>
<td> <td>
...@@ -228,7 +235,8 @@ ...@@ -228,7 +235,8 @@
</template> </template>
</td> </td>
<td v-if="childIndex==0" :rowspan="6" style="text-align:left; "> <td v-if="childIndex==0" :rowspan="6" style="text-align:left; ">
<a target="_blank" v-if="subItem.ContractUrl!==''" :href="subItem.ContractUrl" style="text-decoration: underline; cursor: pointer;color:red">查看手配书</a> <a target="_blank" v-if="subItem.ContractUrl!==''" :href="subItem.ContractUrl"
style="text-decoration: underline; cursor: pointer;color:red">查看手配书</a>
</td> </td>
<td v-if="childIndex==0" :rowspan="6" style="text-align:left;color:red; "> <td v-if="childIndex==0" :rowspan="6" style="text-align:left;color:red; ">
{{subItem.HotelName!=subItem.NewHotelName?""+subItem.NewHotelName:""}} {{subItem.HotelName!=subItem.NewHotelName?""+subItem.NewHotelName:""}}
...@@ -367,21 +375,21 @@ ...@@ -367,21 +375,21 @@
<span v-else-if="subItem.DMCPayType === 9">月结</span> <span v-else-if="subItem.DMCPayType === 9">月结</span>
<span v-else-if="subItem.DMCPayType === 11">刷卡</span> <span v-else-if="subItem.DMCPayType === 11">刷卡</span>
<span v-else-if="subItem.DMCPayType === 10">领队导游垫付</span> <span v-else-if="subItem.DMCPayType === 10">领队导游垫付</span>
<br/> <br />
<span v-show="subItem.DMCPayType==6">付款团号:{{subItem.PayTypeTCNUM}}</span> <span v-show="subItem.DMCPayType==6">付款团号:{{subItem.PayTypeTCNUM}}</span>
</td> </td>
<td v-if="childIndex==0" :rowspan="6"> <td v-if="childIndex==0" :rowspan="6">
<span>{{subItem.SupplierName}} <span>{{subItem.SupplierName}}
<br/> <br />
<template v-if="subItem.SupplierPayType !== 0"> <template v-if="subItem.SupplierPayType !== 0">
<span v-if="subItem.SupplierPayType == 1"> <span v-if="subItem.SupplierPayType == 1">
现付 现付
</span> </span>
<span v-else-if="subItem.SupplierPayType == 2"> <span v-else-if="subItem.SupplierPayType == 2">
签单 签单
</span> </span>
<span v-else-if="subItem.SupplierPayType == 4"> <span v-else-if="subItem.SupplierPayType == 4">
预付 预付
</span> </span>
</template> </template>
</span> </span>
...@@ -698,10 +706,9 @@ ...@@ -698,10 +706,9 @@
<template v-for="leadr in cur.LeaderGetPriceArr" v-if=" leadr.TCNUMS == item.TCNUMS"> <template v-for="leadr in cur.LeaderGetPriceArr" v-if=" leadr.TCNUMS == item.TCNUMS">
<input type="button" v-if="item.TeamType == 1 && index2==0" value="日当费" class="normalBtn" <input type="button" v-if="item.TeamType == 1 && index2==0" value="日当费" class="normalBtn"
@click="goZhiDan(item, 2)" /> @click="goZhiDan(item, 2)" />
<template v-if="item.hideZDBtn && ContractUrlCount == 0" > <template v-if="item.hideZDBtn && ContractUrlCount == 0">
<el-tooltip class="item" effect="dark" :content="currencyTypeObj[leadr.CurrencyId]" placement="top"> <el-tooltip class="item" effect="dark" :content="currencyTypeObj[leadr.CurrencyId]" placement="top">
<input type="button" value="制单" class="normalBtn" <input type="button" value="制单" class="normalBtn" @click="goZhiDan(item,0,leadr,cur)" />
@click="goZhiDan(item,0,leadr,cur)" />
</el-tooltip> </el-tooltip>
</template> </template>
<template v-else-if="ContractUrlCount !== 0 && index2==0"> <template v-else-if="ContractUrlCount !== 0 && index2==0">
...@@ -801,863 +808,860 @@ ...@@ -801,863 +808,860 @@
</template> </template>
<script> <script>
import commonHotelInfo from "../commonPage/commonHotelInfo.vue"; import commonHotelInfo from "../commonPage/commonHotelInfo.vue";
import { constants } from "os"; import {
export default { constants
data() { } from "os";
return { export default {
isUpdate: "false", data() {
LineId: 0, return {
loading: false, isUpdate: "false",
defaultSelectValue: 0, LineId: 0,
initialIndex: 0, loading: false,
picIsShow: false, defaultSelectValue: 0,
picObj: [], initialIndex: 0,
TemporaryItem: {}, picIsShow: false,
msg: { picObj: [],
TCIDs: "", TemporaryItem: {},
NewCombinationNum: "" msg: {
}, TCIDs: "",
zhuijiaList: [], NewCombinationNum: ""
list: [],
nav: [],
TravelDayNum: 0,
RealityNum: 0,
UseCount: "",
//定团号
NewCombinationNum: "",
TotalNav: [],
LeaderGetPrice: 0,
HangingList: [],
showHotelObj: {
showPrice: true, //是否显示价格
showPay: true, //是否显示支付方式
showZhan: true, //占房时间
showBtnList: false, //是否下载、确认按钮
ShowTaxType: true, //显示税入税别
ShowRebateRatio: true, //显示返佣比列
ShowSupplier: true, //是否显示供应商
showCaozuoTime: true, //操作时间
colspanLength: 6 //跨行
},
CurrencyListMoney: [],
currencyTypeObj: [],
//判断是否显示人民币
IsShowRMB: false,
ContractUrlCount: 1
};
},
components: {
commonHotelInfo
},
methods: {
// 20190815 新增领款单据重新生成自动带上计算后的金额
goFncEditUrl(url, crId, frId) {
let obj = {};
this.CurrencyListMoney.map(x => {
if (x.CurrencyId == crId) {
obj = x;
}
});
let price = obj.money * 0.95;
let calcPrice = 0;
if (crId == 1) {
//人民币
calcPrice =
parseInt(price / 1000) > 0
? parseInt(price / 1000) * 1000
: parseInt(price);
} else {
// 其他
calcPrice =
parseInt(price / 10000) > 0
? parseInt(price / 10000) * 10000
: parseInt(price);
}
this.$router.push({
name: url,
query: {
FrID: frId,
blank: "y",
edit: true,
dijieEditMoney: calcPrice,
tab: "修改财务单据"
}
});
},
GetCurrency(Id) {
var str = "";
switch (Id) {
case 0:
str = "日元";
break;
case 1:
str = "人民币";
break;
case 2:
str = "美元";
break;
case 3:
str = "日元";
break;
case 4:
str = "韩元";
break;
case 5:
str = "欧元";
break;
case 6:
str = "英镑";
break;
case 7:
str = "港币";
break;
case 8:
str = "加拿大元";
break;
case 9:
str = "澳大利亚元";
break;
case 10:
str = "新西兰元";
break;
case 11:
str = "新台币";
break;
case 12:
str = "泰国铢";
break;
case 13:
str = "新加坡元";
break;
case 14:
str = "瑞士法郎";
break;
}
return str;
},
financeinfo_post_GetList() {
// 币种类型
this.apipost(
"financeinfo_post_GetList",
{
Name: ""
}, },
res => { zhuijiaList: [],
if (res.data.resultCode == 1) { list: [],
let data = res.data.data; nav: [],
data.forEach(item => { TravelDayNum: 0,
this.currencyTypeObj[item.ID] = item.Name; RealityNum: 0,
}); UseCount: "",
} else { //定团号
} NewCombinationNum: "",
TotalNav: [],
LeaderGetPrice: 0,
HangingList: [],
showHotelObj: {
showPrice: true, //是否显示价格
showPay: true, //是否显示支付方式
showZhan: true, //占房时间
showBtnList: false, //是否下载、确认按钮
ShowTaxType: true, //显示税入税别
ShowRebateRatio: true, //显示返佣比列
ShowSupplier: true, //是否显示供应商
showCaozuoTime: true, //操作时间
colspanLength: 6 //跨行
}, },
err => {} CurrencyListMoney: [],
); currencyTypeObj: [],
}, //判断是否显示人民币
ZhuiJiaTuanKuan(item) { IsShowRMB: false,
let TCIDARR = [item.TCIDS]; // [this.$route.query.id] ContractUrlCount: 1
let orderObj = {
OrderID: 0,
OrderSource: 8,
Obj: {},
SourceID: 0,
TCIDList: TCIDARR,
TravelReplenish: this.$route.query.id,
OtherType: 1
}; };
this.$router.push({
name: "ChoiceAddFinancialDocuments",
query: {
Type: 2,
companyID: item.companyID,
path: "",
blank: "y",
orderObj: JSON.stringify(orderObj)
}
});
}, },
getzhuijiaList() { components: {
this.apipost( commonHotelInfo
"Financial_post_GetTravelFinanceReplenishList",
{
TravelReplenish: this.$route.query.id
},
res => {
if (res.data.resultCode == 1) {
this.zhuijiaList = res.data.data.list;
}
},
err => {}
);
}, },
getHangingAccountByTCIDList: function() { methods: {
this.apipost( // 20190815 新增领款单据重新生成自动带上计算后的金额
"Financial_post_GetHangingAccountByTCIDList", goFncEditUrl(url, crId, frId) {
{ let obj = {};
TCIDs: this.$route.query.id this.CurrencyListMoney.map(x => {
}, if (x.CurrencyId == crId) {
res => { obj = x;
if (res.data.resultCode == 1) {
this.HangingList = res.data.data;
} }
}, });
err => {} let price = obj.money * 0.95;
); let calcPrice = 0;
}, if (crId == 1) {
goFncUrl: function(path, id) { //人民币
this.$router.push({ calcPrice =
name: path, parseInt(price / 1000) > 0 ?
query: { parseInt(price / 1000) * 1000 :
id: id, parseInt(price);
blank: "y"
}
});
},
goHotelDetail: function(id, num, TCNUM, path) {
this.$router.push({
name: path,
query: {
id: id,
NewCombinationNum: num,
TCNUM: TCNUM,
blank: "y"
}
});
},
goZhiDan2: function(obj, type, leadr, cur) {
let TCIDARR = [obj.TCIDS];
let orderObj = {
OrderID: 0,
OrderSource: 8,
Obj: {},
SourceID: 0,
TCIDList: TCIDARR,
CostType: 56,
Money: leadr.LeaderGetPriceT,
TCNUMS: obj.TCNUMS,
CurrencyId: leadr.CurrencyId
};
let id = [];
if (obj.LineId == this.LineId) {
id = [98, 99];
} else {
if (obj.OutBranchId === 0) {
id = [43, 48];
} else { } else {
id = [56, 53]; // 其他
} calcPrice =
} parseInt(price / 10000) > 0 ?
this.$router.push({ parseInt(price / 10000) * 10000 :
name: "ChoiceAddFinancialDocuments", parseInt(price);
query: {
Type: 2,
templateID: JSON.stringify(id),
companyID: obj.OutBranchId,
path: "",
blank: "y",
orderObj: JSON.stringify(orderObj)
} }
}); this.$router.push({
}, name: url,
goZhiDan: function(obj, num, leadr, cur) { query: {
if (!num) { FrID: frId,
let totailMoney = Number(leadr.LeaderGetPriceT) + Number(cur.yiLing); blank: "y",
if (totailMoney > leadr.PlanPrice) edit: true,
return this.$message.error("最大领款为预付合计金额的95%!"); dijieEditMoney: calcPrice,
if (!leadr.LeaderGetPriceT || leadr.LeaderGetPriceT <= 0) tab: "修改财务单据"
return this.$message.error("请输入金额!");
}
if (this.list.hotelNoSureInfo !== "") {
this.$confirm(
`${this.list.hotelNoSureInfo},是否去制单?`,
this.$t("tips.tips"),
{
confirmButtonText: this.$t("pub.sureBtn"),
cancelButtonText: this.$t("pub.cancelBtn"),
type: "warning"
} }
) });
.then(() => { },
this.goZhiDan2(obj, num, leadr, cur); GetCurrency(Id) {
}) var str = "";
.catch(() => { switch (Id) {
return false; case 0:
}); str = "日元";
} else { break;
this.goZhiDan2(obj, num, leadr, cur); case 1:
} str = "人民币";
}, break;
addOtherList(index, id) { case 2:
this.list.OtherOrderReportList.OtherList.push({ str = "美元";
OrderType: "1", break;
ID: 0, case 3:
UseDate: "", str = "日元";
CostProject: "0", break;
TotalNum: "0", case 4:
UnitPrice: "0", str = "韩元";
Rebate: "0", break;
TotalPrice: "0", case 5:
Remark: "", str = "欧元";
TCIDs: this.$route.query.id, break;
TCID: id, case 6:
UseCount: this.UseCount, str = "英镑";
VoucherPicList: [] break;
}); case 7:
}, str = "港币";
deleteOtherListItem(outIndex, index) { break;
this.list.OtherOrderReportList.OtherList.splice(index, 1); case 8:
}, str = "加拿大元";
addSelfPlayingIncomeList(index, id) { break;
this.list.OtherOrderReportList.SelfPlayingIncomeList.push({ case 9:
OrderType: "4", str = "澳大利亚元";
ID: 0, break;
UseDate: "", case 10:
CostProject: 0, str = "新西兰元";
TotalNum: "0", break;
UnitPrice: "0", case 11:
Rebate: "0", str = "新台币";
TotalPrice: "0", break;
Remark: "", case 12:
TCID: id, str = "泰国铢";
UseCount: this.UseCount, break;
TCIDs: this.$route.query.id, case 13:
VoucherPicList: [] str = "新加坡元";
}); break;
}, case 14:
deleteSelfPlayingIncomeListItem(outIndex, index) { str = "瑞士法郎";
this.list.OtherOrderReportList.SelfPlayingIncomeList.splice(index, 1); break;
},
addSelfPlayingExpendList(index, id) {
this.list.OtherOrderReportList.SelfPlayingExpendList.push({
OrderType: "5",
ID: 0,
UseDate: "",
CostProject: "",
TotalNum: "0",
UnitPrice: "0",
Rebate: "0",
TotalPrice: "0",
Remark: "",
TCID: id,
UseCount: this.UseCount,
TCIDs: this.$route.query.id,
VoucherPicList: []
});
},
deleteSelfPlayingExpendList(outIndex, index) {
this.list.OtherOrderReportList.SelfPlayingExpendList.splice(index, 1);
},
busTotalPrice(obj) {
let totalPrice = 0;
obj.forEach(item => {
totalPrice +=
Number(item.CostPrice) +
Number(item.HighSpeedPrice) +
Number(item.StopPrice);
});
return this.moneyFormat(totalPrice);
},
hotelTotalPrice(obj) {
let totalPrice = 0;
obj.OrderDetailsList.forEach((item, index) => {
var coefficient = 1;
//税别
if (obj.TaxType == 2) {
coefficient = 1 + 0.1;
} }
if (obj.PayStyle === 1 || obj.PayStyle === 11) { return str;
if (index == 4 && obj.DMCPayType !== 1 && obj.DMCPayType !== 11) { },
totalPrice += 0; financeinfo_post_GetList() {
// 币种类型
this.apipost(
"financeinfo_post_GetList", {
Name: ""
},
res => {
if (res.data.resultCode == 1) {
let data = res.data.data;
data.forEach(item => {
this.currencyTypeObj[item.ID] = item.Name;
});
} else {}
},
err => {}
);
},
ZhuiJiaTuanKuan(item) {
let TCIDARR = [item.TCIDS]; // [this.$route.query.id]
let orderObj = {
OrderID: 0,
OrderSource: 8,
Obj: {},
SourceID: 0,
TCIDList: TCIDARR,
TravelReplenish: this.$route.query.id,
OtherType: 1
};
this.$router.push({
name: "ChoiceAddFinancialDocuments",
query: {
Type: 2,
companyID: item.companyID,
path: "",
blank: "y",
orderObj: JSON.stringify(orderObj)
}
});
},
getzhuijiaList() {
this.apipost(
"Financial_post_GetTravelFinanceReplenishList", {
TravelReplenish: this.$route.query.id
},
res => {
if (res.data.resultCode == 1) {
this.zhuijiaList = res.data.data.list;
}
},
err => {}
);
},
getHangingAccountByTCIDList: function () {
this.apipost(
"Financial_post_GetHangingAccountByTCIDList", {
TCIDs: this.$route.query.id
},
res => {
if (res.data.resultCode == 1) {
this.HangingList = res.data.data;
}
},
err => {}
);
},
goFncUrl: function (path, id) {
this.$router.push({
name: path,
query: {
id: id,
blank: "y"
}
});
},
goHotelDetail: function (id, num, TCNUM, path) {
this.$router.push({
name: path,
query: {
id: id,
NewCombinationNum: num,
TCNUM: TCNUM,
blank: "y"
}
});
},
goZhiDan2: function (obj, type, leadr, cur) {
let TCIDARR = [obj.TCIDS];
let orderObj = {
OrderID: 0,
OrderSource: 8,
Obj: {},
SourceID: 0,
TCIDList: TCIDARR,
CostType: 56,
Money: leadr.LeaderGetPriceT,
TCNUMS: obj.TCNUMS,
CurrencyId: leadr.CurrencyId
};
let id = [];
if (obj.LineId == this.LineId) {
id = [98, 99];
} else {
if (obj.OutBranchId === 0) {
id = [43, 48];
} else { } else {
totalPrice += id = [56, 53];
item.UnitPrice *
(item.BookNum - item.HotelDiscount) *
(coefficient - item.RebateRatio / 100);
} }
if ((obj.OPState == 1 || obj.DMCState == 1) && item.HouseType != 6) { }
totalPrice += item.BookNum * obj.InTangTax; this.$router.push({
name: "ChoiceAddFinancialDocuments",
query: {
Type: 2,
templateID: JSON.stringify(id),
companyID: obj.OutBranchId,
path: "",
blank: "y",
orderObj: JSON.stringify(orderObj)
} }
});
},
goZhiDan: function (obj, num, leadr, cur) {
if (!num) {
let totailMoney = Number(leadr.LeaderGetPriceT) + Number(cur.yiLing);
if (totailMoney > leadr.PlanPrice)
return this.$message.error("最大领款为预付合计金额的95%!");
if (!leadr.LeaderGetPriceT || leadr.LeaderGetPriceT <= 0)
return this.$message.error("请输入金额!");
}
if (this.list.hotelNoSureInfo !== "") {
this.$confirm(
`${this.list.hotelNoSureInfo},是否去制单?`,
this.$t("tips.tips"), {
confirmButtonText: this.$t("pub.sureBtn"),
cancelButtonText: this.$t("pub.cancelBtn"),
type: "warning"
}
)
.then(() => {
this.goZhiDan2(obj, num, leadr, cur);
})
.catch(() => {
return false;
});
} else { } else {
totalPrice += 0; this.goZhiDan2(obj, num, leadr, cur);
} }
}); },
totalPrice += obj.ParkFee + obj.CityTax; addOtherList(index, id) {
return this.moneyFormat(totalPrice); this.list.OtherOrderReportList.OtherList.push({
}, OrderType: "1",
diningTotalPrice(sObj, obj) { ID: 0,
let totalPrice = 0; UseDate: "",
obj.forEach(x => { CostProject: "0",
totalPrice += TotalNum: "0",
x.PeoplePrice * UnitPrice: "0",
(x.PeopleNum - x.Discount) * Rebate: "0",
(1 - x.DiscountPrice / 100); TotalPrice: "0",
}); Remark: "",
if (!(sObj.PayStyle == 1 || sObj.PayStyle == 11)) { TCIDs: this.$route.query.id,
totalPrice = 0; TCID: id,
} UseCount: this.UseCount,
return this.moneyFormat(totalPrice); VoucherPicList: []
}, });
scenicTotalPrice(sObj, obj) { },
let totalPrice = 0; deleteOtherListItem(outIndex, index) {
obj.forEach(x => { this.list.OtherOrderReportList.OtherList.splice(index, 1);
totalPrice += },
x.PeoplePrice * addSelfPlayingIncomeList(index, id) {
(x.UsePeopleNum - x.Discount) * this.list.OtherOrderReportList.SelfPlayingIncomeList.push({
(1 - x.DiscountPrice / 100); OrderType: "4",
}); ID: 0,
if (sObj.PayStyle !== 1) { UseDate: "",
totalPrice = 0; CostProject: 0,
} TotalNum: "0",
return this.moneyFormat(totalPrice); UnitPrice: "0",
}, Rebate: "0",
otherTotalPrice(obj) { TotalPrice: "0",
let totalPrice = 0; Remark: "",
obj.forEach(item => { TCID: id,
totalPrice += item.TotalNum * item.UnitPrice * (1 - item.Rebate / 100); UseCount: this.UseCount,
}); TCIDs: this.$route.query.id,
return this.moneyFormat(totalPrice); VoucherPicList: []
}, });
saveData() { },
this.apipost( deleteSelfPlayingIncomeListItem(outIndex, index) {
"dmcstatistics_post_SetOtherOrderList", this.list.OtherOrderReportList.SelfPlayingIncomeList.splice(index, 1);
this.list.OtherOrderReportList, },
res => { addSelfPlayingExpendList(index, id) {
if (res.data.resultCode == 1) { this.list.OtherOrderReportList.SelfPlayingExpendList.push({
this.$message.success(res.data.message); OrderType: "5",
this.getNav(); ID: 0,
this.getList(); UseDate: "",
CostProject: "",
TotalNum: "0",
UnitPrice: "0",
Rebate: "0",
TotalPrice: "0",
Remark: "",
TCID: id,
UseCount: this.UseCount,
TCIDs: this.$route.query.id,
VoucherPicList: []
});
},
deleteSelfPlayingExpendList(outIndex, index) {
this.list.OtherOrderReportList.SelfPlayingExpendList.splice(index, 1);
},
busTotalPrice(obj) {
let totalPrice = 0;
obj.forEach(item => {
totalPrice +=
Number(item.CostPrice) +
Number(item.HighSpeedPrice) +
Number(item.StopPrice);
});
return this.moneyFormat(totalPrice);
},
hotelTotalPrice(obj) {
let totalPrice = 0;
obj.OrderDetailsList.forEach((item, index) => {
var coefficient = 1;
//税别
if (obj.TaxType == 2) {
coefficient = 1 + 0.1;
}
if (obj.PayStyle === 1 || obj.PayStyle === 11) {
if (index == 4 && obj.DMCPayType !== 1 && obj.DMCPayType !== 11) {
totalPrice += 0;
} else {
totalPrice +=
item.UnitPrice *
(item.BookNum - item.HotelDiscount) *
(coefficient - item.RebateRatio / 100);
}
if ((obj.OPState == 1 || obj.DMCState == 1) && item.HouseType != 6) {
totalPrice += item.BookNum * obj.InTangTax;
}
} else { } else {
this.$message.error(res.data.message); totalPrice += 0;
} }
}, });
err => {} totalPrice += obj.ParkFee + obj.CityTax;
); return this.moneyFormat(totalPrice);
}, },
saveitem(obj) { diningTotalPrice(sObj, obj) {
this.TemporaryItem = obj; let totalPrice = 0;
}, obj.forEach(x => {
analyzeItem(obj, index) { totalPrice +=
//预览 x.PeoplePrice *
this.picObj = []; (x.PeopleNum - x.Discount) *
obj.forEach(item => { (1 - x.DiscountPrice / 100);
this.picObj.push(item.url); });
}); if (!(sObj.PayStyle == 1 || sObj.PayStyle == 11)) {
this.initialIndex = index; totalPrice = 0;
this.picIsShow = true; }
}, return this.moneyFormat(totalPrice);
peopleStrToWord(str) { },
if (str == 1) return "大人"; scenicTotalPrice(sObj, obj) {
if (str == 2) return "中人"; let totalPrice = 0;
if (str == 3) return "小人"; obj.forEach(x => {
}, totalPrice +=
UseDinnerTypeToWord(str) { x.PeoplePrice *
if (str == 1) return "早餐"; (x.UsePeopleNum - x.Discount) *
if (str == 2) return "午餐"; (1 - x.DiscountPrice / 100);
if (str == 3) return "晚餐"; });
}, if (sObj.PayStyle !== 1) {
CompareDate(d1, d2) { totalPrice = 0;
return new Date(d1.replace(/-/g, "/")) <= new Date(d2.replace(/-/g, "/")); }
}, return this.moneyFormat(totalPrice);
getNav() { },
let _this = this; otherTotalPrice(obj) {
this.apipost( let totalPrice = 0;
"dmcstatistics_post_GetHotelStaticsByTCIDs", obj.forEach(item => {
{ totalPrice += item.TotalNum * item.UnitPrice * (1 - item.Rebate / 100);
TCIDs: this.$route.query.id });
}, return this.moneyFormat(totalPrice);
res => { },
if (res.data.resultCode == 1) { saveData() {
let nav = res.data.data.list; this.apipost(
this.LineId = res.data.data.EntryId; "dmcstatistics_post_SetOtherOrderList",
if (nav[0].OutBranchId == 1216) { this.list.OtherOrderReportList,
this.IsShowRMB = true; res => {
if (res.data.resultCode == 1) {
this.$message.success(res.data.message);
this.getNav();
this.getList();
} else {
this.$message.error(res.data.message);
} }
let num = 0; },
nav.forEach(x => { err => {}
x.CurrencyIdArr = []; );
nav.LeaderGetPriceT = 0; },
num += x.LeaderGetPrice; saveitem(obj) {
x.hideZDBtn = false; this.TemporaryItem = obj;
if (Number(x.DMCRemark) >= 0) { },
x.hideZDBtn = true; analyzeItem(obj, index) {
//预览
this.picObj = [];
obj.forEach(item => {
this.picObj.push(item.url);
});
this.initialIndex = index;
this.picIsShow = true;
},
peopleStrToWord(str) {
if (str == 1) return "大人";
if (str == 2) return "中人";
if (str == 3) return "小人";
},
UseDinnerTypeToWord(str) {
if (str == 1) return "早餐";
if (str == 2) return "午餐";
if (str == 3) return "晚餐";
},
CompareDate(d1, d2) {
return new Date(d1.replace(/-/g, "/")) <= new Date(d2.replace(/-/g, "/"));
},
getNav() {
let _this = this;
this.apipost(
"dmcstatistics_post_GetHotelStaticsByTCIDs", {
TCIDs: this.$route.query.id
},
res => {
if (res.data.resultCode == 1) {
let nav = res.data.data.list;
this.LineId = res.data.data.EntryId;
if (nav[0].OutBranchId == 1216) {
this.IsShowRMB = true;
} }
x.LeaderGetPriceList.forEach(lead => { let num = 0;
if (x.CurrencyIdArr.indexOf(lead.CurrencyId) < 0) { nav.forEach(x => {
x.CurrencyIdArr.push(lead.CurrencyId); x.CurrencyIdArr = [];
} nav.LeaderGetPriceT = 0;
}); num += x.LeaderGetPrice;
}); x.hideZDBtn = false;
// 预付合计总金额 if (Number(x.DMCRemark) >= 0) {
let CurrencyIdArr = []; x.hideZDBtn = true;
this.CurrencyListMoney = [];
if (this.TotalNav.planPriceList) {
this.TotalNav.planPriceList.forEach(item => {
if (CurrencyIdArr.indexOf(item.CurrencyId) < 0) {
CurrencyIdArr.push(item.CurrencyId);
} }
}); x.LeaderGetPriceList.forEach(lead => {
CurrencyIdArr.forEach(id => { if (x.CurrencyIdArr.indexOf(lead.CurrencyId) < 0) {
let obj = { x.CurrencyIdArr.push(lead.CurrencyId);
money: 0,
CurrencyId: 0
};
this.TotalNav.planPriceList.forEach(item => {
if (item.CurrencyId == id) {
obj.money += item.PlanTotalPrice;
obj.CurrencyId = item.CurrencyId;
} }
}); });
this.CurrencyListMoney.push(obj);
}); });
} // 预付合计总金额
this.CurrencyListMoney.forEach((cur, i) => { let CurrencyIdArr = [];
cur.yiLing = 0; this.CurrencyListMoney = [];
cur.LeaderGetPriceArr = []; if (this.TotalNav.planPriceList) {
nav.forEach(x => { this.TotalNav.planPriceList.forEach(item => {
let obj = { if (CurrencyIdArr.indexOf(item.CurrencyId) < 0) {
CurrencyId: cur.CurrencyId, CurrencyIdArr.push(item.CurrencyId);
LeaderGetPrice: 0,
LeaderGetPriceT: 0,
TCNUMS: x.TCNUMS,
TCIDS: x.TCIDS
};
x.LeaderGetPriceList.forEach(price => {
if (cur.CurrencyId == price.CurrencyId) {
obj.CurrencyId = price.CurrencyId;
obj.LeaderGetPrice += price.OrderMakingPrice;
cur.yiLing += price.OrderMakingPrice;
} }
}); });
cur.LeaderGetPriceArr.push(obj); CurrencyIdArr.forEach(id => {
}); let obj = {
}); money: 0,
this.CurrencyListMoney.forEach((cur, i) => { CurrencyId: 0
cur.LeaderGetPriceArr.forEach(lead => { };
lead.LeaderGetPriceT = this.TotalNav.planPriceList.forEach(item => {
Math.floor((cur.money * 0.95 - cur.yiLing) * 100) / 100; if (item.CurrencyId == id) {
lead.PlanPrice = cur.money * 0.95; obj.money += item.PlanTotalPrice;
obj.CurrencyId = item.CurrencyId;
}
});
this.CurrencyListMoney.push(obj);
});
}
this.CurrencyListMoney.forEach((cur, i) => {
cur.yiLing = 0;
cur.LeaderGetPriceArr = [];
nav.forEach(x => {
let obj = {
CurrencyId: cur.CurrencyId,
LeaderGetPrice: 0,
LeaderGetPriceT: 0,
TCNUMS: x.TCNUMS,
TCIDS: x.TCIDS
};
x.LeaderGetPriceList.forEach(price => {
if (cur.CurrencyId == price.CurrencyId) {
obj.CurrencyId = price.CurrencyId;
obj.LeaderGetPrice += price.OrderMakingPrice;
cur.yiLing += price.OrderMakingPrice;
}
});
cur.LeaderGetPriceArr.push(obj);
});
}); });
}); this.CurrencyListMoney.forEach((cur, i) => {
this.nav = nav; cur.LeaderGetPriceArr.forEach(lead => {
} else { lead.LeaderGetPriceT =
this.Error(res.data.message); Math.floor((cur.money * 0.95 - cur.yiLing) * 100) / 100;
} lead.PlanPrice = cur.money * 0.95;
}, });
err => {}
);
},
getTotalNav() {
this.apipost(
"dmcstatistics_post_GetNewPlanTotalPrice_V2",
{
TCIDs: this.$route.query.id
},
res => {
if (res.data.resultCode == 1) {
this.TotalNav = res.data.data;
this.getNav();
} else {
this.Error(res.data.message);
}
},
err => {}
);
},
getList() {
this.loading = true;
this.apipost(
"dmcstatistics_post_GetGroupLeaderUserMoneyPlan",
this.msg,
res => {
this.loading = false;
if (res.data.resultCode == 1) {
this.list = res.data.data;
this.ContractUrlCount = res.data.data.ContractUrlCount;
this.UseCount = this.list.UseCount;
if (
this.list.OtherOrderReportList.OtherList &&
this.list.OtherOrderReportList.OtherList.length > 0
) {
this.list.OtherOrderReportList.OtherList.forEach(x => {
x.CostProject = x.CostProject.toString();
}); });
this.nav = nav;
} else {
this.Error(res.data.message);
} }
} else { },
this.Error(res.data.message); err => {}
} );
}, },
err => {} getTotalNav() {
); this.apipost(
} "dmcstatistics_post_GetNewPlanTotalPrice_V2", {
}, TCIDs: this.$route.query.id
mounted() { },
this.isUpdate = this.$route.query.isUpdate; res => {
this.msg.TCIDs = this.$route.query.id; if (res.data.resultCode == 1) {
this.NewCombinationNum = this.$route.query.NewCombinationNum; this.TotalNav = res.data.data;
this.getNav();
} else {
this.Error(res.data.message);
}
},
err => {}
);
},
getList() {
this.loading = true;
this.apipost(
"dmcstatistics_post_GetGroupLeaderUserMoneyPlan",
this.msg,
res => {
this.loading = false;
if (res.data.resultCode == 1) {
this.list = res.data.data;
this.ContractUrlCount = res.data.data.ContractUrlCount;
this.UseCount = this.list.UseCount;
if (
this.list.OtherOrderReportList.OtherList &&
this.list.OtherOrderReportList.OtherList.length > 0
) {
this.list.OtherOrderReportList.OtherList.forEach(x => {
x.CostProject = x.CostProject.toString();
});
}
} else {
this.Error(res.data.message);
}
},
err => {}
);
}
},
mounted() {
this.isUpdate = this.$route.query.isUpdate;
this.msg.TCIDs = this.$route.query.id;
this.NewCombinationNum = this.$route.query.NewCombinationNum;
if (this.$route.query.OutBranchId == 1216) { if (this.$route.query.OutBranchId == 1216) {
this.IsShowRMB = true; this.IsShowRMB = true;
}
this.getList();
this.getTotalNav();
this.getHangingAccountByTCIDList();
this.getzhuijiaList();
this.financeinfo_post_GetList();
} }
this.getList(); };
this.getTotalNav();
this.getHangingAccountByTCIDList();
this.getzhuijiaList();
this.financeinfo_post_GetList();
}
};
</script> </script>
<style> <style>
.leaderReimbursementTableNav { .leaderReimbursementTableNav {
background: #d6cece; background: #d6cece;
width: 100%; width: 100%;
margin: 20px 0; margin: 20px 0;
} }
.leaderReimbursementTableNav tr th { .leaderReimbursementTableNav tr th {
background: #e6e6e6; background: #e6e6e6;
height: 40px; height: 40px;
font-size: 12px; font-size: 12px;
color: #333; color: #333;
} }
.leaderReimbursementTableNav tr { .leaderReimbursementTableNav tr {
background: #fff; background: #fff;
text-align: center; text-align: center;
height: 40px; height: 40px;
font-size: 12px; font-size: 12px;
} }
.leaderReimbursementTableNav tr td { .leaderReimbursementTableNav tr td {
background: #fff; background: #fff;
text-align: center; text-align: center;
height: 20px; height: 20px;
font-size: 12px; font-size: 12px;
} }
.leaderReimbursementTableNav ._go_detail p { .leaderReimbursementTableNav ._go_detail p {
cursor: pointer; cursor: pointer;
line-height: 25px; line-height: 25px;
} }
.leaderReimbursementTable { .leaderReimbursementTable {
width: 100%; width: 100%;
margin: 20px 0; margin: 20px 0;
border-collapse: collapse; border-collapse: collapse;
} }
.leaderReimbursementTable tr th { .leaderReimbursementTable tr th {
background: #e6e6e6; background: #e6e6e6;
height: 40px; height: 40px;
font-size: 13px; font-size: 13px;
color: #333; color: #333;
border: 1px solid #ccc; border: 1px solid #ccc;
text-align: center; text-align: center;
} }
.leaderReimbursementTable tr td { .leaderReimbursementTable tr td {
border: 1px solid #ccc; border: 1px solid #ccc;
line-height: 25px; line-height: 25px;
height: 25px; height: 25px;
font-size: 12px; font-size: 12px;
background: #fff; background: #fff;
text-align: center; text-align: center;
} }
.leader2Btn { .leader2Btn {
color: #fff; color: #fff;
padding: 0 15px; padding: 0 15px;
height: 30px; height: 30px;
background: #e95252; background: #e95252;
border: 1px solid #e95252; border: 1px solid #e95252;
cursor: pointer; cursor: pointer;
border-radius: 15px; border-radius: 15px;
} }
.Receipt_box { .Receipt_box {
padding: 15px; padding: 15px;
color: #c94052; color: #c94052;
width: 614px; width: 614px;
background-color: rgba(242, 242, 242, 1); background-color: rgba(242, 242, 242, 1);
border: 1px solid rgba(228, 228, 228, 1); border: 1px solid rgba(228, 228, 228, 1);
} }
.Receipt_box.color_blur { .Receipt_box.color_blur {
color: #106baf; color: #106baf;
} }
.Receipt_box.color_blur .rb_stit span { .Receipt_box.color_blur .rb_stit span {
display: inline-block; display: inline-block;
border-bottom: 2px solid #106baf; border-bottom: 2px solid #106baf;
padding: 0 20px; padding: 0 20px;
} }
.rb_tit { .rb_tit {
font-size: 18px; font-size: 18px;
text-align: center; text-align: center;
} }
.rb_stit { .rb_stit {
font-size: 14px; font-size: 14px;
text-align: center; text-align: center;
} }
.rb_stit span { .rb_stit span {
display: inline-block; display: inline-block;
border-bottom: 2px solid #c94052; border-bottom: 2px solid #c94052;
padding: 0 20px; padding: 0 20px;
} }
.rb_top_row { .rb_top_row {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
font-size: 12px; font-size: 12px;
} }
.rb_top_row span._r_name { .rb_top_row span._r_name {
color: #333333; color: #333333;
} }
.rb_top_row span._r_bold { .rb_top_row span._r_bold {
font-weight: bold; font-weight: bold;
} }
.rb_top_row ._r_time span { .rb_top_row ._r_time span {
color: #333333; color: #333333;
} }
._r_mb5 { ._r_mb5 {
margin-bottom: 5px; margin-bottom: 5px;
} }
.Receipt_table { .Receipt_table {
width: 100%; width: 100%;
font-size: 14px; font-size: 14px;
text-align: center; text-align: center;
} }
.Receipt_table .th { .Receipt_table .th {
font-weight: 200 !important; font-weight: 200 !important;
} }
._r_mt10 { ._r_mt10 {
margin-top: 10px; margin-top: 10px;
} }
._bg__ {
display: inline-block;
padding: 2px 8px;
color: white;
border-radius: 4px;
}
._bg__ { ._bg_red {
display: inline-block; background-color: #e95252;
padding: 2px 8px; }
color: white;
border-radius: 4px;
}
._bg_red { ._bg_green {
background-color: #e95252; background-color: #2bb87c;
} }
._bg_green { .text_d {
background-color: #2bb87c; text-decoration: underline;
} cursor: pointer;
}
.text_d { .PingFangSC {
text-decoration: underline; font-weight: bold;
cursor: pointer; }
}
.PingFangSC { .Bill_par {
font-weight: bold; position: relative;
} }
.Bill_par { tr._item_list {
position: relative; border-bottom: 1px solid #e5e5e5;
} height: 78px;
}
tr._item_list { tr._item_list td {
border-bottom: 1px solid #e5e5e5; border-bottom: 1px solid #e5e5e5;
height: 78px; padding: 10px;
} }
tr._item_list td { /* tr._t_head th{border-top: 1px solid #e5e5e5;} */
border-bottom: 1px solid #e5e5e5; tr._item_list td:first-child {
padding: 10px; border-left: 1px solid #e5e5e5;
} }
/* tr._t_head th{border-top: 1px solid #e5e5e5;} */ tr._item_list td:last-child {
tr._item_list td:first-child { border-right: 1px solid #e5e5e5;
border-left: 1px solid #e5e5e5; }
}
tr._item_list td:last-child { ._head_img {
border-right: 1px solid #e5e5e5; width: 28px;
} height: 28px;
border-radius: 50%;
vertical-align: middle;
}
._head_img { ._btn_group {
width: 28px; font-size: 14px;
height: 28px; }
border-radius: 50%;
vertical-align: middle;
}
._btn_group { .icon-daiqueren {
font-size: 14px; color: #4bca81;
} }
.icon-daiqueren { .icon-yiqueren {
color: #4bca81; color: #4bca81;
} }
.icon-yiqueren { .icon-yiquxiao {
color: #4bca81; color: #959595;
} }
.icon-yiquxiao { .icon-shenhebohui {
color: #959595; color: #e95252;
} }
.icon-shenhebohui { .icon-icon-zancun {
color: #e95252; color: #ff9c01;
} }
.icon-icon-zancun { .singeRowTable tr:hover {
color: #ff9c01; background-color: white;
} }
.singeRowTable tr:hover { ._TradeWayList {
background-color: white; padding: 5px 10px;
} background-color: #eeeeee;
border-radius: 4px;
margin: 10px 0;
width: 230px;
}
._TradeWayList { ._bold {
padding: 5px 10px; font-weight: bold;
background-color: #eeeeee; }
border-radius: 4px;
margin: 10px 0;
width: 230px;
}
._bold { ._bank_name,
font-weight: bold; ._bank_type {
} display: inline-block;
background-color: #333333;
color: white;
padding: 2px 4px;
border-radius: 4px;
margin-left: 10px;
}
._bank_name, ._bank_name {
._bank_type { margin-left: 10px;
display: inline-block; }
background-color: #333333;
color: white;
padding: 2px 4px;
border-radius: 4px;
margin-left: 10px;
}
._bank_name { ._bank_type {
margin-left: 10px; background-color: #2aaef2;
} }
._bank_type { ._bank_type2 {
background-color: #2aaef2; background-color: #ff9c01;
} }
._bank_type2 {
background-color: #ff9c01;
}
</style> </style>
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