Commit 5d34ced9 authored by 黄奎's avatar 黄奎

页面修改

parent 59bfd7bb
This source diff could not be displayed because it is too large. You can view the blob instead.
<style> <style>
@import "../../../assets/css/newTravelManager.css"; @import "../../../assets/css/newTravelManager.css";
.people-item {
margin-top: 5px; .people-item {
font-size: 14px; margin-top: 5px;
} font-size: 14px;
.people-item-title { }
font-size: 12px;
color: #666; .people-item-title {
margin-right: 4px; font-size: 12px;
} color: #666;
.productQueryList { margin-right: 4px;
width: 100%; }
min-width: 1366px;
padding-left: 10px; .productQueryList {
} width: 100%;
min-width: 1366px;
.productQueryList li { padding-left: 10px;
width: 100%; }
border: 1px solid #e5e5e5;
background: #fff; .productQueryList li {
margin-bottom: 10px; width: 100%;
color: #333; border: 1px solid #e5e5e5;
font-size: 14px; background: #fff;
} margin-bottom: 10px;
color: #333;
.productQueryList li::after { font-size: 14px;
content: ""; }
display: block;
clear: both; .productQueryList li::after {
} content: "";
display: block;
.productQueryList li i.iconfont { clear: both;
color: #bbb; }
margin-right: 8px;
} .productQueryList li i.iconfont {
color: #bbb;
.productQueryList li > div:first-child { margin-right: 8px;
display: table; }
width: 100%;
} .productQueryList li>div:first-child {
display: table;
.productQueryList li > div > div { width: 100%;
display: table-cell; }
border-right: 1px dashed #dcdfe6;
} .productQueryList li>div>div {
display: table-cell;
.productQueryList li > div > div:last-child { border-right: 1px dashed #dcdfe6;
border-right: none; }
}
.productQueryList li>div>div:last-child {
.productQueryList li .d11 { border-right: none;
float: left; }
width: 160px;
height: 120px; .productQueryList li .d11 {
margin: 14px 14px 0 14px; float: left;
} width: 160px;
height: 120px;
.productQueryList li .d11 > li { margin: 14px 14px 0 14px;
width: 160px; }
height: 120px;
border: none; .productQueryList li .d11>li {
} width: 160px;
height: 120px;
.productQueryList li .d11 > li > img { border: none;
width: 160px; }
height: 120px;
} .productQueryList li .d11>li>img {
width: 160px;
.productQueryList li .d12 { height: 120px;
float: left; }
padding-top: 18px;
width: 200px; .productQueryList li .d12 {
} float: left;
padding-top: 18px;
.productQueryList li .d12 .d12p { width: 200px;
margin-top: 3px; }
font-size: 12px;
color: #999; .productQueryList li .d12 .d12p {
cursor: pointer; margin-top: 3px;
max-height: 40px; font-size: 12px;
line-height: 20px; color: #999;
display: -webkit-box; cursor: pointer;
overflow: hidden; max-height: 40px;
text-overflow: ellipsis; line-height: 20px;
-webkit-line-clamp: 2; display: -webkit-box;
-webkit-box-orient: vertical; overflow: hidden;
} text-overflow: ellipsis;
-webkit-line-clamp: 2;
.productQueryList li .d12 .d12p:hover { -webkit-box-orient: vertical;
text-decoration: underline; }
color: #333;
} .productQueryList li .d12 .d12p:hover {
text-decoration: underline;
.productQueryList li .d12 .d12TC { color: #333;
margin: 5px 0; }
color: #666666;
font-size: 12px; .productQueryList li .d12 .d12TC {
} margin: 5px 0;
color: #666666;
.productQueryList li .d1 { font-size: 12px;
width: 18%; }
position: relative;
padding: 0 20px; .productQueryList li .d1 {
} width: 18%;
position: relative;
.productQueryList li .d2 { padding: 0 20px;
width: 14%; }
text-align: center;
padding-top: 20px; .productQueryList li .d2 {
} width: 14%;
text-align: center;
.productQueryList li .d2 p.flightNo { padding-top: 20px;
background: #ccc; }
width: 136px;
margin: 5px 0; .productQueryList li .d2 p.flightNo {
padding: 0 10px; background: #ccc;
height: 22px; width: 136px;
line-height: 22px; margin: 5px 0;
display: inline-block; padding: 0 10px;
font-size: 14px; height: 22px;
} line-height: 22px;
display: inline-block;
.productQueryList li .d2 p.flightNo em { font-size: 14px;
font-style: normal; }
color: #333;
font-size: 12px; .productQueryList li .d2 p.flightNo em {
font-weight: bold; font-style: normal;
} color: #333;
font-size: 12px;
.productQueryList li .d2 p.flightNo .flem { font-weight: bold;
height: 22px; }
width: 50px;
display: inline-block; .productQueryList li .d2 p.flightNo .flem {
overflow: hidden; height: 22px;
white-space: nowrap; width: 50px;
text-overflow: ellipsis; display: inline-block;
} overflow: hidden;
white-space: nowrap;
.productQueryList li .d2 p > span { text-overflow: ellipsis;
color: #fff; }
font-size: 12px;
border-radius: 10px; .productQueryList li .d2 p>span {
background: #2aaef2; color: #fff;
padding: 2px 5px; font-size: 12px;
cursor: pointer; border-radius: 10px;
} background: #2aaef2;
padding: 2px 5px;
.productQueryList li .d2 > div > div { cursor: pointer;
display: inline-block; }
line-height: 24px;
font-size: 12px; .productQueryList li .d2>div>div {
} display: inline-block;
line-height: 24px;
.productQueryList li .d3 { font-size: 12px;
width: 17%; }
padding-left: 40px;
padding-top: 20px; .productQueryList li .d3 {
} width: 17%;
padding-left: 40px;
.productQueryList li .d3 p { padding-top: 20px;
line-height: 24px; }
}
.productQueryList li .d3 p {
.productQueryList li .d3 p > span { line-height: 24px;
color: #666; }
font-size: 12px;
margin-right: 10px; .productQueryList li .d3 p>span {
} color: #666;
font-size: 12px;
.productQueryList li .d3 p > em { margin-right: 10px;
background: #ff9c00; }
font-style: normal;
margin-left: 8px; .productQueryList li .d3 p>em {
color: #fff; background: #ff9c00;
border-radius: 4px; font-style: normal;
padding: 2px 5px; margin-left: 8px;
} color: #fff;
border-radius: 4px;
.productQueryList li .d4 { padding: 2px 5px;
width: 10%; }
padding-left: 20px;
padding-top: 20px; .productQueryList li .d4 {
} width: 10%;
padding-left: 20px;
.productQueryList li .d4 p span.price { padding-top: 20px;
color: #333; }
text-decoration: underline;
font-size: 12px; .productQueryList li .d4 p span.price {
} color: #333;
text-decoration: underline;
.productQueryList li .d4 p span.price:hover { font-size: 12px;
color: #e95252; }
font-weight: bold;
cursor: pointer; .productQueryList li .d4 p span.price:hover {
} color: #e95252;
font-weight: bold;
.productQueryList li .d5 { cursor: pointer;
width: 15%; }
padding-left: 40px;
padding-top: 20px; .productQueryList li .d5 {
} width: 15%;
padding-left: 40px;
.productQueryList li .d5 p { padding-top: 20px;
line-height: 26px; }
}
.productQueryList li .d5 p {
.productQueryList li .d5 p > span { line-height: 26px;
color: #666; }
font-size: 12px;
margin-right: 10px; .productQueryList li .d5 p>span {
} color: #666;
font-size: 12px;
.productQueryList li .d5 p > i { margin-right: 10px;
font-weight: bold; }
font-style: normal;
} .productQueryList li .d5 p>i {
font-weight: bold;
.productQueryList li .d8 { font-style: normal;
width: 15%; }
padding-left: 40px;
padding-top: 20px; .productQueryList li .d8 {
} width: 15%;
padding-left: 40px;
.productQueryList li .d8 p { padding-top: 20px;
line-height: 26px; }
}
.productQueryList li .d8 p {
.productQueryList li .d8 p > span { line-height: 26px;
color: #666; }
font-size: 12px;
margin-right: 10px; .productQueryList li .d8 p>span {
} color: #666;
font-size: 12px;
.productQueryList li .d8 p > i { margin-right: 10px;
font-style: normal; }
}
.productQueryList li .d8 p>i {
.productQueryList li .d6 { font-style: normal;
padding: 20px 40px; }
width: 100%;
height: inherit; .productQueryList li .d6 {
border-top: 1px solid #e5e5e5; padding: 20px 40px;
} width: 100%;
height: inherit;
.productQueryList li .d6 p { border-top: 1px solid #e5e5e5;
display: table-cell; }
color: #e95252;
} .productQueryList li .d6 p {
display: table-cell;
.productQueryList li .d6 p:nth-child(1) { color: #e95252;
width: 60px; }
font-size: 12px;
} .productQueryList li .d6 p:nth-child(1) {
width: 60px;
.productQueryList li .d7 { font-size: 12px;
width: 10%; }
min-width: 160px;
text-align: center; .productQueryList li .d7 {
padding: 40px 20px; width: 10%;
border-right: none; min-width: 160px;
} text-align: center;
padding: 40px 20px;
.productQueryList li .d7 button { border-right: none;
width: 30px; }
height: 30px;
border-radius: 4px; .productQueryList li .d7 button {
} width: 30px;
height: 30px;
.productQueryList li .d7 .el-button--primary { border-radius: 4px;
padding: 5px; }
margin: 0;
font-size: 14px !important; .productQueryList li .d7 .el-button--primary {
color: #fff; padding: 5px;
} margin: 0;
font-size: 14px !important;
.productQueryList li .d7 i.iconfont { color: #fff;
color: #fff; }
margin: 0;
} .productQueryList li .d7 i.iconfont {
color: #fff;
.pro_tripDetails { margin: 0;
padding: 0; }
box-shadow: 0px 1px 3px 0px #dedede;
max-height: 400px; .pro_tripDetails {
overflow-y: auto; padding: 0;
} box-shadow: 0px 1px 3px 0px #dedede;
max-height: 400px;
.pro_tripDetails .popper__arrow::after { overflow-y: auto;
border-bottom-color: #ededed !important; }
}
.pro_tripDetails .popper__arrow::after {
.pro_tripDetails table { border-bottom-color: #ededed !important;
padding: 10px 0 0 20px; }
background-color: #ededed;
border-collapse: collapse; .pro_tripDetails table {
border: 1px solid #d2d2d2; padding: 10px 0 0 20px;
font-size: 12px; background-color: #ededed;
} border-collapse: collapse;
border: 1px solid #d2d2d2;
.pro_tripDetails table th { font-size: 12px;
background-color: #ededed; }
padding: 5px;
} .pro_tripDetails table th {
background-color: #ededed;
.pro_tripDetails table td { padding: 5px;
background-color: #ffffff; }
padding: 9px 15px;
color: #333333; .pro_tripDetails table td {
border: 1px solid #d2d2d2; background-color: #ffffff;
} padding: 9px 15px;
color: #333333;
.pro_tripDetails table td._d_name { border: 1px solid #d2d2d2;
background-color: #ededed; }
}
.pro_tripDetails table td._d_name {
.pro_tripDetails table ._color_666 { background-color: #ededed;
color: #666666; }
}
.pro_tripDetails table ._color_666 {
.pro_tripDetails table tr._color_666 th { color: #666666;
padding: 9px 15px; }
}
.pro_tripDetails table tr._color_666 th {
.productQuerybottomLayer { padding: 9px 15px;
overflow: auto; }
position: fixed;
/* max-height: 300px; */ .productQuerybottomLayer {
z-index: 50; overflow: auto;
bottom: 0; position: fixed;
left: 0; /* max-height: 300px; */
border-top: 3px solid #38425d; z-index: 50;
background-color: #ffffff; bottom: 0;
padding: 10px 10px 0; left: 0;
width: 100%; border-top: 3px solid #38425d;
} background-color: #ffffff;
padding: 10px 10px 0;
.productQuerybottomLayer .el-form-item__label { width: 100%;
font-size: 12px !important; }
}
.productQuerybottomLayer .el-form-item__label {
.productQuerybottomLayer > p { font-size: 12px !important;
border-left: 3px solid #e95252; }
text-indent: 15px;
height: 16px; .productQuerybottomLayer>p {
font-family: "PingFangSc-Fine"; border-left: 3px solid #e95252;
font-size: 16px; text-indent: 15px;
margin-bottom: 20px; height: 16px;
line-height: 14px; font-family: "PingFangSc-Fine";
color: #000; font-size: 16px;
} margin-bottom: 20px;
line-height: 14px;
.productQuerybottomLayer .el-input { color: #000;
width: auto !important; }
}
.productQuerybottomLayer .el-input {
.productQueryList .disabledBtn { width: auto !important;
background: #999 !important; }
border-color: #999 !important;
} .productQueryList .disabledBtn {
background: #999 !important;
.product_union { border-color: #999 !important;
position: absolute; }
top: 0px;
left: 0px; .product_union {
width: 0px; position: absolute;
height: 0px; top: 0px;
border-top: 15px solid red; left: 0px;
border-bottom: 15px solid transparent; width: 0px;
border-left: 15px solid red; height: 0px;
border-right: 15px solid transparent; border-top: 15px solid red;
} border-bottom: 15px solid transparent;
border-left: 15px solid red;
.product_union::after { border-right: 15px solid transparent;
content: "联"; }
position: absolute;
top: -14px; .product_union::after {
left: -11px; content: "联";
white-space: nowrap; position: absolute;
color: #ffffff; top: -14px;
font-size: 12px; left: -11px;
} white-space: nowrap;
color: #ffffff;
.product_union1 { font-size: 12px;
position: absolute; }
top: 0px;
left: 0px; .product_union1 {
width: 0px; position: absolute;
height: 0px; top: 0px;
border-top: 15px solid red; left: 0px;
border-bottom: 15px solid transparent; width: 0px;
border-left: 15px solid red; height: 0px;
border-right: 15px solid transparent; border-top: 15px solid red;
} border-bottom: 15px solid transparent;
border-left: 15px solid red;
.product_union1::after { border-right: 15px solid transparent;
content: "内"; }
position: absolute;
top: -14px; .product_union1::after {
left: -11px; content: "内";
white-space: nowrap; position: absolute;
color: #ffffff; top: -14px;
font-size: 12px; left: -11px;
} white-space: nowrap;
color: #ffffff;
.product_warning { font-size: 12px;
position: absolute; }
top: 0px;
right: 0px; .product_warning {
width: 0px; position: absolute;
height: 0px; top: 0px;
border-top: 10px solid red; right: 0px;
border-bottom: 10px solid transparent; width: 0px;
border-left: 10px solid transparent; height: 0px;
border-right: 10px solid red; border-top: 10px solid red;
} border-bottom: 10px solid transparent;
border-left: 10px solid transparent;
.product_warning::after { border-right: 10px solid red;
content: "!"; }
position: absolute;
top: -12px; .product_warning::after {
right: -5px; content: "!";
white-space: nowrap; position: absolute;
color: #ffffff; top: -12px;
font-size: 12px; right: -5px;
} white-space: nowrap;
color: #ffffff;
.PQ_detail { font-size: 12px;
width: 100%; }
border-collapse: collapse;
} .PQ_detail {
width: 100%;
.PQ_detail tr th, border-collapse: collapse;
.v-table-title-cell { }
background: #e6e6e6;
height: 40px; .PQ_detail tr th,
font-size: 14px; .v-table-title-cell {
border-right: 1px solid #e6e6e6; background: #e6e6e6;
color: #333; height: 40px;
} font-size: 14px;
border-right: 1px solid #e6e6e6;
.PQ_detail tr { color: #333;
background: #fff; }
text-align: center;
height: 40px; .PQ_detail tr {
} background: #fff;
text-align: center;
.PQ_detail tr td { height: 40px;
font-size: 12px; }
border: 1px solid #e5e5e5;
} .PQ_detail tr td {
font-size: 12px;
.PQ_HotelPop { border: 1px solid #e5e5e5;
overflow: auto; }
max-height: 350px;
} .PQ_HotelPop {
overflow: auto;
.PQ_HotelPop table td { max-height: 350px;
padding: 5px 0; }
text-align: center;
} .PQ_HotelPop table td {
padding: 5px 0;
.PQ_HotelPop table th { text-align: center;
text-align: center; }
}
.PQ_HotelPop table th {
.productQuerybottomLayer .el-upload-list { text-align: center;
width: 200px; }
}
.flex-center { .productQuerybottomLayer .el-upload-list {
display: flex; width: 200px;
justify-content: center; }
}
.flex-center {
display: flex;
justify-content: center;
}
</style> </style>
<template> <template>
<div class="productQueryList" v-loading="loading"> <div class="productQueryList" v-loading="loading">
<div style="margin-bottom: 10px"> <div style="margin-bottom: 10px">
<el-checkbox v-model="allCheck" @change="changeSelect">全选</el-checkbox> <el-checkbox v-model="allCheck" @change="changeSelect">全选</el-checkbox>
<el-button <el-button style="margin-left: 10px" type="primary" size="small" @click="eidtItems">批量操作</el-button>
style="margin-left: 10px"
type="primary"
size="small"
@click="eidtItems"
>批量操作</el-button
>
</div> </div>
<ul v-if="list.length != 0"> <ul v-if="list.length != 0">
<li v-for="(item, index) in list" :key="index"> <li v-for="(item, index) in list" :key="index">
<div class="dline"> <div class="dline">
<div> <div>
<div class="flex-center"> <div class="flex-center">
<el-checkbox <el-checkbox v-model="item.check" @change="changeSelectItem()"></el-checkbox>
v-model="item.check"
@change="changeSelectItem()"
></el-checkbox>
</div> </div>
</div> </div>
<div class="d1"> <div class="d1">
<div v-if="item.IsB2B === 0" class="product_union1"></div> <div v-if="item.IsB2B === 0" class="product_union1"></div>
<div v-if="item.IsUnionTravel === 1" class="product_union"></div> <div v-if="item.IsUnionTravel === 1" class="product_union"></div>
<div v-if="item.IsWarning === 1" class="product_warning"></div> <div v-if="item.IsWarning === 1" class="product_warning"></div>
<div <div class="d12" style="float: none; margin: auto"
class="d12" :style="{ width: pagesTitle == '跟团游产品' ? '200px' : 'auto' }">
style="float: none; margin: auto"
:style="{ width: pagesTitle == '跟团游产品' ? '200px' : 'auto' }"
>
<p><i class="iconfont icon-biaoti1"></i> {{ item.LineName }}</p> <p><i class="iconfont icon-biaoti1"></i> {{ item.LineName }}</p>
<p class="d12TC">{{ item.TCNUM }}{{ item.TCID }}</p> <p class="d12TC">{{ item.TCNUM }}{{ item.TCID }}</p>
<p>{{ item.LtName }}</p> <p>{{ item.LtName }}</p>
<el-tooltip <el-tooltip class="item" effect="dark" :content="item.Title" placement="top-start"
class="item" popper-class="max-w250">
effect="dark" <p class="d12p" @click="getTitledetail(item)" :title="item.Title">
:content="item.Title"
placement="top-start"
popper-class="max-w250"
>
<p
class="d12p"
@click="getTitledetail(item)"
:title="item.Title"
>
{{ item.Title }} {{ item.Title }}
</p> </p>
</el-tooltip> </el-tooltip>
</div> </div>
</div> </div>
<div class="d3" v-if="pagesTitle == '跟团游产品'"> <div class="d3" v-if="pagesTitle == '跟团游产品'">
<div> <span class="people-item-title">出团公司: </span>{{ item.OutBranchName }}</div> <div> <span class="people-item-title">出团公司: </span>{{ item.OutBranchName }}</div>
<p class="people-item"> <p class="people-item">
<span>{{ $t("Airticket.Air_StartTime") }}:</span <span>{{ $t("Airticket.Air_StartTime") }}:</span>{{ item.StartDate }}
>{{ item.StartDate }}
</p> </p>
<div class="people-item"> <div class="people-item">
<span class="people-item-title">创建人:</span> <span class="people-item-title">创建人:</span>
...@@ -537,11 +520,8 @@ ...@@ -537,11 +520,8 @@
</div> </div>
<div class="d5"> <div class="d5">
<p> <p>
<span>{{ $t("visa.v_yibaoru") }}</span <span>{{ $t("visa.v_yibaoru") }}</span><i>{{ item.Seat == "" ? "0" : item.Seat
><i }}{{ $t("salesModule.PeoPle") }}</i>({{ $t("Operation.Op_takeSeat") }}{{ item.Occupied
>{{ item.Seat == "" ? "0" : item.Seat
}}{{ $t("salesModule.PeoPle") }}</i
>({{ $t("Operation.Op_takeSeat") }}{{ item.Occupied
}}{{ $t("salesModule.PeoPle") }}) }}{{ $t("salesModule.PeoPle") }})
</p> </p>
<span style="font-size: 12px"><span class="people-item-title">联运人数: </span>{{ item.IntermodalCount }}</span> <span style="font-size: 12px"><span class="people-item-title">联运人数: </span>{{ item.IntermodalCount }}</span>
...@@ -570,9 +550,7 @@ ...@@ -570,9 +550,7 @@
</div> </div>
<div> <div>
<div class="flex-center"> <div class="flex-center">
<el-button type="primary" size="small" @click="editItem(item)" <el-button type="primary" size="small" @click="editItem(item)">编辑</el-button>
>编辑</el-button
>
</div> </div>
</div> </div>
</div> </div>
...@@ -581,435 +559,381 @@ ...@@ -581,435 +559,381 @@
<div class="noData" v-else> <div class="noData" v-else>
{{ $t("system.content_noData") }} {{ $t("system.content_noData") }}
</div> </div>
<el-dialog <el-dialog title="编辑" :visible.sync="showDialog" width="600px" height="40%">
title="编辑"
:visible.sync="showDialog"
width="600px"
height="40%"
>
<div v-if="!isVisa"> <div v-if="!isVisa">
<span style="width: 15%; display: inline-block">团OP</span> <span style="width: 15%; display: inline-block">团OP</span>
<el-select <el-select style="width: 80%" v-model="queryData.OPId" filterable :placeholder="$t('pub.pleaseSel')">
style="width: 80%" <el-option v-for="item in EmployeeList" :label="item.EmName" :value="item.EmployeeId" :key="item.EmployeeId">
v-model="queryData.OPId"
filterable
:placeholder="$t('pub.pleaseSel')"
>
<el-option
v-for="item in EmployeeList"
:label="item.EmName"
:value="item.EmployeeId"
:key="item.EmployeeId"
>
</el-option> </el-option>
</el-select> </el-select>
</div> </div>
<div v-if="!isVisa" style="margin-top: 10px"> <div v-if="!isVisa" style="margin-top: 10px">
<span style="width: 15%; display: inline-block">助手</span> <span style="width: 15%; display: inline-block">助手</span>
<el-select <el-select style="width: 80%" v-model="queryData.AssistantId" multiple filterable
style="width: 80%" :placeholder="$t('pub.pleaseSel')">
v-model="queryData.AssistantId" <el-option v-for="item in EmployeeList" :label="item.EmName" :value="item.EmployeeId" :key="item.EmployeeId">
multiple
filterable
:placeholder="$t('pub.pleaseSel')"
>
<el-option
v-for="item in EmployeeList"
:label="item.EmName"
:value="item.EmployeeId"
:key="item.EmployeeId"
>
</el-option> </el-option>
</el-select> </el-select>
</div> </div>
<div style="margin-top: 10px"> <div style="margin-top: 10px">
<span style="width: 15%; display: inline-block">签证OP</span> <span style="width: 15%; display: inline-block">签证OP</span>
<el-select <el-select filterable style="width: 80%" v-model="queryData.VisaOPId" :placeholder="$t('pub.pleaseSel')">
filterable <el-option v-for="item in EmployeeList" :label="item.EmName" :value="item.EmployeeId" :key="item.EmployeeId">
style="width: 80%"
v-model="queryData.VisaOPId"
:placeholder="$t('pub.pleaseSel')"
>
<el-option
v-for="item in EmployeeList"
:label="item.EmName"
:value="item.EmployeeId"
:key="item.EmployeeId"
>
</el-option> </el-option>
</el-select> </el-select>
</div> </div>
<div style="margin-top: 10px"> <div style="margin-top: 10px">
<span style="width: 15%; display: inline-block">签证助手</span> <span style="width: 15%; display: inline-block">签证助手</span>
<el-select <el-select style="width: 80%" v-model="queryData.VisaAssistantId" multiple filterable
style="width: 80%" :placeholder="$t('pub.pleaseSel')">
v-model="queryData.VisaAssistantId" <el-option v-for="item in EmployeeList" :label="item.EmName" :value="item.EmployeeId" :key="item.EmployeeId">
multiple
filterable
:placeholder="$t('pub.pleaseSel')"
>
<el-option
v-for="item in EmployeeList"
:label="item.EmName"
:value="item.EmployeeId"
:key="item.EmployeeId"
>
</el-option> </el-option>
</el-select> </el-select>
</div> </div>
<div style="margin-top: 10px" v-if="editNum"> <div style="margin-top: 10px" v-if="editNum">
<span style="width: 15%; display: inline-block">签证人数</span <span style="width: 15%; display: inline-block">签证人数</span>
><el-input <el-input type="number" style="width: 80%; margin-left: 4px" v-model="queryData.VisaNum" />
type="number"
style="width: 80%; margin-left: 4px"
v-model="queryData.VisaNum"
/>
</div> </div>
<span slot="footer" class="dialog-footer"> <span slot="footer" class="dialog-footer">
<el-button @click="showDialog = false">取 消</el-button> <el-button @click="showDialog = false">取 消</el-button>
<el-button style="margin-right: 24px" type="primary" @click="submitOP" <el-button style="margin-right: 24px" type="primary" @click="submitOP">确 定</el-button>
>确 定</el-button
>
</span> </span>
</el-dialog> </el-dialog>
</div> </div>
</template> </template>
<script> <script>
export default { export default {
props: ["loading", "list", "pagesTitle", "isVisa"], props: ["loading", "list", "pagesTitle", "isVisa"],
data() { data() {
return { return {
editNum: false, editNum: false,
showDialog: false, showDialog: false,
queryData: {}, queryData: {},
EmployeeList: [], EmployeeList: [],
allCheck: false, allCheck: false,
//当前登录用户信息 //当前登录用户信息
CurrentUserInfo: {}, CurrentUserInfo: {},
travelControlTripLayerShow: false, travelControlTripLayerShow: false,
wxLoading: false, wxLoading: false,
userId: "", userId: "",
outerVisible: false, outerVisible: false,
tripTitle: "", tripTitle: "",
tripDetails: [], tripDetails: [],
TCIDList: null, TCIDList: null,
tripObj: { tripObj: {
tcid: 0, tcid: 0,
configId: 0, configId: 0,
cityId: 0, cityId: 0,
orderId: 0, orderId: 0,
},
showHotelObj: {
showPrice: false,
showPay: false,
showZhan: false,
},
qjGroupId: -1,
S_Travel_Share: false, //分享权限
userInfo: {},
crmOrderObj: null,
isShowTeamOrder: false, //是否显示订单弹窗
teamInfo: {}, //团队信息
};
},
components: {},
filters: {
priceFormat(value) {
if (value == null) {
return 0.0;
}
let nStr = value.toFixed(2);
nStr += "";
let x = nStr.split(".");
let x1 = x[0];
let x2 = x.length > 1 ? "." + x[1] : "";
var rgx = /(\d+)(\d{3})/;
while (rgx.test(x1)) {
x1 = x1.replace(rgx, "$1" + "," + "$2");
}
return x1 + x2;
}, },
showHotelObj: { priceFormat2(value) {
showPrice: false, if (value == null) {
showPay: false, return "已包含";
showZhan: false, }
let nStr = value.toFixed(2);
nStr += "";
let x = nStr.split(".");
let x1 = x[0];
let x2 = x.length > 1 ? "." + x[1] : "";
var rgx = /(\d+)(\d{3})/;
while (rgx.test(x1)) {
x1 = x1.replace(rgx, "$1" + "," + "$2");
}
let result = x1 + x2;
if (result === "0.00") {
result = "已包含";
}
return result;
}, },
qjGroupId: -1,
S_Travel_Share: false, //分享权限
userInfo: {},
crmOrderObj: null,
isShowTeamOrder: false, //是否显示订单弹窗
teamInfo: {}, //团队信息
};
},
components: {},
filters: {
priceFormat(value) {
if (value == null) {
return 0.0;
}
let nStr = value.toFixed(2);
nStr += "";
let x = nStr.split(".");
let x1 = x[0];
let x2 = x.length > 1 ? "." + x[1] : "";
var rgx = /(\d+)(\d{3})/;
while (rgx.test(x1)) {
x1 = x1.replace(rgx, "$1" + "," + "$2");
}
return x1 + x2;
}, },
priceFormat2(value) { methods: {
if (value == null) { changeSelect() {
return "已包含"; this.list.forEach((element) => {
} element.check = this.allCheck;
let nStr = value.toFixed(2); });
nStr += ""; },
let x = nStr.split("."); changeSelectItem() {
let x1 = x[0]; const listTmp = JSON.parse(JSON.stringify(this.list));
let x2 = x.length > 1 ? "." + x[1] : ""; this.list = [];
var rgx = /(\d+)(\d{3})/; this.$nextTick(() => {
while (rgx.test(x1)) { this.list = listTmp;
x1 = x1.replace(rgx, "$1" + "," + "$2"); });
} },
let result = x1 + x2; submitOP() {
if (result === "0.00") { let params = {
result = "已包含"; TCIDs: this.TCIDs,
} Type: this.isVisa ? 1 : 0
return result; };
}, if (!this.isVisa) {
},
methods: {
changeSelect() {
console.log("changeSelect");
this.list.forEach((element) => {
element.check = this.allCheck;
});
},
changeSelectItem() {
const listTmp = JSON.parse(JSON.stringify(this.list));
this.list = [];
this.$nextTick(() => {
this.list = listTmp;
});
},
submitOP() {
let params = { TCIDs: this.TCIDs, Type: this.isVisa ? 1 : 0 };
if (!this.isVisa) {
params.OPId = this.queryData.OPId; params.OPId = this.queryData.OPId;
if (!this.queryData.AssistantId || !this.queryData.AssistantId.length) { if (!this.queryData.AssistantId || !this.queryData.AssistantId.length) {
params.AssistantId = ''; params.AssistantId = '';
} else { } else {
params.AssistantId = this.queryData.AssistantId.join(","); params.AssistantId = this.queryData.AssistantId.join(",");
}
} }
}
params.VisaOPId = this.queryData.VisaOPId; params.VisaOPId = this.queryData.VisaOPId;
if ( if (
!this.queryData.VisaAssistantId || !this.queryData.VisaAssistantId ||
!this.queryData.VisaAssistantId.length !this.queryData.VisaAssistantId.length
) { ) {
params.VisaAssistantId = '' params.VisaAssistantId = ''
} else {
params.VisaAssistantId = this.queryData.VisaAssistantId.join(",");
}
if (this.editNum) {
if (!this.queryData.VisaNum) {
this.$message.error("请填写签证人数");
return;
} else if (this.queryData.VisaNum > this.editObj.NeedVisaNum) {
this.$message.error("签证人数最多" + this.editObj.NeedVisaNum + "人");
return;
} else { } else {
params.VisaNum = this.queryData.VisaNum; params.VisaAssistantId = this.queryData.VisaAssistantId.join(",");
} }
} if (this.editNum) {
this.apipost( if (!this.queryData.VisaNum) {
"travel_post_BatchSetOpInfo", this.$message.error("请填写签证人数");
params, return;
(res) => { } else if (this.queryData.VisaNum > this.editObj.NeedVisaNum) {
if (res.data.resultCode == 1) { this.$message.error("签证人数最多" + this.editObj.NeedVisaNum + "人");
this.$message.success(res.data.message || "操作成功"); return;
this.showDialog = false; } else {
this.$emit("success"); params.VisaNum = this.queryData.VisaNum;
} }
},
(err) => {}
);
},
editItem(item) {
this.TCIDs = item.TCID;
this.editObj = item;
console.log("editItem", item);
this.queryData = {
OPId: item.OPId || "",
AssistantId:
!item.AssistantId || item.AssistantId == "0"
? []
: item.AssistantId.split(",").map((item) => Number(item)),
VisaOPId: item.VisaOPId || "",
VisaAssistantId:
!item.VisaAssistantId || item.VisaAssistantId == "0"
? []
: item.VisaAssistantId.split(",").map((item) => Number(item)),
VisaNum: item.VisaNum == -1 ? item.NeedVisaNum : item.VisaNum,
};
this.editNum = true;
this.showDialog = true;
},
eidtItems() {
this.TCIDs = this.getSelcetedIds();
console.log("eidtItems eidtItems", this.TCIDs);
if (!this.TCIDs) {
this.$message.error("请选择要编辑的内容");
return;
}
this.editNum = false;
this.queryData = {};
this.showDialog = true;
},
getSelcetedIds() {
return this.list
.filter((item) => item.check)
.map((item) => item.TCID)
.join(",");
},
//根据当前员工所在部门获取该部门及子部门员工信息
getEmployeeList() {
this.apipost(
"admin_get_EmployeeGetList",
{},
(res) => {
if (res.data.resultCode == 1) {
this.EmployeeList = res.data.data;
}
},
(err) => {}
);
},
//刷新页面
reSearchPage() {
this.isShowTeamOrder = false;
this.teamInfo = {};
this.$emit("success");
},
//关闭窗口
closeForm() {
this.isShowTeamOrder = false;
this.teamInfo = {};
},
// 分享权限
GetSupperOrderEditAuth() {
var actionCode = this.$AuthCode.S_Travel_Share;
this.CheckUserAuth(actionCode, (res) => {
if (res.data.resultCode == 1 && res.data.data == 1) {
this.S_Travel_Share = true;
} }
});
},
downloadFile(item) {
let reg = /^http(s)?:\/\/(.*?)\//;
this.downloadFileRename(item.FullUrl.replace(reg, ""), item.Name);
},
// 获取微信二维码
getWxCode(key) {
this.wxLoading = false;
if (this.list[key].wxImage === "") {
this.wxLoading = true;
this.apipost( this.apipost(
"TaskManagemnet_get_GetWeiXinShare", "travel_post_BatchSetOpInfo",
{ params,
ConfigId: this.list[key].ConfigID, (res) => {
TCID: this.list[key].TCID, if (res.data.resultCode == 1) {
this.$message.success(res.data.message || "操作成功");
this.showDialog = false;
this.$emit("success");
}
}, },
(err) => {}
);
},
editItem(item) {
this.TCIDs = item.TCID;
this.editObj = item;
this.queryData = {
OPId: item.OPId || "",
AssistantId:
!item.AssistantId || item.AssistantId == "0" ?
[] :
item.AssistantId.split(",").map((item) => Number(item)),
VisaOPId: item.VisaOPId || "",
VisaAssistantId:
!item.VisaAssistantId || item.VisaAssistantId == "0" ?
[] :
item.VisaAssistantId.split(",").map((item) => Number(item)),
VisaNum: item.VisaNum == -1 ? item.NeedVisaNum : item.VisaNum,
};
this.editNum = true;
this.showDialog = true;
},
eidtItems() {
this.TCIDs = this.getSelcetedIds();
if (!this.TCIDs) {
this.$message.error("请选择要编辑的内容");
return;
}
this.editNum = false;
this.queryData = {};
this.showDialog = true;
},
getSelcetedIds() {
return this.list
.filter((item) => item.check)
.map((item) => item.TCID)
.join(",");
},
//根据当前员工所在部门获取该部门及子部门员工信息
getEmployeeList() {
this.apipost(
"admin_get_EmployeeGetList", {},
(res) => { (res) => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
let url = res.data.data; this.EmployeeList = res.data.data;
this.list[key].wxImage = url;
this.wxLoading = false;
} else {
this.$message.error("二维码获取失败");
} }
}, },
(err) => {} (err) => {}
); );
} },
}, //刷新页面
toTrip(obj) { reSearchPage() {
this.tripObj.tcid = obj.TCID; this.isShowTeamOrder = false;
this.tripObj.configId = obj.ConfigID; this.teamInfo = {};
this.tripObj.cityId = obj.StartCityID; this.$emit("success");
this.tripObj.orderId = 0; },
this.travelControlTripLayerShow = true; //关闭窗口
}, closeForm() {
hideTripDown() { this.isShowTeamOrder = false;
this.travelControlTripLayerShow = false; this.teamInfo = {};
}, },
goUrl(id, tcmun) { // 分享权限
let path; GetSupperOrderEditAuth() {
if (this.pagesTitle == "跟团游产品") { var actionCode = this.$AuthCode.S_Travel_Share;
path = "groupTourOrderByTuan"; this.CheckUserAuth(actionCode, (res) => {
} if (res.data.resultCode == 1 && res.data.data == 1) {
if (this.pagesTitle == "当地游产品") { this.S_Travel_Share = true;
path = "groupTourOrderByTuanOne";
}
this.$router.push({
name: path,
query: {
id: id,
tcmun: tcmun,
blank: "y",
tab: "团报名清单",
},
});
},
goUrlX(item) {
this.$router.push({
name: "GroupAdvertising",
query: {
LineID: item.LineID,
TCID: item.TCID,
blank: "y",
tab: "团期广告",
},
});
},
//获取航班详情
getDetails(index) {
this.tripDetails = this.list[index].flightList;
},
goBuy(obj) {
this.teamInfo = obj;
this.isShowTeamOrder = true;
},
// 产品详情
getTitledetail(item) {
if (this.pagesTitle == "跟团游产品") {
this.getJourney(item.ConfigID, item.TCID, item.LineName);
}
if (this.pagesTitle == "当地游产品") {
this.goB2Bdetail(item.ConfigID, item.TCID);
}
},
goB2Bdetail(ConfigId, tcid) {
var B2BDomain = this.CurrentUserInfo.B2BDomain; //'www.oytour.com';
this.$tripUtils.GotoB2BPage(
B2BDomain,
encodeURIComponent(ConfigId),
tcid
);
},
getJourney(id, TCID, title) {
var that = this;
this.tripTitle = title;
this.$nextTick(() => {
that.$refs.comTeam.GetTrip(id, TCID);
});
that.outerVisible = true;
},
clickHotel(TCID, LineId, LineteamId) {
var msg = {
TCID: TCID,
LineId: LineId,
LineteamId: LineteamId,
};
this.apipost(
"b2b_post_SetHotelClickService",
msg,
(res) => {
if (res.data.resultCode == 1) {
} }
}, });
(err) => {} },
); downloadFile(item) {
let reg = /^http(s)?:\/\/(.*?)\//;
this.downloadFileRename(item.FullUrl.replace(reg, ""), item.Name);
},
// 获取微信二维码
getWxCode(key) {
this.wxLoading = false;
if (this.list[key].wxImage === "") {
this.wxLoading = true;
this.apipost(
"TaskManagemnet_get_GetWeiXinShare", {
ConfigId: this.list[key].ConfigID,
TCID: this.list[key].TCID,
},
(res) => {
if (res.data.resultCode == 1) {
let url = res.data.data;
this.list[key].wxImage = url;
this.wxLoading = false;
} else {
this.$message.error("二维码获取失败");
}
},
(err) => {}
);
}
},
toTrip(obj) {
this.tripObj.tcid = obj.TCID;
this.tripObj.configId = obj.ConfigID;
this.tripObj.cityId = obj.StartCityID;
this.tripObj.orderId = 0;
this.travelControlTripLayerShow = true;
},
hideTripDown() {
this.travelControlTripLayerShow = false;
},
goUrl(id, tcmun) {
let path;
if (this.pagesTitle == "跟团游产品") {
path = "groupTourOrderByTuan";
}
if (this.pagesTitle == "当地游产品") {
path = "groupTourOrderByTuanOne";
}
this.$router.push({
name: path,
query: {
id: id,
tcmun: tcmun,
blank: "y",
tab: "团报名清单",
},
});
},
goUrlX(item) {
this.$router.push({
name: "GroupAdvertising",
query: {
LineID: item.LineID,
TCID: item.TCID,
blank: "y",
tab: "团期广告",
},
});
},
//获取航班详情
getDetails(index) {
this.tripDetails = this.list[index].flightList;
},
goBuy(obj) {
this.teamInfo = obj;
this.isShowTeamOrder = true;
},
// 产品详情
getTitledetail(item) {
if (this.pagesTitle == "跟团游产品") {
this.getJourney(item.ConfigID, item.TCID, item.LineName);
}
if (this.pagesTitle == "当地游产品") {
this.goB2Bdetail(item.ConfigID, item.TCID);
}
},
goB2Bdetail(ConfigId, tcid) {
var B2BDomain = this.CurrentUserInfo.B2BDomain; //'www.oytour.com';
this.$tripUtils.GotoB2BPage(
B2BDomain,
encodeURIComponent(ConfigId),
tcid
);
},
getJourney(id, TCID, title) {
var that = this;
this.tripTitle = title;
this.$nextTick(() => {
that.$refs.comTeam.GetTrip(id, TCID);
});
that.outerVisible = true;
},
clickHotel(TCID, LineId, LineteamId) {
var msg = {
TCID: TCID,
LineId: LineId,
LineteamId: LineteamId,
};
this.apipost(
"b2b_post_SetHotelClickService",
msg,
(res) => {
if (res.data.resultCode == 1) {}
},
(err) => {}
);
},
//直客版行程
goB2B(item) {
var B2BDomain = this.CurrentUserInfo.B2BDomain;
this.$tripUtils.GotoB2CPage(B2BDomain, item.ConfigID, item.TCID);
},
}, },
//直客版行程 mounted() {
goB2B(item) { this.getEmployeeList();
var B2BDomain = this.CurrentUserInfo.B2BDomain; this.userInfo = this.getLocalStorage();
this.$tripUtils.GotoB2CPage(B2BDomain, item.ConfigID, item.TCID); this.GetSupperOrderEditAuth(); //分享权限
this.qjGroupId = this.QjGroupId();
this.CurrentUserInfo = this.userInfo;
this.userId = this.userInfo.EmployeeId;
if (this.$route.query.TCIDList) {
this.TCIDList = this.$route.query.TCIDList;
}
}, },
}, };
mounted() {
this.getEmployeeList();
this.userInfo = this.getLocalStorage();
this.GetSupperOrderEditAuth(); //分享权限
this.qjGroupId = this.QjGroupId();
this.CurrentUserInfo = this.userInfo;
this.userId = this.userInfo.EmployeeId;
if (this.$route.query.TCIDList) {
this.TCIDList = this.$route.query.TCIDList;
}
},
};
</script> </script>
\ No newline at end of file
...@@ -524,7 +524,6 @@ ...@@ -524,7 +524,6 @@
}, },
}, },
mounted() { mounted() {
console.log('this.router', this.$route, this.$router)
if(this.$route.path === '/productOrderList') { if(this.$route.path === '/productOrderList') {
this.isVisa = false this.isVisa = false
} else { } else {
......
...@@ -193,7 +193,6 @@ ...@@ -193,7 +193,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;
} }
......
...@@ -159,7 +159,6 @@ ...@@ -159,7 +159,6 @@
return currencyNumList return currencyNumList
} }
this.postData.TravelState = type; this.postData.TravelState = type;
// console.log('this.postData', this.postData, this.postData.LineId)
// 线路必填 // 线路必填
if(!this.postData.LineId) { if(!this.postData.LineId) {
this.$message.error('请选择线路') this.$message.error('请选择线路')
......
<style scoped> <style scoped>
.groupTourOrder_count_item > p > span { .groupTourOrder_count_item>p>span {
margin: 0; margin: 0;
} }
.color_red_order {
color: red;
}
.HT_total {
display: flex;
flex-direction: column;
margin: 5px 0;
}
.HT_total p {
width: 100%;
display: block;
}
.HT_total p > span {
float: left;
display: inline-block;
width: 25%;
}
.TC_leftSearch > div {
padding: 5px 0;
}
.groupTourOrderByTuan_ico {
margin-left: 5px;
}
.groupTourOrderByTuan_ico > i {
display: inline-block;
margin: 0 5px 0 0;
width: 8px;
height: 8px;
border-radius: 2px;
vertical-align: middle;
}
.HotelWorkList .has-gutter tr th,
.el-table th.is-leaf {
background-color: #eaeaea !important;
}
.HotelWorkList .HW_hotelDialog { .color_red_order {
width: 900px; color: red;
} }
.HotelWorkList .Hw_tableOne { .HT_total {
width: 100%; display: flex;
height: 40px; flex-direction: column;
background-color: #eaeaea; margin: 5px 0;
} }
.HotelWorkList .Hw_tableOne th { .HT_total p {
text-align: center; width: 100%;
} display: block;
}
.HotelWorkList .HotelWorkInput .el-input { .HT_total p>span {
width: 223px; float: left;
} display: inline-block;
width: 25%;
}
.TC_leftSearch>div {
padding: 5px 0;
}
.groupTourOrderByTuan_ico {
margin-left: 5px;
}
.groupTourOrderByTuan_ico>i {
display: inline-block;
margin: 0 5px 0 0;
width: 8px;
height: 8px;
border-radius: 2px;
vertical-align: middle;
}
.HotelWorkList .has-gutter tr th,
.el-table th.is-leaf {
background-color: #eaeaea !important;
}
.HotelWorkList .HW_hotelDialog {
width: 900px;
}
.HotelWorkList .Hw_tableOne {
width: 100%;
height: 40px;
background-color: #eaeaea;
}
.HotelWorkList .Hw_tableOne th {
text-align: center;
}
.HotelWorkList .HotelWorkInput .el-input {
width: 223px;
}
.HotelWorkList .HworkInput .el-input {
width: 210px;
}
/deep/.query-box li span>em {
min-width: 60px;
}
.HotelWorkList .HworkInput .el-input {
width: 210px;
}
/deep/.query-box li span > em {
min-width: 60px;
}
</style> </style>
<template> <template>
<div class="HotelWorkList"> <div class="HotelWorkList">
<div class="query-box HotelWorkInput" style="border-bottom: none"> <div class="query-box HotelWorkInput" style="border-bottom: none">
<ul> <ul>
<li> <li>
<span> <span>
<em>公司</em> <em>公司</em>
<el-select <el-select filterable v-model="queryMsg.RB_Branch_Id" @change="getDepartment">
filterable <el-option :value="-1" :label="$t('pub.unlimitedSel')"></el-option>
v-model="queryMsg.RB_Branch_Id" <el-option v-for="item in CompanyList" :label="item.BName" :value="item.Id" :key="item.Id"></el-option>
@change="getDepartment"
>
<el-option
:value="-1"
:label="$t('pub.unlimitedSel')"
></el-option>
<el-option
v-for="item in CompanyList"
:label="item.BName"
:value="item.Id"
:key="item.Id"
></el-option>
</el-select> </el-select>
</span> </span>
</li> </li>
<li> <li>
<span> <span>
<em>部门</em> <em>部门</em>
<el-select <el-select filterable v-model="queryMsg.RB_Department_Id" @change="getEmployee">
filterable
v-model="queryMsg.RB_Department_Id"
@change="getEmployee"
>
<el-option :value="0" :label="$t('pub.unlimitedSel')"></el-option> <el-option :value="0" :label="$t('pub.unlimitedSel')"></el-option>
<el-option <el-option v-for="item in DepartmentList" :label="item.DepartmentName" :value="item.DepartmentID"
v-for="item in DepartmentList" :key="item.DepartmentID"></el-option>
:label="item.DepartmentName"
:value="item.DepartmentID"
:key="item.DepartmentID"
></el-option>
</el-select> </el-select>
</span> </span>
</li> </li>
...@@ -112,49 +102,30 @@ ...@@ -112,49 +102,30 @@
<em>人员</em> <em>人员</em>
<el-select filterable v-model="queryMsg.EnterID" class> <el-select filterable v-model="queryMsg.EnterID" class>
<el-option :value="0" :label="$t('pub.unlimitedSel')"></el-option> <el-option :value="0" :label="$t('pub.unlimitedSel')"></el-option>
<el-option <el-option v-for="item in EmployeeList" :label="item.EmName" :value="item.EmployeeId"
v-for="item in EmployeeList" :key="item.EmployeeId"></el-option>
:label="item.EmName"
:value="item.EmployeeId"
:key="item.EmployeeId"
></el-option>
</el-select> </el-select>
</span> </span>
</li> </li>
<li> <li>
<span> <span>
<em>出团日期</em> <em>出团日期</em>
<el-date-picker <el-date-picker v-model="queryMsg.tStartDates" type="daterange" range-separator="-"
v-model="queryMsg.tStartDates" :start-placeholder="$t('hotel.hotel_StartDate')" :end-placeholder="$t('hotel.hotel_EndDate')"
type="daterange" value-format="yyyy-MM-dd" :picker-options="pickerOptions"></el-date-picker>
range-separator="-"
:start-placeholder="$t('hotel.hotel_StartDate')"
:end-placeholder="$t('hotel.hotel_EndDate')"
value-format="yyyy-MM-dd"
:picker-options="pickerOptions"
></el-date-picker>
</span> </span>
</li> </li>
<li> <li>
<span> <span>
<em>报名日期</em> <em>报名日期</em>
<el-date-picker <el-date-picker v-model="queryMsg.qStartDates" type="daterange" range-separator="-"
v-model="queryMsg.qStartDates" :start-placeholder="$t('hotel.hotel_StartDate')" :end-placeholder="$t('hotel.hotel_EndDate')"
type="daterange" value-format="yyyy-MM-dd"></el-date-picker>
range-separator="-"
:start-placeholder="$t('hotel.hotel_StartDate')"
:end-placeholder="$t('hotel.hotel_EndDate')"
value-format="yyyy-MM-dd"
></el-date-picker>
</span> </span>
</li> </li>
<li> <li>
<input <input type="button" class="normalBtn" :value="$t('pub.searchBtn')"
type="button" @click.stop="(msg.pageIndex = 1), (currentPage = 1), GetList()" />
class="normalBtn"
:value="$t('pub.searchBtn')"
@click.stop="(msg.pageIndex = 1), (currentPage = 1), GetList()"
/>
</li> </li>
</ul> </ul>
</div> </div>
...@@ -168,24 +139,20 @@ ...@@ -168,24 +139,20 @@
<span>{{ item.CurrencyName }}</span> <span>{{ item.CurrencyName }}</span>
</div> </div>
<p> <p>
<span <span>销售额:
>销售额:
{{ (item.SumPreferPrice|| 0).toFixed(2) }} {{ (item.SumPreferPrice|| 0).toFixed(2) }}
</span> </span>
<span <span>收款金额:
>收款金额:
{{ (item.Income|| 0).toFixed(2) }} {{ (item.Income|| 0).toFixed(2) }}
</span> </span>
<!-- <span <!-- <span
>手续费: >手续费:
{{ item.PlatformTax.toFixed(2) }} {{ item.PlatformTax.toFixed(2) }}
</span> --> </span> -->
<span <span>未收金额:
>未收金额:
{{ (item.notInCome|| 0).toFixed(2) }} {{ (item.notInCome|| 0).toFixed(2) }}
</span> </span>
<span <span>正常收客数:
>正常收客数:
{{ item.TotalGuestNum }} {{ item.TotalGuestNum }}
</span> </span>
<!-- <span <!-- <span
...@@ -198,442 +165,435 @@ ...@@ -198,442 +165,435 @@
</template> </template>
</el-row> </el-row>
</div> </div>
<OrderList <OrderList :pagesTitle="Title" :OrderList="OrderList" v-loading="loading" @success="(msg.pageIndex = 1), GetList()">
:pagesTitle="Title"
:OrderList="OrderList"
v-loading="loading"
@success="(msg.pageIndex = 1), GetList()"
>
</OrderList> </OrderList>
<div <div v-if="OrderList && OrderList.length == 0" style="text-align: center; padding: 100px">
v-if="OrderList && OrderList.length == 0"
style="text-align: center; padding: 100px"
>
暂无数据 暂无数据
</div> </div>
<el-pagination <el-pagination v-if="OrderList && OrderList.length > 0" background @current-change="handleCurrentChange"
v-if="OrderList && OrderList.length > 0" :current-page.sync="currentPage" layout="total,prev, pager, next, jumper" :page-size="msg.pageSize"
background :total="total">
@current-change="handleCurrentChange"
:current-page.sync="currentPage"
layout="total,prev, pager, next, jumper"
:page-size="msg.pageSize"
:total="total"
>
</el-pagination> </el-pagination>
</div> </div>
</template> </template>
<script> <script>
import OrderList from "./OrderList.vue"; import OrderList from "./OrderList.vue";
export default { export default {
props: ["pagesTitle", "dataObj"], props: ["pagesTitle", "dataObj"],
components: { OrderList }, components: {
data() { OrderList
return { },
pickerOptions: { data() {
disabledDate(time) { return {
return time < new Date("2023-01-01"); pickerOptions: {
disabledDate(time) {
return time < new Date("2023-01-01");
},
}, },
}, CompanyList: [],
CompanyList: [], DepartmentList: [],
DepartmentList: [], showWarningSearch: false,
showWarningSearch: false, TotalMsg: null,
TotalMsg: null, MultipleChoiceList: [
MultipleChoiceList: [ //多选项目
//多选项目 {
{ Name: "机票",
Name: "机票", Id: "1",
Id: "1", },
{
Name: "签证",
Id: "2",
},
{
Name: "地接",
Id: "3",
},
{
Name: "套餐",
Id: "4",
},
{
Name: "其他",
Id: "5",
},
],
userInfo: {},
HotelList: [],
loading: false,
isShow: false,
outerVisible: false,
//订单列表
OrderList: [],
//默认高度
tableHeight: 0,
queryMsg: {
RB_Branch_Id: -1,
RB_Department_Id: 0,
EnterID: 0,
tStartDates: [],
qStartDates: [],
QueryType: 0,
}, },
{ getCompanyMsg: {
Name: "签证", // 公司
Id: "2", RB_Group_Id: "0",
Status: "0",
}, },
{ getDepartmentMsg: {
Name: "地接", // 部门
Id: "3", RB_Group_Id: "",
RB_Branch_Id: "",
Status: 0,
ParentId: -1,
Tier: 0,
}, },
{ employeeMsg: {
Name: "套餐", // 员工
Id: "4", GroupId: "",
BranchId: -1,
DepartmentId: 0,
PostId: 0,
IsLeave: 0,
}, },
{ msg: {
Name: "其他", pageIndex: 1,
Id: "5", pageSize: 15,
OrderId: "", //订单id
GuestId: 0, //客人id
EnterId: 0, //业务员id
OrderState: "1", //订单状态
Q_IsCollect: "0", //收款状态
StartTime: "", //报名开始日期
EndTime: "", //报名结束日期
FinishSTime: "", //完结开始时间
FinishETime: "", //完结结束时间
DepartSTime: "", //出发开始
DepartETime: "", //出发结束
TCNUM: "", //团号
ProductName: "", //商品名称
CustomerName: "", //客户名称
LureEmpId: 0, //引流人员
LineId: 0, //线路
TravelType: 0, //跟团类型 1跟团 2当地游
OrderType: "0", //订单类型
IsSelectCRM: 0, //1来源crm
IsMyOrder: 1, //1我的订单
}, },
], total: 0,
userInfo: {}, currentPage: 1,
HotelList: [], OrderTypeList: [],
loading: false, OrderStateType: [{
isShow: false, Name: "接机",
outerVisible: false, ID: "1"
//订单列表 },
OrderList: [], {
//默认高度 Name: "送机",
tableHeight: 0, ID: "2"
queryMsg: { },
RB_Branch_Id: -1, {
RB_Department_Id: 0, Name: "包车",
EnterID: 0, ID: "3"
tStartDates: [], },
qStartDates: [], ],
QueryType: 0, orderType: [{
}, Name: this.$t("OrderList.orderType.tour"),
getCompanyMsg: { ID: "1"
// 公司 },
RB_Group_Id: "0", {
Status: "0", Name: this.$t("OrderList.orderType.guest"),
}, ID: "2"
getDepartmentMsg: { },
// 部门 ],
RB_Group_Id: "", Datelist: "",
RB_Branch_Id: "", DatelistUse: "",
Status: 0, DatelistBM: [],
ParentId: -1, Title: "",
Tier: 0, EmployeeList: [],
employeeMsg: {
// 员工
GroupId: "",
BranchId: -1,
DepartmentId: 0,
PostId: 0,
IsLeave: 0,
},
SummaryList: [],
};
},
watch: {
pagesTitle(val, oldval) {
this.Title = val;
}, },
employeeMsg: { dataObj: {
// 员工 handler(val, oldVal) {
GroupId: "", this.msg.OrderType = val.tab;
BranchId: -1, this.msg.OrderId = val.OrderId;
DepartmentId: 0, this.GetList();
PostId: 0, },
IsLeave: 0, deep: true,
}, },
msg: { },
pageIndex: 1, methods: {
pageSize: 15, getCompanyList() {
OrderId: "", //订单id //获取公司列表
GuestId: 0, //客人id this.apipost(
EnterId: 0, //业务员id "admin_get_BranchGetList",
OrderState: "1", //订单状态 this.getCompanyMsg,
Q_IsCollect: "0", //收款状态 (res) => {
StartTime: "", //报名开始日期 if (res.data.resultCode == 1) {
EndTime: "", //报名结束日期 this.CompanyList = res.data.data;
FinishSTime: "", //完结开始时间 } else {}
FinishETime: "", //完结结束时间 },
DepartSTime: "", //出发开始 (err) => {}
DepartETime: "", //出发结束 );
TCNUM: "", //团号
ProductName: "", //商品名称
CustomerName: "", //客户名称
LureEmpId: 0, //引流人员
LineId: 0, //线路
TravelType: 0, //跟团类型 1跟团 2当地游
OrderType: "0", //订单类型
IsSelectCRM: 0, //1来源crm
IsMyOrder: 1, //1我的订单
}, },
total: 0, getDepartment(bool) {
currentPage: 1, //部门
OrderTypeList: [], if (bool) {
OrderStateType: [ this.queryMsg.RB_Department_Id = 0;
{ Name: "接机", ID: "1" }, this.queryMsg.EnterID = 0;
{ Name: "送机", ID: "2" }, this.DepartmentList = [];
{ Name: "包车", ID: "3" }, this.EmployeeList = [];
], }
orderType: [ this.getDepartmentMsg.RB_Branch_Id = this.queryMsg.RB_Branch_Id;
{ Name: this.$t("OrderList.orderType.tour"), ID: "1" }, if (this.queryMsg.RB_Branch_Id != -1) {
{ Name: this.$t("OrderList.orderType.guest"), ID: "2" }, this.apipost(
], "admin_get_DepartmentGetList",
Datelist: "", this.getDepartmentMsg,
DatelistUse: "", (res) => {
DatelistBM: [], if (res.data.resultCode == 1) {
Title: "", this.DepartmentList = res.data.data;
EmployeeList: [], }
employeeMsg: { },
// 员工 (err) => {}
GroupId: "", );
BranchId: -1, }
DepartmentId: 0,
PostId: 0,
IsLeave: 0,
}, },
SummaryList: [], getEmployee(bool) {
}; if (bool) {
}, this.queryMsg.EnterID = 0;
watch: { this.EmployeeList = [];
pagesTitle(val, oldval) { }
this.Title = val; this.employeeMsg.DepartmentId = this.queryMsg.RB_Department_Id;
}, //员工
dataObj: { this.apipost(
handler(val, oldVal) { "admin_get_EmployeeGetList",
this.msg.OrderType = val.tab; this.employeeMsg,
this.msg.OrderId = val.OrderId; (res) => {
this.GetList(); if (res.data.resultCode == 1) {
this.EmployeeList = res.data.data;
}
},
(err) => {}
);
}, },
deep: true, GetOrderTypeEnumList() {
}, this.apipost("CarSingle_post_GetOrderTypeEnumList", {}, (res) => {
},
methods: {
getCompanyList() {
//获取公司列表
this.apipost(
"admin_get_BranchGetList",
this.getCompanyMsg,
(res) => {
console.log("getCompanyList", res);
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.CompanyList = res.data.data; this.OrderTypeList = res.data.data;
let data = {
Name: "不限",
Id: "0",
};
this.OrderTypeList.unshift(data);
} else { } else {
this.$message.error(res.data.message);
} }
}, });
(err) => {} },
); getDatesBM() {
}, if (this.DatelistBM) {
getDepartment(bool) { this.msg.StartTime = this.DatelistBM[0];
//部门 this.msg.EndTime = this.DatelistBM[1];
if (bool) { }
this.queryMsg.RB_Department_Id = 0; if (!this.DatelistBM) {
this.queryMsg.EnterID = 0; this.msg.StartTime = "";
this.DepartmentList = []; this.msg.EndTime = "";
this.EmployeeList = []; }
} },
this.getDepartmentMsg.RB_Branch_Id = this.queryMsg.RB_Branch_Id; getDatesUse() {
if (this.queryMsg.RB_Branch_Id != -1) { if (this.DatelistUse) {
this.msg.DepartSTime = this.DatelistUse[0];
this.msg.DepartETime = this.DatelistUse[1];
}
if (!this.DatelistUse) {
this.msg.DepartSTime = "";
this.msg.DepartETime = "";
}
},
getDates() {
if (this.Datelist) {
this.msg.FinishSTime = this.Datelist[0];
this.msg.FinishETime = this.Datelist[1];
}
if (!this.Datelist) {
this.msg.FinishSTime = "";
this.msg.FinishETime = "";
}
},
setEdate() {
return this.addMoth(new Date().Format("yyyy-MM-dd"), 1);
},
addMoth(d, m) {
let ds = d.split("-"),
_d = ds[2] - 0;
let nextM = new Date(ds[0], ds[1] - 1 + m + 1, 0);
let max = nextM.getDate();
d = new Date(ds[0], ds[1] - 1 + m, _d > max ? max : _d);
return d.toLocaleDateString().match(/\d+/g).join("-");
},
getyMDOne() {
let myDate = new Date();
let myYear = myDate.getFullYear(); //获取完整的年份(4位,1970-????)
let myMonth = myDate.getMonth() + 1; //获取当前月份(0-11,8代表1月)
let myToday = myDate.getDate(); //获取当前日(1-31)
myMonth = myMonth > 9 ? myMonth : "0" + myMonth;
myToday = myToday > 9 ? myToday : "0" + myToday;
let nowDate = myYear + "-" + myMonth + "-01";
return nowDate;
},
getyMDTwo() {
let myDate = new Date();
let myYear = myDate.getFullYear(); //获取完整的年份(4位,1970-????)
let myMonth = myDate.getMonth() + 1; //获取当前月份(0-11,8代表1月)
let myToday = myDate.getDate(); //获取当前日(1-31)
myMonth = myMonth > 9 ? myMonth : "0" + myMonth;
myToday = myToday > 9 ? myToday : "0" + myToday;
let nowDate = myYear + "-" + myMonth + "-" + myToday;
return nowDate;
},
getParams() {
let param = {
pageIndex: this.msg.pageIndex,
pageSize: 15,
RB_Branch_Id: this.queryMsg.RB_Branch_Id == -1 ? null : this.queryMsg.RB_Branch_Id,
RB_Department_Id: this.queryMsg.RB_Department_Id == 0 ?
null :
this.queryMsg.RB_Department_Id,
EnterID: this.queryMsg.EnterID == 0 ? null : this.queryMsg.EnterID,
QStartDate: this.queryMsg.tStartDates && this.queryMsg.tStartDates.length == 2 ?
this.queryMsg.tStartDates[0] :
null,
QEndDate: this.queryMsg.tStartDates && this.queryMsg.tStartDates.length == 2 ?
this.queryMsg.tStartDates[1] :
null,
CStartDate: this.queryMsg.qStartDates && this.queryMsg.qStartDates.length == 2 ?
this.queryMsg.qStartDates[0] :
null,
CEndDate: this.queryMsg.qStartDates && this.queryMsg.qStartDates.length == 2 ?
this.queryMsg.qStartDates[1] :
null,
GroupBy: this.queryMsg.GroupBy,
QueryType: this.queryMsg.QueryType,
};
if (!param.QStartDate) {
param.QStartDate = "2023-01-01";
}
return param;
},
//获取酒店订单列表
GetList() {
this.loading = true;
let url = "sellorder_get_GetSalesVolumeRankDetail";
let param = this.getParams();
this.apipost( this.apipost(
"admin_get_DepartmentGetList", url,
this.getDepartmentMsg, param,
(res) => { (res) => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.DepartmentList = res.data.data; this.getSummaryData();
let data = res.data.data.pageData;
this.OrderList = data;
this.total = res.data.data.count;
// this.TotalMsg = res.data.data.StatModel
} else {
this.Error(res.data.message);
} }
this.loading = false;
}, },
(err) => {} (err) => {
this.loading = false;
}
); );
} },
}, getSummaryData() {
getEmployee(bool) { if (this.msg.pageIndex != 1) {
if (bool) { return
this.queryMsg.EnterID = 0; }
this.EmployeeList = []; let param = this.getParams();
} delete param.pageIndex
this.employeeMsg.DepartmentId = this.queryMsg.RB_Department_Id; delete param.pageSize
//员工 this.apipost(
this.apipost( "sellorder_get_GetSalesVolumeRankDetailStatistics",
"admin_get_EmployeeGetList", param,
this.employeeMsg, (res) => {
(res) => { if (res.data.resultCode == 1) {
if (res.data.resultCode == 1) { let data = res.data.data;
this.EmployeeList = res.data.data; this.SummaryList = [data];
} else {
this.$message.error(res.data.message);
}
} }
}, );
(err) => {} },
); handleCurrentChange(val) {
}, this.msg.pageIndex = val;
GetOrderTypeEnumList() { this.GetList();
this.apipost("CarSingle_post_GetOrderTypeEnumList", {}, (res) => { },
if (res.data.resultCode == 1) { com_onresize() {
this.OrderTypeList = res.data.data; //clientHeight的值由DIV内容的实际高度和CSS中的padding值决定,
let data = { var contentsHeight = document.body.clientHeight;
Name: "不限", var h = contentsHeight - 50 - 180 - 40;
Id: "0", if (h < 110) {
}; return;
this.OrderTypeList.unshift(data);
} else {
this.$message.error(res.data.message);
} }
}); //设置table的行高
}, this.tableHeight = h;
getDatesBM() { },
if (this.DatelistBM) {
this.msg.StartTime = this.DatelistBM[0];
this.msg.EndTime = this.DatelistBM[1];
}
if (!this.DatelistBM) {
this.msg.StartTime = "";
this.msg.EndTime = "";
}
}, },
getDatesUse() { created() {
if (this.DatelistUse) { if (this.$route.query.OrderId) {
this.msg.DepartSTime = this.DatelistUse[0]; this.msg.OrderId = this.$route.query.OrderId;
this.msg.DepartETime = this.DatelistUse[1];
}
if (!this.DatelistUse) {
this.msg.DepartSTime = "";
this.msg.DepartETime = "";
} }
let userInfo = this.getLocalStorage();
this.employeeMsg.GroupId = userInfo.RB_Group_id; //集团ID
}, },
getDates() { mounted() {
if (this.Datelist) { this.getCompanyMsg.RB_Group_Id = this.getLocalStorage().RB_Group_id;
this.msg.FinishSTime = this.Datelist[0]; this.getDepartmentMsg.RB_Group_Id = this.getLocalStorage().RB_Group_id;
this.msg.FinishETime = this.Datelist[1]; this.employeeMsg.employeeMsg = this.getLocalStorage().RB_Group_id;
} const {
if (!this.Datelist) { BranchId = 0, EnterID = 0, RB_Department_Id = 0, tStartDates = [], qStartDates = []
this.msg.FinishSTime = ""; } = this.$route.query;
this.msg.FinishETime = ""; this.queryMsg.RB_Branch_Id = Number(BranchId);
this.queryMsg.EnterID = Number(EnterID);
this.queryMsg.RB_Department_Id = Number(RB_Department_Id);
this.queryMsg.tStartDates = tStartDates;
this.queryMsg.qStartDates = qStartDates;
this.getCompanyList();
if (this.queryMsg.RB_Branch_Id >= 0) {
this.getDepartment(false);
} }
}, if (this.queryMsg.RB_Department_Id) {
setEdate() { this.getEmployee(false);
return this.addMoth(new Date().Format("yyyy-MM-dd"), 1);
},
addMoth(d, m) {
let ds = d.split("-"),
_d = ds[2] - 0;
let nextM = new Date(ds[0], ds[1] - 1 + m + 1, 0);
let max = nextM.getDate();
d = new Date(ds[0], ds[1] - 1 + m, _d > max ? max : _d);
return d.toLocaleDateString().match(/\d+/g).join("-");
},
getyMDOne() {
let myDate = new Date();
let myYear = myDate.getFullYear(); //获取完整的年份(4位,1970-????)
let myMonth = myDate.getMonth() + 1; //获取当前月份(0-11,8代表1月)
let myToday = myDate.getDate(); //获取当前日(1-31)
myMonth = myMonth > 9 ? myMonth : "0" + myMonth;
myToday = myToday > 9 ? myToday : "0" + myToday;
let nowDate = myYear + "-" + myMonth + "-01";
return nowDate;
},
getyMDTwo() {
let myDate = new Date();
let myYear = myDate.getFullYear(); //获取完整的年份(4位,1970-????)
let myMonth = myDate.getMonth() + 1; //获取当前月份(0-11,8代表1月)
let myToday = myDate.getDate(); //获取当前日(1-31)
myMonth = myMonth > 9 ? myMonth : "0" + myMonth;
myToday = myToday > 9 ? myToday : "0" + myToday;
let nowDate = myYear + "-" + myMonth + "-" + myToday;
return nowDate;
},
getParams() {
let param = {
pageIndex: this.msg.pageIndex,
pageSize: 15,
RB_Branch_Id:
this.queryMsg.RB_Branch_Id == -1 ? null : this.queryMsg.RB_Branch_Id,
RB_Department_Id:
this.queryMsg.RB_Department_Id == 0
? null
: this.queryMsg.RB_Department_Id,
EnterID: this.queryMsg.EnterID == 0 ? null : this.queryMsg.EnterID,
QStartDate:
this.queryMsg.tStartDates && this.queryMsg.tStartDates.length == 2
? this.queryMsg.tStartDates[0]
: null,
QEndDate:
this.queryMsg.tStartDates && this.queryMsg.tStartDates.length == 2
? this.queryMsg.tStartDates[1]
: null,
CStartDate:
this.queryMsg.qStartDates && this.queryMsg.qStartDates.length == 2
? this.queryMsg.qStartDates[0]
: null,
CEndDate:
this.queryMsg.qStartDates && this.queryMsg.qStartDates.length == 2
? this.queryMsg.qStartDates[1]
: null,
GroupBy: this.queryMsg.GroupBy,
QueryType: this.queryMsg.QueryType,
};
if (!param.QStartDate) {
param.QStartDate = "2023-01-01";
}
return param;
},
//获取酒店订单列表
GetList() {
this.loading = true;
let url = "sellorder_get_GetSalesVolumeRankDetail";
let param = this.getParams();
this.apipost(
url,
param,
(res) => {
if (res.data.resultCode == 1) {
this.getSummaryData();
let data = res.data.data.pageData;
this.OrderList = data;
this.total = res.data.data.count;
// this.TotalMsg = res.data.data.StatModel
} else {
this.Error(res.data.message);
}
this.loading = false;
},
(err) => {
this.loading = false;
}
);
},
getSummaryData() {
if(this.msg.pageIndex != 1) {
return
} }
let param = this.getParams(); this.Title = this.pagesTitle;
delete param.pageIndex this.msg.StartTime = this.getBeforeDate(0, new Date());
delete param.pageSize this.msg.EndTime = this.getBeforeDate(0, new Date());
this.apipost( this.DatelistBM = [new Date(this.msg.StartTime), new Date()];
"sellorder_get_GetSalesVolumeRankDetailStatistics", // this.GetOrderStatusEnumList()//订单状态
param, // this.GetTicketStatusEnumList()//出票状态
(res) => { this.GetOrderTypeEnumList();
if (res.data.resultCode == 1) { this.Datelist = this.getyMDOne();
let data = res.data.data; this.userInfo = this.getLocalStorage();
this.SummaryList = [data];
} else {
this.$message.error(res.data.message);
}
}
);
},
handleCurrentChange(val) {
this.msg.pageIndex = val;
this.GetList(); this.GetList();
},
com_onresize() {
//clientHeight的值由DIV内容的实际高度和CSS中的padding值决定,
var contentsHeight = document.body.clientHeight;
var h = contentsHeight - 50 - 180 - 40;
if (h < 110) {
return;
}
//设置table的行高
this.tableHeight = h;
},
},
created() {
if (this.$route.query.OrderId) {
this.msg.OrderId = this.$route.query.OrderId;
}
let userInfo = this.getLocalStorage();
this.employeeMsg.GroupId = userInfo.RB_Group_id; //集团ID
// this.msg.EnterID = userInfo.EmployeeId;
},
mounted() {
this.getCompanyMsg.RB_Group_Id = this.getLocalStorage().RB_Group_id;
this.getDepartmentMsg.RB_Group_Id = this.getLocalStorage().RB_Group_id;
this.employeeMsg.employeeMsg = this.getLocalStorage().RB_Group_id;
const { BranchId = 0, EnterID = 0, RB_Department_Id = 0, tStartDates = [],qStartDates=[] } = this.$route.query;
console.log("this.$route.query.", this.$route);
this.queryMsg.RB_Branch_Id = Number(BranchId);
this.queryMsg.EnterID = Number(EnterID);
this.queryMsg.RB_Department_Id = Number(RB_Department_Id);
this.queryMsg.tStartDates = tStartDates;
this.queryMsg.qStartDates = qStartDates;
this.getCompanyList();
if (this.queryMsg.RB_Branch_Id >= 0) {
this.getDepartment(false);
}
if (this.queryMsg.RB_Department_Id) {
this.getEmployee(false);
}
this.Title = this.pagesTitle;
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()];
// this.GetOrderStatusEnumList()//订单状态
// this.GetTicketStatusEnumList()//出票状态
this.GetOrderTypeEnumList();
this.Datelist = this.getyMDOne();
this.userInfo = this.getLocalStorage();
this.GetList();
//自适应高度调节 //自适应高度调节
this.com_onresize();
window.onresize = () => {
this.com_onresize(); this.com_onresize();
}; window.onresize = () => {
}, this.com_onresize();
}; };
},
};
</script> </script>
\ No newline at end of file
...@@ -531,8 +531,7 @@ export default { ...@@ -531,8 +531,7 @@ export default {
settStartDates() { settStartDates() {
let date = moment().format('yyyy-MM-DD') let date = moment().format('yyyy-MM-DD')
let start = moment().subtract(1, 'months').format('yyyy-MM-DD') let start = moment().subtract(1, 'months').format('yyyy-MM-DD')
this.msg.tStartDates = [start, date] this.msg.tStartDates = [start, date]
console.log('settStartDates',date,start)
}, },
handleClick(tab, event) { handleClick(tab, event) {
this.msg.EnterID = 0; this.msg.EnterID = 0;
......
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