Commit 230fcb00 authored by youjie's avatar youjie

no message

parent c065dd71
<template>
<el-dialog custom-class='PingFangSC' title="订单改价提醒" :visible.sync="outerVisibleNot" center
<el-dialog custom-class='PingFangSC' title="订单改价提醒"
:visible.sync="outerVisibleNot" center
:before-close="closeChangeMachie" width="1100px">
<div style="margin-top: 20px;">
<p style="font-size: 18px;font-weight: bold;background: #d1d1d1;padding: 5px 10px;">订单改价列表</p>
<div>
<p style="color: red;font-size: 16px;">
提示:
<span>一共有 {{ChangeThePriceData.length}}
条账未平数据,快去<span class="c059FF6 fz16" style="margin-left: 10px;margin-right: 10px;cursor: pointer;font-weight: bold;" @click="ckChangePrice">申请改价</span></span>
</p>
<p style="font-size: 18px;font-weight: bold;background: #d1d1d1;padding: 5px 10px;margin-top: 5px;">订单改价列表
</p>
<el-table
border
ref="multipleTable"
......@@ -181,6 +189,19 @@
</span>
</template>
</el-table-column>
<el-table-column label="操作"
show-overflow-tooltip
fixed="right">
<template slot-scope="scope">
<p
class="c059FF6 fz14"
style="cursor: pointer;font-weight: bold;"
@click="ckChangePrice(scope.row)"
>
申请改价
</p>
</template>
</el-table-column>
</el-table>
</div>
<div v-if="ChangeThePriceData.length==0" style="padding: 40px 0;text-align: center;">
......@@ -201,6 +222,27 @@
},
methods: {
ckChangePrice(row){
this.closeChangeMachie()
let obj
if(row.OrderId){
obj = {
OrderId: row.OrderId,
OrderType: row.OrderType,
DepartSTime: row.StartDate,
DepartETime: row.StartDate,
blank: "y"
}
}else{
obj = {
blank: "y"
}
}
this.$router.push({
name: 'erpChangePricehOrder',
query: obj
});
},
closeChangeMachie(done) {
this.$emit('ChangeThePriceVisible')
},
......
......@@ -222,7 +222,7 @@
机票未绑团查看
<i class="iconfont icon-right1"></i>
</el-dropdown-item>
<el-dropdown-item v-if="ChangeThePriceList.length>0" class="clearfix _dropdown_other" @click.native="ChangeThePriceVisible=true">
<el-dropdown-item v-if="ChangeThePriceList.length>0" class="clearfix _dropdown_other" @click.native="GetChangeThePrice()">
<i class="iconfont icon-Newspaper" style="color:#f39c12"></i>
订单改价查看
<i class="iconfont icon-right1"></i>
......@@ -1885,7 +1885,7 @@
DateList.push(this.getBeforeDate(-i, new Date(StartDate).Format("yyyy-MM-dd")))
}
this.ChangeThePriceList = DateList.filter(x=>{
return x==this.getBeforeDate(0, new Date().Format("yyyy-MM-dd"))
return x==this.getBeforeDate(0, new Date(StartDate).Format("yyyy-MM-dd"))
})
if(this.ChangeThePriceList.length>0){
if(!localStorage.getItem("ChangeThePriceDataTime")||
......@@ -1967,6 +1967,7 @@
"CarSingle_post_GetChangePriceOrderPageList", msg,
res => {
if(res.data.resultCode==1){
console.log(res.data,'--------------')
if(res.data.data&&res.data.data.count>0&&res.data.data.pageData.length>0){
localStorage.setItem("ChangeThePriceData", JSON.stringify(res.data.data.pageData));
localStorage.setItem("ChangeThePriceDataTime", this.getBeforeDate(0, new Date().Format("yyyy-MM-dd")));
......
......@@ -563,7 +563,15 @@ export default {
this.Title = val;
},
OrderList: {
handler(val, oldVal) {}
handler(val, oldVal) {
if(this.pagesTitle=='申请'&&this.$route.query.OrderId
&&this.$route.query.OrderType
&&this.$route.query.DepartSTime
&&this.$route.query.DepartSTime
&&val&&val.length==1){
this.ckChangePrice(val[0])
}
}
}
},
methods: {
......
......@@ -478,6 +478,11 @@
handler(val, oldVal) {
this.msg.OrderType = val.tab
this.msg.OrderId = val.OrderId
if(val.DepartSTime&&val.DepartSTime){
this.msg.DepartSTime = val.DepartSTime;
this.msg.DepartETime = val.DepartSTime;
this.DatelistUse = [this.msg.DepartSTime,this.msg.DepartETime]
}
this.GetList()
},
deep: true,
......@@ -698,14 +703,15 @@
var nextMonthFirstDay = new Date([year,month + 1,1].join('-')).getTime();
var oneDay = 1000 * 24 * 60 * 60;
var monthLast = new Date(nextMonthFirstDay - oneDay).getDate()
this.msg.DepartSTime = [year,month,1].join('-');
this.msg.DepartETime = [year,month,monthLast].join('-');
// this.msg.DepartSTime = this.getBeforeDate(200, new Date())
// this.msg.DepartETime = this.getBeforeDate(0, new Date())
if(!this.$route.query.DepartSTime&&!this.$route.query.DepartSTime){
this.msg.DepartSTime = [year,month,1].join('-');
this.msg.DepartETime = [year,month,monthLast].join('-');
// this.msg.DepartSTime = this.getBeforeDate(200, new Date())
// this.msg.DepartETime = this.getBeforeDate(0, new Date())
}
this.DatelistUse = [this.msg.DepartSTime,this.msg.DepartETime]
this.msg.Q_IsCollect = '2'
}
if(this.$route.query.OrderId){
this.msg.OrderId=this.$route.query.OrderId
this.msg.StartTime = ''
......
......@@ -16,6 +16,10 @@
pagesTitle: '申请',
dataObj:{
OrderId: '',
tab: '0',
DepartSTime: '',
DepartETime: '',
OrderChangePriceId: 0
}
};
},
......@@ -34,6 +38,14 @@
if(this.$route.query.OrderId){
this.dataObj.OrderId = this.$route.query.OrderId
}
if(this.$route.query.OrderType){
this.dataObj.tab = this.$route.query.OrderType
}
if(this.$route.query.DepartSTime&&this.$route.query.DepartETime){
this.dataObj.DepartSTime = this.$route.query.DepartSTime,
this.dataObj.DepartETime =this.$route.query.DepartETime
}
},
};
......
......@@ -15,24 +15,28 @@
pagesTitle: 'OP',
dataObj:{
OrderId: '',
tab: '0'
}
};
},
watch: {
pagesTitle(val,oldval){
},
},
methods: {
},
created() {
},
mounted() {
if(this.$route.query.OrderId){
this.dataObj.OrderId = this.$route.query.OrderId
}
if(this.$route.query.OrderType){
this.dataObj.tab = this.$route.query.OrderType
}
},
};
......
......@@ -15,24 +15,28 @@
pagesTitle: 'OP',
dataObj:{
OrderId: '',
tab: '0'
}
};
},
watch: {
pagesTitle(val,oldval){
},
},
methods: {
},
created() {
},
mounted() {
if(this.$route.query.OrderId){
this.dataObj.OrderId = this.$route.query.OrderId
}
if(this.$route.query.OrderType){
this.dataObj.tab = this.$route.query.OrderType
}
},
};
......
......@@ -16,6 +16,7 @@
pagesTitle: '审核',
dataObj:{
OrderId: '',
tab: '0'
}
};
},
......@@ -34,6 +35,9 @@
if(this.$route.query.OrderId){
this.dataObj.OrderId = this.$route.query.OrderId
}
if(this.$route.query.OrderType){
this.dataObj.tab = this.$route.query.OrderType
}
},
};
......
......@@ -15,24 +15,28 @@
pagesTitle: '销售',
dataObj:{
OrderId: '',
tab: '0'
}
};
},
watch: {
pagesTitle(val,oldval){
},
},
methods: {
},
created() {
},
mounted() {
if(this.$route.query.OrderId){
this.dataObj.OrderId = this.$route.query.OrderId
}
if(this.$route.query.OrderType){
this.dataObj.tab = this.$route.query.OrderType
}
},
};
......
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