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

页面修改

parent 94316e25
......@@ -112,6 +112,13 @@
</td>
<td>
{{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>
{{item.CostPrice >= 0 && item.CostPrice !== null ? moneyFormat(item.CostPrice) : ''}}
......@@ -124,7 +131,7 @@
<span v-else-if="item.PayType === 6">合团公司支付</span>
<span v-else-if="item.PayType === 8">酒店接送</span>
<span v-else></span>
<br/>
<br />
<span v-show="item.PayType==6">付款团号:{{item.PayTypeTCNUM}}</span>
</td>
<td>
......@@ -228,7 +235,8 @@
</template>
</td>
<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 v-if="childIndex==0" :rowspan="6" style="text-align:left;color:red; ">
{{subItem.HotelName!=subItem.NewHotelName?""+subItem.NewHotelName:""}}
......@@ -367,21 +375,21 @@
<span v-else-if="subItem.DMCPayType === 9">月结</span>
<span v-else-if="subItem.DMCPayType === 11">刷卡</span>
<span v-else-if="subItem.DMCPayType === 10">领队导游垫付</span>
<br/>
<br />
<span v-show="subItem.DMCPayType==6">付款团号:{{subItem.PayTypeTCNUM}}</span>
</td>
<td v-if="childIndex==0" :rowspan="6">
<span>{{subItem.SupplierName}}
<br/>
<span>{{subItem.SupplierName}}
<br />
<template v-if="subItem.SupplierPayType !== 0">
<span v-if="subItem.SupplierPayType == 1">
现付
<span v-if="subItem.SupplierPayType == 1">
现付
</span>
<span v-else-if="subItem.SupplierPayType == 2">
签单
<span v-else-if="subItem.SupplierPayType == 2">
签单
</span>
<span v-else-if="subItem.SupplierPayType == 4">
预付
<span v-else-if="subItem.SupplierPayType == 4">
预付
</span>
</template>
</span>
......@@ -698,10 +706,9 @@
<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"
@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">
<input type="button" value="制单" class="normalBtn"
@click="goZhiDan(item,0,leadr,cur)" />
<input type="button" value="制单" class="normalBtn" @click="goZhiDan(item,0,leadr,cur)" />
</el-tooltip>
</template>
<template v-else-if="ContractUrlCount !== 0 && index2==0">
......@@ -801,863 +808,860 @@
</template>
<script>
import commonHotelInfo from "../commonPage/commonHotelInfo.vue";
import { constants } from "os";
export default {
data() {
return {
isUpdate: "false",
LineId: 0,
loading: false,
defaultSelectValue: 0,
initialIndex: 0,
picIsShow: false,
picObj: [],
TemporaryItem: {},
msg: {
TCIDs: "",
NewCombinationNum: ""
},
zhuijiaList: [],
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: ""
import commonHotelInfo from "../commonPage/commonHotelInfo.vue";
import {
constants
} from "os";
export default {
data() {
return {
isUpdate: "false",
LineId: 0,
loading: false,
defaultSelectValue: 0,
initialIndex: 0,
picIsShow: false,
picObj: [],
TemporaryItem: {},
msg: {
TCIDs: "",
NewCombinationNum: ""
},
res => {
if (res.data.resultCode == 1) {
let data = res.data.data;
data.forEach(item => {
this.currencyTypeObj[item.ID] = item.Name;
});
} else {
}
zhuijiaList: [],
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 //跨行
},
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
CurrencyListMoney: [],
currencyTypeObj: [],
//判断是否显示人民币
IsShowRMB: false,
ContractUrlCount: 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 => {}
);
components: {
commonHotelInfo
},
getHangingAccountByTCIDList: function() {
this.apipost(
"Financial_post_GetHangingAccountByTCIDList",
{
TCIDs: this.$route.query.id
},
res => {
if (res.data.resultCode == 1) {
this.HangingList = res.data.data;
methods: {
// 20190815 新增领款单据重新生成自动带上计算后的金额
goFncEditUrl(url, crId, frId) {
let obj = {};
this.CurrencyListMoney.map(x => {
if (x.CurrencyId == crId) {
obj = x;
}
},
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];
});
let price = obj.money * 0.95;
let calcPrice = 0;
if (crId == 1) {
//人民币
calcPrice =
parseInt(price / 1000) > 0 ?
parseInt(price / 1000) * 1000 :
parseInt(price);
} else {
id = [56, 53];
}
}
this.$router.push({
name: "ChoiceAddFinancialDocuments",
query: {
Type: 2,
templateID: JSON.stringify(id),
companyID: obj.OutBranchId,
path: "",
blank: "y",
orderObj: JSON.stringify(orderObj)
// 其他
calcPrice =
parseInt(price / 10000) > 0 ?
parseInt(price / 10000) * 10000 :
parseInt(price);
}
});
},
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"
this.$router.push({
name: url,
query: {
FrID: frId,
blank: "y",
edit: true,
dijieEditMoney: calcPrice,
tab: "修改财务单据"
}
)
.then(() => {
this.goZhiDan2(obj, num, leadr, cur);
})
.catch(() => {
return false;
});
} else {
this.goZhiDan2(obj, num, leadr, cur);
}
},
addOtherList(index, id) {
this.list.OtherOrderReportList.OtherList.push({
OrderType: "1",
ID: 0,
UseDate: "",
CostProject: "0",
TotalNum: "0",
UnitPrice: "0",
Rebate: "0",
TotalPrice: "0",
Remark: "",
TCIDs: this.$route.query.id,
TCID: id,
UseCount: this.UseCount,
VoucherPicList: []
});
},
deleteOtherListItem(outIndex, index) {
this.list.OtherOrderReportList.OtherList.splice(index, 1);
},
addSelfPlayingIncomeList(index, id) {
this.list.OtherOrderReportList.SelfPlayingIncomeList.push({
OrderType: "4",
ID: 0,
UseDate: "",
CostProject: 0,
TotalNum: "0",
UnitPrice: "0",
Rebate: "0",
TotalPrice: "0",
Remark: "",
TCID: id,
UseCount: this.UseCount,
TCIDs: this.$route.query.id,
VoucherPicList: []
});
},
deleteSelfPlayingIncomeListItem(outIndex, index) {
this.list.OtherOrderReportList.SelfPlayingIncomeList.splice(index, 1);
},
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;
});
},
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;
}
if (obj.PayStyle === 1 || obj.PayStyle === 11) {
if (index == 4 && obj.DMCPayType !== 1 && obj.DMCPayType !== 11) {
totalPrice += 0;
return str;
},
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 {
totalPrice +=
item.UnitPrice *
(item.BookNum - item.HotelDiscount) *
(coefficient - item.RebateRatio / 100);
id = [56, 53];
}
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 {
totalPrice += 0;
this.goZhiDan2(obj, num, leadr, cur);
}
});
totalPrice += obj.ParkFee + obj.CityTax;
return this.moneyFormat(totalPrice);
},
diningTotalPrice(sObj, obj) {
let totalPrice = 0;
obj.forEach(x => {
totalPrice +=
x.PeoplePrice *
(x.PeopleNum - x.Discount) *
(1 - x.DiscountPrice / 100);
});
if (!(sObj.PayStyle == 1 || sObj.PayStyle == 11)) {
totalPrice = 0;
}
return this.moneyFormat(totalPrice);
},
scenicTotalPrice(sObj, obj) {
let totalPrice = 0;
obj.forEach(x => {
totalPrice +=
x.PeoplePrice *
(x.UsePeopleNum - x.Discount) *
(1 - x.DiscountPrice / 100);
});
if (sObj.PayStyle !== 1) {
totalPrice = 0;
}
return this.moneyFormat(totalPrice);
},
otherTotalPrice(obj) {
let totalPrice = 0;
obj.forEach(item => {
totalPrice += item.TotalNum * item.UnitPrice * (1 - item.Rebate / 100);
});
return this.moneyFormat(totalPrice);
},
saveData() {
this.apipost(
"dmcstatistics_post_SetOtherOrderList",
this.list.OtherOrderReportList,
res => {
if (res.data.resultCode == 1) {
this.$message.success(res.data.message);
this.getNav();
this.getList();
},
addOtherList(index, id) {
this.list.OtherOrderReportList.OtherList.push({
OrderType: "1",
ID: 0,
UseDate: "",
CostProject: "0",
TotalNum: "0",
UnitPrice: "0",
Rebate: "0",
TotalPrice: "0",
Remark: "",
TCIDs: this.$route.query.id,
TCID: id,
UseCount: this.UseCount,
VoucherPicList: []
});
},
deleteOtherListItem(outIndex, index) {
this.list.OtherOrderReportList.OtherList.splice(index, 1);
},
addSelfPlayingIncomeList(index, id) {
this.list.OtherOrderReportList.SelfPlayingIncomeList.push({
OrderType: "4",
ID: 0,
UseDate: "",
CostProject: 0,
TotalNum: "0",
UnitPrice: "0",
Rebate: "0",
TotalPrice: "0",
Remark: "",
TCID: id,
UseCount: this.UseCount,
TCIDs: this.$route.query.id,
VoucherPicList: []
});
},
deleteSelfPlayingIncomeListItem(outIndex, index) {
this.list.OtherOrderReportList.SelfPlayingIncomeList.splice(index, 1);
},
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) {
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 {
this.$message.error(res.data.message);
totalPrice += 0;
}
},
err => {}
);
},
saveitem(obj) {
this.TemporaryItem = obj;
},
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;
});
totalPrice += obj.ParkFee + obj.CityTax;
return this.moneyFormat(totalPrice);
},
diningTotalPrice(sObj, obj) {
let totalPrice = 0;
obj.forEach(x => {
totalPrice +=
x.PeoplePrice *
(x.PeopleNum - x.Discount) *
(1 - x.DiscountPrice / 100);
});
if (!(sObj.PayStyle == 1 || sObj.PayStyle == 11)) {
totalPrice = 0;
}
return this.moneyFormat(totalPrice);
},
scenicTotalPrice(sObj, obj) {
let totalPrice = 0;
obj.forEach(x => {
totalPrice +=
x.PeoplePrice *
(x.UsePeopleNum - x.Discount) *
(1 - x.DiscountPrice / 100);
});
if (sObj.PayStyle !== 1) {
totalPrice = 0;
}
return this.moneyFormat(totalPrice);
},
otherTotalPrice(obj) {
let totalPrice = 0;
obj.forEach(item => {
totalPrice += item.TotalNum * item.UnitPrice * (1 - item.Rebate / 100);
});
return this.moneyFormat(totalPrice);
},
saveData() {
this.apipost(
"dmcstatistics_post_SetOtherOrderList",
this.list.OtherOrderReportList,
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 => {
x.CurrencyIdArr = [];
nav.LeaderGetPriceT = 0;
num += x.LeaderGetPrice;
x.hideZDBtn = false;
if (Number(x.DMCRemark) >= 0) {
x.hideZDBtn = true;
},
err => {}
);
},
saveitem(obj) {
this.TemporaryItem = obj;
},
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 => {
if (x.CurrencyIdArr.indexOf(lead.CurrencyId) < 0) {
x.CurrencyIdArr.push(lead.CurrencyId);
}
});
});
// 预付合计总金额
let CurrencyIdArr = [];
this.CurrencyListMoney = [];
if (this.TotalNav.planPriceList) {
this.TotalNav.planPriceList.forEach(item => {
if (CurrencyIdArr.indexOf(item.CurrencyId) < 0) {
CurrencyIdArr.push(item.CurrencyId);
let num = 0;
nav.forEach(x => {
x.CurrencyIdArr = [];
nav.LeaderGetPriceT = 0;
num += x.LeaderGetPrice;
x.hideZDBtn = false;
if (Number(x.DMCRemark) >= 0) {
x.hideZDBtn = true;
}
});
CurrencyIdArr.forEach(id => {
let obj = {
money: 0,
CurrencyId: 0
};
this.TotalNav.planPriceList.forEach(item => {
if (item.CurrencyId == id) {
obj.money += item.PlanTotalPrice;
obj.CurrencyId = item.CurrencyId;
x.LeaderGetPriceList.forEach(lead => {
if (x.CurrencyIdArr.indexOf(lead.CurrencyId) < 0) {
x.CurrencyIdArr.push(lead.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;
// 预付合计总金额
let CurrencyIdArr = [];
this.CurrencyListMoney = [];
if (this.TotalNav.planPriceList) {
this.TotalNav.planPriceList.forEach(item => {
if (CurrencyIdArr.indexOf(item.CurrencyId) < 0) {
CurrencyIdArr.push(item.CurrencyId);
}
});
cur.LeaderGetPriceArr.push(obj);
});
});
this.CurrencyListMoney.forEach((cur, i) => {
cur.LeaderGetPriceArr.forEach(lead => {
lead.LeaderGetPriceT =
Math.floor((cur.money * 0.95 - cur.yiLing) * 100) / 100;
lead.PlanPrice = cur.money * 0.95;
CurrencyIdArr.forEach(id => {
let obj = {
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) => {
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.nav = nav;
} else {
this.Error(res.data.message);
}
},
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.CurrencyListMoney.forEach((cur, i) => {
cur.LeaderGetPriceArr.forEach(lead => {
lead.LeaderGetPriceT =
Math.floor((cur.money * 0.95 - cur.yiLing) * 100) / 100;
lead.PlanPrice = cur.money * 0.95;
});
});
this.nav = nav;
} else {
this.Error(res.data.message);
}
} 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;
},
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();
});
}
} 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) {
this.IsShowRMB = true;
if (this.$route.query.OutBranchId == 1216) {
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>
<style>
.leaderReimbursementTableNav {
background: #d6cece;
width: 100%;
margin: 20px 0;
}
.leaderReimbursementTableNav {
background: #d6cece;
width: 100%;
margin: 20px 0;
}
.leaderReimbursementTableNav tr th {
background: #e6e6e6;
height: 40px;
font-size: 12px;
color: #333;
}
.leaderReimbursementTableNav tr th {
background: #e6e6e6;
height: 40px;
font-size: 12px;
color: #333;
}
.leaderReimbursementTableNav tr {
background: #fff;
text-align: center;
height: 40px;
font-size: 12px;
}
.leaderReimbursementTableNav tr {
background: #fff;
text-align: center;
height: 40px;
font-size: 12px;
}
.leaderReimbursementTableNav tr td {
background: #fff;
text-align: center;
height: 20px;
font-size: 12px;
}
.leaderReimbursementTableNav tr td {
background: #fff;
text-align: center;
height: 20px;
font-size: 12px;
}
.leaderReimbursementTableNav ._go_detail p {
cursor: pointer;
line-height: 25px;
}
.leaderReimbursementTableNav ._go_detail p {
cursor: pointer;
line-height: 25px;
}
.leaderReimbursementTable {
width: 100%;
margin: 20px 0;
border-collapse: collapse;
}
.leaderReimbursementTable {
width: 100%;
margin: 20px 0;
border-collapse: collapse;
}
.leaderReimbursementTable tr th {
background: #e6e6e6;
height: 40px;
font-size: 13px;
color: #333;
border: 1px solid #ccc;
text-align: center;
}
.leaderReimbursementTable tr th {
background: #e6e6e6;
height: 40px;
font-size: 13px;
color: #333;
border: 1px solid #ccc;
text-align: center;
}
.leaderReimbursementTable tr td {
border: 1px solid #ccc;
line-height: 25px;
height: 25px;
font-size: 12px;
background: #fff;
text-align: center;
}
.leaderReimbursementTable tr td {
border: 1px solid #ccc;
line-height: 25px;
height: 25px;
font-size: 12px;
background: #fff;
text-align: center;
}
.leader2Btn {
color: #fff;
padding: 0 15px;
height: 30px;
background: #e95252;
border: 1px solid #e95252;
cursor: pointer;
border-radius: 15px;
}
.leader2Btn {
color: #fff;
padding: 0 15px;
height: 30px;
background: #e95252;
border: 1px solid #e95252;
cursor: pointer;
border-radius: 15px;
}
.Receipt_box {
padding: 15px;
color: #c94052;
width: 614px;
background-color: rgba(242, 242, 242, 1);
border: 1px solid rgba(228, 228, 228, 1);
}
.Receipt_box {
padding: 15px;
color: #c94052;
width: 614px;
background-color: rgba(242, 242, 242, 1);
border: 1px solid rgba(228, 228, 228, 1);
}
.Receipt_box.color_blur {
color: #106baf;
}
.Receipt_box.color_blur {
color: #106baf;
}
.Receipt_box.color_blur .rb_stit span {
display: inline-block;
border-bottom: 2px solid #106baf;
padding: 0 20px;
}
.Receipt_box.color_blur .rb_stit span {
display: inline-block;
border-bottom: 2px solid #106baf;
padding: 0 20px;
}
.rb_tit {
font-size: 18px;
text-align: center;
}
.rb_tit {
font-size: 18px;
text-align: center;
}
.rb_stit {
font-size: 14px;
text-align: center;
}
.rb_stit {
font-size: 14px;
text-align: center;
}
.rb_stit span {
display: inline-block;
border-bottom: 2px solid #c94052;
padding: 0 20px;
}
.rb_stit span {
display: inline-block;
border-bottom: 2px solid #c94052;
padding: 0 20px;
}
.rb_top_row {
display: flex;
justify-content: space-between;
font-size: 12px;
}
.rb_top_row {
display: flex;
justify-content: space-between;
font-size: 12px;
}
.rb_top_row span._r_name {
color: #333333;
}
.rb_top_row span._r_name {
color: #333333;
}
.rb_top_row span._r_bold {
font-weight: bold;
}
.rb_top_row span._r_bold {
font-weight: bold;
}
.rb_top_row ._r_time span {
color: #333333;
}
.rb_top_row ._r_time span {
color: #333333;
}
._r_mb5 {
margin-bottom: 5px;
}
._r_mb5 {
margin-bottom: 5px;
}
.Receipt_table {
width: 100%;
font-size: 14px;
text-align: center;
}
.Receipt_table {
width: 100%;
font-size: 14px;
text-align: center;
}
.Receipt_table .th {
font-weight: 200 !important;
}
.Receipt_table .th {
font-weight: 200 !important;
}
._r_mt10 {
margin-top: 10px;
}
._r_mt10 {
margin-top: 10px;
}
._bg__ {
display: inline-block;
padding: 2px 8px;
color: white;
border-radius: 4px;
}
._bg__ {
display: inline-block;
padding: 2px 8px;
color: white;
border-radius: 4px;
}
._bg_red {
background-color: #e95252;
}
._bg_red {
background-color: #e95252;
}
._bg_green {
background-color: #2bb87c;
}
._bg_green {
background-color: #2bb87c;
}
.text_d {
text-decoration: underline;
cursor: pointer;
}
.text_d {
text-decoration: underline;
cursor: pointer;
}
.PingFangSC {
font-weight: bold;
}
.PingFangSC {
font-weight: bold;
}
.Bill_par {
position: relative;
}
.Bill_par {
position: relative;
}
tr._item_list {
border-bottom: 1px solid #e5e5e5;
height: 78px;
}
tr._item_list {
border-bottom: 1px solid #e5e5e5;
height: 78px;
}
tr._item_list td {
border-bottom: 1px solid #e5e5e5;
padding: 10px;
}
tr._item_list td {
border-bottom: 1px solid #e5e5e5;
padding: 10px;
}
/* tr._t_head th{border-top: 1px solid #e5e5e5;} */
tr._item_list td:first-child {
border-left: 1px solid #e5e5e5;
}
/* tr._t_head th{border-top: 1px solid #e5e5e5;} */
tr._item_list td:first-child {
border-left: 1px solid #e5e5e5;
}
tr._item_list td:last-child {
border-right: 1px solid #e5e5e5;
}
tr._item_list td:last-child {
border-right: 1px solid #e5e5e5;
}
._head_img {
width: 28px;
height: 28px;
border-radius: 50%;
vertical-align: middle;
}
._head_img {
width: 28px;
height: 28px;
border-radius: 50%;
vertical-align: middle;
}
._btn_group {
font-size: 14px;
}
._btn_group {
font-size: 14px;
}
.icon-daiqueren {
color: #4bca81;
}
.icon-daiqueren {
color: #4bca81;
}
.icon-yiqueren {
color: #4bca81;
}
.icon-yiqueren {
color: #4bca81;
}
.icon-yiquxiao {
color: #959595;
}
.icon-yiquxiao {
color: #959595;
}
.icon-shenhebohui {
color: #e95252;
}
.icon-shenhebohui {
color: #e95252;
}
.icon-icon-zancun {
color: #ff9c01;
}
.icon-icon-zancun {
color: #ff9c01;
}
.singeRowTable tr:hover {
background-color: white;
}
.singeRowTable tr:hover {
background-color: white;
}
._TradeWayList {
padding: 5px 10px;
background-color: #eeeeee;
border-radius: 4px;
margin: 10px 0;
width: 230px;
}
._TradeWayList {
padding: 5px 10px;
background-color: #eeeeee;
border-radius: 4px;
margin: 10px 0;
width: 230px;
}
._bold {
font-weight: bold;
}
._bold {
font-weight: bold;
}
._bank_name,
._bank_type {
display: inline-block;
background-color: #333333;
color: white;
padding: 2px 4px;
border-radius: 4px;
margin-left: 10px;
}
._bank_name,
._bank_type {
display: inline-block;
background-color: #333333;
color: white;
padding: 2px 4px;
border-radius: 4px;
margin-left: 10px;
}
._bank_name {
margin-left: 10px;
}
._bank_name {
margin-left: 10px;
}
._bank_type {
background-color: #2aaef2;
}
._bank_type {
background-color: #2aaef2;
}
._bank_type2 {
background-color: #ff9c01;
}
._bank_type2 {
background-color: #ff9c01;
}
</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