Kaynağa Gözat

实验室管理看板

cyy 7 ay önce
ebeveyn
işleme
1fcb7f99ef

+ 7 - 7
src/views/business/labManagement/components/barChart.vue

@@ -99,7 +99,7 @@
                 normal:{
                   show:true,
                   position:this.direction=='x'?'right':'top',
-                          
+
                   textStyle:{
                     fontSize: 12,
                     color:'#B0CEFC'
@@ -108,9 +108,9 @@
               }
             })
           }
-          
-        }  
-        let heng = { 
+
+        }
+        let heng = {
             splitLine:{show: false},
             type: 'category',
             minInterval: 1,
@@ -174,12 +174,12 @@
                   }else if(name === 'numAll'){
                     return '计划数量';
                   }
-                    
+
                 }
 
           },
           grid: {
-                top: '15%',
+                top: '20%',
                 left: '3%',
                 right: '4%',
                 bottom: '5%',
@@ -200,7 +200,7 @@
                 filterMode: 'empty'
             }
           ],
-       
+
         };
        option && bar.setOption(option);
       }

+ 4 - 3
src/views/statistics/index.vue

@@ -1494,14 +1494,15 @@
       getqualityData() {
         const { deptList } = this.$store.getters || {}
         const filterLetter = [
-          '综合',
-          '质量',
+        //   '综合',
+        //   '质量',
           '科研',
           '教学',
           '医疗',
           '样品',
           '助理',
-          '急诊'
+          '急诊',
+          '岗培学员'
         ]
         const AllDeptList = deptList.filter((d) => d.depth === 4)
         const deptEntity = deptList.filter(

+ 7 - 7
src/views/statistics/item/s10waiBuNengLiCol.vue

@@ -102,7 +102,7 @@
                 normal:{
                   show:true,
                   position:this.direction=='x'?'right':'top',
-                          
+
                   textStyle:{
                     fontSize: 12,
                     color:'#B0CEFC'
@@ -111,9 +111,9 @@
               }
             })
           }
-          
-        }  
-        let heng = { 
+
+        }
+        let heng = {
             splitLine:{show: false},
             type: 'category',
             minInterval: 1,
@@ -177,12 +177,12 @@
                   }else if(name === 'numA'){
                     return '计划数量';
                   }
-                    
+
                 }
 
           },
           grid: {
-                top: '15%',
+                top: '20%',
                 left: '3%',
                 right: '4%',
                 bottom: '5%',
@@ -203,7 +203,7 @@
                 filterMode: 'empty'
             }
           ],
-       
+
         };
 
        option && s10waiBuNengLicol.setOption(option);

+ 8 - 8
src/views/statistics/item/s11biaoZhunWuCol2.vue

@@ -83,7 +83,7 @@
               normal:{
                 show:true,
                 position:this.direction=='x'?'right':'top',
-                        
+
                 textStyle:{
                   fontSize:12,
                   color:'#B0CEFC'
@@ -105,12 +105,12 @@
                   lineStyle: {
                     color: barColor[i]
                   }
-                } 
+                }
           })
-          
-        }  
+
+        }
         // let that = this
-        let heng ={ 
+        let heng ={
             splitLine:{show: false},
             type: 'category',
             axisLabel: {
@@ -177,7 +177,7 @@
 
           },
           grid: {
-                top: '15%',
+                top: '20%',
                 left: '3%',
                 right: '4%',
                 bottom: '5%',
@@ -198,9 +198,9 @@
                 filterMode: 'empty'
             }
           ],
-       
+
        };
-        
+
        option && s11biaoZhunWu.setOption(option);
       }
     }

+ 7 - 7
src/views/statistics/item/s12fengXianCol.vue

@@ -106,7 +106,7 @@
                 normal:{
                   show:true,
                   position:this.direction=='x'?'right':'top',
-                          
+
                   textStyle:{
                     fontSize: 12,
                     color:'#B0CEFC'
@@ -115,9 +115,9 @@
               }
             })
           }
-          
-        }  
-        let heng = { 
+
+        }
+        let heng = {
             splitLine:{show: false},
             type: 'category',
             minInterval: 1,
@@ -181,12 +181,12 @@
                   }else if(name === 'numA'){
                     return '计划数量';
                   }
-                    
+
                 }
 
           },
           grid: {
-                top: '15%',
+                top: '20%',
                 left: '3%',
                 right: '4%',
                 bottom: '5%',
@@ -207,7 +207,7 @@
                 filterMode: 'empty'
             }
           ],
-       
+
         };
 
         option && s12fengXiancol.setOption(option);

+ 7 - 7
src/views/statistics/item/s14bufuhexiangCol.vue

