process.vue 9.8 KB
<script>
	module.exports = {
		
		props: {
			type: {
				type: String
			},
			switchflag: {
				type: Boolean,
				default: true
			},
			switchflag2: {
				type: Boolean,
				default: true
			},
			opens: {
				type: String,
				default: true
			}
		},
		//star 8-10
		methods: {
			open: function() {
				var self = this;
				if(this.type == 'supplier' && this.$route.showTop) {
					$('.map').slideUp(1000);
				} else {
					$('.map2').slideUp(1000);
				}
				// this.scor();
			},
			close: function() {
				var self = this;
				if(this.type == 'supplier' && this.$route.showTop) {
					$('.map').slideDown(1000);
				} else {

					$('.map2').slideDown(1000);
				}
				// this.scor();
			},
			// scor:function(){


			// 	var self = this;

			// 	$('.g_hea_ul').find('li').removeClass('current').eq(0).addClass('current');
			// 	$('.g_hea_tab').eq(0).show().siblings().hide();
			// 	$('.g_hea_tab').eq(0).find(".g_hea_tab2").addClass('current');
			// 	$('.shade').hide();
			// 	this.$store.state.showMeun=false;
			// 	$(function() {
			// 		var triggerBttn = document.getElementById('trigger-overlay'),
			// 			overlay = document.querySelector('div.overlay'),
			// 			transEndEventNames = {
			// 				'WebkitTransition': 'webkitTransitionEnd',
			// 				'MozTransition': 'transitionend',
			// 				'OTransition': 'oTransitionEnd',
			// 				'msTransition': 'MSTransitionEnd',
			// 				'transition': 'transitionend'
			// 			},
			// 			transEndEventName = transEndEventNames[Modernizr.prefixed('transition')],
			// 			support = {
			// 				transitions: Modernizr.csstransitions
			// 			};

			// 		function menuScroll() {
			// 			var s = $(window).scrollTop();
			// 			self.menuTop = $('.g_hea_g1').outerHeight() + $('#menuAll').outerHeight();
			// 			if(s > self.menuTop) {
			// 				self.isScorll = true;
			// 				$('.overlay').removeClass('overlay_re');
			// 			} else {
			// 				self.isScorll = false;
			// 			}

			// 		}
			// 		setTimeout(function() {

			// 			menuScroll();
			// 			$(window).on('scroll', function(e) {
			// 				menuScroll();
			// 			})
			// 		}, 1200);

			// 		$(window).on('hashchange',
			// 			function() {
			// 				setTimeout(function() {
			// 					$(document).scrollTop(0);
			// 					menuScroll();
			// 				}, 1200)
			// 			})
			// 	})

			// 	// 点击遮罩菜单隐藏
			// 	$('.shade').click(function() {
			// 		self.isOpenMenu = false;
			// 		$(this).hide();
			// 		self.$store.state.showMeun=false;
			// 	})

			// 	$(function() {
			// 		var navel = '';
			// 		var navnewel = '';

			// 		var headwel='';
			// 		var headvel='';

			// 		var sourcet = 0;
			// 		var sourceel = '';
			// 		var sourcenewel = '';
			// 		var pop_banner = '';
			// 		var nel = '',
			// 			t = 0;

			// 		function fn_header() {
			// 			$(".new_tdheader").remove();
			// 			var el = $('#t_header');
			// 			if(el != undefined && el.length > 0) {
			// 				var n = el.get(0).tagName.toLowerCase();
								
			// 					if(self.opens=='open'){
			// 						t = el.offset().top - 117;
			// 					}else{
			// 						t = el.offset().top -167;

			// 					}						
							
							

			// 				if(n == 'div') {
			// 					var u = $("<div class='new_tdheader'></div>").attr('style', 'top:114px;position: fixed;z-index: 100;background: #fff;width: 1003px;').hide()
			// 					$(".container").append(u.addClass('ctable').append(el.clone(true)));
			// 					u.find('span').css({
			// 						'padding-top': '10px'
			// 					})
			// 					nel = u;

			// 				} else if(n == "thead") {
			// 					var clname = el.parent().attr('class')
			// 					var u = $('<table  class="new_tdheader"></table>').attr('style', 'top:114px;position: fixed;z-index: 100;background: #fff;width: 1003px;').hide();
			// 					$(".container").append(u.addClass(clname).append(el.clone(true)));
			// 					nel = u;
			// 				}

			// 			}
			// 			navel = $('.menu-nav');
			// 			sourceel = $('.source-nav');
			// 			headvel=$('.g_hea_g1');
			// 		}

			// 		function scroll() {
			// 			fn_header();
			// 			var s = $(window).scrollTop();
			// 			// var menuTop = $('.g_hea_g1').outerHeight() + $('#menuAll').outerHeight();
			// 			// var menuTop = $('.g_hea_g1').outerHeight();
			// 			if(self.opens=='open'){
			// 				var menuTop = $('.g_hea_g1').outerHeight();
			// 			}else{
			// 				var menuTop = $('.g_hea_g1').outerHeight()+ $('.flow-map').outerHeight();
			// 			}
						
			// 			if(s > t) {
			// 				nel && nel.show();
			// 			} else {
			// 				nel && nel.hide();
			// 			}

			// 			if(s > menuTop) {
			// 				navnewel.show();
			// 				navel.attr('style', 'position: fixed;left: 0px;top: 87px;width: 100%;z-index:281;')
			// 			} else {
			// 				navnewel.hide();
			// 				navel.attr('style', '')
			// 			}

			// 			if(s > menuTop) {
			// 				headwel.show();
			// 				headvel.attr('style', 'position: fixed;left: 0px;top: 0px;width: 100%;z-index:283;')
			// 			} else {
			// 				headwel.hide();
			// 				headvel.attr('style', '')
			// 			}

			// 			if(s > menuTop) {
			// 				sourcenewel.show();
			// 				sourceel.
			// 				attr('style', 'position: fixed;left: 0px;width: 100%;top:48px;z-index: 282;');

			// 				if(self.userType == "S" || self.userType == "H") {
			// 					$(".pop-banner").
			// 					attr('style', 'position: fixed;top: 0px;z-index: 282;  padding-left: 48px;');
			// 				} else {
			// 					$(".pop-banner").
			// 					attr('style', 'position: fixed;top: 48px;z-index: 282;');
			// 				}

			// 			} else {
			// 				sourcenewel.hide();
			// 				sourceel.attr('style', '');
			// 				$(".pop-banner").attr('style', '');

			// 			}

			// 		}

			// 		function nav() {
			// 			navnewel = $('<div class="menunew1"></div>').
			// 			attr('style', 'width:100%;height:30px;').hide();
			// 			navel.before(navnewel);
			// 		}

			// 		function source() {
			// 			sourcet = $('.source-nav').offset().top;
			// 			sourcenewel = $('<div class="sourcenew1"></div>').
			// 			attr('style', 'width:100%;height:39px;').hide();
			// 			sourceel.before(sourcenewel);
			// 		}
			// 		function head() {
			// 			// headvel = $('.g_hea_g1').offset().top;
			// 			headwel = $('<header class="g_hea_g2"></header>').
			// 			attr('style', 'width:100%;height:48px;').hide();
			// 			headvel.before(headwel);
			// 		}

			// 		// 菜单圆球浮动

			// 		setTimeout(function() {
			// 			fn_header();
			// 			nav();
			// 			source();
			// 			head();
			// 			scroll();
			// 			$(window).on('scroll', function(e) {
			// 				scroll();

			// 			})
			// 		}, 1000);
			// 		$(window).on('hashchange', function() {
			// 			setTimeout(function() {
			// 				$(document).scrollTop(0);
			// 				fn_header();
			// 				scroll();
			// 			}, 1000)

			// 		})

			// 	})

			// }
			
		},
		watch: {
			opens: function() {
				if(this.opens == 'open') {
					this.open();
				} else {
					this.close();
				}
			},

		},
		ready:function(){
			// this.scor();
		}
	}
