Commit 41534e2d authored by 黄奎's avatar 黄奎

页面修改

parent b9bc2a6d
<style> <style>
@import "../../../assets/css/newTravelManager.css"; @import "../../../assets/css/newTravelManager.css";
</style> </style>
<template> <template>
<div class="flexOne quoTation"> <div class="flexOne quoTation">
<div class="query-box"> <div class="query-box">
<ul> <ul>
<li> <li>
<span> <span>
<em>所属线路</em> <em>所属线路</em>
<el-select v-model="queryData.LineId" class='w200' filterable <el-select v-model="queryData.LineId" class='w200' filterable :placeholder="$t('pub.pleaseSel')"
:placeholder="$t('pub.pleaseSel')" @change="getLineTeamList()"> @change="getLineTeamList()">
<el-option :label="$t('pub.unlimitedSel')" :value='noLimit'></el-option> <el-option :label="$t('pub.unlimitedSel')" :value='noLimit'></el-option>
<el-option <el-option v-for="item in LineList" :label='item.LineName' :value='item.LineID' :key='item.LineID'>
v-for="item in LineList" </el-option>
:label='item.LineName' </el-select>
:value='item.LineID' </span>
:key='item.LineID'> </li>
</el-option> <li>
</el-select> <span>
</span> <em>所属系列</em>
</li> <el-select v-model="queryData.LineteamId" class='w200' filterable :placeholder="$t('pub.pleaseSel')">
<li> <el-option :label="$t('pub.unlimitedSel')" :value='noLimit'></el-option>
<span> <el-option v-for="item in LineTeamList" :label='item.LtName' :value='item.LtID' :key='item.LtID'>
<em>所属系列</em> </el-option>
<el-select v-model="queryData.LineteamId" class='w200' filterable </el-select>
:placeholder="$t('pub.pleaseSel')"> </span>
<el-option :label="$t('pub.unlimitedSel')" :value='noLimit'></el-option> </li>
<el-option <li>
v-for="item in LineTeamList" <span>
:label='item.LtName' <em>提交人</em>
:value='item.LtID' <el-select v-model="queryData.CreateBy" filterable :placeholder="$t('pub.pleaseSel')">
:key='item.LtID'> <el-option :label="$t('pub.unlimitedSel')" :value='noLimit'></el-option>
</el-option> <el-option v-for="item in EmployeeList" :label='item.EmName' :value='item.EmployeeId'
</el-select> :key='item.EmployeeId'>
</span> </el-option>
</li> </el-select>
<li> </span>
<span> </li>
<em>提交人</em> <li>
<el-select v-model="queryData.CreateBy" filterable :placeholder="$t('pub.pleaseSel')"> <button class="hollowFixedBtn" @click="getList(),resetPageIndex()">查询</button>
<el-option :label="$t('pub.unlimitedSel')" :value='noLimit'></el-option> </li>
<el-option v-for="item in EmployeeList" </ul>
:label='item.EmName' </div>
:value='item.EmployeeId' <el-tabs v-model="activeName" @tab-click="handleClick(activeName)">
:key='item.EmployeeId'> <el-tab-pane v-for="item in $tripUtils.TravelStateList" :label="item.label" :name="item.Id" :key="item.subCode">
</el-option> </el-tab-pane>
</el-select> </el-tabs>
</span> <div class="commonContent" v-loading="loading">
</li> <ul class="_content">
<li>
<button class="hollowFixedBtn" @click="getList(),resetPageIndex()">查询</button>
</li>
</ul>
</div>
<el-tabs v-model="activeName" @tab-click="handleClick(activeName)">
<el-tab-pane v-for="item in $tripUtils.TravelStateList" :label="item.label" :name="item.Id"
:key="item.subCode"></el-tab-pane>
</el-tabs>
<div class="commonContent" v-loading="loading">
<ul class="_content">
<li v-for="item in dataList" :key="item.subCode" :data-id='item.ID'> <li v-for="item in dataList" :key="item.subCode" :data-id='item.ID'>
<div class="_left"> <div class="_left">
<div> <div>
<p class="quoListName" @click="getJourney(item.ID,item.Title)"> <p class="quoListName" >
<el-tooltip popper-class="max-w250" effect="dark" :content="item.Title" placement="top-start"> <el-tooltip popper-class="max-w250" effect="dark" :content="item.ID" placement="top-start">
<span>{{item.Title}}</span> <span>{{item.ID}}</span>
</el-tooltip> </el-tooltip>
</p> </p>
<p class="Quo_Content"><i v-if="item.ProductRecommend" class="iconfont icon-richeng"></i>
<span>{{item.ProductRecommend}}</span>
</p>
</div>
</div> </div>
<div class="_cent"> </div>
<div class="stayDays">{{item.DayNum}}{{item.NightNum}}</div> <div class="_left">
<div class=""> <div>
销售定价 <p class="quoListName" >
<el-popover <el-tooltip popper-class="max-w250" effect="dark" :content="item.LineName" placement="top-start">
popper-class="salsSetPrice" <span>{{item.LineName}}</span>
trigger="click"> </el-tooltip>
<div class="priceContentDiv" v-if="item.QuotationPrice!=null"> </p>
<div> <p class="Quo_Content"><i v-if="item.LtName" class="iconfont icon-richeng"></i>
<div>成人</div> <span>{{item.LtName}}</span>
<div class="priceList"> </p>
<div> </div>
<span class="pLeftPrice">同业会员:¥{{item.QuotationPrice.B2BMemberPrice}}</span> </div>
<span class="pRightPrice">同业:¥{{item.QuotationPrice.B2BPrice}}</span> <div class="_left">
</div> <div>
<div class="priceDivCon"> <p class="quoListName" >
<span class="pLeftPrice">直客会员:¥{{item.QuotationPrice.B2CMemberPrice}}</span> <el-tooltip popper-class="max-w250" effect="dark" :content="item.Title" placement="top-start">
<span class="pRightPrice">直客:¥{{item.QuotationPrice.B2CPrice}}</span> <span>{{item.Title}}</span>
</div> </el-tooltip>
</div> </p>
<div>小孩</div> <p class="Quo_Content"><i v-if="item.CustomerName" class="iconfont icon-richeng"></i>
<div class="priceList"> <span>{{item.CustomerName}}</span>
<div> </p>
<span class="pLeftPrice">占床:¥{{item.QuotationPrice.ChildNeedPrice}}</span> </div>
<span class="pRightPrice">不占床:¥{{item.QuotationPrice.ChildNoNeedPrice}}</span> </div>
</div> <div class="_cent">
<div class="priceDivCon"> <div class="stayDays">{{item.DayNum}}</div>
<span class="pLeftPrice">婴儿:¥{{item.QuotationPrice.BabyPrice}}</span> <div class="">
<span class="pRightPrice">附加费:¥{{item.QuotationPrice.BabyChargePrice}}</span> 销售定价
</div> <el-popover popper-class="salsSetPrice" trigger="click">
</div> <div class="priceContentDiv" v-if="item.QuotationPrice!=null">
<div>老人</div> <div>
<div class="priceList"> <div>成人</div>
<div> <div class="priceList">
<span class="pLeftPrice">附加费:¥{{item.QuotationPrice.OldManChargePrice}}</span> <div>
</div> <span class="pLeftPrice">销售价格:¥{{item.QuotationPrice.B2BMemberPrice}}</span>
</div>
<div>杂费</div>
<div class="priceList">
<div>
<span class="pLeftPrice">签证:¥{{item.QuotationPrice.VisaPrice}}</span>
<span class="pRightPrice">单房差:¥{{item.QuotationPrice.SingleRoomPrice}}</span>
</div>
<div class="priceDivCon">
<span class="pLeftPrice">杂费:¥{{item.QuotationPrice.OtherPrice}}</span>
</div>
</div>
<div>单项报价</div>
<div class="priceList">
<div>
<span class="pLeftPrice">单地接:¥{{item.QuotationPrice.SingleDMCPrice}}</span>
</div>
</div>
<div>优惠</div>
<div class="priceList">
<div>
<span class="pLeftPrice">同行返佣:¥{{item.QuotationPrice.RebatePrice}}</span>
<span class="pRightPrice">早鸟优惠:¥{{item.QuotationPrice.DiscountPrice}}</span>
</div>
</div>
</div>
</div> </div>
<span slot="reference" class="diPrice" >{{item.SalesPrice}}<span class="qi"></span></span> </div>
</el-popover> <div>小孩</div>
<span class="AudiDanTeamDate">有效期:{{item.QuotationLimitStartStr}}&nbsp;{{item.QuotationLimitEndStr}}</span> <div class="priceList">
<div>
<span class="pLeftPrice">占床:¥{{item.QuotationPrice.ChildNeedPrice}}</span>
<span class="pRightPrice">不占床:¥{{item.QuotationPrice.ChildNoNeedPrice}}</span>
</div>
<div class="priceDivCon">
<span class="pLeftPrice">婴儿:¥{{item.QuotationPrice.BabyPrice}}</span>
<span class="pRightPrice">附加费:¥{{item.QuotationPrice.BabyChargePrice}}</span>
</div>
</div>
<div>老人</div>
<div class="priceList">
<div>
<span class="pLeftPrice">附加费:¥{{item.QuotationPrice.OldManChargePrice}}</span>
</div>
</div>
<div>杂费</div>
<div class="priceList">
<div>
<span class="pLeftPrice">签证:¥{{item.QuotationPrice.VisaPrice}}</span>
<span class="pRightPrice">单房差:¥{{item.QuotationPrice.SingleRoomPrice}}</span>
</div>
</div>
<div>单项报价</div>
<div class="priceList">
<div>
<span class="pLeftPrice">单地接:¥{{item.QuotationPrice.SingleDMCPrice}}</span>
</div>
</div>
</div>
</div> </div>
<span slot="reference" class="diPrice">{{item.SalesPrice}}<span class="qi"></span></span>
</el-popover>
</div> </div>
<div class="_rightAudit"> </div>
<div class="AuditUserInfo clearfix aa"> <div class="_rightAudit">
<div class="AuditDanHeader"> <div class="AuditUserInfo clearfix aa">
<img v-if="item.CreateUserPhoto" :src="item.CreateUserPhoto" alt=""> <div class="AuditDanHeader">
<img v-else src="../../../assets/img/default_head_img.jpg" alt=""> <img v-if="item.CreateUserPhoto" :src="item.CreateUserPhoto" alt="">
</div> <img v-else src="../../../assets/img/default_head_img.jpg" alt="">
<div class="AuditUserInfoDetail">
<div>{{item.CreateUserName}}</div>
<div class="AuditChangeDate">{{item.CreateDate}}</div>
</div>
</div> </div>
<div class="AuditStatus"> <div class="AuditUserInfoDetail">
<div v-if="item.TravelState==2"> <div>{{item.CreateUserName}}</div>
<div>待审核</div> <div class="AuditChangeDate">{{item.CreateDate}}</div>
</div>
</div>
<div class="AuditStatus">
<div v-if="item.TravelState==2">
<div>待审核</div>
</div>
<div v-if="item.TravelState==3">
<div class="Auditapproved">已通过</div>
<el-popover popper-class="salsSetPrice" trigger="click">
<div class="priceContentDiv">
<div>
<span>审批结果</span>
<span class="AuditDate">{{item.hours}}</span>
</div>
<div>{{item.AuditContent}}</div>
</div> </div>
<div v-if="item.TravelState==3"> <div slot="reference" class="AuditLookDetail">查看说明</div>
<div class="Auditapproved">已通过</div> </el-popover>
<el-popover </div>
popper-class="salsSetPrice" <div v-if="item.TravelState==4">
trigger="click"> <div class="Auditrejected">已驳回</div>
<div class="priceContentDiv"> <el-popover popper-class="salsSetPrice" trigger="click">
<div> <div class="priceContentDiv">
<span>审批结果</span> <div>
<span class="AuditDate">{{item.hours}}</span> <span>审批结果</span>
</div> <span class="AuditDate">{{item.hours}}</span>
<div>{{item.AuditContent}}</div> </div>
</div> <div>{{item.AuditContent}}</div>
<div slot="reference" class="AuditLookDetail">查看说明</div>
</el-popover>
</div> </div>
<div v-if="item.TravelState==4"> <div slot="reference" class="AuditLookDetail">查看说明</div>
<div class="Auditrejected">已驳回</div> </el-popover>
<el-popover </div>
popper-class="salsSetPrice" </div>
trigger="click"> <div class="AD_Operation">
<div class="priceContentDiv"> <span class="openGroup opbd">
<div> <el-tooltip class="item" effect="dark" content="查看" placement="top-start" popper-class="max-w250">
<span>审批结果</span> <span @click="goUrl('QuotationDetails',item.ID,1)"></span>
<span class="AuditDate">{{item.hours}}</span> </el-tooltip>
</span>
<span class="openGroup opbd" v-if="item.TravelState==2">
<el-tooltip class="item" effect="dark" content="审核" placement="top-start" popper-class="max-w250">
<span @click="goUrl('QuotationDetails',item.ID,2)"></span>
</el-tooltip>
</span>
<span class="openGroup opbd">
<el-tooltip class="item" effect="dark" content="日志" placement="top-start" popper-class="max-w250">
<el-popover popper-class="salsSetPrice" trigger="click">
<div class="priceContentDiv">
<div class="AuditLog">报价单日志</div>
<div class="logContact">
<div v-for="(childItem,logIndex) in AuditLogList" :key="childItem.subCode">
<div class="clearfix">
<div class="Auditcircle"></div>
<div class="operateName">{{childItem.UserName}}</div>
<div class="operateDate">{{childItem.hour}}</div>
</div>
<div>{{childItem.LogContent}}<span class="spread" v-if="childItem.LogType==2"
@click="expectInfo(logIndex)">{{childItem.expectName}}</span></div>
<div v-if="childItem.isShow">{{childItem.LogRemark}}</div>
</div> </div>
<div>{{item.AuditContent}}</div>
</div> </div>
<div slot="reference" class="AuditLookDetail">查看说明</div> </div>
</el-popover> <span slot="reference" class="AuditLogSpan" @click="getAudiDanLog(item.ID)"></span>
</div> </el-popover>
</div> </el-tooltip>
<div class="AD_Operation"> </span>
<span class="openGroup opbd">
<el-tooltip class="item" effect="dark" content="查看" placement="top-start"
popper-class="max-w250">
<span @click="goUrl('QuotationDetails',item.ID,1)"></span>
</el-tooltip>
</span>
<span class="openGroup opbd" v-if="item.TravelState==2">
<el-tooltip class="item" effect="dark" content="审核" placement="top-start"
popper-class="max-w250">
<span @click="goUrl('QuotationDetails',item.ID,2)"></span>
</el-tooltip>
</span>
<span class="openGroup opbd">
<el-tooltip class="item" effect="dark" content="日志" placement="top-start"
popper-class="max-w250">
<el-popover
popper-class="salsSetPrice"
trigger="click">
<div class="priceContentDiv">
<div class="AuditLog">报价单日志</div>
<div class="logContact">
<div v-for="(childItem,logIndex) in AuditLogList" :key="childItem.subCode">
<div class="clearfix">
<div class="Auditcircle"></div>
<div class="operateName">{{childItem.UserName}}</div>
<div class="operateDate">{{childItem.hour}}</div>
</div>
<div>{{childItem.LogContent}}<span class="spread"
v-if="childItem.LogType==2"
@click="expectInfo(logIndex)">{{childItem.expectName}}</span></div>
<div v-if="childItem.isShow">{{childItem.LogRemark}}</div>
</div>
</div>
</div>
<span slot="reference" class="AuditLogSpan" @click="getAudiDanLog(item.ID)"></span>
</el-popover>
</el-tooltip>
</span>
</div>
</div> </div>
</div>
</li> </li>
</ul> </ul>
<div class="noData" v-show="noData"> <div class="noData" v-show="noData">
{{$t('system.content_noData')}} {{$t('system.content_noData')}}
</div>
</div>
<el-pagination background @current-change="handleCurrentChange" :current-page.sync="currentPage"
layout="total,prev, pager, next, jumper" :page-size="queryData.pageSize" :total="total">
</el-pagination>
<el-dialog custom-class='ComTeamPlan_info_box' :title="tripTitle" :visible.sync="outerVisible" center>
<commonTeamInfo ref="comDialog"></commonTeamInfo>
</el-dialog>
<div class="shenheBtm" v-if="isShowDan">
<el-form label-width="100px" :model="AuditInfo" :rules="rules" ref="AuditInfo">
<el-col :span="3">
<div style="margin:58px 0 0 50px;">
<el-radio v-model="AuditInfo.TravelState" label="3">通过</el-radio>
<el-radio v-model="AuditInfo.TravelState" label="4">驳回</el-radio>
</div>
</el-col>
<el-col :span="10" style="margin-top:30px;">
<el-form-item label="审批说明" prop="AuditContent">
<el-input type="textarea" class="w600" v-model="AuditInfo.AuditContent"></el-input>
</el-form-item>
</el-col>
<el-col :span="3" style="margin-top:60px;">
<button class="hollowFixedBtn" @click="isShowDan=false">取消</button>
<button class="normalBtn" @click="submitForm('AuditInfo')">保存</button>
</el-col>
</el-form>
</div> </div>
</div> </div>
<el-pagination background @current-change="handleCurrentChange" :current-page.sync="currentPage"
layout="total,prev, pager, next, jumper" :page-size="queryData.pageSize" :total="total">
</el-pagination>
<el-dialog custom-class='ComTeamPlan_info_box' :title="tripTitle" :visible.sync="outerVisible" center>
<commonTeamInfo ref="comDialog"></commonTeamInfo>
</el-dialog>
<div class="shenheBtm" v-if="isShowDan">
<el-form label-width="100px" :model="AuditInfo" :rules="rules" ref="AuditInfo">
<el-col :span="3">
<div style="margin:58px 0 0 50px;">
<el-radio v-model="AuditInfo.TravelState" label="3">通过</el-radio>
<el-radio v-model="AuditInfo.TravelState" label="4">驳回</el-radio>
</div>
</el-col>
<el-col :span="10" style="margin-top:30px;">
<el-form-item label="审批说明" prop="AuditContent">
<el-input type="textarea" class="w600" v-model="AuditInfo.AuditContent"></el-input>
</el-form-item>
</el-col>
<el-col :span="3" style="margin-top:60px;">
<button class="hollowFixedBtn" @click="isShowDan=false">取消</button>
<button class="normalBtn" @click="submitForm('AuditInfo')">保存</button>
</el-col>
</el-form>
</div>
</div>
</template> </template>
<script> <script>
import commonTeamInfo from "../../commonPage/commonTeamInfo.vue"; import commonTeamInfo from "../../commonPage/commonTeamInfo.vue";
export default { export default {
data() { data() {
return { return {
queryData: { queryData: {
LineId: 0, LineId: 0,
LineteamId: 0, LineteamId: 0,
CreateBy: 0, CreateBy: 0,
PageIndex: "1", PageIndex: "1",
PageSize: "5", PageSize: "5",
TravelState: 2 TravelState: 2
}, },
AuditInfo: { AuditInfo: {
ID: "", ID: "",
TravelState: "", TravelState: "",
AuditContent: "" AuditContent: ""
}, },
rules: { rules: {
AuditContent: [ AuditContent: [{
{ required: true, message: "请填写审核说明", trigger: "blur" } required: true,
] message: "请填写审核说明",
}, trigger: "blur"
loading: true, }]
//默认选中 },
activeName: "2", loading: true,
//员工列表 //默认选中
EmployeeList: [], activeName: "2",
//日志 //员工列表
AuditLogList: "", EmployeeList: [],
//显示隐藏审核 //日志
isShowDan: false, AuditLogList: "",
//线路列表 //显示隐藏审核
LineList: "", isShowDan: false,
noLimit: 0, //线路列表
//系列列表 LineList: "",
//是否有数据 noLimit: 0,
noData: false, //系列列表
LineTeamList: "", //是否有数据
dataList: "", noData: false,
total: 0, LineTeamList: "",
currentPage: 1, dataList: "",
SalesPriceList: [], total: 0,
CostList: [], currentPage: 1,
outerVisible: false, SalesPriceList: [],
tripTitle: "" CostList: [],
}; outerVisible: false,
}, tripTitle: ""
components: {
commonTeamInfo: commonTeamInfo
},
methods: {
handleCurrentChange(val) {
this.queryData.pageIndex = val;
this.getList();
},
resetPageIndex() {
this.queryData.pageIndex = 1;
this.currentPage = 1;
},
//选项卡切换
handleClick(activeName) {
this.queryData.TravelState = activeName;
this.getList();
},
//获取操作日志
getAudiDanLog(ID) {
let msg = {
configId: ID
}; };
this.apipost("travel_get_GetTravelConfigLog", msg, res => {
if (res.data.resultCode == 1) {
var endDate = new Date();
endDate.setMonth(endDate.getMonth() + 1);
var tempData = res.data.data;
tempData.forEach(x => {
if (x.LogType == 2) {
x.isShow = false;
x.expectName = "展开";
}
x.hour = this.$commonUtils.formatMsgTime(x.LogTimeStr);
});
this.AuditLogList = tempData;
}
});
}, },
expectInfo(logIndex) { components: {
var flag = this.AuditLogList[logIndex].isShow; commonTeamInfo: commonTeamInfo
this.AuditLogList[logIndex].isShow = !flag;
if (this.AuditLogList[logIndex].isShow) {
this.AuditLogList[logIndex].expectName = "关闭";
} else {
this.AuditLogList[logIndex].expectName = "展开";
}
}, },
//获取线路列表 methods: {
getLineList() { handleCurrentChange(val) {
this.apipost("line_post_GetList", {}, res => { this.queryData.pageIndex = val;
if (res.data.resultCode == 1) { this.getList();
this.LineList = res.data.data; },
} resetPageIndex() {
}); this.queryData.pageIndex = 1;
}, this.currentPage = 1;
//获取系列列表 },
getLineTeamList(lineId) { //选项卡切换
this.queryData.LineteamId = 0; handleClick(activeName) {
let msg = { this.queryData.TravelState = activeName;
lineID: this.queryData.LineId, this.getList();
isTOOP: 1 },
}; //获取操作日志
this.apipost("team_post_GetList", msg, res => { getAudiDanLog(ID) {
if (res.data.resultCode == 1) { let msg = {
this.LineTeamList = res.data.data; configId: ID
} };
}); this.apipost("travel_get_GetTravelConfigLog", msg, res => {
},
//初始化表格数据
getList() {
this.loading = true;
this.apipost(
"travel_get_GetTravelOfferAuditPageList",
this.queryData,
res => {
this.loading = false;
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.total = res.data.data.count; var endDate = new Date();
this.noData = !this.total > 0; endDate.setMonth(endDate.getMonth() + 1);
var tempData = res.data.data.pageData; var tempData = res.data.data;
tempData.forEach(x => { tempData.forEach(x => {
x.hours = this.$commonUtils.formatMsgTime(x.AuditDate); if (x.LogType == 2) {
x.isShow = false;
x.expectName = "展开";
}
x.hour = this.$commonUtils.formatMsgTime(x.LogTimeStr);
}); });
this.dataList = tempData; this.AuditLogList = tempData;
} }
});
},
expectInfo(logIndex) {
var flag = this.AuditLogList[logIndex].isShow;
this.AuditLogList[logIndex].isShow = !flag;
if (this.AuditLogList[logIndex].isShow) {
this.AuditLogList[logIndex].expectName = "关闭";
} else {
this.AuditLogList[logIndex].expectName = "展开";
} }
); },
}, //获取线路列表
//点击销售定价获取数据 getLineList() {
getSalsPrice(ID) { this.apipost("line_post_GetList", {}, res => {
let msg = { if (res.data.resultCode == 1) {
ID: ID this.LineList = res.data.data;
}; }
this.SalesPriceList = []; });
this.apipost("travel_get_GetTravelQuotationPrice", msg, res => { },
if (res.data.resultCode == 1) { //获取系列列表
this.SalesPriceList.push(res.data.data[0]); getLineTeamList(lineId) {
} this.queryData.LineteamId = 0;
}); let msg = {
}, lineID: this.queryData.LineId,
//点击地接成本获取数据 isTOOP: 1
getCostPrice(ID) { };
let msg = { this.apipost("team_post_GetList", msg, res => {
ID: ID if (res.data.resultCode == 1) {
}; this.LineTeamList = res.data.data;
this.CostList = []; }
this.apipost("travel_get_GetTravelOfferPrice", msg, res => { });
if (res.data.resultCode == 1) { },
if (res.data.data[0] != undefined || res.data.data[0] != null) { //初始化表格数据
let cost = res.data.data[0]; getList() {
let dayNum = 0; this.loading = true;
cost.LocalOfferPriceList.forEach(x => { this.apipost(
if (x.DayNum > dayNum) { "travel_get_GetTravelOfferAuditPageList",
dayNum = x.DayNum; this.queryData,
} res => {
}); this.loading = false;
let offerPriceList = []; if (res.data.resultCode == 1) {
for (let i = 1; i <= dayNum; i++) { this.total = res.data.data.count;
let dayOfferPriceList = []; this.noData = !this.total > 0;
let totalPrice = 0; var tempData = res.data.data.pageData;
tempData.forEach(x => {
x.hours = this.$commonUtils.formatMsgTime(x.AuditDate);
});
this.dataList = tempData;
}
}
);
},
//点击销售定价获取数据
getSalsPrice(ID) {
let msg = {
ID: ID
};
this.SalesPriceList = [];
this.apipost("travel_get_GetTravelQuotationPrice", msg, res => {
if (res.data.resultCode == 1) {
this.SalesPriceList.push(res.data.data[0]);
}
});
},
//点击地接成本获取数据
getCostPrice(ID) {
let msg = {
ID: ID
};
this.CostList = [];
this.apipost("travel_get_GetTravelOfferPrice", msg, res => {
if (res.data.resultCode == 1) {
if (res.data.data[0] != undefined || res.data.data[0] != null) {
let cost = res.data.data[0];
let dayNum = 0;
cost.LocalOfferPriceList.forEach(x => { cost.LocalOfferPriceList.forEach(x => {
if (x.DayNum == i) { if (x.DayNum > dayNum) {
dayOfferPriceList.push(x); dayNum = x.DayNum;
totalPrice += x.OfferPrice;
} }
}); });
let offerPrice = { day: i, dayOfferPriceList, totalPrice }; let offerPriceList = [];
offerPriceList.push(offerPrice); for (let i = 1; i <= dayNum; i++) {
let dayOfferPriceList = [];
let totalPrice = 0;
cost.LocalOfferPriceList.forEach(x => {
if (x.DayNum == i) {
dayOfferPriceList.push(x);
totalPrice += x.OfferPrice;
}
});
let offerPrice = {
day: i,
dayOfferPriceList,
totalPrice
};
offerPriceList.push(offerPrice);
}
cost["offerPriceList"] = offerPriceList;
this.CostList.push(cost);
} }
cost["offerPriceList"] = offerPriceList;
this.CostList.push(cost);
} }
});
},
//根据当前员工所在部门获取该部门及子部门员工信息
getEmployeeList() {
this.apipost(
"admin_get_GetEmployeeByUserDepartmentId", {},
res => {
if (res.data.resultCode == 1) {
this.EmployeeList = res.data.data;
}
},
err => {}
);
},
getJourney(id, title) {
//根据ID 获取行程内容
var that = this;
this.tripTitle = title;
this.$nextTick(() => {
that.$refs.comDialog.GetTrip(id);
});
that.outerVisible = true;
},
goUrl(path, configId, qType) {
if (configId > 0) {
this.$router.push({
name: path,
query: {
configId: configId,
Qtype: qType
}
});
} else {
this.$router.push({
name: path
});
} }
}); },
}, submitForm() {
//根据当前员工所在部门获取该部门及子部门员工信息 //提交创建、修改表单
getEmployeeList() { this.$refs["AuditInfo"].validate(valid => {
this.apipost( if (valid) {
"admin_get_GetEmployeeByUserDepartmentId", this.saveAudit();
{}, } else {
res => { return false;
if (res.data.resultCode == 1) {
this.EmployeeList = res.data.data;
} }
},
err => {}
);
},
getJourney(id, title) {
//根据ID 获取行程内容
var that = this;
this.tripTitle = title;
this.$nextTick(() => {
that.$refs.comDialog.GetTrip(id);
});
that.outerVisible = true;
},
goUrl(path, configId, qType) {
if (configId > 0) {
this.$router.push({
name: path,
query: { configId: configId, Qtype: qType }
}); });
} else { },
this.$router.push({ name: path }); auditDanList(ID) {
} this.isShowDan = true;
}, this.AuditInfo.ID = ID;
submitForm() { },
//提交创建、修改表单 //提交审核
this.$refs["AuditInfo"].validate(valid => { saveAudit() {
if (valid) { this.apipost(
this.saveAudit(); "travel_get_AuditTravelConfig",
this.AuditInfo,
res => {
if (res.data.resultCode == 1) {
this.Success("审核成功");
this.isShowDan = false;
this.getList();
}
},
err => {}
);
},
//格式化日期去掉年
formatStartDate(value) {
if (value == null || value == undefined) {
return "";
} else { } else {
return false; let dataArr = value.split("-");
return dataArr[1] + "-" + dataArr[2];
} }
});
},
auditDanList(ID) {
this.isShowDan = true;
this.AuditInfo.ID = ID;
},
//提交审核
saveAudit() {
this.apipost(
"travel_get_AuditTravelConfig",
this.AuditInfo,
res => {
if (res.data.resultCode == 1) {
this.Success("审核成功");
this.isShowDan = false;
this.getList();
}
},
err => {}
);
},
//格式化日期去掉年
formatStartDate(value) {
if (value == null || value == undefined) {
return "";
} else {
let dataArr = value.split("-");
return dataArr[1] + "-" + dataArr[2];
} }
},
mounted() {
this.getLineList();
this.getEmployeeList();
this.getList();
} }
}, };
mounted() {
this.getLineList();
this.getEmployeeList();
this.getList();
}
};
</script> </script>
...@@ -53,6 +53,7 @@ ...@@ -53,6 +53,7 @@
ReturnArriveCityId: 0, //返回抵达城市 ReturnArriveCityId: 0, //返回抵达城市
CustomerName: "", //客户名称 CustomerName: "", //客户名称
TeamType: 0, //团队类型 TeamType: 0, //团队类型
TravelState:1,//团控状态(1-草稿,2-待审核,3-审核通过,4-审核拒绝,5已撤销)
}, },
dayCostPriceList: [], //报价列表 dayCostPriceList: [], //报价列表
isSubmit: true, isSubmit: true,
...@@ -131,7 +132,7 @@ ...@@ -131,7 +132,7 @@
this.$refs["QuotationPrice"].submitForm(type); this.$refs["QuotationPrice"].submitForm(type);
}, },
//保存数据 //保存数据
SaveData() { SaveData(type) {
var currencyNumList = []; var currencyNumList = [];
if (this.CurrencyNumberListExt != null && this.CurrencyNumberListExt.length > 0) { if (this.CurrencyNumberListExt != null && this.CurrencyNumberListExt.length > 0) {
this.CurrencyNumberListExt.forEach((item, index) => { this.CurrencyNumberListExt.forEach((item, index) => {
...@@ -140,6 +141,8 @@ ...@@ -140,6 +141,8 @@
}); });
}); });
} }
this.postData.TravelState=type;
console.log("this.postData",this.postData);
var nObj = { var nObj = {
config: this.postData, config: this.postData,
dayCostPriceList: this.dayCostPriceList, dayCostPriceList: this.dayCostPriceList,
...@@ -192,7 +195,6 @@ ...@@ -192,7 +195,6 @@
res => { res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
var tempData = res.data.data; var tempData = res.data.data;
console.log("tempData", tempData);
if (tempData.ID && tempData.ID > 0) { if (tempData.ID && tempData.ID > 0) {
this.postData.ID = tempData.ID; this.postData.ID = tempData.ID;
} }
......
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