Commit 1b258bcc authored by 黄媛媛's avatar 黄媛媛
parents d7c920cc 31253c5b
...@@ -1485,7 +1485,7 @@ export default { ...@@ -1485,7 +1485,7 @@ export default {
var that=this; var that=this;
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;
this.isFrompassenger = this.orderObj ? this.orderObj.isFromPassenger : undefined; this.isFrompassenger = this.orderObj ? this.orderObj.isFromPassenger : undefined;
let TCID = (this.orderObj && this.orderObj.TCIDList && this.orderObj.TCIDList.length>0) ? this.orderObj.TCIDList[0] : 0
if(this.orderObj!=null&&this.orderObj.OrderSource===10&&this.isFrompassenger==undefined){ if(this.orderObj!=null&&this.orderObj.OrderSource===10&&this.isFrompassenger==undefined){
that.Description="旅客名单:"; that.Description="旅客名单:";
that.describeList=JSON.parse(sessionStorage.getItem("saveGuestInfo")); that.describeList=JSON.parse(sessionStorage.getItem("saveGuestInfo"));
...@@ -1499,7 +1499,12 @@ export default { ...@@ -1499,7 +1499,12 @@ export default {
if (this.orderObj && this.orderObj.OtherType) { if (this.orderObj && this.orderObj.OtherType) {
this.ZhuiJiaTK = true this.ZhuiJiaTK = true
} }
this.apipost('financeinfo_post_GetList',{Name:'', TCID: TCID}, res => {
if(res.data.resultCode == 1) {
this.coinGetList = res.data.data;
console.log("this.coinGetList 522555",this.coinGetList )
}
}, err => {})
}, },
mounted(){ mounted(){
let userInfo = this.getLocalStorage(); let userInfo = this.getLocalStorage();
...@@ -1520,8 +1525,7 @@ export default { ...@@ -1520,8 +1525,7 @@ export default {
let minute = myDate.getMinutes() < 10 ? "0" + myDate.getMinutes() : myDate.getMinutes(); let minute = myDate.getMinutes() < 10 ? "0" + myDate.getMinutes() : myDate.getMinutes();
let second = myDate.getSeconds() < 10 ? "0" + myDate.getSeconds() : myDate.getSeconds(); let second = myDate.getSeconds() < 10 ? "0" + myDate.getSeconds() : myDate.getSeconds();
this.timer = hour + ':' + minute + ':' + second; this.timer = hour + ':' + minute + ':' + second;
let TCID = (this.orderObj && this.orderObj.TCIDList && this.orderObj.TCIDList.length>0) ? this.orderObj.TCIDList[0] : 0 // this.financeinfo_post_GetList(TCID);
this.financeinfo_post_GetList(TCID);
if(this.$route.query.edit){ if(this.$route.query.edit){
// 编辑 // 编辑
this.msg.FrID = this.$route.query.FrID; this.msg.FrID = this.$route.query.FrID;
......
...@@ -114,7 +114,7 @@ ...@@ -114,7 +114,7 @@
<div class="singlePrice clearfix"> <div class="singlePrice clearfix">
<CostNewPrice ref="CostNewPrice" :postConfig="postConfig" :OtherPrice="otherPrice" <CostNewPrice ref="CostNewPrice" :postConfig="postConfig" :OtherPrice="otherPrice"
:dayCostPrice="dayCostPrice" :LineList="LineList"></CostNewPrice> :dayCostPrice="dayCostPrice" :LineList="LineList" :CostCurrencyList="CostCurrencyList" :CostNumberList="CostNumberList" :CurrencyNumberListExt="CurrencyNumberListExt"></CostNewPrice>
</div> </div>
</div> </div>
<div class="DirectRightPrice" style="margin-left:20px;"> <div class="DirectRightPrice" style="margin-left:20px;">
...@@ -273,7 +273,7 @@ ...@@ -273,7 +273,7 @@
import CostNewPrice from "../TravelNewQuotation/CostNewPrice"; import CostNewPrice from "../TravelNewQuotation/CostNewPrice";
export default { export default {
props: ["postConfig", "dayCostPrice", "otherPrice", "teamPrice","LineList"], props: ["postConfig", "dayCostPrice", "otherPrice", "teamPrice","LineList","CostCurrencyList","CostNumberList","CurrencyNumberListExt"],
data() { data() {
return { return {
CheckedVaule: 2, CheckedVaule: 2,
......
<template> <template>
<div class="DirectQuotation clearfix"> <div class="DirectQuotation clearfix">
<DirectQuotation ref="QuotationPrice" :postConfig="postData" :dayCostPrice="dayCostPriceList" <DirectQuotation ref="QuotationPrice" :postConfig="postData" :dayCostPrice="dayCostPriceList"
:otherPrice="otherPrice" :teamPrice="teamPrice" :LineList="LineList"></DirectQuotation> :otherPrice="otherPrice" :teamPrice="teamPrice" :LineList="LineList" :CostCurrencyList="CostCurrencyList"
:CostNumberList="CostNumberList" :CurrencyNumberListExt="CurrencyNumberListExt"></DirectQuotation>
<div class="btnFixedDiv"> <div class="btnFixedDiv">
<div class="toTop"> <div class="toTop">
<i class="iconfont icon-huidaodingbu"></i> <i class="iconfont icon-huidaodingbu"></i>
...@@ -33,11 +34,11 @@ ...@@ -33,11 +34,11 @@
IsSubstitution: 1, IsSubstitution: 1,
IsB2B: 1, IsB2B: 1,
IsB2C: 1, IsB2C: 1,
FSeat: "", FSeat: 0,
CSeat: "", CSeat: 0,
YSeat: "", YSeat: 0,
//最低成团人数 //最低成团人数
LowNum: "", LowNum: 0,
//OP备注 //OP备注
OpRemark: "", OpRemark: "",
//产品经理备注 //产品经理备注
...@@ -46,8 +47,8 @@ ...@@ -46,8 +47,8 @@
PriceIsDirect: 1, //是否直采报价(1-否-2-是)【全部默认非直采】 PriceIsDirect: 1, //是否直采报价(1-否-2-是)【全部默认非直采】
PDFAlias: "", //pdf别名 PDFAlias: "", //pdf别名
ImgCover: "", //封面图 ImgCover: "", //封面图
DayNum: "", //天数 DayNum: 0, //天数
NightNum: "", //晚数 NightNum: 0, //晚数
StartCityId: 0, StartCityId: 0,
ReturnArriveCityId: 0, //返回抵达城市 ReturnArriveCityId: 0, //返回抵达城市
}, },
...@@ -78,9 +79,10 @@ ...@@ -78,9 +79,10 @@
SingleRoomShareMoney: 0, //单房差分摊费用 SingleRoomShareMoney: 0, //单房差分摊费用
InlandTrafficShareMoney: 0, //内陆段交通分摊费用 InlandTrafficShareMoney: 0, //内陆段交通分摊费用
OtherShareMoney: 0, //杂费分摊费用 OtherShareMoney: 0, //杂费分摊费用
CostCurrencyList: [], //选择的币种
CostNumberList: [], //人数
}, },
CostCurrencyList: [], //选择的币种
CostNumberList: [], //人数
CurrencyNumberListExt: [], //币种和人数列表
//团报价信息 //团报价信息
teamPrice: { teamPrice: {
QuotationId: 0, //主键编号 QuotationId: 0, //主键编号
...@@ -120,20 +122,36 @@ ...@@ -120,20 +122,36 @@
}, },
//保存数据 //保存数据
SaveData() { SaveData() {
var nObj = {
config: this.postData,
dayCostPriceList: this.dayCostPriceList,
otherPrice: this.otherPrice,
teamPrice: this.teamPrice,
CostCurrencyList: this.CostCurrencyList,
CostNumberList: this.CostNumberList
};
console.log("请求参数", nObj);
this.apipost( this.apipost(
"travel_post_SetConfigOffer_V2", { "travel_post_SetConfigOffer_V2", nObj,
config: postData,
dayCostPriceList: dayCostPriceList,
otherPrice: otherPrice,
teamPrice: teamPrice
},
res => { res => {
console.log(res.data); if (res.data.resultCode == 1) {
if (res.data.resultCode == 1) {} this.Success(res.date.message);
this.goUrl('newQuotation');
} else {
this.Error(res.data.message);
}
}, },
err => {} err => {}
); );
}, },
goUrl(path) {
this.$router.push({
path: path,
query: {
cache: true
}
});
},
getPostData() { getPostData() {
let configId = this.$route.query.configId; let configId = this.$route.query.configId;
let msg = { let msg = {
...@@ -145,11 +163,19 @@ ...@@ -145,11 +163,19 @@
res => { res => {
console.log("res.data.data", res.data); console.log("res.data.data", res.data);
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
var tempData=res.data.data; var tempData = res.data.data;
this.LineList=tempData.LineList; this.LineList = tempData.LineList;
this.dayCostPriceList=tempData.dayCostPriceList; if (tempData.dayCostPriceList && tempData.dayCostPriceList != null && tempData.dayCostPriceList.length >
this.otherPrice=tempData.otherPrice; 0) {
this.teamPrice=tempData.teamPrice; this.dayCostPriceList = tempData.dayCostPriceList;
}
if (tempData.otherPrice) {
this.otherPrice = tempData.otherPrice;
}
if (tempData.teamPrice) {
this.teamPrice = tempData.teamPrice;
}
} else { } else {
this.Error(res.data.message); this.Error(res.data.message);
} }
......
...@@ -135,7 +135,7 @@ export default { ...@@ -135,7 +135,7 @@ export default {
RB_Branch_Id:data.RB_Branch_Id, RB_Branch_Id:data.RB_Branch_Id,
IsPublic:6, IsPublic:6,
BType:4, BType:4,
AccountId:22, AccountId:23,
CostTypeID:189, CostTypeID:189,
WBMoney:data.CommissionMoney, WBMoney:data.CommissionMoney,
Remark:'', Remark:'',
...@@ -162,7 +162,7 @@ export default { ...@@ -162,7 +162,7 @@ export default {
this.loading = false; this.loading = false;
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.apipost( this.apipost(
"OPCommission_UpdatePeriodsFrID", "VisaCommission_UpdatePeriodsFrID",
{ID:this.oPComissionPeriods.ID,FrId:res.data.data}, {ID:this.oPComissionPeriods.ID,FrId:res.data.data},
res => { res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
...@@ -293,14 +293,14 @@ export default { ...@@ -293,14 +293,14 @@ export default {
// 单据号:${oPComissionPeriods.FRID}</span>`; // 单据号:${oPComissionPeriods.FRID}</span>`;
// } // }
}; };
// let opera = { let opera = {
// title: "操作", title: "操作",
// titleAlign: "left", titleAlign: "left",
// columnAlign: "left", columnAlign: "left",
// width: 80, width: 80,
// isResize: false, isResize: false,
// componentName: "commission-table-operation" componentName: "commission-table-operation"
// }; };
this.columns = []; this.columns = [];
this.columns.push(company); this.columns.push(company);
this.columns.push(department); this.columns.push(department);
...@@ -313,7 +313,7 @@ export default { ...@@ -313,7 +313,7 @@ export default {
// this.columns.push(visaPeopleCount); // this.columns.push(visaPeopleCount);
this.columns.push(Zhanbi); this.columns.push(Zhanbi);
this.columns.push(remark); this.columns.push(remark);
// this.columns.push(opera); this.columns.push(opera);
this.isReady = true; this.isReady = true;
}, },
sortChange(param) { sortChange(param) {
......
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