</script>
<template>
	<!-- 我的流程进度图 -->
	<div class="flow-map  map" v-if="type=='supplier' && $route.showTop" style='display:none;'>
		<div class="container pt10 pb10">
			<!-- 流程环节点 -->
			<div class="flow-link">
				<span class="title">我的流程</span>
				<div class="link-item" :class="{active:($route.path.indexOf('/einfor')>-1 || $route.path.indexOf('/employee')>-1 || $route.path.indexOf('/employeeEdit')>-1)}">
					<span>
          补充
          <br>资料</span>
				</div>
				<div class="link-item" :class="{active:($route.path.indexOf('/productList')>-1)}">
					<span>
          提供商品
          <br>清单</span>
				</div>
				<div class="link-item" :class="{active:($route.path.indexOf('/supplierAddList')>-1)}">
					<span>商品<br>对码</span>
				</div>
				<div class="link-item" :class="{active:($route.path.indexOf('/cert/cert')>-1)}">
					<span>
          维护商品
          <br>资质证照</span>
				</div>
				<div class="link-item" :class="{active:($route.path.indexOf('/relation')>-1 || $route.path.indexOf('/relationEdit2')>-1)}">
					<span>
          维护供应
          <br>关系</span>
				</div>
			</div>
			<!-- 流程操作 -->
			<div class="flow-operate">
				<span class="title">管理方流程</span>
				<div class="operate-item">
					运营商
					<br>审核资料</div>
				<!-- <div class="operate-item">
        运营商
        <br>商品对码</div> -->
				<div class="operate-item">
					配送商
					<br>供应关系及资质<br>证照审核</div>
				<div class="operate-item">
					医疗机构
					<br>供应关系及资质<br>证照审核</div>
			</div>
		</div>
	</div>

	<div class="flow-map  map2 " v-if="type=='supplier' && $route.showBottom" style='display:none;'>
		<section class="container pt10 pb10">
			<!-- 流程环节点 -->
			<div class="flow-link">
				<span class="title">我的流程</span>
				<div class="link-item" style='margin-left:60px;'>
					<span>
          医院
          <br>下发计划</span>
				</div>
				<div class="link-item" style='margin-left:80px;' :class="{active:($route.path.indexOf('/trpo/orderDispose')>-1 || $route.path.indexOf('/trpo/orderDispose2')>-1 ||$route.path.indexOf('/trpo/orderDispose3')>-1)}">
					<span>
          订单受理  
        </span>
				</div>
				<div class="link-item" style='margin-left:80px;' :class="{active:($route.path.indexOf('/trpo/orderOutlog')>-1 || $route.path.indexOf('/trpo/orderOutlog2')>-1)}">
					<span>出库登录</span>
				</div>
				<div class="link-item" style='margin-left:80px;' :class="{active:($route.path.indexOf('/trdo/orderOutall')>-1 || 
      $route.path.indexOf('/trdo/orderOutall2')>-1|| 
      $route.path.indexOf('/trdo/orderOutall2-2')>-1 || 
      $route.path.indexOf('/trdo/orderOutall2-3')>-1|| 
      $route.path.indexOf('/trdo/orderOutall3-1')>-1)}">
					<span>
          出库跟踪</span>
				</div>
				<div class="link-item" style='margin-left:80px;'>
					<span>
         医院签收</span>
				</div>
			</div>
		</section>

	</div>
	
</template>