Commit 773e5b25 authored by youjie's avatar youjie

no message

parent 5fc51e6b
...@@ -222,7 +222,7 @@ ...@@ -222,7 +222,7 @@
机票未绑团查看 机票未绑团查看
<i class="iconfont icon-right1"></i> <i class="iconfont icon-right1"></i>
</el-dropdown-item> </el-dropdown-item>
<el-dropdown-item v-if="ChangeThePriceList.length>0" class="clearfix _dropdown_other" @click.native="GetChangeThePrice()"> <el-dropdown-item v-if="ChangeThePriceList.length>0" class="clearfix _dropdown_other" @click.native="GetChangeThePrice(1)">
<i class="iconfont icon-Newspaper" style="color:#f39c12"></i> <i class="iconfont icon-Newspaper" style="color:#f39c12"></i>
订单改价查看 订单改价查看
<i class="iconfont icon-right1"></i> <i class="iconfont icon-right1"></i>
...@@ -1936,7 +1936,7 @@ ...@@ -1936,7 +1936,7 @@
}, },
methods: { methods: {
// 获取改价提醒的数据 // 获取改价提醒的数据
GetChangeThePrice(){ GetChangeThePrice(type){
let DateTime = new Date(); let DateTime = new Date();
let Year = DateTime.getFullYear() let Year = DateTime.getFullYear()
let Month = DateTime.getMonth() let Month = DateTime.getMonth()
...@@ -1979,6 +1979,9 @@ ...@@ -1979,6 +1979,9 @@
this.ChangeThePriceData = res.data.data.pageData this.ChangeThePriceData = res.data.data.pageData
this.ChangeThePriceVisible = true this.ChangeThePriceVisible = true
}else{ }else{
if(type==1){
this.$message.info('暂无订单改价数据')
}
localStorage.removeItem("ChangeThePriceData"); localStorage.removeItem("ChangeThePriceData");
localStorage.removeItem("ChangeThePriceDataTime"); localStorage.removeItem("ChangeThePriceDataTime");
} }
......
...@@ -126,8 +126,8 @@ ...@@ -126,8 +126,8 @@
<el-table-column <el-table-column
sortable sortable
prop="PlatformMoney" prop="PlatformMoney"
label="在途金额" label="平台在途金额"
min-width="110" min-width="130"
> >
</el-table-column> </el-table-column>
<el-table-column <el-table-column
...@@ -271,7 +271,16 @@ ...@@ -271,7 +271,16 @@
</el-table> </el-table>
<!-- 申请弹窗 --> <!-- 申请弹窗 -->
<div class="combottomDiv OPremarkDiv" v-if="changePriceMsg.outerVisible"> <div class="combottomDiv OPremarkDiv" v-if="changePriceMsg.outerVisible">
<div class="combottomTitle">{{ titlePrice }}</div> <div class="combottomTitle">{{ titlePrice }}
<span style="margin-left: 20px;">
提示:
<span style="color: red;">
此单应申请改价为
{{getChangePriceObj()}}
方可帐平</span>
</span>
</div>
<el-form label-width="100px"> <el-form label-width="100px">
<el-col :span="8"> <el-col :span="8">
<el-form-item label="应收总金额" prop=""> <el-form-item label="应收总金额" prop="">
...@@ -420,7 +429,7 @@ export default { ...@@ -420,7 +429,7 @@ export default {
components: { components: {
offset offset
}, },
props: ["OrderList", "pagesTitle","msgObj"], props: ["OrderList", "pagesTitle","changePriceOuterVisible"],
data() { data() {
return { return {
titlePrice: "", titlePrice: "",
...@@ -564,18 +573,23 @@ export default { ...@@ -564,18 +573,23 @@ export default {
], ],
items: null, items: null,
typeState: "", typeState: "",
Title: "" Title: "",
changePriceObj:{}
}; };
}, },
watch: { watch: {
pagesTitle(val, oldval) { pagesTitle(val, oldval) {
this.Title = val; this.Title = val;
}, },
msgObj: { changePriceOuterVisible: {
handler(val, oldVal) { handler(val, oldVal) {
this.changePriceMsg.outerVisible = true; if(!val){
this.changePriceMsg.outerVisible2 = true; this.changePriceMsg.outerVisible = false;
} this.changePriceMsg.outerVisible2 = false;
}
},
deep: true,
immediate: true
}, },
OrderList: { OrderList: {
handler(val, oldVal) { handler(val, oldVal) {
...@@ -590,6 +604,12 @@ export default { ...@@ -590,6 +604,12 @@ export default {
} }
}, },
methods: { methods: {
getChangePriceObj(){
//此单应申请改价为 9999 方可帐平,公式: 应收 = 实收 + 手续费 退款
let Price = (this.changePriceObj.Money*100) - (this.changePriceObj.DueInMoney*100)
let Money = this.RoundItUp(parseFloat(Price/100).toFixed(2))
return Money
},
setChangePrice() { setChangePrice() {
if(this.titlePrice == "申请改价"){ if(this.titlePrice == "申请改价"){
this.changePriceMsg.ApplyForState=1 this.changePriceMsg.ApplyForState=1
...@@ -616,6 +636,7 @@ export default { ...@@ -616,6 +636,7 @@ export default {
if (type == 1) this.titlePrice = "修改改价"; if (type == 1) this.titlePrice = "修改改价";
if (type == 2) this.titlePrice = "应收总金额改价审核"; if (type == 2) this.titlePrice = "应收总金额改价审核";
if (type == 3) this.titlePrice = "改价详情"; if (type == 3) this.titlePrice = "改价详情";
this.changePriceObj = item
this.changePriceMsg.ID = type ? item.OrderChangePriceId : 0; this.changePriceMsg.ID = type ? item.OrderChangePriceId : 0;
this.changePriceMsg.OrderId = item.OrderId; this.changePriceMsg.OrderId = item.OrderId;
this.changePriceMsg.OrderType = item.OrderType; this.changePriceMsg.OrderType = item.OrderType;
......
...@@ -346,7 +346,7 @@ ...@@ -346,7 +346,7 @@
</div> </div>
<OrderList :pagesTitle="Title" :OrderList="OrderList" :msgObj="msg" v-loading="loading" @success="msg.pageIndex=1,msg2.pageIndex=1,GetList()"> </OrderList> <OrderList :pagesTitle="Title" :OrderList="OrderList" :changePriceOuterVisible="changePriceOuterVisible" v-loading="loading" @success="msg.pageIndex=1,msg2.pageIndex=1,GetList()"> </OrderList>
<!-- <div v-if="OrderList&&OrderList.length==0" style="text-align: center;padding: 100px;">暂无数据</div> --> <!-- <div v-if="OrderList&&OrderList.length==0" style="text-align: center;padding: 100px;">暂无数据</div> -->
<el-pagination v-if="OrderList&&OrderList.length>0&&pagesTitle!='审核'" background <el-pagination v-if="OrderList&&OrderList.length>0&&pagesTitle!='审核'" background
@current-change="handleCurrentChange" :current-page.sync="currentPage" @current-change="handleCurrentChange" :current-page.sync="currentPage"
...@@ -487,7 +487,8 @@ ...@@ -487,7 +487,8 @@
{ Name: "不限", Id: "0" }, { Name: "不限", Id: "0" },
{ Name: "待申请", Id: "1" }, { Name: "待申请", Id: "1" },
{ Name: "已申请", Id: "2" }, { Name: "已申请", Id: "2" },
] ],
changePriceOuterVisible: true
}; };
}, },
watch: { watch: {
...@@ -510,6 +511,7 @@ ...@@ -510,6 +511,7 @@
}, },
methods: { methods: {
search(){ search(){
this.changePriceOuterVisible = false
if(this.dataObj&&this.dataObj.OrderId){ if(this.dataObj&&this.dataObj.OrderId){
this.msg.OrderId=0 this.msg.OrderId=0
} }
...@@ -666,6 +668,7 @@ ...@@ -666,6 +668,7 @@
this.apipost(url, msgObj, this.apipost(url, msgObj,
res => { res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.changePriceOuterVisible = true
if(this.pagesTitle=='销售'||this.pagesTitle=='OP'){ if(this.pagesTitle=='销售'||this.pagesTitle=='OP'){
this.getSummaryData() this.getSummaryData()
} }
......
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