Commit 3a61981a authored by liudong1993's avatar liudong1993
parents a89d922f 2ada4d98
......@@ -222,9 +222,9 @@
机票未绑团查看
<i class="iconfont icon-right1"></i>
</el-dropdown-item>
<el-dropdown-item class="clearfix _dropdown_other" @click.native="ChangeThePriceVisible=true">
<el-dropdown-item v-if="ChangeThePriceList.length>0" class="clearfix _dropdown_other" @click.native="ChangeThePriceVisible=true">
<i class="iconfont icon-Newspaper" style="color:#f39c12"></i>
订单改价详情
订单改价查看
<i class="iconfont icon-right1"></i>
</el-dropdown-item>
<el-dropdown-item class="clearfix _dropdown_other" @click.native="goUrlPersonal()">
......@@ -1247,6 +1247,7 @@
},
data() {
return {
ChangeThePriceList: [],
ChangeThePriceData:[],
ChangeThePriceVisible: false,//改价提醒
UnboundDate: {},
......@@ -1873,14 +1874,23 @@
}
// 获取改价提醒
// 获取改价提醒 每月1到10号提示
let DateTime = new Date();
let Year = DateTime.getFullYear()
let Month = DateTime.getMonth()+1
let Months = Month>9?Month:'0'+Month
let StartDate = Year+'-'+Months+'-01'
let DateList = []
for(let i=0;i<10;i++){
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"))
})
if(this.ChangeThePriceList.length>0){
if(!localStorage.getItem("ChangeThePriceDataTime")||
(localStorage.getItem("ChangeThePriceDataTime")!=this.getBeforeDate(0, new Date().Format("yyyy-MM-dd")))){
this.GetChangeThePrice()
}else{
// if(localStorage.getItem("ChangeThePriceData")){
// this.ChangeThePriceData = JSON.parse(localStorage.getItem("ChangeThePriceData"))
// }
}
// 两小时请求一次改价提醒
setInterval(()=>{
......@@ -1890,7 +1900,7 @@
clearInterval()
}
},7200000)
}
},
created() {
if (!localStorage.getItem("tsNumber") || localStorage.getItem("tsNumber") != this.tsNumber) {
......
......@@ -76,31 +76,29 @@
</el-table-column>
<el-table-column prop="StateName" label="状态" show-overflow-tooltip>
<template slot-scope="scope">
<span>{{scope.row.StateName}} {{scope.row.OrderChangePriceId}}</span>
<span>{{scope.row.StateName}}</span>
</template>
</el-table-column>
<el-table-column
label="操作"
show-overflow-tooltip>
<template slot-scope="scope" >
<template slot-scope="scope">
<el-button v-if="scope.row.OrderChangePriceId==0" size="mini" type="primary" @click="ckChangePrice(scope.row)">申请改价</el-button>
<p v-else class="cursor-pointer c059FF6 fz18 row-c" @click="goDetails(scope.row)">
<span >{{scope.row.OrderChangePriceId}}</span>
</p>
<el-button v-else size="mini" type="primary" @click="ckChangePrice(scope.row,1)">修改改价</el-button>
</template>
</el-table-column>
</el-table>
<div class="combottomDiv OPremarkDiv" v-if="changePriceMsg.outerVisible">
<div class="combottomTitle">{{$t('Operation.Op_remark')}}</div>
<div class="combottomTitle">{{titlePrice}}</div>
<el-form label-width="100px">
<el-col :span="8">
<el-form-item label="应收总金额" prop="Remark">
<el-form-item label="应收总金额" prop="">
<el-input type="textarea" v-model="changePriceMsg.Money" rows="6"></el-input>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="改价原因" prop="Remark">
<el-form-item label="改价原因" prop="">
<el-input type="textarea" v-model="changePriceMsg.ApplyForReason" rows="6"></el-input>
</el-form-item>
</el-col>
......@@ -123,6 +121,7 @@
props: ["OrderList", "pagesTitle"],
data() {
return {
titlePrice:'',
S_CheckBranchOrder: false,
S_CheckAllOrder: false,
queryObj: null,
......@@ -271,13 +270,31 @@
})
},
//点击修改订单总价
ckChangePrice(item) {
ckChangePrice(item,type) {
this.titlePrice = type?'修改改价':'申请改价'
this.changePriceMsg.ID = type?item.OrderChangePriceId:0
this.changePriceMsg.OrderId = item.OrderId;
this.changePriceMsg.OrderType = item.OrderType;
this.changePriceMsg.PreferPrice = item.PreferPrice;
this.changePriceMsg.Money = item.Money;
// this.changePriceMsg.PreferPrice = item.PreferPrice;
// this.changePriceMsg.Money = item.Money;
this.changePriceMsg.setPlatDialog = false;
this.changePriceMsg.outerVisible = true;
this.getGetOrderChangePriceDetai(item)
},
getGetOrderChangePriceDetai(item){
this.apipost('CarSingle_post_GetOrderChangePriceDetail', {
ID:item.OrderChangePriceId
}, res => {
if (res.data.resultCode == 1) {
let data = res.data.data;
this.changePriceMsg.Money = data.Money;
this.changePriceMsg.ApplyForState = data.ApplyForState;
this.changePriceMsg.ApplyForReason = data.ApplyForReason;
this.changePriceMsg.PreferPrice = data.ApplyForMoney;
this.changePriceMsg.RefuseReason = data.RefuseReason;
}
})
},
GetAdminCarOrderPageList(row, url, href, data) {
let msg = {
......
......@@ -35,6 +35,14 @@
<span>{{ scope.row.OrderId }}</span>
</p>
<p>{{ scope.row.CreateTimeStr }}</p>
<p style="font-size: 13px;" v-if="scope.row.SaleRemarks">
<span>销售备注:</span>
<span style="color: red;">{{ scope.row.SaleRemarks? scope.row.SaleRemarks:'无' }}</span>
</p>
<p style="font-size: 13px;" v-if="scope.row.OP_Remarks">
<span>OP备注:</span>
<span style="color: red;">{{ scope.row.OP_Remarks? scope.row.OP_Remarks:'无' }}</span>
</p>
</div>
</template>
</el-table-column>
......@@ -98,6 +106,11 @@
</div>
</template>
</el-table-column>
<el-table-column label="在途金额" show-overflow-tooltip>
<template slot-scope="scope">
{{ scope.row.PlatformMoney }}
</template>
</el-table-column>
<el-table-column
sortable
prop="Money"
......@@ -240,13 +253,16 @@
type="primary" @click="setChangePrice">保存</button> -->
</div>
<el-form label-width="100px">
<el-form label-width="120px">
<el-row>
<el-col :span="4">
<el-form-item label="申请总金额">
<span rows="6">{{ changePriceMsg.PreferPrice }}</span>
<el-form-item label="订单应收总金额">
<span rows="6">
{{changePriceMsg.Money2}}
</span>
</el-form-item></el-col
>
<el-col :span="8">
<el-form-item label="申请理由">
<span rows="6">{{ changePriceMsg.ApplyForReason }} </span>
......@@ -254,6 +270,11 @@
>
</el-row>
<el-row>
<el-col :span="4">
<el-form-item label="申请总金额">
<span rows="6">{{ changePriceMsg.PreferPrice }}</span>
</el-form-item></el-col
>
<el-col :span="4">
<el-form-item label="应收总金额" prop="Money">
<el-input
......@@ -368,6 +389,7 @@ export default {
this.changePriceMsg.setPlatDialog = true;
this.changePriceMsg.outerVisible = false;
this.$message.info(res.data.message);
this.$emit('success')
} else {
this.$message.info(res.data.message);
}
......@@ -404,9 +426,11 @@ export default {
res => {
if (res.data.resultCode == 1) {
let data = res.data.data;
this.changePriceMsg.Money2 = data.Money;
this.changePriceMsg.Money = data.Money;
this.changePriceMsg.ApplyForState = data.ApplyForState;
this.changePriceMsg.ApplyForReason = data.ApplyForReason;
this.changePriceMsg.PreferPrice = item.ApplyForMoney;
if (type == 0) {
this.changePriceMsg.PreferPrice = item.ApplyForMoney;
} else {
......
......@@ -87,32 +87,35 @@
<div class="HotelWorkList">
<div class="query-box HotelWorkInput" style="border-bottom: none;">
<ul>
<!-- <li>
<span><em>客人姓名</em>
<el-input clearable v-model="msg.CustomerName" placeholder="客人姓名" class="w200"/>
<li v-if="Title=='审核'">
<span>
<em>审核状态</em>
<el-select v-model='msg.OrderState' class="w200">
<!-- <el-option :value="0" label="不限"></el-option> -->
<el-option v-for='item in OrderStatusList'
:label='item.Name'
:value='item.Id'
:key='item.Id'>
</el-option>
</el-select>
</span>
</li> -->
<li>
</li>
<li v-if="Title!='申请'&&Title!='审核'">
<span><em>商品名称</em>
<el-input clearable type="" v-model="msg.ProductName" placeholder="请输入商品名称" class="w200"/>
</span>
</li>
<li>
<li v-if="Title!='申请'&&Title!='审核'">
<span><em>订单Id</em>
<el-input clearable type="Number" v-model="msg.OrderId" placeholder="请输入订单Id" class="w200"/>
</span>
</li>
<li>
<li v-if="Title!='申请'&&Title!='审核'">
<span><em>团号</em>
<el-input clearable type="" v-model="msg.TCNUM" placeholder="请输入团号" class="w200"/>
</span>
</li>
<!-- <li>
<span><em>电话</em>
<el-input clearable v-model="msg.Mobile" placeholder="电话" class="w200"/>
</span>
</li> -->
<li v-if="Title!='销售'">
<li v-if="Title!='销售'&&Title!='申请'&&Title!='审核'">
<span>
<em>业务员</em>
<el-select filterable v-model='msg.EnterId' class="w200" clearable>
......@@ -125,7 +128,7 @@
</el-select>
</span>
</li>
<li v-if="Title!='销售'">
<li v-if="Title!='销售'&&Title!='申请'&&Title!='审核'">
<span>
<em>引流人</em>
<el-select filterable v-model='msg.LureEmpId' class="w200" clearable>
......@@ -138,7 +141,7 @@
</el-select>
</span>
</li>
<li>
<li v-if="Title!='审核'">
<span>
<em>订单类型</em>
<el-select v-model="msg.OrderType" class="w200 HworkInput">
......@@ -148,7 +151,7 @@
</li>
<li>
<li v-if="Title!='申请'&&Title!='审核'">
<span>
<em>订单状态</em>
<el-select v-model='msg.OrderState' class="w200">
......@@ -161,7 +164,7 @@
</el-select>
</span>
</li>
<li>
<li v-if="Title!='申请'&&Title!='审核'">
<span>
<em>收款状态</em>
<el-select v-model='msg.Q_IsCollect' class="w200">
......@@ -175,7 +178,7 @@
</li>
<li>
<li v-if="Title!='审核'">
<span>
<em>报名时间</em>
<el-date-picker
......@@ -189,7 +192,7 @@
</el-date-picker>
</span>
</li>
<li style="line-height: 30px; padding-left: 30px;">
<li style="line-height: 30px; padding-left: 30px;" v-if="Title!='申请'&&Title!='审核'">
<el-popover width="350" trigger="click">
<div class="groupSuperSearchLayer">
<p style="padding-bottom: 10px;">订单高级查询</p>
......@@ -268,7 +271,7 @@
</ul>
</div>
<!-- 统计版块 -->
<div class="groupTourOrder_count">
<div class="groupTourOrder_count" v-if="pagesTitle=='销售'||pagesTitle=='OP'">
<!-- <el-row :gutter="20"> <el-col :xs="8" :sm="8" :md="8" :lg="8" :xl="8"></el-col></el-row> -->
<div class="groupTourOrder_count_item HT_total" v-for="(item,index) in SummaryList">
<div>
......@@ -365,7 +368,7 @@
OrderList: [],
//默认高度
tableHeight: 0,
msg:{
msg: {
pageIndex: 1,
pageSize: 15,
OrderId: "", //订单id
......@@ -432,6 +435,12 @@
],
LineList: [],
SummaryList: [],
OrderStatusList: [
{ Name: "不限", Id: "0" },
{ Name: "待审核", Id: "1" },
{ Name: "已通过", Id: "2" },
{ Name: "已取消", Id: "3" },
]
};
},
watch: {
......@@ -575,14 +584,28 @@
//获取酒店订单列表
GetList() {
this.loading = true
let msgObj
let msg = {
OrderId: '',
OrderState: '0',
OrderType: '0',
papageIndex: 1,
pagesize: 15
}
let url = "CarSingle_post_GetGuestOrderStatisticsPageList"
// 销售 OP
if(this.pagesTitle=='销售'){
this.msg.IsMyOrder = '1'
}else{
}else if(this.pagesTitle=='申请'){
url = "CarSingle_post_GetChangePriceOrderPageList"
this.msg.IsMyOrder = '1'
}else if(this.pagesTitle=='审核'){
url = "CarSingle_post_GetExaminePriceOrderPageList"
} else{
this.msg.IsMyOrder = '0'
}
this.apipost(url, this.msg,
msgObj = this.pagesTitle=='审核'?msg:this.msg
this.apipost(url, msgObj,
res => {
if (res.data.resultCode == 1) {
this.getSummaryData()
......@@ -633,9 +656,17 @@
this.employeeMsg.GroupId = userInfo.RB_Group_id; //集团ID
this.msg.EnterId = this.$route.query.EnterId?Number(this.$route.query.EnterId):0//userInfo.EmployeeId;
this.msg.LureEmpId = this.$route.query.LureEmpId?Number(this.$route.query.LureEmpId):0
if(this.pagesTitle=='销售'||this.pagesTitle=='OP'){
this.msg.StartTime = this.getBeforeDate(0, new Date())
this.msg.EndTime = this.getBeforeDate(0, new Date())
this.DatelistBM = [new Date(this.msg.StartTime),new Date()]
}else{
this.msg.DepartSTime = this.getBeforeDate(200, new Date())
this.msg.DepartETime = this.getBeforeDate(0, new Date())
this.DatelistBM = [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 = ''
......
......@@ -121,7 +121,7 @@
</li>
<li>
<input type="button" class="normalBtn" :value="$t('pub.searchBtn')"
@click="msg.pageIndex=1,currentPage=1,GetList();showWarningSearch=false" />
@click="msg.pageIndex=1,currentPage=1,GetList(),showWarningSearch=false" />
</li>
<li style="line-height: 30px; padding-left: 30px;">
......
......@@ -7,12 +7,13 @@
</div>
</template>
<script>
import allList from './components/allListChangePrice.vue';
// import allList from './components/allListChangePrice.vue';
import allList from './components/allList.vue';
export default {
components: { allList },
data() {
return {
pagesTitle: '销售',
pagesTitle: '申请',
dataObj:{
OrderId: '',
}
......
......@@ -7,12 +7,13 @@
</div>
</template>
<script>
import allList from './components/allListExaminePrice.vue';
// import allList from './components/allListExaminePrice.vue';
import allList from './components/allList.vue';
export default {
components: { allList },
data() {
return {
pagesTitle: '销售',
pagesTitle: '审核',
dataObj:{
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