Commit c6259316 authored by youjie's avatar youjie

no message

parent 49cd2fab
...@@ -301,7 +301,7 @@ ...@@ -301,7 +301,7 @@
<span>包车日期:</span> <span>包车日期:</span>
<div> <div>
<el-date-picker class="w150" v-model='SetOutTime' format="yyyy-MM-dd" value-format="yyyy-MM-dd" type="date" <el-date-picker class="w150" v-model='SetOutTime' format="yyyy-MM-dd" value-format="yyyy-MM-dd" type="date"
:picker-options="beforeCheck" laceholder="包车日期" @change="getInfo"> :picker-options="beforeCheck" laceholder="包车日期" @change="getQuotation">
</el-date-picker> </el-date-picker>
</div> </div>
</div> </div>
...@@ -310,7 +310,7 @@ ...@@ -310,7 +310,7 @@
<div style="display: flex;"> <div style="display: flex;">
<template v-for="x in AirportTypes"> <template v-for="x in AirportTypes">
<el-tag class="time-box-width" :type="x.checked?'':'info'" style="margin-right: 10px;cursor: pointer;" <el-tag class="time-box-width" :type="x.checked?'':'info'" style="margin-right: 10px;cursor: pointer;"
@click="changeDetailListHandler(x,1,msg.OrderId)"> @click="msg.OrderId?changeDetailListHandler():changeDetailListHandler(x,1,msg.OrderId)">
<a>{{ x.AirportName }}</a> <a>{{ x.AirportName }}</a>
</el-tag> </el-tag>
</template> </template>
...@@ -406,7 +406,7 @@ ...@@ -406,7 +406,7 @@
v-model="msg.OrderDate" v-model="msg.OrderDate"
type="datetime" type="datetime"
format="yyyy-MM-dd HH:mm" value-format="yyyy-MM-dd HH:mm" format="yyyy-MM-dd HH:mm" value-format="yyyy-MM-dd HH:mm"
placeholder="选择预定时间" :picker-options="beforeCheck"> placeholder="选择预定时间" :picker-options="beforeCheck" @change="getTime">
</el-date-picker> </el-date-picker>
</el-form-item> </el-form-item>
</li> </li>
...@@ -581,12 +581,6 @@ ...@@ -581,12 +581,6 @@
return time && endTime.getTime() >= time.getTime(); return time && endTime.getTime() >= time.getTime();
} }
}, },
beforeCheckB: {
disabledDate: time => {
let endTime = new Date(this.getBeforeDate(0,new Date().Format("yyyy-MM-dd HH:mm")));
return time && endTime.getTime() >= time.getTime();
}
},
rules:{ rules:{
AirportTerminal: [{ AirportTerminal: [{
required: true, required: true,
...@@ -655,6 +649,9 @@ ...@@ -655,6 +649,9 @@
}; };
}, },
methods: { methods: {
getTime(){
this.SetOutTime = this.msg.OrderDate
},
submit(){ submit(){
this.$refs['msg'].validate((valid) => { this.$refs['msg'].validate((valid) => {
if (valid) { if (valid) {
...@@ -690,10 +687,10 @@ ...@@ -690,10 +687,10 @@
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.Success('下单成功'); this.Success('下单成功');
this.$router.push({ this.$router.push({
path: "/CharterOrderList", path: `/CharterOrderList?OrderType=${this.msg.OrderType}`,
}); });
} else { } else {
this.Error('下单失败') this.Error(res.data.message)
} }
}, },
err => { err => {
...@@ -746,10 +743,11 @@ ...@@ -746,10 +743,11 @@
let types = this.types.filter(x => x.checked) let types = this.types.filter(x => x.checked)
if(types&&types[0]){ if(types&&types[0]){
this.msg.CarId = types[0].Id this.msg.CarId = types[0].Id
} }
this.getQuotation()
this.isCheck = this.types.findIndex(x => x.checked) > -1 this.isCheck = this.types.findIndex(x => x.checked) > -1
} }
this.getQuotation()
this.changePeople() this.changePeople()
this.$forceUpdate() this.$forceUpdate()
}, },
...@@ -767,10 +765,12 @@ ...@@ -767,10 +765,12 @@
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
let newData = res.data.data.filter(x=>x.Date==this.SetOutTime) let newData = res.data.data.filter(x=>x.Date==this.SetOutTime)
let types = this.types.filter(x => x.checked) let types = this.types.filter(x => x.checked)
this.types.forEach((item,index) => { newData.length>0&&this.types.forEach((item,index) => {
if(types&&types[0]&&types[0].Id==item.Id&&newData[0].Price>0){ if(types&&types[0]&&types[0].Id==item.Id&&newData[0].Price>0){
item.B2BPrice = newData[0].Price item.B2BPrice = newData[0].Price
this.msg.Unit_Price = newData[0].Price this.msg.Unit_Price = newData[0].Price
}else{
item.B2BPrice = 0.0
} }
}); });
if(this.isCheck){ if(this.isCheck){
...@@ -810,9 +810,6 @@ ...@@ -810,9 +810,6 @@
if(this.types&&this.types.length==0){ if(this.types&&this.types.length==0){
message.errorMsg(`${t('v102.ticket.nobj')}`) message.errorMsg(`${t('v102.ticket.nobj')}`)
} }
if(this.msg.OrderId){
this.getOrderInfo()
}
}else{ }else{
this.Error(res.data.message) this.Error(res.data.message)
...@@ -830,10 +827,11 @@ ...@@ -830,10 +827,11 @@
}, },
res => { res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.SetOutTime = res.data.data.OrderDate
this.msg = { this.msg = {
OrderId: res.data.data.OrderId, OrderId: res.data.data.OrderId,
OrderType: String(res.data.data.OrderType), OrderType: String(res.data.data.OrderType),
OrderDate:res.data.data.OrderDate,//预定日期 OrderDate: res.data.data.OrderDate,//预定日期
Unit_Price: res.data.data.Unit_Price,//单价 Unit_Price: res.data.data.Unit_Price,//单价
Num: res.data.data.Num,//数量 Num: res.data.data.Num,//数量
Money: res.data.data.Money, Money: res.data.data.Money,
...@@ -858,6 +856,7 @@ ...@@ -858,6 +856,7 @@
ProductId: res.data.data.ProductId, ProductId: res.data.data.ProductId,
CarId: res.data.data.CarId,//产品类型ID CarId: res.data.data.CarId,//产品类型ID
} }
this.getQuotation()
this.AirportTypes.forEach(x=>{ this.AirportTypes.forEach(x=>{
if(x.AirportId==res.data.data.AirportId){ if(x.AirportId==res.data.data.AirportId){
this.changeDetailListHandler(x,1) this.changeDetailListHandler(x,1)
...@@ -865,9 +864,12 @@ ...@@ -865,9 +864,12 @@
}) })
this.types.forEach(x=>{ this.types.forEach(x=>{
if(x.Id==res.data.data.CarId){ if(x.Id==res.data.data.CarId){
x.num = res.data.data.Num
x.B2BPrice = res.data.data.Unit_Price
this.changeDetailListHandler(x,3) this.changeDetailListHandler(x,3)
} }
}) })
} }
}) })
...@@ -876,43 +878,20 @@ ...@@ -876,43 +878,20 @@
this.detailsRow = JSON.parse(JSON.stringify(this.detailsObj)) this.detailsRow = JSON.parse(JSON.stringify(this.detailsObj))
this.showDetails = true this.showDetails = true
}, },
getProvinceList(ID, type) {
//根据省份获取城市
let msg = {
Id: ID
};
if (type == 1) {
this.msg.QProvince = 0;
this.msg.QCity = 0;
this.provinceList = [];
this.cityList = [];
} else if (type == 2) {
this.msg.City = 0;
this.cityList = [];
}
this.apipost(
"dict_post_Destination_GetChildList",
msg,
res => {
if (type == 1) {
this.provinceList = res.data.data;
} else if (type == 2) {
this.cityList = res.data.data;
}
},
err => {}
);
},
}, },
mounted() { mounted() {
}, },
created() { created() {
this.msg.OrderId = this.$route.query.OrderId
this.msg.ProductId = this.$route.query.id this.msg.ProductId = this.$route.query.id
this.SetOutTime = this.$route.query.OrderDate this.SetOutTime = this.$route.query.OrderDate
// this.msg.OrderDate = this.$route.query.OrderDate+ ' 00:00' // this.msg.OrderDate = this.$route.query.OrderDate+ ' 00:00'
this.getInfo() this.getInfo()
if(this.msg.OrderId){
this.getOrderInfo()
}
} }
}; };
......
...@@ -52,7 +52,7 @@ ...@@ -52,7 +52,7 @@
</span> </span>
</li> </li>
<li> <li>
<span><em>客人名称</em> <span><em>客人姓/名</em>
<el-input clearable v-model="msg.SurName" placeholder="客人姓" class="w110"/> <el-input clearable v-model="msg.SurName" placeholder="客人姓" class="w110"/>
<el-input clearable v-model="msg.Name" placeholder="客人名" class="w110"/> <el-input clearable v-model="msg.Name" placeholder="客人名" class="w110"/>
</span> </span>
...@@ -90,15 +90,29 @@ ...@@ -90,15 +90,29 @@
</el-date-picker> </el-date-picker>
</span> </span>
</li> </li>
<li v-if="Title!='销售'">
<span>
<em>业务员</em>
<el-select filterable v-model='msg.EnterID' class="">
<el-option :value="0" label="不限"></el-option>
<el-option v-for='item in EmployeeList'
:label='item.EmName'
:value='item.EmployeeId'
:key='item.EmployeeId'>
</el-option>
</el-select>
</span>
</li>
<li> <li>
<input type="button" class="normalBtn" :value="$t('pub.searchBtn')" @click="msg.pageIndex=1,currentPage=1,GetList()" /> <input type="button" class="normalBtn" :value="$t('pub.searchBtn')" @click="msg.pageIndex=1,currentPage=1,GetList()" />
</li> </li>
</ul> </ul>
</div> </div>
<template> <template>
<OrderList :pagesTitle="Title" :OrderList="OrderList" v-loading="loading" @success="GetList"> </OrderList> <OrderList :pagesTitle="Title" :OrderList="OrderList" v-loading="loading" @success="msg.pageIndex=1,GetList()"> </OrderList>
<div v-if="OrderList.length==0" style="text-align: center;">暂无数据</div> <div v-if="OrderList.length==0" style="text-align: center;padding: 100px;">暂无数据</div>
<el-pagination background @current-change="handleCurrentChange" :current-page.sync="currentPage" layout="total,prev, pager, next, jumper" :page-size=msg.pageSize :total=total> <el-pagination v-if="OrderList.length>0" background @current-change="handleCurrentChange" :current-page.sync="currentPage" layout="total,prev, pager, next, jumper" :page-size=msg.pageSize :total=total>
</el-pagination> </el-pagination>
</template> </template>
...@@ -123,7 +137,6 @@ ...@@ -123,7 +137,6 @@
msg:{ msg:{
pageIndex: 1, pageIndex: 1,
pageSize: 5, pageSize: 5,
Mobile: '',//电话
OrderType: '1', OrderType: '1',
OrderId: '', OrderId: '',
...@@ -137,6 +150,7 @@ ...@@ -137,6 +150,7 @@
OrderETime: '', OrderETime: '',
ProductName: '', ProductName: '',
Mobile: '',//电话 Mobile: '',//电话
EnterID: '',//业务员
}, },
total: 0, total: 0,
currentPage: 1, currentPage: 1,
...@@ -158,6 +172,14 @@ ...@@ -158,6 +172,14 @@
Datelist:'', Datelist:'',
DatelistUse:'', DatelistUse:'',
Title:'', Title:'',
EmployeeList:[],
employeeMsg:{ // 员工
GroupId:'',
BranchId:-1,
DepartmentId:0,
PostId:0,
IsLeave:0,
},
}; };
}, },
watch: { watch: {
...@@ -170,6 +192,13 @@ ...@@ -170,6 +192,13 @@
}, },
}, },
methods: { methods: {
getEmployee() { //员工
this.apipost('admin_get_EmployeeGetList', this.employeeMsg, res => {
if(res.data.resultCode == 1) {
this.EmployeeList = res.data.data;
}
}, err => {})
},
getDatesUse(){ getDatesUse(){
if(this.DatelistUse){ if(this.DatelistUse){
this.msg.OrderSTime = this.DatelistUse[0] this.msg.OrderSTime = this.DatelistUse[0]
...@@ -199,19 +228,6 @@ ...@@ -199,19 +228,6 @@
d = new Date(ds[0], ds[1] - 1 + m, _d > max ? max : _d); d = new Date(ds[0], ds[1] - 1 + m, _d > max ? max : _d);
return d.toLocaleDateString().match(/\d+/g).join('-') return d.toLocaleDateString().match(/\d+/g).join('-')
}, },
// 获取酒店下拉
initHotels() {
this.apipost("hotel_post_GetHasStockHotelList", {},
res => {
if (res.data.resultCode == 1) {
this.HotelList = res.data.data;
} else {
message.errorMsg(res.data.message);
}
},
err => {}
);
},
getyMDOne(){ getyMDOne(){
let myDate = new Date() let myDate = new Date()
let myYear = myDate.getFullYear();//获取完整的年份(4位,1970-????) let myYear = myDate.getFullYear();//获取完整的年份(4位,1970-????)
...@@ -240,7 +256,7 @@ ...@@ -240,7 +256,7 @@
if(this.pagesTitle=='销售'){ if(this.pagesTitle=='销售'){
url = "CarSingle_post_GetSaleMyCarOrderPageList" url = "CarSingle_post_GetSaleMyCarOrderPageList"
}else{ }else{
url = "ticket_post_GetAdminTicketOrderPageList" url = "CarSingle_post_GetAdminCarOrderPageList"
} }
this.apipost(url, this.msg, this.apipost(url, this.msg,
res => { res => {
...@@ -276,14 +292,19 @@ ...@@ -276,14 +292,19 @@
if(this.$route.query.OrderId){ if(this.$route.query.OrderId){
this.msg.OrderId=this.$route.query.OrderId this.msg.OrderId=this.$route.query.OrderId
} }
let userInfo=this.getLocalStorage();
this.employeeMsg.GroupId = userInfo.RB_Group_id; //集团ID
this.msg.EnterID = userInfo.EmployeeId;
}, },
mounted() { mounted() {
this.Title = this.pagesTitle this.Title = this.pagesTitle
if(this.Title!='销售'){
this.getEmployee()
}
this.Datelist = this.getyMDOne() this.Datelist = this.getyMDOne()
this.userInfo = this.getLocalStorage(); this.userInfo = this.getLocalStorage();
this.GetList(); this.GetList();
this.initHotels();//酒店名称下拉
//自适应高度调节 //自适应高度调节
this.com_onresize(); this.com_onresize();
window.onresize = () => { window.onresize = () => {
......
...@@ -538,7 +538,7 @@ ...@@ -538,7 +538,7 @@
</el-table> </el-table>
</div> </div>
<div class="row justify-sb mt mb20"> <div class="row justify-sb mt mb20">
<div class="column px15 bgf5 radius5 ml flex-g pa relative"> <div class="column px15 bgf5 radius5 flex-g pa relative">
<div class="fz12">收款单据</div> <div class="fz12">收款单据</div>
<div class="row wrap orderNo fz12 py c3FC4FF"> <div class="row wrap orderNo fz12 py c3FC4FF">
<span <span
...@@ -652,53 +652,21 @@ ...@@ -652,53 +652,21 @@
<i v-loading="msg.OrderId==item.OrderId&&loading1"></i> <i v-loading="msg.OrderId==item.OrderId&&loading1"></i>
<span class="c20C997">确认订单</span> <span class="c20C997">确认订单</span>
</div> </div>
<div
v-if="item.OrderStatus == 2&&item.MailingState == 2&&pagesTitle!='销售'"
class="row-c cursor-pointer radius5 cancel py5"
@click="clickRightButtom(item, 2)"
>
<i v-loading="msg.OrderId==item.OrderId&&loading1"></i>
<span class="cF1416C">邮寄</span>
</div>
<div
v-if="item.OrderStatus == 2&&item.MailingState == 1&&pagesTitle!='销售'"
class="row-c cursor-pointer radius5 cancel py5"
@click="clickRightButtom(item, 3)"
>
<i v-loading="loading1"></i>
<span class="cF1416C">设置自提地址</span>
</div>
<!-- <div
v-if="item.OrderStatus == 2 || item.OrderStatus == 4"
class="row-c cursor-pointer radius5 change py5"
@click="goRoomDetails(item, '订房详情')"
>
<span class="c059FF6">明细/编辑</span>
</div> -->
<div <div
v-if="item.OrderStatus == 1&&pagesTitle=='销售'" v-if="item.OrderStatus == 1&&pagesTitle=='销售'"
class="row-c cursor-pointer radius5 change py5" class="row-c cursor-pointer radius5 change py5"
@click="goRoomDetails(item, '预定变更')" @click="goRoomDetails(item, '变更订单')"
> >
<span class="c059FF6">订单变更</span> <span class="c059FF6">订单变更</span>
</div> </div>
<div <div
v-if="item.OrderStatus > 1" v-if="item.OrderStatus > 1"
class="row-c cursor-pointer radius5 change1 py5" class="row-c cursor-pointer radius5 change1 py5"
@click="clickRightButtom(item, 4)" @click="clickRightButtom(item, 2)"
> >
<i v-loading="msg.OrderId==item.OrderId&&loading2"></i> <i v-loading="msg.OrderId==item.OrderId&&loading2"></i>
<span class="c20C997">收损</span> <span class="c20C997">收损</span>
</div> </div>
<!-- <template v-if="item.OrderStatus==2">
<div class="column-jac fz12 flex-s c20C997">
<div class="mb5">已支付</div>
<div>
<span class="fbold fz14">{{item.Money.toFixed(2)}}</span>
<span>日元</span>
</div>
</div>
</template> -->
</div> </div>
</div> </div>
<div class="mt mb20 bgf5 pa15 row-c" v-if="item.CancelRemark"> <div class="mt mb20 bgf5 pa15 row-c" v-if="item.CancelRemark">
...@@ -712,25 +680,13 @@ ...@@ -712,25 +680,13 @@
<el-dialog <el-dialog
custom-class="w400" custom-class="w400"
:title="typeState==3?'设置自提地址':'设置收损金额'" title="设置收损金额"
:visible.sync="outerVisible" :visible.sync="outerVisible"
> >
<div> <div>
<el-form label-width="80px" :model="msg" :rules="rules" ref="msg"> <el-form label-width="80px" :model="msg" :rules="rules" ref="msg">
<el-row :gutter="20"> <el-row :gutter="20">
<!-- <el-col :span="20"> <el-col :span="20">
<el-form-item label="订单状态" prop="State">
<el-select v-model="msg.State" class="w110 HworkInput">
<el-option v-for="item in OrderStatusType" :key="item.ID" :label="item.Name" :value="item.ID"></el-option>
</el-select>
</el-form-item>
</el-col> -->
<el-col :span="20" v-if="typeState==3">
<el-form-item label="自提地址" prop="SelffetchAddress">
<el-input type="textarea" :autosize="{ minRows: 2, maxRows: 4}" v-model="msg.SelffetchAddress"></el-input>
</el-form-item>
</el-col>
<el-col :span="20" v-if="typeState==4">
<el-form-item label="收损金额" prop="LossMoney"> <el-form-item label="收损金额" prop="LossMoney">
<el-input-number <el-input-number
class="w200" class="w200"
...@@ -792,93 +748,6 @@ ...@@ -792,93 +748,6 @@
</el-row> </el-row>
</div> </div>
</el-dialog> </el-dialog>
<!-- 变更订单 -->
<el-dialog
custom-class="w800"
title="变更订单"
:visible.sync="ChangeOrderDialog"
>
<div style="padding-bottom:20px">
<div class="flexOne-form-bj">
<h3>取票方式</h3>
<div class="flexOne-type">
<b>取票方式:</b>
<div>
<el-radio v-model="msgParameter.MailingState" label="1">自行取票</el-radio>
<el-radio v-model="msgParameter.MailingState" label="2" >邮寄票券</el-radio>
</div>
</div>
<div class="flexOne-description">
<b>自行取票说明</b>
<p>自行前往指定位置取票,當您完成付款後我們將通過郵件通知您取票的門票訊息</p>
</div>
<div class="flexOne-infor-box">
<b>客人讯息 邮寄讯息</b>
<el-form label-width="80px" :model="msgParameter" :rules="rules2" ref="msgParameter">
<div class="infor-list">
<!-- <div class="list-title">
<li>中文姓名</li>
<li>英文姓名</li>
<li>性别</li>
<li>联络电话</li>
<li>收件地址</li>
</div> -->
</span>
<div class="list-centent" :class="{'active':msg.MailingState==1}">
<li>
<el-form-item label="中文名" prop="Name">
<el-input v-model="msgParameter.Name" placeholder="请输入名称"/>
</el-form-item>
</li>
<li>
<el-form-item label="英文名" prop="EName">
<el-input v-model="msgParameter.EName" placeholder="请输入英文名"/>
</el-form-item>
</li>
<li>
<el-form-item label="电话" prop="Mobile">
<el-input type="Number" v-model="msgParameter.Mobile" placeholder="请输入电话"/>
</el-form-item>
</li>
<li v-if="msgParameter.MailingState==2">
<el-form-item label="地址" prop="MailingAddress">
<el-input style="border-radius: 3px;" v-model="msgParameter.MailingAddress" placeholder="请输入邮寄地址"/>
</el-form-item>
</li>
<li class="bottom">
<el-form-item label="性别" prop="Sex">
<el-radio v-model="msgParameter.Sex" label="1"></el-radio>
<el-radio v-model="msgParameter.Sex" label="2" ></el-radio>
</el-form-item>
</li>
</div>
</div>
</el-form>
<div style="margin-top: 20px;">
<el-input style="width: 100%;" type="textarea" :autosize="{ minRows: 2, maxRows: 4}"
v-model="msgParameter.Remark" placeholder="订单备注"/>
</div>
</div>
</div>
<el-row :gutter="20" style="margin-top: 20px;">
<el-col :span="24" style="text-align: right;">
<input
type="button"
class="normalBtn"
value="取消"
@click="ChangeOrderDialog=false"
/>
<input
type="button"
class="hollowFixedBtn"
value="确定"
@click="submit2"
/>
</el-col>
</el-row>
</div>
</el-dialog>
</div> </div>
</template> </template>
<script> <script>
...@@ -1141,15 +1010,21 @@ ...@@ -1141,15 +1010,21 @@
tab: title tab: title
} }
}); });
}else{//变更门票预定 }else{//变更预定
this.msgParameter = JSON.parse(JSON.stringify(obj)) console.log()
this.msgParameter.MailingState = JSON.stringify(this.msgParameter.MailingState) this.$router.push({
this.msgParameter.Sex = JSON.stringify(this.msgParameter.Sex) name: 'CharterPreview',
this.ChangeOrderDialog = true query: {
OrderId: obj.OrderId,
id: obj.ProductId,
blank: "y",
tab: title
}
});
} }
}, },
clickRightButtom(item, type) { clickRightButtom(item, type) {
// 0取消订单 1确认订单 2已邮寄 3设置自提地址 4收损 // 0取消订单 1确认订单 2收损
this.msg.OrderId = item.OrderId; this.msg.OrderId = item.OrderId;
this.msg.SelffetchAddress = item.SelffetchAddress this.msg.SelffetchAddress = item.SelffetchAddress
this.items = item this.items = item
...@@ -1167,7 +1042,6 @@ ...@@ -1167,7 +1042,6 @@
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'warning' type: 'warning'
}).then(() => { }).then(() => {
this.loading0 = true
this.cancelOrderHandler() this.cancelOrderHandler()
}).catch(err=>{ }).catch(err=>{
this.loading0= false this.loading0= false
...@@ -1178,15 +1052,7 @@ ...@@ -1178,15 +1052,7 @@
if (!this.loading1) { if (!this.loading1) {
this.confirmFun(item, type); this.confirmFun(item, type);
} }
} else if (type == 2) { }else if (type == 2) {
if (!this.loading1) {
this.confirmFun(item, type);
}
} else if (type == 3) {
if (!this.loading1) {
this.outerVisible = true;
}
} else if (type == 4) {
if (!this.loading2) { if (!this.loading2) {
this.outerVisible = true; this.outerVisible = true;
this.msg.LossMoney = item.LossMoney ? item.LossMoney : 0; this.msg.LossMoney = item.LossMoney ? item.LossMoney : 0;
...@@ -1245,7 +1111,7 @@ ...@@ -1245,7 +1111,7 @@
if (this.loading0) return; if (this.loading0) return;
this.loading0 = true this.loading0 = true
this.apipost( this.apipost(
"ticket_post_CancelSaleTicketOrder", "CarSingle_post_CancelSaleCarOrder",
{ {
OrderId: this.cancelOrderId, OrderId: this.cancelOrderId,
IsOPCancel: this.Title!='销售'?1:0, IsOPCancel: this.Title!='销售'?1:0,
...@@ -1271,13 +1137,7 @@ ...@@ -1271,13 +1137,7 @@
}, },
saveUpdate() { saveUpdate() {
let text let text = '是否确认设置收损?'
if(this.typeState==3){
text = '是否确认设置自取地址?'
}
if(this.typeState==4){
text = '是否确认设置收损?'
}
this.$confirm(text, "提示", { this.$confirm(text, "提示", {
confirmButtonText: "确定", confirmButtonText: "确定",
cancelButtonText: "取消", cancelButtonText: "取消",
...@@ -1286,12 +1146,11 @@ ...@@ -1286,12 +1146,11 @@
.then(() => { .then(() => {
this.loading2 = true; this.loading2 = true;
this.apipost( this.apipost(
"ticket_post_SetSaleTicketOrderState", "CarSingle_post_SetAdminCarOrderState",
{ {
OrderId: this.msg.OrderId, OrderId: this.msg.OrderId,
State: this.typeState, State: this.typeState,
SelffetchAddress: this.typeState==3?this.msg.SelffetchAddress:'', LossMoney: this.msg.LossMoney,
LossMoney: this.typeState==4?this.msg.LossMoney:'',
}, },
res => { res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
...@@ -1311,13 +1170,7 @@ ...@@ -1311,13 +1170,7 @@
.catch(() => {}); .catch(() => {});
}, },
confirmFun(item,type) { confirmFun(item,type) {
let text let text = '是否确认订单?'
if(type==1){
text = '是否确认订单?'
}
if(type==2){
text = '是否确认邮寄?'
}
this.$confirm(text, "提示", { this.$confirm(text, "提示", {
confirmButtonText: "确定", confirmButtonText: "确定",
cancelButtonText: "取消", cancelButtonText: "取消",
...@@ -1326,12 +1179,11 @@ ...@@ -1326,12 +1179,11 @@
.then(() => { .then(() => {
this.loading1 = true; this.loading1 = true;
this.apipost( this.apipost(
"ticket_post_SetSaleTicketOrderState", "CarSingle_post_SetAdminCarOrderState",
{ {
OrderId: item.OrderId, OrderId: item.OrderId,
State: type, State: type,
SelffetchAddress: type==3?this.msg.SelffetchAddress:'', LossMoney: type==2?this.msg.LossMoney:'',
LossMoney: type==4?this.msg.LossMoney:'',
}, },
res => { res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
......
<style> <style>
.HotelWorkList .has-gutter tr th,
.el-table th.is-leaf {
background-color: #EAEAEA !important;
}
.HotelWorkList .HW_hotelDialog {
width: 900px;
}
.HotelWorkList .Hw_tableOne {
width: 100%;
height: 40px;
background-color: #EAEAEA;
}
.HotelWorkList .Hw_tableOne th {
text-align: center;
}
.HotelWorkList .HotelWorkInput .el-input {
width: 223px;
}
.HotelWorkList .HworkInput .el-input {
width: 110px;
}
</style> </style>
<template> <template>
...@@ -68,7 +41,11 @@ ...@@ -68,7 +41,11 @@
}, },
mounted() { mounted() {
if(this.$route.query.OrderType){
this.tab = this.$route.query.OrderType
}else{
this.tab = '0'
}
}, },
}; };
......
<style>
</style>
<template>
<div>
<el-tabs v-model="tab" @tab-click="handleClick">
<el-tab-pane label="团队订单" name="0">用户管理</el-tab-pane>
<el-tab-pane label="接机订单" name="1">
<BookAcarOrder :pagesTitle="pagesTitle" :type="tab"></BookAcarOrder>
</el-tab-pane>
<el-tab-pane label="送机订单" name="2">
<BookAcarOrder :pagesTitle="pagesTitle" :type="tab"></BookAcarOrder>
</el-tab-pane>
<el-tab-pane label="包车订单" name="3">
<BookAcarOrder :pagesTitle="pagesTitle" :type="tab"></BookAcarOrder>
</el-tab-pane>
</el-tabs>
</div>
</template>
<script>
import BookAcarOrder from './components/BookAcarOrder.vue';
export default {
components: { BookAcarOrder },
data() {
return {
pagesTitle: 'OP',
tab:'1'
};
},
watch: {
pagesTitle(val,oldval){
}
},
methods: {
handleClick(tab, event){
this.tab = tab.name
}
},
created() {
},
mounted() {
if(this.$route.query.OrderType){
this.tab = this.$route.query.OrderType
}else{
this.tab = '0'
}
},
};
</script>
<style>
</style>
...@@ -2101,6 +2101,14 @@ export default { ...@@ -2101,6 +2101,14 @@ export default {
title: '用车订单' title: '用车订单'
}, },
}, },
{
path: '/CharterOrderListOP', //OP用车订单
name: 'CharterOrderListOP',
component: resolve => require(['@/components/busManagement/BookAcar/orderOP'], resolve),
meta: {
title: '用车订单'
},
},
{ {
path: '/CharterAddEditVehicle', //新增/编辑团订 path: '/CharterAddEditVehicle', //新增/编辑团订
name: 'CharterAddEditVehicle', name: 'CharterAddEditVehicle',
......
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