123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615 |
- <template>
- <div>
-
- <div class="tabular-all">
- <div class="list-groups">
- <div class="groups-list">
- <div class="list-title">
- <div>团组列表</div>
- <div class="search-box">
- <el-input
- placeholder="请输入内容"
- v-model="input"
- @input="Inquireclick()"
- clearable>
- </el-input>
-
- </div>
- </div>
- <template>
- <el-table
- :data="groupDatas.slice((currentPage-1)*pageSize,currentPage*pageSize)"
- border
- style="width: 100%">
- <el-table-column
- prop="teamName"
- label="团组名"
- width="350">
- </el-table-column>
- <el-table-column
- prop="clientUnit"
- label="团组单位">
- </el-table-column>
- <el-table-column
- width="120"
- prop="visitDate"
- :formatter="filteryear"
- label="出访时间">
- </el-table-column>
- <el-table-column width="80" label="管控">
- <template slot-scope="scope">
- <el-button type="primary" size="mini" @click="handleEdit(scope.$index, scope.row)">
- <i class="iconfont icon-xianchangguankong"></i>
- </el-button>
- </template>
- </el-table-column>
- </el-table>
- </template>
- <div class="block">
- <el-pagination align='center'
- @size-change="handleSizeChange"
- @current-change="handleCurrentChange"
- :current-page="currentPage"
- :page-sizes="[8,10,15,20]"
- :page-size="pageSize"
- layout="total, sizes, prev, pager, next"
- :total="groupDatas.length">
- </el-pagination>
- </div>
- </div>
- <div class="sources-ul">
- <div class="sources-li" @click="shortcutlink('/MCR')">
- <div class="sources-tlite">
- <p>市场客户资源</p>
- </div>
- <div class="sources-icon">
- <i class="iconfont icon-shichangbu"></i>
- </div>
- </div>
- <div class="sources-li" @click="shortcutlink('/LocalGuide')">
- <div class="sources-tlite">
- <p>车导地接资源</p>
- </div>
- <div class="sources-icon">
- <i class="iconfont icon-dijie"></i>
- </div>
- </div>
- <div class="sources-li">
- <div class="sources-tlite">
- <p>策划活动资源</p>
- </div>
- <div class="sources-icon">
- <i class="iconfont icon-xiangmucehua"></i>
- </div>
- </div>
- </div>
- </div>
- <div class="schedule-box">
- <div class="schedule">
-
- <div class="top" style="background: #fff; padding: 8px 6px">
- <div class="modelBox">
- <span class="radis"></span>
- </div>
- <div class="tabs" style="width: 100%">
- <FullCalendar ref="fullCalendar" :options="calendarOptions" class="demo-app-calendar" />
- </div>
- </div>
- </div>
- </div>
- </div>
- <div class="skip-text">
- <div v-if="userId==21" class="text-go">有{{wshcount}}条未审核日常付款申请 <span @click="shortcutlink('/DailyFeePayment')" style="color:#409eff;cursor: pointer;">前往审核</span></div>
- </div>
- </div>
- </template>
- <script>
- import FullCalendar from '@fullcalendar/vue'
- import dayGridPlugin from '@fullcalendar/daygrid'
- import timeGridPlugin from '@fullcalendar/timegrid'
- import interactionPlugin from '@fullcalendar/interaction'
- import zhCnLocale from '@fullcalendar/core/locales/zh-cn'
- import tippy from 'tippy.js';
- export default {
- components:{
- FullCalendar
- },
- data() {
- return {
- groupData: [
-
- ],
- groupDatas:[],
- currentPage: 1,
- pageSize: 8 ,
-
- calendarOptions: {
- plugins: [
-
- dayGridPlugin,
- timeGridPlugin,
- interactionPlugin,
- ],
- height: 660,
- width: 600,
- headerToolbar: {
-
- left: 'prev,next today',
- center: 'title',
- right: 'timeGridDay,timeGridWeek,dayGridMonth',
-
- },
- handleWindowResize: true,
- initialView: 'dayGridMonth',
-
-
-
-
-
- selectable: true,
-
- dayMaxEvents: true,
-
-
-
- eventMouseEnter: this.handleEventMouseEnter,
-
- dateClick: this.handleDateClick,
- eventClick: this.handleEventClick,
- locale: zhCnLocale,
- nextDayThreshold: '01:00:00',
- events: [
-
- { title: '雷怡', date: '2023-03-24 12:00:00',color:'#ff9900'},
- { title: '雷怡', date: '2023-03-24 15:00:00',color:'#ff9900'},
- { title: 'event 1', start: '2023-03-25 10:59:23',end:'2023-03-26 14:59:23' },
- { title: 'event 3', date: '2023-03-25 08:23:00' },
- { title: 'event 4', date: '2023-03-25 09:30:00' },
- { title: 'event 5', date: '2023-03-26 12:00:00' },
- { title: 'event 2', date: '2023-03-26 15:00:00' }
- ],
-
-
- },
- input: '',
- wshcount:0,
- userId:'',
- }
- },
- methods:{
-
- handleSizeChange(val) {
- this.currentPage = 1;
- this.pageSize = val;
- },
-
- handleCurrentChange(val) {
- this.currentPage = val;
- },
- handleEventMouseEnter(info) {
- console.log(info, 'yyyy')
- let col = info.event.borderColor
- let eve = info.event._def.extendedProps
- let category = info.event._def.extendedProps.category
- tippy(info.el, {
-
-
-
-
-
-
- content: `<div style='width: 260px;background-color:#FAFAFA;padding:5px;font-size:14px;z-index:99999;'>
- <div style='display:flex;color: #666666;overflow: hidden;' class="${ eve.category == 1 ? 'hidden' : ''}">
- <div><span style='display:inline-block;width:6px;height:6px;background-color:#318DDE;border-radius:50%;margin:0 5px;'></span>会议名称: </div>
- <div style="width:161px;white-space:normal;overflow: auto;table-layout:fixed; word-break: break-all; height:auto;display:inner-block">${info.event.title}</div>
- </div>
- <div style='color: #666666;overflow: hidden;' class="${ eve.category == 1 ? 'hidden' : ''}"><span style='display:inline-block;width:6px;height:6px;background-color:#318DDE;border-radius:50%;margin:0 5px;'></span>会议类型:${eve.type}</div>
- <div style='color: #666666;overflow: hidden;' class="${ eve.category == 1 ? 'hidden' : ''}"><span style='display:inline-block;width:6px;height:6px;background-color:#318DDE;border-radius:50%;margin:0 5px;'></span>会议时间:${eve.times}</div>
- <div style='color: #666666;overflow: hidden;' class="${ eve.category == 1 ? 'hidden' : ''}"><span style='display:inline-block;width:6px;height:6px;background-color:#318DDE;border-radius:50%;margin:0 5px;'></span>会议状态:${eve.status}</div>
- <div style='color: #666666;overflow: hidden;' class="${ eve.category == 0 ? 'hidden' : ''}"><span style='display:inline-block;width:6px;height:6px;background-color:#318DDE;border-radius:50%;margin:0 5px;'></span>年份:${eve.year}</div>
- <div style='color: #666666;overflow: hidden;' class="${ eve.category == 0 ? 'hidden' : ''}"><span style='display:inline-block;width:6px;height:6px;background-color:#318DDE;border-radius:50%;margin:0 5px;'></span>领域角色:${eve.depRoleName}</div>
- <div style='color: #666666;overflow: hidden;' class="${ eve.category == 0 ? 'hidden' : ''}"><span style='display:inline-block;width:6px;height:6px;background-color:#318DDE;border-radius:50%;margin:0 5px;'></span>姓名:${eve.name}</div>
- </div>`,
- theme: 'light',
-
- interactive: true,
- placement: 'top-start',
- allowHTML: true,
- zIndex: 99999,
- })
- },
- handleEventClick(info){
- console.log(info)
- },
- handleDateClick(inif){
-
- },
-
- shortcutlink(val){
- if(val=='/DailyFeePayment'){
- localStorage.setItem("Permissions",JSON.stringify([{"funid":1,"functionCode":"F00001","functionName":"查看"},{"funid":2,"functionCode":"F00002","functionName":"删除"},{"funid":3,"functionCode":"F00003","functionName":"编辑"},{"funid":4,"functionCode":"F00004","functionName":"下载"},{"funid":5,"functionCode":"F00005","functionName":"上传"},{"funid":11,"functionCode":"F00010","functionName":"添加"},{"funid":12,"functionCode":"F00006","functionName":"审核"}]))
- }
- this.$router.push({ path: "/home" + val });
- },
- Grouplist(){
- var url="/api/Groups/GetGroupList"
- var that=this
- that.fullscreenLoading = true;
- this.$axios({
- method: 'post',
- url:url,
- headers:{
- Authorization:'Bearer '+this.token
- },
- data:{
- portType: 1,
- }
- }).then(function(res){
- if(res.data.code==200){
- that.groupData=res.data.data
- that.groupData.forEach(item=>{
- if(item.clientName==null){
- item.clientName = ''
- }
- if(item.clientUnit==null){
- item.clientUnit = ''
- }
- if(item.id==null){
- item.id = ''
- }
- if(item.isSure==null){
- item.isSure = ''
- }
- if(item.jietuanOperator==null){
- item.jietuanOperator = ''
- }
- if(item.salesQuoteNo==null){
- item.salesQuoteNo = ''
- }
- if(item.teamName==null){
- item.teamName = ''
- }
- if(item.teamType==null){
- item.teamType = ''
- }
- if(item.tourCode==null){
- item.tourCode = ''
- }
- if(item.visitDate==null){
- item.visitDate = ''
- }
- if(item.visitDays==null){
- item.visitDays = ''
- }
- if(item.visitPNumber==null){
- item.visitPNumber = ''
- }
- })
- that.groupDatas=that.groupData;
- console.log(that.groupData)
- that.fullscreenLoading = false;
- }
- })
- },
-
- DailyPaymentGMUnAudited(){
- var url="/api/Financial/DailyPaymentGMUnAudited"
- var that=this
- this.$axios({
- method: 'GET',
- url:url,
- headers:{
- Authorization:'Bearer '+that.token
- },
- }).then(function(res){
- if(res.data.code==200){
- that.wshcount=res.data.data;
- }
- })
- },
- Inquireclick() {
- var newarr = [];
- if (this.input == "") {
- newarr = this.groupData;
- } else {
- for (var i = 0; i < this.groupData.length; i++) {
- if (this.groupData[i].teamName.indexOf(this.input) != -1) {
- newarr.push(this.groupData[i]);
- }
- else if (this.groupData[i].clientUnit.indexOf(this.input) != -1) {
- newarr.push(this.groupData[i]);
- }
- else if (this.groupData[i].visitDate.indexOf(this.input) != -1) {
- newarr.push(this.groupData[i]);
- }
- }
- }
- this.groupDatas = newarr;
- this.currentPage = 1;
- },
- filteryear(val){
- let gstime=val.visitDate.split(' ')[0]
- return gstime;
- },
- handleEdit(index, row) {
- console.log(index, row);
- localStorage.setItem('OPid', row.grpScheduleId);
- this.$router.push({name:'Controltree'})
- },
- },
- mounted(){
- this.userId=JSON.parse(localStorage.getItem('userinif')).userInfo.userId;
- this.Grouplist();
- this.DailyPaymentGMUnAudited();
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- }
- }
- </script>
- <style>
- .num-ul{
- display: flex;
- justify-content: space-between;
- margin-bottom: 20px;
- }
- .num-li{
- width: 21%;
- display: flex;
- justify-content: space-between;
- align-items: center;
- border-radius: 10px;
- padding: 25px 20px;
- }
- .num-li:nth-child(1){
- background-color: #6bafbd !important;
- }
- .num-li:nth-child(2){
- background-color: #fc8675 !important;
- }
- .num-li:nth-child(3){
- background-color: #f3ce85 !important;
- }
- .num-li:nth-child(4){
- background-color: #65cea7 !important;
- }
- .num-icon i{
- width: 70px;
- height: 90px;
- display: inline-block;
- font-size: 70px;
- display: flex;
- align-items: center;
- color: #fff8;
- }
- .num-tlite div{
- font-size: 30px;
- color: #fff;
- }
- .num-tlite p:nth-child(2){
- font-size: 14px;
- margin: 5px 0px;
- color: #fff;
- }
- .num-tlite p:nth-child(3){
- font-size: 12px;
- color: #fff;
- }
- .list-groups{
- width: 60%;
-
- }
- .groups-list{
- background-color: #fff;
- padding: 10px;
- border-radius: 10px;
- box-shadow: 0 0 5px #0003;
- min-height: 520px;
- }
- .list-groups .block{
- margin-top: 20px;
- }
- .list-title{
- display: flex;
- font-size: 17px;
- font-weight:600 ;
- color: #555;
- margin-top: 8px;
- margin-bottom: 2px;
- justify-content: space-between;
- align-items: center;
- }
- .sources-ul{
- margin-top: 25px;
- display: flex;
- justify-content: space-between;
- }
- .sources-li{
- cursor: pointer;
- width: 30%;
- display: flex;
- justify-content: space-between;
- align-items: center;
- border-radius: 10px;
- padding: 14px 0px;
- }
- .sources-icon i{
- width: 70px;
- height: 90px;
- display: inline-block;
- font-size: 70px;
- display: flex;
- align-items: center;
- color: #fff8;
- }
- .sources-tlite{
- width: 70%;
- }
- .sources-icon{
- margin-right: 20px;
- }
- .sources-tlite p{
- text-align: center;
- color: #fff;
- font-size: 24px;
- font-weight: 600;
- }
- .sources-li:nth-child(1){
- background-color: #6bafbd !important;
- }
- .sources-li:nth-child(2){
- background-color: #f3ce85 !important;
- }
- .sources-li:nth-child(3){
- background-color: #65cea7 !important;
- }
- .tabular-all{
- display: flex;
- justify-content: space-between;
- }
- .schedule-box{
- width: 39%;
- }
- .schedule{
- padding: 10px;
- background-color: #fff;
- border-radius: 10px;
- box-shadow: 0 0 5px #0005;
- }
- .fc-toolbar-chunk .fc-toolbar-title{
- color: #555;
- }
- .search-box{
- display: flex;
- }
- .search-box>button{
- margin-left: 10px;
- padding: 8px 20px;
- }
- .icon-shichangbu{
- font-size: 58px;
- }
- .groups-list .el-table .el-table__cell{
- padding: 8px 0;
- }
- .fc .fc-button-primary{
- background-color: #5EADFF;
- border-color: #5EADFF;
- }
- .fc .fc-button-primary:hover{
- background-color: #108dff;
- border-color: #108dff;
- }
- .fc .fc-button-primary:not(:disabled):active:focus {
- box-shadow: none;
- }
- .fc .fc-button-primary:not(:disabled):active {
- background-color: #108dff;
- border-color: #108dff;
- }
- .fc .fc-button-primary:focus {
- box-shadow: none;
- }
- .fc .fc-button-primary:disabled {
- background-color: #5EADFF;
- border-color: #5EADFF;
- }
- .fc .fc-button-primary:not(:disabled).fc-button-active:focus{
- box-shadow:none;
- }
- .fc .fc-button-primary:not(:disabled).fc-button-active{
- background-color: #108dff;
- border-color: #108dff;
- }
- .fc .fc-toolbar.fc-header-toolbar{
- margin-bottom: 0.1em;
- }
- .skip-text{
- display: flex;
- justify-content: end;
- margin-top: 20px;
- color: #606266;
- font-size:16px ;
- }
- .text-go{
- padding: 20px;
- box-shadow: 0 0 10px #0005;
- background-color:#fff;
- border-radius: 5px;
- width: 20%;
- text-align: center;
- }
- @media screen and (max-width: 1600px) {
- .tabular-all{
- display: inline-block;
- width:100% ;
- }
- .list-groups{
- width:100% ;
- }
- .schedule-box{
- margin-top: 20px;
- width: 100%;
- }
- }
- </style>
|