Commit b5886b87 authored by zhengke's avatar zhengke

no message

parent 851de27e
......@@ -371,24 +371,8 @@ export default {
// 多选发生变化
clickMultipleChoice(row, index, num) {
if (num == 1) {
if (row.checkList.slice(-1)[0] == 4) {
this.delType(row, 1);
this.delType(row, 2);
this.delType(row, 3);
this.delType(row, 5);
row.selectedType = row.checkList.join(",");
} else if (row.checkList.slice(-1)[0] == 5) {
this.delType(row, 1);
this.delType(row, 2);
this.delType(row, 3);
this.delType(row, 4);
row.selectedType = row.checkList.join(",");
} else {
this.delType(row, 4);
this.delType(row, 5);
row.selectedType = row.checkList.join(",");
}
}
},
// 删除套餐值
delType(row, item) {
......@@ -1325,15 +1309,6 @@ export default {
.agreement-IncomeMoney-box{
position: relative;
}
.agreement-IncomeMoney-pop{
position: absolute;
top: -20px;
left: -270px;
z-index: 1;
background: #fff;
padding: 10px 19px 10px 19px;
Box-shadow:5px 5px 10px 5px #ccc;
}
.agreement-Cancel{
text-align: right;
color: #409eff;
......@@ -1750,7 +1725,7 @@ li {
.agreement-IncomeMoney-pop {
position: absolute;
top: -20px;
left: -270px;
left: -350px;
z-index: 1;
background: #fff;
padding: 10px 19px 10px 19px;
......
......@@ -757,23 +757,7 @@
// 多选发生变化
clickMultipleChoice(row, index, num) {
if(num == 1){
if(row.checkList.slice(-1)[0] == 4){
this.delType(row,1)
this.delType(row,2)
this.delType(row,3)
this.delType(row,5)
row.selectedType = row.checkList.join(',')
}else if(row.checkList.slice(-1)[0] == 5){
this.delType(row,1)
this.delType(row,2)
this.delType(row,3)
this.delType(row,4)
row.selectedType = row.checkList.join(',')
}else{
this.delType(row,4)
this.delType(row,5)
row.selectedType = row.checkList.join(',')
}
}
},
// 删除套餐值
......
......@@ -1135,6 +1135,62 @@
</div>
</div>
</div>
<!-- 套餐 -->
<div v-if="obj.checkList.indexOf('4')!=-1">
<div class="BillMakingType-box">
<div class="BillMakingType-left">{{combo.title}}</div>
<div class="BillMakingType-right">
<div class="BillMakingType-right-list" v-for="(item,index) in combo.detailList" :key="index">
<div class="BillMakingType-right-box">
<div class="BillMakingType-right-center">
<el-select size="mini" filterable v-model='item.CostTypeId' placeholder="请选择费用">
<el-option v-for='item in GetCostTypeList' :label='item.Name' :value='item.ID' :key='item.ID'>
</el-option>
</el-select>
</div>
<div class="BillMakingType-right-center">
<span>数量:</span>
<el-input size="mini" placeholder="请输入数量" onkeyup="this.value=this.value.replace(/[^\d.]/g,'');"
v-model="item.Number"></el-input>
</div>
<div class="BillMakingType-right-center">
<span>单价:</span>
<el-input size="mini" placeholder="请输入单价" onkeyup="this.value=this.value.replace(/[^\d.]/g,'');"
v-model="item.UnitPrice"></el-input>
</div>
<div class="BillMakingType-right-center">
<span>原币:</span>
<el-input size="mini" placeholder="" onkeyup="this.value=this.value.replace(/[^\d.]/g,'');"
v-model="item.OriginalMoney" disabled></el-input>
</div>
<div class="BillMakingType-right-center">
<el-input
size="mini"
type="textarea"
:rows="1"
placeholder="备注"
v-model="item.Remark"></el-input>
</div>
</div>
<i class="iconfont clickJia" v-if="index==0" @click="addTypeList(4)">&#xe615;</i>
<i class="iconfont clickJia" v-if="index!=0" @click="deleteTypeList(item,index,4)">&#xe67a;</i>
</div>
</div>
</div>
<div class="BillingTotal-box">
<div class="BillingTotal-center">
<span>手续费:</span>
<el-input size="mini" placeholder="请输入手续费" onkeyup="this.value=this.value.replace(/[^\d.]/g,'');"
v-model="combo.OriginalFee"></el-input>
</div>
<div class="BillingTotal-center">
<span>应收金额:</span>
<span style="min-width:50px">{{combo.WBMoney}}</span>
</div>
</div>
</div>
<div class="appendix-box">
<div class="appendix-top">
<template v-for="(items,index) in vorcherInos">
......@@ -1286,11 +1342,27 @@
companyList:[],// 公司
// 流程
processList:[],
combo:{
title:"套餐",
WBMoney:0,//原币总金额
OriginalFee:0,//原币手续费
RelevanceFrId:"4",//订单类型 1机票 2签证 3地接 4套餐 5其他
TotalCost:"",
detailList:[
{
CostTypeId:"",//费用ID
Number:"",//数量
UnitPrice:"",//单价
OriginalMoney:"",//金额
Remark:"",//备注
}
]
},
ground:{
title:"地接",
WBMoney:0,//原币总金额
OriginalFee:0,//原币手续费
RelevanceFrId:"1",//订单类型 1机票 2签证 3地接 4套餐 5其他
RelevanceFrId:"3",//订单类型 1机票 2签证 3地接 4套餐 5其他
TotalCost:"",
detailList:[
{
......@@ -1306,7 +1378,7 @@
title:"签证",
WBMoney:0,//原币总金额
OriginalFee:0,//原币手续费
RelevanceFrId:"1",//订单类型 1机票 2签证 3地接 4套餐 5其他
RelevanceFrId:"2",//订单类型 1机票 2签证 3地接 4套餐 5其他
TotalCost:"",
detailList:[
{
......@@ -1529,6 +1601,9 @@
};
},
computed: {
monthCombo(){
return this.combo.detailList
},
monthGround(){
return this.ground.detailList
},
......@@ -1538,6 +1613,9 @@
monthAirTickets(){
return this.airTickets.detailList
},
monthComboTotalCost(){
return this.combo.OriginalFee
},
monthGroundTotalCost(){
return this.ground.OriginalFee
},
......@@ -1585,6 +1663,12 @@
},
deep: true,
},
monthCombo:{
handler(val, oldVal) {
this.sum(4)
},
deep: true,
},
monthGround:{
handler(val, oldVal) {
this.sum(3)
......@@ -1603,6 +1687,12 @@
},
deep: true,
},
monthComboTotalCost:{
handler(val, oldVal) {
this.TotalCost(4)
},
deep: true,
},
monthGroundTotalCost:{
handler(val, oldVal) {
this.TotalCost(3)
......@@ -1812,6 +1902,10 @@
this.ground.WBMoney = 0
this.ground.WBMoney = this.ground.TotalCost-this.ground.OriginalFee
}
if(num=='4'){
this.combo.WBMoney = 0
this.combo.WBMoney = this.combo.TotalCost-this.combo.OriginalFee
}
},
// 合计
sum(num){
......@@ -1857,6 +1951,20 @@
}
this.TotalCost(num)
}
if(num=='4'){
for(let i=0;i<this.combo.detailList.length;i++){
this.combo.detailList[i].OriginalMoney = this.combo.detailList[i].Number*this.combo.detailList[i].UnitPrice
}
let OriginalMoney = this.combo.detailList.map(item=>{
return item.OriginalMoney
})
this.combo.TotalCost= 0
for(let j=0;j<OriginalMoney.length;j++){
this.combo.TotalCost += OriginalMoney[j]
}
this.TotalCost(num)
}
},
// 删除
deleteTypeList(item,index,num){
......@@ -1887,6 +1995,9 @@
if(item=='3'){
this.ground.detailList.push(data)
}
if(item=='4'){
this.combo.detailList.push(data)
}
},
Financial_post_GetCostTypeList() { //获取支出费用类型
if(this.BillMaking.TemplateId){
......@@ -1970,20 +2081,6 @@
// 多选发生变化
clickMultipleChoice() {
if (this.checkList.length > 0) {
if (this.checkList.slice(-1)[0] == 4) {
this.delType(1)
this.delType(2)
this.delType(3)
this.AirTicketsShow = true
this.visaShow = true
this.groundShow = true
this.comboShow = false
this.form.TicketMoney = 0
this.form.VisaMoney = 0
this.form.DiJieMoney = 0
} else {
this.delType(4)
this.checkList.forEach(item => {
if (item == '1') {
this.AirTicketsShow = false
......@@ -1994,6 +2091,9 @@
if (item == '3') {
this.groundShow = false
}
if (item == '4') {
this.comboShow = false
}
});
if (this.checkList.indexOf('1') == -1) {
this.AirTicketsShow = true
......@@ -2012,8 +2112,6 @@
this.form.MealMoney = 0
this.form.MealDescription = ""
}
}
this.form.OrderType = this.checkList.join(',')
} else if (this.checkList.length == 0) {
this.AirTicketsShow = true
......@@ -2040,16 +2138,6 @@
clickLossMultipleChoice() {
if (this.checkList.length > 0) {
if (this.checkList.slice(-1)[0] == 4) {
this.delType(1)
this.delType(2)
this.delType(3)
this.AirTicketsShow = true
this.visaShow = true
this.groundShow = true
this.comboShow = false
} else {
this.delType(4)
this.checkList.forEach(item => {
if (item == '1') {
this.AirTicketsShow = false
......@@ -2060,6 +2148,9 @@
if (item == '3') {
this.groundShow = false
}
if (item == '4') {
this.comboShow = false
}
});
if (this.checkList.indexOf('1') == -1) {
this.AirTicketsShow = true
......@@ -2073,7 +2164,6 @@
if (this.checkList.indexOf('4') == -1) {
this.comboShow = true
}
}
this.form.OrderType = this.checkList.join(',')
} else if (this.checkList.length == 0) {
......@@ -2243,6 +2333,7 @@
Type: this.form.Type,
Voucher: this.Voucher
}
this.clickShow = true
this.apipost("/api/Order/SetGuestOrderState", data, (res) => {
if (res.data.resultCode == 1) {
this.dialogTableVisible = false;
......@@ -2250,7 +2341,9 @@
this.MsgBus.$emit("closeTicketOrderDialogBox");
this.MsgBus.$emit("closeGetList");
this.resetForm("form");
this.clickShow = false
} else {
this.clickShow = false
this.$message.error(res.data.message);
}
});
......@@ -2265,6 +2358,7 @@
Money: this.form.Money,
Remark: this.form.Remark
}
this.clickShow = true
this.apipost("/api/Order/SetGuestOrderMoney", data, (res) => {
if (res.data.resultCode == 1) {
this.dialogTableVisible = false;
......@@ -2272,7 +2366,9 @@
this.MsgBus.$emit("closeTicketOrderDialogBox");
this.MsgBus.$emit("closeGetList");
this.resetForm("form");
this.clickShow = false
} else {
this.clickShow = false
this.$message.error(res.data.message);
}
});
......@@ -2344,6 +2440,7 @@
MealMoney: this.form.MealMoney, //套餐应收
}
}
this.clickShow = true
this.apipost("/api/Order/SetGuestOrderInfo", data, (res) => {
if (res.data.resultCode == 1) {
this.dialogTableVisible = false;
......@@ -2355,8 +2452,10 @@
this.visaShow = true
this.groundShow = true
this.comboShow = true
this.clickShow = false
this.resetForm("form");
} else {
this.clickShow = false
this.$message.error(res.data.message);
}
});
......@@ -2369,6 +2468,7 @@
OrderId: this.form.OrderId,
EnterId: this.form.EnterId,
}
this.clickShow = true
this.apipost("/api/Order/SetGuestOrderCareOf", data, (res) => {
if (res.data.resultCode == 1) {
this.dialogTableVisible = false;
......@@ -2376,7 +2476,9 @@
this.MsgBus.$emit("closeTicketOrderDialogBox");
this.MsgBus.$emit("closeGetList");
this.resetForm("form");
this.clickShow = false
} else {
this.clickShow = false
this.$message.error(res.data.message);
}
});
......@@ -2437,6 +2539,20 @@
return
}
})
this.obj.checkList.indexOf('4')!=-1&&this.combo.detailList.forEach(item=>{
if(!item.CostTypeId){
this.$message.warning('请选择费用说明');
return
}
if(!item.Number){
this.$message.warning('请输入套餐数量');
return
}
if(!item.UnitPrice){
this.$message.warning('请输入套餐单价');
return
}
})
if(this.BillMaking.vorcherInos.length==0){
this.$message.warning('请上传凭证');
return
......@@ -2528,6 +2644,32 @@
}
this.msgList.push(this.BillMaking)
}
if(this.obj.checkList.indexOf('4')!=-1&&this.combo.detailList){
this.BillMaking = {
IsPublic:this.BillMaking.IsPublic,// 账户类型 0私账 1公账
BType:this.BillMaking.BType,//银行类型 看财务单据那边有枚举列表
AccountId:this.BillMaking.AccountId,// 账户ID
WBMoney:this.combo.WBMoney,//原币总金额
OriginalFee:this.combo.OriginalFee,//原币手续费
RB_Branch_Id:this.BillMaking.RB_Branch_Id,//公司ID
RB_Depart_Id:this.BillMaking.RB_Depart_Id,//部门ID
RemitterName:this.BillMaking.RemitterName,// 汇款人
TradeDate:this.BillMaking.TradeDate,//交易日期
AccountNumber:this.BillMaking.AccountNumber,//流水号
TemplateId:this.BillMaking.TemplateId,//流程ID
OtherType:this.BillMaking.OtherType,//默认=55
ReFinanceId:this.BillMaking.ReFinanceId,//订单ID
ReFinanceId2:this.BillMaking.ReFinanceId2,//类型 1收款
GuestId:this.BillMaking.GuestId,//客人ID
RelevanceFrId:'4',
vorcherInos:this.BillMaking.vorcherInos,
detailList:this.combo.detailList
}
this.msgList.push(this.BillMaking)
}
this.clickShow = true
this.apipost2("Financial_post_SetFinanceInfoForCRMIn",this.msgList,(res)=>{
if (res.data.resultCode == 1) {
......
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