Commit 78d590d0 authored by zhengke's avatar zhengke

增加机票散卖

parent 06ca0b1b
......@@ -281,7 +281,7 @@
.TK_SeatList > ul > li {
float: left;
text-align: center;
margin: 5px 13px 0 0;
margin: 5px 10px 0 0;
}
.TK_SeatList > ul > li:last-child {
......@@ -310,7 +310,7 @@
}
.TK_SeatList ._num3 {
font-size: 18px;
font-size: 17px;
color: #e95252;
height: 28px;
font-family: PingFangSC-Semibold, sans-serif;
......@@ -1223,7 +1223,7 @@
}
.TK_raduis ul li {
margin-right: 14px;
margin-right: 12px;
float: left;
}
......@@ -1309,10 +1309,10 @@
</li>
<li style="margin-right:50px;">
<button class="normalBtn" type="button" @click="resetPageIndex(),getList()">{{$t('pub.searchBtn')}}</button>
<button class="normalBtn" type="button" @click="addShow=true,command=false,initAddMsg()">
<button class="normalBtn" type="button" @click="addShow=true,command=false,sanmai=false,initAddMsg()">
{{$t('pub.addBtn')}}
</button>
<button class="hollowFixedBtn" type="button" @click="command=true,addShow=false,initAddMsg()">
<button class="hollowFixedBtn" type="button" @click="command=true,addShow=false,sanmai=false,initAddMsg()">
{{$t('Airticket.Air_orderImport')}}
</button>
<el-dropdown @command="getImport">
......@@ -1457,6 +1457,10 @@
<p class="_num3">{{item.OrderTotalNum}}</p>
<p class="_wz">报名人数</p>
</li>
<li>
<p class="_num3">{{item.UseScatterNum}}/{{item.AirTicketScatterNum }}</p>
<p class="_wz">已卖/总数</p>
</li>
<li>
<p class="_num3">{{item.OutTicketPercent}} %</p>
<p class="_wz">出票百分比</p>
......@@ -1579,7 +1583,12 @@
<el-button v-else type="primary" icon="iconfont icon-xiazai2" style="margin-left:0;"
@click="DownLoad(3,item.TripItinerary)"></el-button>
</el-tooltip>
<el-tooltip class="item" effect="dark" content="日志" placement="top-start" style="float:right;">
<el-tooltip class="item" effect="dark" content="散卖" placement="top-start">
<el-button type="primary" icon="iconfont icon-maichu" @click="sanSale(item)"></el-button>
</el-tooltip>
<el-tooltip class="item" effect="dark" content="日志" placement="top-start">
<el-popover popper-class="Journal" width="400" trigger="click">
<div class="InfoChangeLog">
<div class="changLog">
......@@ -2021,6 +2030,46 @@
</div>
</div>
</el-form>
<el-form class="combottomDiv" v-if="sanmai" label-width="100px" :model="sales" :rules="salerules">
<el-row>
<el-col :span="20">
<p class="_add_t">散卖机票</p>
</el-col>
<el-col :span="4">
<button
type="button"
class="normalBtn"
@click="saveSales()"
>{{$t('pub.saveBtn')}}</button>
<button
class="hollowFixedBtn"
type="button"
@click="resetForm('addMsg'),sanmai=false"
>{{$t('pub.cancelBtn')}}</button>
</el-col>
</el-row>
<div class="_add_sel">
<ul class="clearfix">
<el-col :span="5">
<el-form-item label="人数" prop="AirTicketNum">
<el-input v-model="sales.AirTicketNum" @keyup.native="checkInteger(sales,'AirTicketScatterNum')"></el-input>
</el-form-item>
</el-col>
<el-col :span="5">
<el-form-item label="B2B单价" prop="B2BPrice">
<el-input v-model="sales.B2BPrice" @keyup.native="checkPrice(sales,'ScatterB2BPrice')"></el-input>
</el-form-item>
</el-col>
<el-col :span="5">
<el-form-item label="B2C单价" prop="B2CPrice">
<el-input v-model="sales.B2CPrice" @keyup.native="checkPrice(sales,'ScatterB2CPrice')"></el-input>
</el-form-item>
</el-col>
</ul>
</div>
</el-form>
<el-dialog custom-class="w700" :title="importFileTitle" :visible.sync="outerVisible" center>
<el-upload v-if="uploadDoc" ref="ticketUpload" drag class="upload-demo" :action="getImportFileUrl()"
:on-success="handleAvatarSuccess">
......@@ -2071,9 +2120,9 @@
},
//机票定金类型
DepositTypeArray: [{
Id: 1,
Name: "一定"
},
Id: 1,
Name: "一定"
},
{
Id: 2,
Name: "二定"
......@@ -2193,8 +2242,18 @@
dataList: [],
addShow: false,
command: false,
sanmai:false,
uploadDoc: true,
//散卖obj
sales:{
AirTicketId:0,
AirTicketNum:0,
B2BPrice:'',
B2CPrice:''
},
//1-一般导入,2-多航段导入
importType: 1,
pickerOptions1: {
......@@ -2270,7 +2329,24 @@
validator: validateLineId,
trigger: 'change',
required: true,
}]
}],
},
salerules:{
AirTicketNum: [{
required: true,
message: "请填写人数",
trigger: "change"
}],
B2BPrice: [{
required: true,
message: "请填写B2B单价",
trigger: "change"
}],
B2CPrice: [{
required: true,
message: "请填写B2C单价",
trigger: "change"
}],
}
};
},
......@@ -2435,6 +2511,7 @@
this.total = res.data.data.count;
this.dataList = res.data.data.pageData;
this.noData = !this.total > 0;
console.log(this.dataList,'dataList');
}
if (this.msg.ID == 0) {
this.msg.ID = "";
......@@ -2623,6 +2700,7 @@
getEntityExtend(ID) {
this.addShow = true;
this.command = false;
this.sanmai = false;
this.initAddMsg();
this.chengeDelIdList = [];
this.apipost(
......@@ -3013,8 +3091,35 @@
err => {
}
);
}
},
//散卖机票
sanSale(item){
this.sanmai = true;
this.addShow = false;
this.command = false;
this.sales.AirTicketId = item.ID;
this.sales.AirTicketNum = item.AirTicketScatterNum;
this.sales.B2BPrice = item.ScatterB2BPrice;
this.sales.B2CPrice = item.ScatterB2CPrice;
},
//保存
saveSales(){
this.apipost(
"ticket_post_SetAirTicketScattering", this.sales,
res => {
if (res.data.resultCode == 1) {
this.Success(res.data.message);
this.getList();
this.sanmai = false;
}else{
this.Error(res.data.message);
}
},
err => {
}
);
}
},
mounted() {
var id = this.$route.query.id;
......
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