@@ -106,7 +106,7 @@
                 normal:{
                   show:true,
                   position:this.direction=='x'?'right':'top',
-                          
+
                   textStyle:{
                     fontSize: 12,
                     color:'#B0CEFC'
@@ -115,9 +115,9 @@
               }
             })
           }
-          
-        }  
-        let heng = { 
+
+        }
+        let heng = {
             splitLine:{show: false},
             type: 'category',
             minInterval: 1,
@@ -181,12 +181,12 @@
                   }else if(name === 'numA'){
                     return '计划数量';
                   }
-                    
+
                 }
 
           },
           grid: {
-                top: '15%',
+                top: '20%',
                 left: '3%',
                 right: '4%',
                 bottom: '5%',
@@ -207,7 +207,7 @@
                 filterMode: 'empty'
             }
           ],
-       
+
         };
 
         option && s14bufuhexiang.setOption(option);

+ 7 - 7
src/views/statistics/item/s15tousuCol.vue

@@ -106,7 +106,7 @@
                 normal:{
                   show:true,
                   position:this.direction=='x'?'right':'top',
-                          
+
                   textStyle:{
                     fontSize: 12,
                     color:'#B0CEFC'
@@ -115,9 +115,9 @@
               }
             })
           }
-          
-        }  
-        let heng = { 
+
+        }
+        let heng = {
             splitLine:{show: false},
             type: 'category',
             minInterval: 1,
@@ -181,12 +181,12 @@
                   }else if(name === 'numA'){
                     return '计划数量';
                   }
-                    
+
                 }
 
           },
           grid: {
-                top: '15%',
+                top: '20%',
                 left: '3%',
                 right: '4%',
                 bottom: '5%',
@@ -207,7 +207,7 @@
                 filterMode: 'empty'
             }
           ],
-       
+
         };
 
        option && s15tousucol.setOption(option);

+ 7 - 7
src/views/statistics/item/s16bzJunZhuCol2.vue

@@ -102,7 +102,7 @@
                 normal:{
                   show:true,
                   position:this.direction=='x'?'right':'top',
-                          
+
                   textStyle:{
                     fontSize: 12,
                     color:'#B0CEFC'
@@ -111,9 +111,9 @@
               }
             })
           }
-          
-        }  
-        let heng = { 
+
+        }
+        let heng = {
             splitLine:{show: false},
             type: 'category',
             minInterval: 1,
@@ -177,12 +177,12 @@
                   }else if(name === 'numA'){
                     return '计划数量';
                   }
-                    
+
                 }
 
           },
           grid: {
-                top: '15%',
+                top: '20%',
                 left: '3%',
                 right: '4%',
                 bottom: '5%',
@@ -203,7 +203,7 @@
                 filterMode: 'empty'
             }
           ],
-       
+
         };
 
        option && s16bzJunZhu.setOption(option);

+ 7 - 7
src/views/statistics/item/s1zhiLiangMuBiaoCol.vue

@@ -104,7 +104,7 @@
                 normal:{
                   show:true,
                   position:this.direction=='x'?'right':'top',
-                          
+
                   textStyle:{
                     fontSize: 12,
                     color:'#B0CEFC'
@@ -113,9 +113,9 @@
               }
             })
           }
-          
-        }  
-        let heng = { 
+
+        }
+        let heng = {
             splitLine:{show: false},
             type: 'category',
             minInterval: 1,
@@ -179,12 +179,12 @@
                   }else if(name === 'numA'){
                     return '计划数量';
                   }
-                    
+
                 }
 
           },
           grid: {
-                top: '15%',
+                top: '20%',
                 left: '3%',
                 right: '4%',
                 bottom: '5%',
@@ -205,7 +205,7 @@
                 filterMode: 'empty'
             }
           ],
-       
+
         };
         option && s5zhiLiangMuBiaocol.setOption(option);
       }

+ 7 - 7
src/views/statistics/item/s2manYiDuPro.vue

@@ -104,7 +104,7 @@
                 normal:{
                   show:true,
                   position:this.direction=='x'?'right':'top',
-                          
+
                   textStyle:{
                     fontSize: 12,
                     color:'#B0CEFC'
@@ -113,9 +113,9 @@
               }
             })
           }
-          
-        }  
-        let heng = { 
+
+        }
+        let heng = {
             splitLine:{show: false},
             type: 'category',
             minInterval: 1,
@@ -179,12 +179,12 @@
                   }else if(name === 'numA'){
                     return '计划数量';
                   }
-                    
+
                 }
 
           },
           grid: {
-                top: '15%',
+                top: '20%',
                 left: '3%',
                 right: '4%',
                 bottom: '5%',
@@ -205,7 +205,7 @@
                 filterMode: 'empty'
             }
           ],
