Commit 5f6be033 authored by youjie's avatar youjie

no message

parent d0116f88
......@@ -933,7 +933,13 @@
layout="total,prev, pager, next, jumper" :page-size="msg.pageSize" :total="total">
</el-pagination>
<div class="buy-box" v-show="isShowTeamOrder">
<orderForm @success="reSearchPage" @close="closeForm" :PTCID="teamInfo.TCID" :POrderId="0" :PBranchId="0" :PProductType="2" :showCity="false">
<orderForm @success="reSearchPage" @close="closeForm"
:PTCID="teamInfo.TCID"
:POrderId="0"
:PBranchId="0"
:PProductType="2"
:showCity="false"
:productObj="teamInfo">
</orderForm>
</div>
</div>
......
......@@ -375,7 +375,7 @@
<el-form-item :label="$t('salesModule.ScenicRefund')">
<el-select filterable multiple class="multiple_input" v-model="addMsg.ScenicRefundArr"
:placeholder="$t('pub.pleaseSel')" @change="ScenicRefundMethods">
<el-option v-for="item in ScenicRefundList" :label="item.ScenicName" :value="item.Id" :key="item.Id">
<el-option v-for="(item,index) in ScenicRefundList" :label="item.ScenicName" :value="item.Id" :key="index">
</el-option>
</el-select>
</el-form-item>
......@@ -395,7 +395,7 @@
<el-form-item :label="$t('salesModule.CustomFrom')" prop="ClientSource">
<el-select v-model="addMsg.ClientSource" filterable :placeholder="$t('pub.pleaseSel')"
@change='changeClientSource'>
<el-option v-for="item in clientSourceList" :label="item.Name" :value="item.Id" :key="item.Id">
<el-option v-for="(item,index) in clientSourceList" :label="item.Name" :value="item.Id" :key="index">
</el-option>
</el-select>
</el-form-item>
......@@ -482,6 +482,10 @@
PProductType: {
type: Number,
default: 0, //产品类型(1-常规团,2-包机团)
},
productObj:{
type: Object,
default: {},
}
},
data() {
......@@ -1762,6 +1766,12 @@
this.getTradeWay();
},
watch: {
productObj:{
handler(oldValue, newVal){
this.addMsg.DepartureCityId = oldValue.StartCityID
this.addMsg.ReturnArriveCityId = oldValue.ReturnArriveCityId
}
},
//监听TCID变化
PTCID: function (oldValue, newVal) {
if (oldValue != newVal) {
......
......@@ -512,7 +512,7 @@
</div>
<div class="c9e fz12">
<span>订单编号:</span>
<span>{{ item.OrderNo }}({{ item.OrderId}})</span>
<span>{{ item.OrderNo }}({{ item.OrderId}})</span>
<span class="copy cblack cursor-pointer" v-if="copyId != item.OrderId" @click="CopyHandler(item)">复制</span>
<span class="copy c059FF6 bgD9F3FF cursor-pointer" v-else><i class="el-icon-check mr"></i>已复制</span>
</div>
......@@ -803,9 +803,10 @@
>
<span class="c059FF6">明细/编辑</span>
</div> -->
<div v-if="item.OrderStatus == 1 && pagesTitle == '销售'" class="row-c cursor-pointer radius5 change py5"
@click="goRoomDetails(item, '门票预定变更')">
<span class="c059FF6">订单变更</span>
<div v-if="(item.OrderStatus == 1 && pagesTitle == '销售')||(item.OrderStatus >1 && item.OrderStatus != 3
&&pagesTitle=='OP'&&is_correlationOP)" class="row-c cursor-pointer radius5 change py5"
@click="goRoomDetails(item, pagesTitle=='销售'?'门票预定变更':'编辑取票方式')">
<span class="c059FF6">{{pagesTitle=='销售'?'订单变更':'编辑取票方式'}}</span>
</div>
<div v-if="item.OrderStatus > 1" class="row-c cursor-pointer radius5 change1 py5"
@click="clickRightButtom(item, 4)">
......@@ -814,9 +815,10 @@
</div>
<div
v-if="item.OrderStatus >1 && item.OrderStatus != 3
&& item.OrderStatus != 4
&&pagesTitle=='OP'&&is_correlationOP"
class="row-c cursor-pointer radius5 change py5"
@click="clickCorrelation(item)"
@click="clickCorrelation(item,1)"
>
<span class="c059FF6">编辑关联OP</span>
</div>
......@@ -887,7 +889,7 @@
</div>
</el-dialog>
<!-- 变更订单 -->
<el-dialog custom-class="w800" title="变更订单" :visible.sync="ChangeOrderDialog">
<el-dialog custom-class="w800" :title="pagesTitle=='销售'?'变更订单':'编辑取票方式'" :visible.sync="ChangeOrderDialog">
<div style="padding-bottom:20px">
<div class="flexOne-form-bj">
<h3>取票方式</h3>
......@@ -896,25 +898,19 @@
<div>
<el-radio v-model="msgParameter.MailingState" label="1">自行取票</el-radio>
<el-radio v-model="msgParameter.MailingState" label="2">邮寄票券</el-radio>
<el-radio v-model="msgParameter.MailingState" label="4">电子券</el-radio>
</div>
</div>
<div class="flexOne-description">
<div class="flexOne-description" v-if="msgParameter.MailingState==1">
<b>自行取票说明</b>
<p>行前往指定位置取票,當您完成付款後我們將通過郵件通知您取票的門票訊息</p>
<p>取地址:{{msgParameter.SelffetchAddress?msgParameter.SelffetchAddress:'-'}}</p>
</div>
<div class="flexOne-infor-box">
<b>客人讯息 邮寄讯息</b>
<el-form label-width="80px" :model="msgParameter" :rules="rules2" ref="msgParameter">
<b>{{msgParameter.MailingState==1?'客人讯息':msgParameter.MailingState==2?'邮寄讯息':''}}</b>
<el-form v-if="msgParameter.MailingState!=4" 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 }">
<div class="list-centent" :class="{ 'active': msgParameter.MailingState == 1 }">
<li>
<el-form-item label="中文名" prop="Name">
<el-input v-model="msgParameter.Name" placeholder="请输入名称" />
......@@ -946,7 +942,7 @@
</div>
</div>
</el-form>
<div style="margin-top: 20px;">
<div v-if="pagesTitle=='销售'" style="margin-top: 20px;">
<el-input style="width: 100%;" type="textarea" :autosize="{ minRows: 2, maxRows: 4 }"
v-model="msgParameter.Remark" placeholder="订单备注" />
</div>
......@@ -1122,7 +1118,7 @@ export default {
this.close()
this.$emit('success')
},
clickCorrelation(item){
clickCorrelation(item,type){
this.CorrelationObj = item
this.CorrelationObj.TypeNum = 2
this.isShowCorrelation = true
......@@ -1172,32 +1168,51 @@ export default {
if (this.msgParameter.MailingState == '1') {
this.msgParameter.MailingAddress = ''
}
let m = {
IsUpdateMailing: 1,
OrderId: this.msgParameter.OrderId,
CouponsId: this.msgParameter.CouponsId,
Money: this.msgParameter.Money,
UseDate: this.msgParameter.UseDate,
Birthday: this.msgParameter.Birthday,
DetailList: this.msgParameter.DetailList,
MailingState: this.msgParameter.MailingState,//邮寄状态 1自取 2邮寄
MailingAddress: this.msgParameter.MailingAddress,//MailingState =2 填写邮寄
Name: this.msgParameter.Name,
EName: this.msgParameter.EName,
Sex: this.msgParameter.Sex,//1男2女
Mobile: this.msgParameter.Mobile,
Remark: this.msgParameter.Remark,
let m
let url
if(this.pagesTitle=='OP'){
m = {
OrderId: this.msgParameter.OrderId,
MailingMoney: this.msgParameter.MailingState==2?this.msgParameter.MailingMoney:0,
MailingState: this.msgParameter.MailingState,//邮寄状态 1自取 2邮寄
MailingAddress: this.msgParameter.MailingAddress,//MailingState =2 填写邮寄
SelffetchAddress: this.msgParameter.MailingState==1?this.msgParameter.SelffetchAddress:'',//自取地址
Name: this.msgParameter.MailingState<4?this.msgParameter.Name:'',
EName: this.msgParameter.MailingState<4?this.msgParameter.EName:'',
Sex: this.msgParameter.MailingState<4?this.msgParameter.Sex:0,//1男2女
Mobile: this.msgParameter.MailingState<4?this.msgParameter.Mobile:'',
}
url = 'dict_post_SetTicketOrderMailingState'
}
if(this.pagesTitle=='销售'){
m = {
IsUpdateMailing: 1,
OrderId: this.msgParameter.OrderId,
CouponsId: this.msgParameter.CouponsId,
Money: this.msgParameter.Money,
UseDate: this.msgParameter.UseDate,
Birthday: this.msgParameter.Birthday,
DetailList: this.msgParameter.DetailList,
MailingState: this.msgParameter.MailingState,//邮寄状态 1自取 2邮寄
MailingAddress: this.msgParameter.MailingAddress,//MailingState =2 填写邮寄
Name: this.msgParameter.Name,
EName: this.msgParameter.EName,
Sex: this.msgParameter.Sex,//1男2女
Mobile: this.msgParameter.Mobile,
Remark: this.msgParameter.Remark,
}
url = 'ticket_post_SetSaleTicketOrder'
}
this.loading3 = true
this.apipost("ticket_post_SetSaleTicketOrder", m,
this.apipost(url, m,
res => {
this.loading3 = false
if (res.data.resultCode == 1) {
this.Success('变更成功');
this.Success(`${this.pagesTitle=='销售'?'变更订单':'编辑取票方式'}成功`);
this.$emit('success')
this.ChangeOrderDialog = false
} else {
this.Error('变更失败')
this.Error(`${this.pagesTitle=='销售'?'变更订单':'编辑取票方式'}失败`)
}
},
err => {
......@@ -1314,8 +1329,25 @@ export default {
this.msgParameter.MailingState = JSON.stringify(this.msgParameter.MailingState)
this.msgParameter.Sex = JSON.stringify(this.msgParameter.Sex)
this.ChangeOrderDialog = true
// 获取自取地址
this.GetTicketCouponsInfo()
}
},
GetTicketCouponsInfo(){
this.apipost('ticket_post_GetTicketCouponsSelffetchAddress', {
CouponsId: this.msgParameter.CouponsId,
},
res => {
this.loading3 = false
if (res.data.resultCode == 1) {
this.msgParameter.SelffetchAddress = res.data.data.SelffetchAddress
}
},
err => {
this.Error(err.message)
});
},
clickRightButtom(item, type) {
// 0取消订单 1确认订单 2已邮寄 3设置自提地址 4收损
this.msg.OrderId = item.OrderId;
......
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