| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113 | //相差几周avalon.filters.setUsedWeek = function(o){	var lastTime = o[0].split(' ')[0]+' 00:00:00'	var checkTime = o[1].split(' ')[0]+' 00:00:00'	var diff = (new Date(checkTime.replace(/\-/g,'/')).getTime() - new Date(lastTime.replace(/\-/g,'/')).getTime())/24/3600/1000	var week = parseInt(diff/7)	var day = diff%7	if(week == 0 && day == 0){		return day+' 天'	}else{		if(week == 0){			return day+' 天'		}else if(day == 0){			return week+' 周'		}else{			return week+' 周'+day+' 天'		}	}}//截取时间avalon.filters.setTime = function(o){   return o.split(' ')[0]}//添加cmavalon.filters.setUnitCM = function(o){   return o+'cm'}//先露字典avalon.filters.setFirstout = function(o){   if(o==1){ return '头先露'}   if(o==2){ return '臀先露'}   if(o==3){ return '肩先露'}   if(o==4){ return '足先露'}   if(o==5){ return '混合'}   if(o==6){ return '浮'}   if(o==7){ return '浅入'}   if(o==8){ return '衔接'}   if(o==99){ return '不清'}}//浮肿 尿蛋白avalon.filters.setDropsy = function(o){   if(o==1){ return '-'}   if(o==2){ return '+'}   if(o==3){ return '++'}   if(o==4){ return '+++'}   if(o==5){ return '++++'}   if(o==6){ return '±'}   if(o==7){ return '拒检'}}//血型avalon.filters.setBlood = function(o){   if(o==0){ return 'O型'}   if(o==1){ return 'A型'}   if(o==2){ return 'B型'}   if(o==3){ return 'AB型'}   if(o==5){ return '不详'}}//阴道分泌物avalon.filters.setVaginal = function(o){   if(o==1){ return '未见异常'}   if(o==2){ return '滴虫'}   if(o==3){ return '假丝酵母菌'}   if(o==4){ return '其它'}}//清洁度avalon.filters.setCleanness = function(o){   if(o==1){ return 'Ⅰ度'}   if(o==2){ return 'Ⅱ度'}   if(o==3){ return 'Ⅲ度'}   if(o==4){ return 'Ⅳ度'}}//乙肝avalon.filters.setYugan = function(o){   if(o==0){ return '未查'}   if(o==1){ return '阴性'}   if(o==2){ return '阳性'}}//胎动avalon.filters.setYesNo = function(o){   if(o==0){ return '否'}   if(o==1){ return '是'}}//居住类型avalon.filters.setLive = function(o){   if(o==1){ return '户籍'}   if(o==2){ return '居住证'}   if(o==3){ return '单纯来厦'}   if(o==9){ return '其他'}}//婚姻avalon.filters.setMarry = function(o){   if(o==10){ return '未婚'}   if(o==20){ return '已婚'}   if(o==30){ return '初婚'}   if(o==40){ return '再婚'}   if(o==50){ return '复婚'}   if(o==60){ return '丧偶'}   if(o==70){ return '离婚'}   if(o==80){ return '分居'}   if(o==90){ return '未说明婚姻状况'}}//地区avalon.filters.setArea = function(o){   	if(o==1){ return '城镇'}   	if(o==2){ return '农村'}}//反应avalon.filters.setReact = function(o){	if(o==0){ return '无'}   	if(o==1){ return '有'}   	if(o==2){ return '轻'}   	if(o==3){ return '重'}}
 |