Commit f17096aa authored by youjie's avatar youjie

no message

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