-       
+
         };
       option && s2manYiDucol.setOption(option);
       }

+ 7 - 7
src/views/statistics/item/s4renYuanPeiXunCol.vue

@@ -103,7 +103,7 @@
                 normal:{
                   show:true,
                   position:this.direction=='x'?'right':'top',
-                          
+
                   textStyle:{
                     fontSize: 12,
                     color:'#B0CEFC'
@@ -112,9 +112,9 @@
               }
             })
           }
-          
-        }  
-        let heng = { 
+
+        }
+        let heng = {
             splitLine:{show: false},
             type: 'category',
             minInterval: 1,
@@ -178,12 +178,12 @@
                   }else if(name === 'numA'){
                     return '计划数量';
                   }
-                    
+
                 }
 
           },
           grid: {
-                top: '15%',
+                top: '20%',
                 left: '3%',
                 right: '4%',
                 bottom: '5%',
@@ -204,7 +204,7 @@
                 filterMode: 'empty'
             }
           ],
-       
+
         };
 
 

+ 7 - 7
src/views/statistics/item/s5renYuanJianDuCol.vue

@@ -103,7 +103,7 @@
                 normal:{
                   show:true,
                   position:this.direction=='x'?'right':'top',
-                          
+
                   textStyle:{
                     fontSize: 12,
                     color:'#B0CEFC'
@@ -112,9 +112,9 @@
               }
             })
           }
-          
-        }  
-        let heng = { 
+
+        }
+        let heng = {
             splitLine:{show: false},
             type: 'category',
             minInterval: 1,
@@ -178,12 +178,12 @@
                   }else if(name === 'numA'){
                     return '计划数量';
                   }
-                    
+
                 }
 
           },
           grid: {
-                top: '15%',
+                top: '20%',
                 left: '3%',
                 right: '4%',
                 bottom: '5%',
@@ -204,7 +204,7 @@
                 filterMode: 'empty'
             }
           ],
-       
+
         };
 
         option && s5renYuanJianDucol.setOption(option);

+ 7 - 7
src/views/statistics/item/s7sheBeiJiaoZhunCol.vue

@@ -103,7 +103,7 @@
                 normal:{
                   show:true,
                   position:this.direction=='x'?'right':'top',
-                          
+
                   textStyle:{
                     fontSize: 12,
                     color:'#B0CEFC'
@@ -112,9 +112,9 @@
               }
             })
           }
-          
-        }  
-        let heng = { 
+
+        }
+        let heng = {
             splitLine:{show: false},
             type: 'category',
             minInterval: 1,
@@ -178,12 +178,12 @@
                   }else if(name === 'numA'){
                     return '计划数量';
                   }
-                    
+
                 }
 
           },
           grid: {
-                top: '15%',
+                top: '20%',
                 left: '3%',
                 right: '4%',
                 bottom: '5%',
@@ -204,7 +204,7 @@
                 filterMode: 'empty'
             }
           ],
-       
+
         };
 
 

+ 7 - 7
src/views/statistics/item/s8sheBeiHeChaCol.vue

@@ -102,7 +102,7 @@
                 normal:{
                   show:true,
                   position:this.direction=='x'?'right':'top',
-                          
+
                   textStyle:{
                     fontSize: 12,
                     color:'#B0CEFC'
@@ -111,9 +111,9 @@
               }
             })
           }
-          
-        }  
-        let heng = { 
+
+        }
+        let heng = {
             splitLine:{show: false},
             type: 'category',
             minInterval: 1,
@@ -177,12 +177,12 @@
                   }else if(name === 'numA'){
                     return '计划数量';
                   }
-                    
+
                 }
 
           },
           grid: {
-                top: '15%',
+                top: '20%',
                 left: '3%',
                 right: '4%',
                 bottom: '5%',
@@ -203,7 +203,7 @@
                 filterMode: 'empty'
             }
           ],
-       
+
         };
        option && s8sheBeiHeChacol.setOption(option);
       }

+ 7 - 7
src/views/statistics/item/s9neiBuZhiLiangCol.vue

@@ -106,7 +106,7 @@
                 normal:{
                   show:true,
                   position:this.direction=='x'?'right':'top',
-                          
+
                   textStyle:{
                     fontSize: 12,
                     color:'#B0CEFC'
@@ -115,9 +115,9 @@
               }
             })
           }
