Commit f17096aa authored by youjie's avatar youjie

no message

parent b841994a
...@@ -442,6 +442,7 @@ ...@@ -442,6 +442,7 @@
type="daterange" type="daterange"
range-separator="至" range-separator="至"
value-format="yyyy-MM-dd" value-format="yyyy-MM-dd"
@change="getTimeDate"
> >
</el-date-picker> </el-date-picker>
</br> </br>
...@@ -994,7 +995,7 @@ getCompanyList() { ...@@ -994,7 +995,7 @@ getCompanyList() {
}; };
this.PriceDates=[] this.PriceDates=[]
}, },
SaveVisaProduct(formName) { getTimeDate(){
this.addMsg.EffectiveStartDate = moment(this.PriceDates[0]).format( this.addMsg.EffectiveStartDate = moment(this.PriceDates[0]).format(
"YYYY-MM-DD" "YYYY-MM-DD"
); );
...@@ -1006,6 +1007,8 @@ getCompanyList() { ...@@ -1006,6 +1007,8 @@ getCompanyList() {
this.Error(`价格有效结束日期请选择${SendVisaDate}之前日期!`); this.Error(`价格有效结束日期请选择${SendVisaDate}之前日期!`);
return; return;
} }
},
SaveVisaProduct(formName) {
this.$refs[formName].validate(valid => { this.$refs[formName].validate(valid => {
if (valid) { if (valid) {
...@@ -1033,7 +1036,7 @@ getCompanyList() { ...@@ -1033,7 +1036,7 @@ getCompanyList() {
this.addMsg.SendVisaDate = moment(this.PriceDates[1]).format( this.addMsg.SendVisaDate = moment(this.PriceDates[1]).format(
"YYYY-MM-DD" "YYYY-MM-DD"
); );
let SendVisaDate = moment(new Date(this.addMsg.EffectiveStartDate)).format("YYYY-MM")+'-25' let SendVisaDate = moment(new Date(this.addMsg.SendVisaDate)).format("YYYY-MM")+'-25'
if(this.addMsg.SendVisaDate>=SendVisaDate){ if(this.addMsg.SendVisaDate>=SendVisaDate){
this.Error(`价格有效结束日期请选择${SendVisaDate}之前日期!`); this.Error(`价格有效结束日期请选择${SendVisaDate}之前日期!`);
return; return;
......
...@@ -2652,6 +2652,7 @@ ...@@ -2652,6 +2652,7 @@
<el-dialog width="1000px" :title="BillingChargeTitle" :visible.sync="BillingChargeDialog" center> <el-dialog width="1000px" :title="BillingChargeTitle" :visible.sync="BillingChargeDialog" center>
<el-form class="Rform" ref="form" :model="Ticketform" label-width="67px" <el-form class="Rform" ref="form" :model="Ticketform" label-width="67px"
:disabled="BillingChargeTitle=='开票费用详情'"> :disabled="BillingChargeTitle=='开票费用详情'">
<p>机位数:<span style="color: red;">{{BillingChargeObj.TicketNum}}</span> </p>
<div style="color: red;font-size: 13px;text-align: right;padding: 0 0 5px 0;">注:开票单价*开票数量+升舱增收=总开票金额</div> <div style="color: red;font-size: 13px;text-align: right;padding: 0 0 5px 0;">注:开票单价*开票数量+升舱增收=总开票金额</div>
<table class="po_content singeRowTable" style="border:1px solid #E6E6E6;margin-bottom:15px" cellspacing="0" <table class="po_content singeRowTable" style="border:1px solid #E6E6E6;margin-bottom:15px" cellspacing="0"
cellpadding="0" v-loading="loading"> cellpadding="0" v-loading="loading">
...@@ -2682,6 +2683,14 @@ ...@@ -2682,6 +2683,14 @@
{{item.TotalPrice}} {{item.TotalPrice}}
</td> </td>
</tr> </tr>
<tr>
<td>
开票数量合计
</td>
<td colspan="4">
{{TotalNum}}
</td>
</tr>
<tr v-if="MsgRAirServiceList.length==0"> <tr v-if="MsgRAirServiceList.length==0">
<td colspan="5">暂无数据</td> <td colspan="5">暂无数据</td>
</tr> </tr>
...@@ -2706,6 +2715,8 @@ ...@@ -2706,6 +2715,8 @@
} }
}; };
return { return {
TotalNum:0,
BillingChargeObj: {},
BillingChargeTitle:'', BillingChargeTitle:'',
BillingChargeDialog: false, BillingChargeDialog: false,
FinaceIdnum: "", FinaceIdnum: "",
...@@ -3020,6 +3031,10 @@ ...@@ -3020,6 +3031,10 @@
methods: { methods: {
// 开票费用 // 开票费用
SumbitBillingCharge(){ SumbitBillingCharge(){
if(this.TotalNum>this.BillingChargeObj.TicketNum){
this.Error(`开票数量合计不得大于${this.BillingChargeObj.TicketNum}机位数`);
return;
}
for(let i=0;i<this.MsgRAirServiceList.length;i++){ for(let i=0;i<this.MsgRAirServiceList.length;i++){
if (this.MsgRAirServiceList[i].GuestNum===''||this.MsgRAirServiceList[i].IncreaseIncome==='') { if (this.MsgRAirServiceList[i].GuestNum===''||this.MsgRAirServiceList[i].IncreaseIncome==='') {
this.Error("请完善需开票费用信息!"); this.Error("请完善需开票费用信息!");
...@@ -3064,6 +3079,7 @@ ...@@ -3064,6 +3079,7 @@
}else{ }else{
this.BillingChargeTitle = '编辑开票费用' this.BillingChargeTitle = '编辑开票费用'
} }
this.BillingChargeObj = item
this.loading = true this.loading = true
this.BillingChargeDialog = true this.BillingChargeDialog = true
this.apipost( this.apipost(
...@@ -3100,8 +3116,10 @@ ...@@ -3100,8 +3116,10 @@
}) })
}, },
computeBillingCharge(){ computeBillingCharge(){
this.TotalNum = 0
this.MsgRAirServiceList.forEach(x=>{ this.MsgRAirServiceList.forEach(x=>{
x.TotalPrice=(x.GuestNum*x.UnitPrice)+Number(x.IncreaseIncome) x.TotalPrice=(x.GuestNum*x.UnitPrice)+Number(x.IncreaseIncome)
this.TotalNum+=Number(x.GuestNum)
}) })
}, },
SelectFinaceId(val, index) { SelectFinaceId(val, index) {
......
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