Commit e2bab6fb authored by 沈良进's avatar 沈良进

save

parent 6c5b0778
...@@ -784,10 +784,18 @@ ...@@ -784,10 +784,18 @@
v-if="item.OrderStatus >1 && item.OrderStatus != 3 v-if="item.OrderStatus >1 && item.OrderStatus != 3
&&pagesTitle=='OP'&&is_correlationOP" &&pagesTitle=='OP'&&is_correlationOP"
class="row-c cursor-pointer radius5 change py5" class="row-c cursor-pointer radius5 change py5"
@click="clickCorrelation(item)" @click="clickCorrelation(item, 1)"
> >
<span class="c059FF6">编辑关联OP</span> <span class="c059FF6">编辑关联OP</span>
</div> </div>
<div
v-if="item.OrderStatus != 3
&&pagesTitle=='OP'"
class="row-c cursor-pointer radius5 change py5"
@click="clickCorrelation(item,2)"
>
<span class="c059FF6">编辑总金额</span>
</div>
</div> </div>
<!-- <div v-if="item.OrderStatus==2" class="column-jac px15 bgE8F5E9 radius5 ml fz12 pa20 flex-s c20C997"> <!-- <div v-if="item.OrderStatus==2" class="column-jac px15 bgE8F5E9 radius5 ml fz12 pa20 flex-s c20C997">
<div class="mb5">已支付</div> <div class="mb5">已支付</div>
...@@ -980,10 +988,17 @@ export default { ...@@ -980,10 +988,17 @@ export default {
this.close() this.close()
this.$emit('success') this.$emit('success')
}, },
clickCorrelation(item){ clickCorrelation(item, type){
this.CorrelationObj = item // this.CorrelationObj = item
this.CorrelationObj.TypeNum = 1 // this.CorrelationObj.TypeNum = 1
this.isShowCorrelation = true // this.isShowCorrelation = true
this.CorrelationObj = JSON.parse(JSON.stringify(item));
if (type == 2) {
this.CorrelationObj.TypeNum = 5; //编辑总价
} else {
this.CorrelationObj.TypeNum = 1;
}
this.isShowCorrelation = true;
}, },
isOffset(row, index, num,name){ isOffset(row, index, num,name){
this.makeAdocument(row, index, num, name, 'Offset') this.makeAdocument(row, index, num, name, 'Offset')
......
<template> <template>
<el-dialog :title="Title" width="400px" :visible.sync="isShow" center @close="close"> <el-dialog :title="Title" width="400px" :visible.sync="isShow" center @close="close">
<el-form class="cdForm" label-width="90px" :model="msg" :rules="rules" ref="msg"> <el-form class="cdForm" label-width="90px" :model="msg" :rules="rules" ref="msg">
<template v-if="CorrelationObj.TypeNum!=4"> <template v-if="CorrelationObj.TypeNum!=4 && CorrelationObj.TypeNum!=5 && CorrelationObj.TypeNum!=6">
<el-form-item label="OP" prop="OpEmpId"> <el-form-item label="OP" prop="OpEmpId">
<el-select filterable v-model='msg.OpEmpId' placeholder="请选择OP"> <el-select filterable v-model='msg.OpEmpId' placeholder="请选择OP">
<el-option v-for='item in EmployeeList' <el-option v-for='item in EmployeeList'
...@@ -69,7 +69,7 @@ ...@@ -69,7 +69,7 @@
this.CorrelationObj = newValue this.CorrelationObj = newValue
this.msg.OrderId = newValue.OrderId this.msg.OrderId = newValue.OrderId
this.msg.OpEmpId = newValue.OpEmpId?newValue.OpEmpId:null this.msg.OpEmpId = newValue.OpEmpId?newValue.OpEmpId:null
if(newValue.TypeNum==4){ if(newValue.TypeNum==4 || newValue.TypeNum==5 || newValue.TypeNum==6){
this.msg.Money = newValue.Money this.msg.Money = newValue.Money
this.Title = '编辑总金额' this.Title = '编辑总金额'
}else{ }else{
...@@ -87,7 +87,7 @@ ...@@ -87,7 +87,7 @@
mounted() { mounted() {
this.msg.OrderId = this.CorrelationObj.OrderId this.msg.OrderId = this.CorrelationObj.OrderId
this.msg.OpEmpId = this.CorrelationObj.OpEmpId?this.CorrelationObj.OpEmpId:null this.msg.OpEmpId = this.CorrelationObj.OpEmpId?this.CorrelationObj.OpEmpId:null
if(this.CorrelationObj.TypeNum==4){ if(this.CorrelationObj.TypeNum==4 || this.CorrelationObj.TypeNum==5 || this.CorrelationObj.TypeNum==6){
this.msg.Money = this.CorrelationObj.Money this.msg.Money = this.CorrelationObj.Money
this.Title = '修改总价' this.Title = '修改总价'
}else{ }else{
...@@ -98,7 +98,10 @@ ...@@ -98,7 +98,10 @@
methods: { methods: {
sureBtn(){ sureBtn(){
let url let url
let msg let msg = {
OrderId: this.msg.OrderId,
OpEmpId: this.msg.OpEmpId
}
if(this.CorrelationObj.TypeNum==1){ if(this.CorrelationObj.TypeNum==1){
url = 'dict_post_SetCustomerOrderOP' url = 'dict_post_SetCustomerOrderOP'
} }
...@@ -114,14 +117,19 @@ ...@@ -114,14 +117,19 @@
Money: this.msg.Money Money: this.msg.Money
} }
url = 'ticket_post_SetTicketOrderMoney' url = 'ticket_post_SetTicketOrderMoney'
}else{ } else if(this.CorrelationObj.TypeNum===5){ // 酒店修改总价
msg = { msg = {
OrderId: this.msg.OrderId, OrderId: this.msg.OrderId,
OpEmpId: this.msg.OpEmpId Money: this.msg.Money
}
url = 'dict_post_SetHotelOrderMoney'
} else if(this.CorrelationObj.TypeNum===6){ // 车修改总价
msg = {
OrderId: this.msg.OrderId,
Money: this.msg.Money
} }
url = 'CarSingle_post_SetCarOrderMoney'
} }
this.$refs['msg'].validate((valid) => { this.$refs['msg'].validate((valid) => {
if (valid) { if (valid) {
this.apipost(url, msg, res => { this.apipost(url, msg, res => {
......
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