-          
-        }  
-        let heng = { 
+
+        }
+        let heng = {
             splitLine:{show: false},
             type: 'category',
             axisLabel: {
@@ -177,12 +177,12 @@
                   }else if(name === 'numA'){
                     return '计划数量';
                   }
-                    
+
                 }
 
           },
           grid: {
-                top: '15%',
+                top: '20%',
                 left: '3%',
                 right: '4%',
                 bottom: '5%',
@@ -203,7 +203,7 @@
                 filterMode: 'empty'
             }
           ],
-       
+
         };
 
         option && s9neibucol.setOption(option);

+ 8 - 8
src/views/statistics/item/zlmbMidYearBar.vue

@@ -119,19 +119,19 @@
                 normal:{
                   show:true,
                   position:this.direction=='x'?'right':'top',
-                          
+
                   textStyle:{
                     fontSize: 12,
                     color:'#B0CEFC'
                   }
                 }
               }
-              
+
             })
           // }
-          
-        }  
-        let heng = { 
+
+        }
+        let heng = {
             splitLine:{show: false},
             type: 'category',
             minInterval: 1,
@@ -196,12 +196,12 @@
                   }else if(name === 'numA'){
                     return '上半年百分比';
                   }
-                    
+
                 }
 
           },
           grid: {
-                top: '15%',
+                top: '20%',
                 left: '3%',
                 right: '4%',
                 bottom: '5%',
@@ -222,7 +222,7 @@
                 filterMode: 'empty'
             }
           ],
-       
+
         };
        option && s8sheBeiHeChacol.setOption(option);
       }

+ 0 - 188
src/views/statistics/js/selectDB.js

@@ -214,192 +214,4 @@ export const getgaijinxiangObj = (end, info) => {
     }
     // return "select ibps_party_entity.NAME_,c.numA,c.num,if(c.numA=0,0,ROUND((c.num/c.numA)*100,2)) as chu from (select a.bian_zhi_bu_men_,IFNULL(a.num,0) as num,IFNULL(b.numA,0) as numA from (select t_glpsjhb.bian_zhi_bu_men_,COUNT(t_glpsjhb.id_) as num from t_glpsjhb where FIND_IN_SET(t_glpsjhb.bian_zhi_bu_men_,'" + info + "') and t_glpsjhb.shi_fou_guo_shen_ = '已完成' and t_glpsjhb.bian_zhi_shi_jian BETWEEN '" + end[0] + "' and '" + end[1] + "' GROUP BY t_glpsjhb.bian_zhi_bu_men_) as a LEFT JOIN (select t_glpsjhb.bian_zhi_bu_men_,COUNT(t_glpsjhb.id_) as numA from t_glpsjhb where FIND_IN_SET(t_glpsjhb.bian_zhi_bu_men_,'" + info + "') and t_glpsjhb.bian_zhi_shi_jian BETWEEN '" + end[0] + "' and '" + end[1] + "' GROUP BY t_glpsjhb.bian_zhi_bu_men_) as b on a.bian_zhi_bu_men_ = b.bian_zhi_bu_men_) c LEFT JOIN ibps_party_entity on c.bian_zhi_bu_men_ = ibps_party_entity.id_"
 }
