Commit 52150942 authored by liudong1993's avatar liudong1993
parents 2ccb759f 45abbd48
...@@ -336,7 +336,8 @@ ...@@ -336,7 +336,8 @@
Refund: item.Refund, Refund: item.Refund,
PlatformMoney:item.PlatformMoney, PlatformMoney:item.PlatformMoney,
HandFittingIncome: item.HandFittingIncome, HandFittingIncome: item.HandFittingIncome,
HandFittingTax: item.HandFittingTax HandFittingTax: item.HandFittingTax,
DueInMoney:item.DueInMoney
} }
item.list.push(datas) item.list.push(datas)
}) })
......
...@@ -1218,7 +1218,7 @@ export default { ...@@ -1218,7 +1218,7 @@ export default {
}, },
// 制作单据 // 制作单据
makeAdocument(row, index, num, name,Offset) { makeAdocument(row, index, num, name,Offset) {
if((num==2||num==3)&&row.Income<=0){ if((num==2||num==3)&&(row.Income+row.PlatformMoney)<=0){
this.Info('请先制收款单据,再制成本或退款单据!') this.Info('请先制收款单据,再制成本或退款单据!')
return return
} }
......
...@@ -1510,7 +1510,7 @@ ...@@ -1510,7 +1510,7 @@
// 制作单据 // 制作单据
makeAdocument(row, index, num, Offset) { makeAdocument(row, index, num, Offset) {
if ((num == 2 || num == 3) && row.income <= 0) { if ((num == 2 || num == 3) && (row.income+row.PlatformMoney) <= 0) {
this.Info('请先制收款单据,再制成本或退款单据!') this.Info('请先制收款单据,再制成本或退款单据!')
return return
} }
......
...@@ -4066,12 +4066,13 @@ ...@@ -4066,12 +4066,13 @@
this.Success("保存成功"); this.Success("保存成功");
this.initAddMsg(); this.initAddMsg();
this.getList(); this.getList();
this.addShow = false;
this.command = false;
this.isSubmit = true;
} else { } else {
this.Warning(res.data.message); this.isSubmit = true;
this.Error(res.data.message);
} }
this.addShow = false;
this.command = false;
this.isSubmit = true;
}, },
err => {} err => {}
); );
......
...@@ -138,7 +138,7 @@ ...@@ -138,7 +138,7 @@
<p class="Quo_Content" style="padding-right:20px;width:100%;" v-if="item.CustomerName"> <p class="Quo_Content" style="padding-right:20px;width:100%;" v-if="item.CustomerName">
<span>{{item.CustomerName}}</span> <span>{{item.CustomerName}}</span>
</p> </p>
<p class="Quo_Content" style="padding-right:20px;width:100%;"> <p class="Quo_Content" style="padding-right:20px;width:100%;">
<span>出团公司:{{item.OutBranchName}} <span>出团公司:{{item.OutBranchName}}
</span> </span>
</p> </p>
...@@ -262,6 +262,11 @@ ...@@ -262,6 +262,11 @@
<span @click="offerAudit(item,2)"></span> <span @click="offerAudit(item,2)"></span>
</el-tooltip> </el-tooltip>
</span> </span>
<span class="openGroup opbdList" v-if="item.TravelState==3" >
<el-tooltip class="item" effect="dark" content="驳回重新调整" placement="top-start" popper-class="max-w250">
<span @click="refuseOffer(item)"></span>
</el-tooltip>
</span>
<span class="openGroup opbdList"> <span class="openGroup opbdList">
<el-tooltip class="item" effect="dark" content="日志" placement="top-start" popper-class="max-w250"> <el-tooltip class="item" effect="dark" content="日志" placement="top-start" popper-class="max-w250">
<el-popover popper-class="salsSetPrice" trigger="click"> <el-popover popper-class="salsSetPrice" trigger="click">
...@@ -461,6 +466,33 @@ ...@@ -461,6 +466,33 @@
} }
}); });
}, },
//驳回报价单
refuseOffer(item) {
var that = this;
var nObj = {
ID: item.ID,
AuditContent: "驳回",
TravelState: 4,
OfferPayType: 0,
TeamType: item.TeamType,
};
var str = "是否要驳回【" + item.TCNUMS + "】的报价单?";
this.Confirm(str, function () {
that.apipost(
"travel_get_AuditTravelOffer", nObj,
res => {
that.loading = false;
if (res.data.resultCode == 1) {
that.Success(res.data.message);
that.getList();
} else {
that.Error(res.data.message);
}
},
err => {}
);
});
},
getCompanyList() { getCompanyList() {
//出团公司 //出团公司
this.apipost( this.apipost(
......
...@@ -472,18 +472,18 @@ ...@@ -472,18 +472,18 @@
{{getLocalJpyTotalMoney(subItem.PeopleNumber)}} {{getLocalJpyTotalMoney(subItem.PeopleNumber)}}
</td> </td>
<td colspan="2"> <td colspan="2">
<template v-if="teamPrice&&teamPrice.SingleDMCPrice&&teamPrice.SingleDMCPrice>0"> <template v-if="teamPrice&&teamPrice.SingleDMCPrice&&teamPrice.SingleDMCPrice>0">
{{teamPrice.SingleDMCPrice}} {{teamPrice.SingleDMCPrice}}
</template> </template>
<template v-else-if="postConfig.LineId==14||postConfig.LineId==118"> <template v-else-if="postConfig.LineId==14||postConfig.LineId==118">
{{getLocalTotalMoney(subItem.PeopleNumber)}} {{getLocalTotalMoney(subItem.PeopleNumber)}}
</template> </template>
<template v-else-if="postConfig.LineId==168"> <template v-else-if="postConfig.LineId==168">
{{getLocalTotalMoney(subItem.PeopleNumber)}} {{getLocalTotalMoney(subItem.PeopleNumber)}}
</template> </template>
<template v-else> <template v-else>
{{subItem.SubtotalMoney}} {{subItem.SubtotalMoney}}
</template> </template>
</td> </td>
<td colspan="2"> <td colspan="2">
{{subItem.TotalMoney}} {{subItem.TotalMoney}}
...@@ -523,7 +523,7 @@ ...@@ -523,7 +523,7 @@
{{postConfig.ManagerAduitContent}} {{postConfig.ManagerAduitContent}}
</p> </p>
</template> </template>
<template v-if="postConfig.AuditDate&&postConfig.AuditDate!=''"> <template v-if="IsEdit!=2&&postConfig.AuditDate&&postConfig.AuditDate!=''">
<br /> <br />
<p> <p>
{{postConfig.AuditByName}}{{postConfig.AuditDate}} {{postConfig.AuditByName}}{{postConfig.AuditDate}}
......
...@@ -237,7 +237,11 @@ ...@@ -237,7 +237,11 @@
var offerObj = tempData.OfferArray[0]; var offerObj = tempData.OfferArray[0];
if (offerObj) { if (offerObj) {
if (offerObj.AuditContent) { if (offerObj.AuditContent) {
this.postData.AuditContent = offerObj.AuditContent; if (this.IsEdit == 2) {
this.postData.AuditContent = "";
} else {
this.postData.AuditContent = offerObj.AuditContent;
}
} }
if (offerObj.AuditByName) { if (offerObj.AuditByName) {
this.postData.AuditByName = offerObj.AuditByName; this.postData.AuditByName = offerObj.AuditByName;
......
...@@ -1424,7 +1424,7 @@ export default { ...@@ -1424,7 +1424,7 @@ export default {
}, },
// 制作单据 // 制作单据
makeAdocument(row, index, num, Offset) { makeAdocument(row, index, num, Offset) {
if((num==2||num==3)&&row.Income<=0){ if((num==2||num==3)&&(row.Income+row.PlatformMoney)<=0){
this.Info('请先制收款单据,再制成本或退款单据!') this.Info('请先制收款单据,再制成本或退款单据!')
return return
} }
......
...@@ -1917,45 +1917,23 @@ ...@@ -1917,45 +1917,23 @@
} }
}, },
testApi() { testApi() {
// var postMsg = {}; var postMsg = {};
// var cmd = ""; var cmd = "";
// cmd = "AirTicket_get_GetTicketProduct"; cmd = "AirTicket_get_GetTicketProduct";
// postMsg = { postMsg = {
// StartDate: "2023-09-28", //开始日期 StartDate: "2023-09-28", //开始日期
// EndDate: "2023-12-31", //结束日期 EndDate: "2023-12-31", //结束日期
// DepartCityId: 343, //出发城市(西安) DepartCityId: 343, //出发城市(西安)
// ArriveCityId: 653, //到达城市(东京) ArriveCityId: 653, //到达城市(东京)
// AirLineID: 0, //航空公司编号 AirLineID: 0, //航空公司编号
// TicketType: 0, //类型(1-单程,2-往返) TicketType: 0, //类型(1-单程,2-往返)
// } }
// // cmd = "sellorder_post_SetOrderInfoForAirTicket"; this.apipost(
// // postMsg = { cmd, postMsg,
// // OrderId: 0, //新增传0 res => {
// // AirticketId:0,//选中的机票编号 console.log("testApi", res);
// // TCID: 18024, //团期编号 }
// // CustomerId: 23435, //同行Id(461671400@qq.com) );
// // ManNum: 1,//成人
// // BabyNum: 1,//婴儿
// // GuestNum: 2,//总人数
// // YSeatNum: 1, //经济舱
// // FSeatNum: 0, //头等舱
// // ESeatNum: 0, //商务舱
// // OrderSource: 5, //小程序
// // Unit_Price: 3580, //单价
// // PreferPrice: 7160, //应收
// // GuestList: [{
// // SurName: "HK",
// // IdCard: "IdCard",
// // MobilePhone: "13551126755",
// // }],
// // PlaceOrderFrom:1,//下单平台
// // };
// this.apipost(
// cmd, postMsg,
// res => {
// console.log("testApi", res);
// }
// );
}, },
//测试方法 //测试方法
testEmp() { testEmp() {
......
...@@ -1481,7 +1481,8 @@ ...@@ -1481,7 +1481,8 @@
QFlightDateEnd: this.QFlightDateEnd, QFlightDateEnd: this.QFlightDateEnd,
CreateBy: createBy, CreateBy: createBy,
AirTicketId: this.priceData.AirTicketId, AirTicketId: this.priceData.AirTicketId,
TCID: this.priceData.TCID TCID: this.priceData.TCID,
LineId:this.PostConfig.LineId
}; };
let that = this; let that = this;
......
...@@ -28,9 +28,12 @@ ...@@ -28,9 +28,12 @@
</div> </div>
</div> </div>
<!-- 一张图 1-单张图,2-多张图--> <!-- 一张图 1-单张图,2-多张图-->
<template v-if="item.TitleObj.ShowTripType==1||(item.TitleObj.ShowTripType==2&&item.ScenicArray.length==1)||item.ScenicArray.length==0"> <template v-if="
(item.TitleObj.ShowTripType==2&&(item.ScenicArray.length==1||item.ScenicArray.length==0))
||((item.TitleObj.ShowTripType==1||item.TitleObj.ShowTripType==0)&&
(item.ScenicArray.length>0||item.ScenicArray.length==0))">
<div class="column travelDaysMasterMap2-box" style="padding: 45px 32px 0 32px;"> <div class="column travelDaysMasterMap2-box" style="padding: 45px 32px 0 32px;">
<div :id="'viewSpotBox_'+(item*4)+'_0'+index" class="travelDaysMasterMap relative borderRadius18 hidden"> <div :id="'viewSpotBox_'+(item*4)+'_0'+index" class="travelDaysMasterMap relative borderRadius18 hidden" style="margin-top: 0;">
<div class="travelDaysMasterMap-one" :style="{'color':'#fff'}"> <div class="travelDaysMasterMap-one" :style="{'color':'#fff'}">
<div class="travelDaysMasterMap-oneImg bjF6 relative UpgradedVersion-Hover"> <div class="travelDaysMasterMap-oneImg bjF6 relative UpgradedVersion-Hover">
<div class="featureDay-vToolBar absolute z-index3" style="zoom:2"> <div class="featureDay-vToolBar absolute z-index3" style="zoom:2">
...@@ -83,7 +86,7 @@ ...@@ -83,7 +86,7 @@
</div> </div>
</div> </div>
</template> </template>
<template v-if="item.TitleObj.ShowTripType==2"> <template v-if="item.TitleObj.ShowTripType==2&&item.ScenicArray.length>1">
<div class="column travelDaysMasterMap2-box"> <div class="column travelDaysMasterMap2-box">
<!-- 2张 --> <!-- 2张 -->
<div v-if="item.ScenicArray.length==2"> <div v-if="item.ScenicArray.length==2">
......
...@@ -229,7 +229,7 @@ ...@@ -229,7 +229,7 @@
:true-label="ShowTripType[0]" :false-label="ShowTripType[1]"></el-checkbox> :true-label="ShowTripType[0]" :false-label="ShowTripType[1]"></el-checkbox>
</div> </div>
</div> </div>
<div class="row-aic marginT10" style="width: 100%;" v-if="dayObj.TitleObj.ShowTripType==1&&dayObj.ScenicArray.length>0"> <div class="row-aic marginT10" style="width: 100%;" v-if="(dayObj.TitleObj.ShowTripType==1||dayObj.TitleObj.ShowTripType==0)&&dayObj.ScenicArray.length>0">
<span v-if="ishasScenic">默认展示图</span> <span v-if="ishasScenic">默认展示图</span>
<el-select style="margin-left: 5px;" v-if="ishasScenic&&NoticeParameters.IsDirect==1" class="w220 Ht_hotelSelect" size="mini" <el-select style="margin-left: 5px;" v-if="ishasScenic&&NoticeParameters.IsDirect==1" class="w220 Ht_hotelSelect" size="mini"
:placeholder="$t('pub.pleaseSel')" v-model="ScenicArraySingle" filterable @change="setDefaultScenic"> :placeholder="$t('pub.pleaseSel')" v-model="ScenicArraySingle" filterable @change="setDefaultScenic">
......
...@@ -575,9 +575,9 @@ ...@@ -575,9 +575,9 @@
<div class="mb"> <div class="mb">
<el-table :data="scope.row.DetailList" style="width:100%" border> <el-table :data="scope.row.DetailList" style="width:100%" border>
<el-table-column label="景区名称(日期)" min-width="100" style="background:#EAEAEA"> <el-table-column label="景区名称(日期)" min-width="100" style="background:#EAEAEA">
<template slot-scope="scope" v-if="scope.$index == 0" :row="scope.row.DetailList.length"> <template slot-scope="scopes">
<template> <template>
<div>{{ scope.row.CouponsName }}</div> <div>{{scope.row.CouponsName }}</div>
<span style="color: #999999;">{{ scope.row.UseDate }}</span> <span style="color: #999999;">{{ scope.row.UseDate }}</span>
</template> </template>
</template> </template>
...@@ -638,10 +638,12 @@ ...@@ -638,10 +638,12 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="待收" min-width="100"> <el-table-column label="待收" min-width="100">
<template slot-scope="scope"> <template slot-scope="scope">
{{scope.row.DueInMoney}}
<span class="fz15 fbold" <span class="fz15 fbold"
:class="{'cF1416C':scope.row.DaiShou>0}"> :class="{'cF1416C':scope.row.DueInMoney>0}">
{{scope.row.DaiShou}}
</span> </span>
</template> </template>
</el-table-column> </el-table-column>
...@@ -1194,7 +1196,7 @@ ...@@ -1194,7 +1196,7 @@
}, },
OrderList: { OrderList: {
handler(val, oldVal) { handler(val, oldVal) {
console.log(val,'------');
} }
} }
}, },
...@@ -1430,7 +1432,8 @@ ...@@ -1430,7 +1432,8 @@
}, },
// 制作单据 // 制作单据
makeAdocument(row, index, num, Offset) { makeAdocument(row, index, num, Offset) {
if((num==2||num==3)&&row.Income<=0){ console.log("row",row);
if((num==2||num==3)&&(row.Income)<=0){
this.Info('请先制收款单据,再制成本或退款单据!') this.Info('请先制收款单据,再制成本或退款单据!')
return return
} }
......
...@@ -441,7 +441,8 @@ export default { ...@@ -441,7 +441,8 @@ export default {
CostMoney: item.CostMoney, CostMoney: item.CostMoney,
PlatformTax: item.PlatformTax, PlatformTax: item.PlatformTax,
Refund: item.Refund, Refund: item.Refund,
PlatformMoney: item.PlatformMoney PlatformMoney: item.PlatformMoney,
DueInMoney: item.DueInMoney
} }
let DaiShou let DaiShou
DaiShou = Number(item.Money-item.Income-item.PlatformTax-item.PlatformMoney+item.Refund) DaiShou = Number(item.Money-item.Income-item.PlatformTax-item.PlatformMoney+item.Refund)
......
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