-// export const getbiaozhunTObj = (end)=>{
-//   return "select MONTH(shi_shi_shi_jian_) as time from t_bzwzqjhcjhzb where YEAR(shi_shi_shi_jian_) ="+end+" ORDER BY shi_shi_shi_jian_ ASC LIMIT 1"
-// }
-// export const getbzJunZhuObj = (end)=>{
-//   return "select a.name as name, a.num ,IFNULL(b.numS,0) as numS from(select wu_liao_bian_ma_, zhuan_huan_ as name, COUNT(wu_liao_bian_ma_) as num from t_bzjzhcjhzb where YEAR(create_time_)="+end+" GROUP BY wu_liao_bian_ma_ HAVING COUNT(wu_liao_bian_ma_)>=1) as a LEFT JOIN (select wu_liao_bian_ma_, zhuan_huan_ as name, COUNT(wu_liao_bian_ma_) as numS from t_bzjzqjhcjl as d where YEAR(create_time_)="+end+" and d.shi_fou_guo_shen_='1' GROUP BY wu_liao_bian_ma_ HAVING COUNT(wu_liao_bian_ma_)>=1) as b on a.wu_liao_bian_ma_ = b.wu_liao_bian_ma_"
-// }
-// export const getbzJunZhuTObj = (end)=>{
-//  return "select MONTH(shi_shi_shi_jian_) as time from t_bzjzhcjhzb where YEAR(shi_shi_shi_jian_) ="+end+" ORDER BY shi_shi_shi_jian_ ASC LIMIT 1"
-// }
-// export const getbzXiBaoObj = (end)=>{
-//   return "select a.name as name, a.num ,IFNULL(b.numS,0) as numS from(select zhuan_huan_ as name, COUNT(zhuan_huan_) as num from t_bzxbqjhcjhzbn where YEAR(create_time_)="+end+" GROUP BY zhuan_huan_ HAVING COUNT(zhuan_huan_)>=1) as a LEFT JOIN (select c.zhuan_huan_ as name, COUNT(c.zhuan_huan_) as numS from t_bzxbqjhcjhzbn as c LEFT JOIN t_bzxbqjhcjh as d on c.parent_id_ = d.id_ where YEAR(c.create_time_)="+end+" and d.shi_fou_guo_shen_='1' GROUP BY c.zhuan_huan_ HAVING COUNT(c.zhuan_huan_)>=1) as b on a.name = b.name"
-// }
-// export const getbzXiBaoTObj = (end)=>{
-//  return "select MONTH(shi_shi_shi_jian_) as time from t_bzxbqjhcjhzbn where YEAR(shi_shi_shi_jian_) ="+end+" ORDER BY shi_shi_shi_jian_ ASC LIMIT 1"
-// }
-// export const DBData = (begin,end,scope)=>{
-
-//   return "select tt.* "+
-//   " FROM("+s1jianCe(begin,end)+
-//   " join "+s1renwu(begin,end,scope)+
-//   " join "+s2jianCe(begin,end)+
-//   " join "+s2manYiDu(begin,end,scope)+
-//   " join "+s3tousu(begin,end,scope)+
-//   " join "+s4renYuanPeiXun(begin,end,scope)+
-//   " join "+s5renYuanJianDu(begin,end,scope)+
-//   " join "+s9neiBu(begin,end,scope)+
-//   " join "+s12fengXian(begin,end,scope)+
-//   " join "+s14bufuhexiang(begin,end,scope)+
-//   // " join "+s6sheBeiWeiHu(begin,end)+
-//   // " join "+s7sheBeiJiaoZhun(begin,end)+
-//   // " join "+s8sheBeiHeCha(begin,end)+
-//   ") tt"
-// }
-// /* 拼接通用条件,选用 */
-// function PAT(val){
-//   return "shi_fou_guo_shen_ = '1' AND YEAR ( create_time_ ) = '" + val+"'"
-// }
-// function PAT_SATISFACTION(val){
-//   return "man_yi_du_ = '满意' AND YEAR ( create_time_ ) = '" + val+"'"
-// }
-// function PAT_YEAR(val){
-//   return " YEAR ( create_time_ ) = '" + val+"'"
-// }
-// function PAT_TASK(val,choose){
-
-//   return choose?"shi_fou_guo_shen_ = '1' AND YEAR( create_time_ ) = '"+val+"' AND DATE(update_time_) BETWEEN DATE( create_time_ ) and DATE( qi_wang_wan_cheng ) ":"shi_fou_guo_shen_ = '1' AND YEAR( create_time_ ) = '"+val+"'"
-// }
-// function PAT_CHOOSE(val,choose){
-//   return choose + " AND YEAR( create_time_ ) = '"+val+"'"
-
-// }
-// /* 工具函数参数
-// 1、时间条件
-// 2、表名
-// 3、where条件
-// 4、连接与连接条件
-//   (0) on 1=1 JOIN  非结束的sql语句
-//   (1) on 1=1  仅被连接, 如当前方法最后一个sql语句
-//    */
-// function tool(val,tableName,where,join){
-//   let alias = tableName+val //别名
-//  return "( SELECT COUNT( id_ ) AS "
-//  +alias
-//  +" FROM "
-//  +tableName
-//  +" WHERE "
-//  +where
-//  +" ) "
-//  +alias
-//  + (join==0?" on 1=1 JOIN ":" on 1=1 ")
-// }
-// function toolTask(val,tableName,where,join){
-//   let alias = tableName+val //别名
-//  return "( SELECT COUNT( id_ ) AS "
-//  +alias
-//  +" FROM "
-//  +tableName
-//  +" WHERE "
-//  +where
-//  +" ) "
-//  +alias
-//  + (join==0?" on 1=1 JOIN ":" on 1=1 ")
-// }
-// function toolSame(val,tableName,where,join){
-//   let alias = tableName+'S'+val //别名
-//  return "( SELECT COUNT( id_ ) AS "
-//  +alias
-//  +" FROM "
-//  +tableName
-//  +" WHERE "
-//  +where
-//  +" ) "
-//  +alias
-//  + (join==0?" on 1=1 JOIN ":" on 1=1 ")
-// }
-// /* 任务完成 */
-// function s1renwu(begin,end,scope){
-//   return "( SELECT COUNT( id_ ) AS t_lhjczb"+end+" FROM t_lhjczb "+ "WHERE zhuang_tai_ = '已完成' and shi_fou_ji_shi_ = '是' AND YEAR( create_time_ ) = "+end+") s1renwu1  JOIN"+
-//   "( SELECT COUNT( id_ ) AS t_lhjcz"+end+" FROM t_lhjczb "+ "WHERE zhuang_tai_ = '已完成' and shi_fou_ji_shi_ = '否' AND YEAR( create_time_ ) = "+end+") s1renwu2  JOIN"+
-//   "( SELECT COUNT( id_ ) AS t_lhjc"+end+" FROM t_lhjczb "+ "WHERE (zhuang_tai_ != '已完成' or shi_fou_ji_shi_ ='' or shi_fou_ji_shi_ is null)  AND YEAR( create_time_ ) = "+end+") s1renwu3  JOIN"+
-//   "( SELECT COUNT( id_ ) AS t_lhjczbS"+end+" FROM t_lhjczb WHERE YEAR ( create_time_ ) = "+end+" ) s1renwu4  "
-
-//   }
-// /* 检测 */
-// function s1jianCe(begin,end){
-//   // 委托检测数
-//   return "SELECT *  FROM (select COUNT( id_ ) AS t_gdyrqcwt"+end+" from t_gdyrgpjc WHERE YEAR( create_time_ ) = "+end+" union all select id_ from t_gdyrqcjc WHERE YEAR( create_time_ ) = "+end+") s1jianCe1  JOIN "+
-//   "( select count(id_) AS t_gdyrqcwt6"+end+" from t_gdyrgpjc where qi_wang_wan_cheng>fa_fang_biao_zhi_ and wei_tuo_id_ in (select id_ from t_gdyrqcwt where YEAR( create_time_ ) = '"+end+"')  ) s1jianCe12 on 1=1"
-//   }
-//   /* 检测 */
-// function s2jianCe(begin,end){
-//   //v3
-//   return "( SELECT COUNT( id_ ) AS t_mjjcbg"+end+" FROM t_bgffdjb "+ "WHERE bao_gao_xiu_gai_j = '有' AND YEAR( create_time_ ) = "+end+" ) s2jianCe1 JOIN"+
-//   "( SELECT COUNT( id_ ) AS t_mjjcbgS"+end+" FROM t_bgffdjb WHERE  YEAR ( create_time_ ) = "+end+" ) s2jianCe2 "
-
-//   }
-//  /* 满意度 */
-//  function s2manYiDu(begin,end,scope){
-//   return "( SELECT COUNT(id_) as t_khmydtjbnum"+end+",sum(ping_fen_1_)+sum(ping_fen_2_)+sum(ping_fen_3_)+sum(ping_fen_4_)+sum(ping_fen_5_)  AS t_khmydtjb"+end+" FROM t_khmyddcb WHERE YEAR( create_time_ ) = "+end+" ) s2manYiDu1  JOIN"+
-//   "( SELECT COUNT( id_ ) AS t_khmydtjbS"+end+" FROM t_khmydtjb WHERE  YEAR ( create_time_ ) = "+end+" ) s2manYiDu2 "
-// }
-// /* 投诉 */
-// function s3tousu(begin,end,scope){
-//   return "( SELECT COUNT( id_ ) AS t_complaint"+end+" FROM t_complaint WHERE you_wu_you_xiao_ = '有效投诉' and YEAR ( create_time_ ) = "+end+" ) s3tousu1  JOIN "+
-//   "( SELECT COUNT( id_ ) AS t_complaintS"+end+" FROM t_complaint WHERE you_wu_you_xiao_ = '有效投诉' and chu_li_shi_jian_='<48h' and shi_fou_tong_yi_='同意' and YEAR ( create_time_ ) = "+end+" ) s3tousu2  JOIN "+
-//   "( SELECT COUNT( id_ ) AS t_complainS"+end+" FROM t_complaint WHERE you_wu_you_xiao_ = '有效投诉' and chu_li_jie_guo_sh='已通知' and YEAR ( create_time_ ) = "+end+" ) s3tousu3  JOIN "+
-//   "( SELECT COUNT( id_ ) AS t_mjwtsqb"+end+" FROM t_lhjczb WHERE  YEAR ( create_time_ ) = "+end+" ) s3weituo1"
-//  }
-//  /* 人员培训 */
-// function s4renYuanPeiXun(begin,end,scope){
-//   return "( SELECT COUNT( id_ ) AS t_ryywpxjl"+end+" FROM t_lhrypxjlb WHERE pei_xun_lei_xing_!='' and shi_fou_guo_shen_ = '1' AND YEAR ( bian_zhi_shi_jian ) = "+end+" ) s4renYuanPeiXun1  JOIN "+
-//   "( SELECT COUNT( id_ ) AS t_ryywpxjlS"+end+" FROM t_lhrypxjlb WHERE pei_xun_lei_xing_!='' and YEAR ( bian_zhi_shi_jian ) = "+end+" ) s4renYuanPeiXun2"
-//  }
-//  /* 人员监督 */
-// function s5renYuanJianDu(begin,end, scope){
-//   return "( SELECT COUNT( id_ ) AS t_zljd"+end+" FROM t_lhryjdjlb WHERE shi_fou_guo_shen_= '1' AND YEAR ( bian_zhi_shi_jian ) = "+end+" ) s5renYuanJianDu1  JOIN "+
-//   "( SELECT COUNT( id_ ) AS t_zljdS"+end+" FROM t_lhryjdjlb WHERE  YEAR ( bian_zhi_shi_jian ) = "+end+" ) s5renYuanJianDu2"
-//  }
-// /* 设备维护 */
-// function s6sheBeiWeiHu(begin,end){
-//  return "( SELECT COUNT( id_ ) AS t_yqsbwhjhxmt"+begin+" FROM t_yqsbwhjhxmt WHERE YEAR( create_time_ ) = "+begin+" ) s6sheBeiWeiHu1  JOIN "+
-//   tool(end,"t_yqsbwhjhxmt",PAT_YEAR(end),1)+" JOIN "+
-//   "( SELECT COUNT( id_ ) AS t_whbyxx"+begin+" FROM t_whbyxx WHERE YEAR ( create_time_ ) = "+begin+" ) s6sheBeiWeiHu2  JOIN "+
-//   tool(end,"t_whbyxx",PAT_YEAR(end),1)+" JOIN "+
-//   "( SELECT COUNT( id_ ) AS t_yqsbwhjhxmz"+begin+" FROM t_yqsbwhjhxmz WHERE YEAR( create_time_ ) = "+begin+" ) s6sheBeiWeiHu3  JOIN "+
-//   tool(end,"t_yqsbwhjhxmz",PAT_YEAR(end),1)+" JOIN "+
-//   "( SELECT COUNT( id_ ) AS t_whbyxmxxmz"+begin+" FROM t_whbyxmxxmz WHERE YEAR ( create_time_ ) = "+begin+" ) s6sheBeiWeiHu4  JOIN "+
-//   tool(end,"t_whbyxmxxmz",PAT_YEAR(end),1)+" JOIN "+
-//   "( SELECT COUNT( id_ ) AS t_yqsbwhjhxmy"+begin+" FROM t_yqsbwhjhxmy WHERE YEAR( create_time_ ) = "+begin+" ) s6sheBeiWeiHu5  JOIN "+
-//   tool(end,"t_yqsbwhjhxmy",PAT_YEAR(end),1)+" JOIN "+
-//   "( SELECT COUNT( id_ ) AS t_whbyxxmy"+begin+" FROM t_whbyxxmy WHERE YEAR ( create_time_ ) = "+begin+" ) s6sheBeiWeiHu6  JOIN "+
-//   tool(end,"t_whbyxxmy",PAT_YEAR(end),1)+" JOIN "+
-//   "( SELECT COUNT( id_ ) AS t_yqsbwhjhfb"+begin+" FROM t_yqsbwhjhfb WHERE (shi_fou_guo_shen_ like '%同意%' or shi_fou_guo_shen_='1') and  YEAR ( create_time_ ) = "+begin+" ) s6sheBeiWeiHu7  JOIN "+
-//   tool(end,"t_yqsbwhjhfb",PAT(end),1)+" JOIN "+
-//   "( SELECT COUNT( id_ ) AS t_yqsbwhjlfb"+begin+" FROM t_yqsbwhjlfb WHERE (shi_fou_guo_shen_ like '%同意%' or shi_fou_guo_shen_='1') and  YEAR ( create_time_ ) = "+begin+" ) s6sheBeiWeiHu8  JOIN "+
-//   tool(end,"t_yqsbwhjlfb",PAT(end),1)
-// }
-// /* 设备校准 */
-// function s7sheBeiJiaoZhun(begin,end){
-//   //v3
-//   return "(SELECT she_bei_ming_chen as t_mjsbjdxzjhzbName, COUNT(she_bei_ming_chen) as t_mjsbjdxzjhzb"+end+" FROM t_mjsbjdxzjhzb WHERE YEAR( create_time_ ) = "+end+" GROUP BY she_bei_ming_chen HAVING COUNT(she_bei_ming_chen)>=1 ORDER BY she_bei_ming_chen) s7sheBeiJiaoZhun1  JOIN " +
-//   "(SELECT she_bei_ming_chen as t_mjsbjdxzjhzbSName, COUNT(she_bei_ming_chen) as t_mjsbjdxzjhzbS"+end+" FROM t_mjsbjdxzjhzb WHERE YEAR( create_time_ ) = "+end+" AND DATE(yi_jian_xiao_ri_q) >= DATE(ji_hua_ri_qi_) GROUP BY she_bei_ming_chen HAVING COUNT(she_bei_ming_chen)>=1 ORDER BY she_bei_ming_chen) s7sheBeiJiaoZhun12 "
-//  }
-//  /* 设备核查 */
-// function s8sheBeiHeCha(begin,end){
-//   return "( SELECT COUNT( id_ ) AS t_sbhcjh"+begin+" FROM t_sbhcjh WHERE shi_fou_guo_shen_ = '1' and YEAR( create_time_ ) = "+begin+" ) s8sheBeiHeCha1  JOIN "+
-//    tool(end,"t_sbhcjh",PAT(end),1)+" JOIN "+
-//    "( SELECT COUNT( id_ ) AS t_sbhcjlb"+begin+" FROM t_sbhcjlb WHERE shi_fou_guo_shen_ = '1' and  YEAR ( create_time_ ) = "+begin+" ) s8sheBeiHeCha2  JOIN "+
-//    tool(end,"t_sbhcjlb",PAT(end),1)
-//  }
-//  /* 内部质量控制 */
-// function s9neiBu(begin,end,scope){
-//   return "( SELECT COUNT( id_ ) AS t_mjzlkzxb"+end+" FROM t_mjzlkzxb WHERE YEAR ( create_time_ ) = "+end+" ) s9neibu1  JOIN "+
-//   "(SELECT COUNT( t_mjzlkzxb.id_ ) AS t_mjzlkzxbS"+end+" FROM t_mjzlkzxb , t_zlkzjlb WHERE t_mjzlkzxb.xiang_mu_=t_zlkzjlb.zhi_kong_xiang_mu AND t_mjzlkzxb.shi_shi_shi_jian_ = t_zlkzjlb.ji_hua_ri_qi_  and t_zlkzjlb.shi_fou_guo_shen_='1' AND YEAR ( t_mjzlkzxb.create_time_ ) = "+end+" ) s9neibu2 join"+
-//   "( SELECT COUNT( id_ ) AS t_mjzlkzjlb"+end+" FROM t_mjzlkzjlb WHERE length(shi_fou_guo_shen_) >0 AND YEAR ( create_time_ ) = "+end+" ) s9neibu3 join" +
-//   "( SELECT COUNT( id_ ) AS t_mjzlkzjlbS"+end+" FROM t_mjzlkzjlb WHERE shi_fou_guo_shen_=1 AND YEAR ( create_time_ ) = "+end+" ) s9neibu4"
-
-//  }
-//  function s12fengXian(begin,end,scope){
-//   return "(select COUNT(t_mjsyshdfxsbykzjhxb.id_) as t_mjsyshdfxsbykzjhxb"+end+" from t_mjsyshdfxsbykzjhxb INNER JOIN t_mjsyshdfxsbykzjhb on t_mjsyshdfxsbykzjhxb.parent_id_ = t_mjsyshdfxsbykzjhb.id_  where YEAR(t_mjsyshdfxsbykzjhxb.shi_shi_ri_qi_)="+end+") s12fengxian1  JOIN " +
-//   "(select COUNT(id_) as t_mjsyshdfxsbykzjhxbS"+end+" from t_mjsyshdfxkzypjjlb where shi_fou_guo_shen_ = '1' and YEAR ( create_time_ ) = "+end+") s12fengxian2 "
-
-//  }
-//  function s14bufuhexiang(begin,end,scope){
-//   return "(select COUNT(t_bfhxbgyjzcsjlbx.id_) as t_bfhxbgyjzcsjlbx"+end+" from t_bfhxbgyjzcsjlbx where YEAR(t_bfhxbgyjzcsjlbx.create_time_)="+end+") s14bufuhexiang1  JOIN " +
-//   "(select COUNT(t_bfhxbgyjzcsjlbx.id_) as t_bfhxbgyjzcsjlbxS"+end+" from t_bfhxbgyjzcsjlbx where t_bfhxbgyjzcsjlbx.shi_fou_guo_shen_ = '1' and YEAR(t_bfhxbgyjzcsjlbx.create_time_)="+end+") s14buhexiang2 "
-
-//  }