1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
  | /** 
 |   * 公共功能js 
 |   * 2016-11-17 by 姜友瑶 
 |   */ 
 |    
 |  var fnPublci=function(){ 
 |       
 |      return { 
 |           
 |          /** 
 |           * 初始化一个树形的功能选择框   
 |           * seler 选择器 
 |           * def 默认值 
 |           */ 
 |          initFunctionSelect:function (seler,def){ 
 |              $.AjaxProxy().invoke(basePath+"/admin/sysFunction/all", 
 |                      function(loj) { 
 |                          $(seler).createSelectTree( 
 |                                          loj.attr("result").rows, 
 |                                          {    id : "fnId",         
 |                                              parent : "fnParentId",     
 |                                              value : "fnName",     
 |                                              append : false, 
 |                                              defaultValue : def, 
 |                                              defaultHtml : '<option value="" selected="selected">一级功能</option>' 
 |                                          }); 
 |                      }); 
 |          }, 
 |    
 |          /** 
 |           * 初始化文章类型树形的功能选择框 
 |           * seler 选择器 
 |           * def 默认值 
 |           */ 
 |          initArticleTypeSelect:function (seler,def){ 
 |              $.AjaxProxy().invoke(basePath+"/admin/shopArticleType/all", 
 |                  function(loj) { 
 |                      $(seler).createSelectTree( 
 |                          loj.attr("result").rows, 
 |                          {    id : "artypeId", 
 |                              parent : "artypeParentid", 
 |                              value : "artypeName", 
 |                              append : false, 
 |                              defaultValue : def, 
 |                              defaultHtml : '<option value="" selected="selected">一级文章类别</option>' 
 |                          }); 
 |                  }); 
 |          }, 
 |           
 |          /** 
 |           * 打开图标显示界面,并把选中的值传给控件 
 |           * */ 
 |           showIcon:function() { 
 |              layer.open({ 
 |                  type : 2, 
 |                  title : "选择图标", 
 |                  area : [  '80%', '80%' ], 
 |                  fix : true, 
 |                  maxmin : true, 
 |                  content : basePath+'/common/redirect/icons' 
 |              }); 
 |          }, 
 |    
 |          /** 
 |           * 打开服务单详情 
 |           * 1 根据编号查询,2根据id查询 
 |           */ 
 |          showServiceOrder:function(type ,param) { 
 |              var url =""; 
 |              if(type==1){ 
 |                  url=basePath+'/admin/projService/serviceInfo?pageFlae=pc&serviceNo=' + param 
 |              }else{ 
 |                  url=basePath+'/admin/projService/serviceInfo?pageFlae=pc&id=' + param 
 |              } 
 |              layer.open({ 
 |                  type : 2, 
 |                  title : "查看服务单详情", 
 |                  area :   MUI.SIZE_M, 
 |                  maxmin : true, 
 |                  content : [url] 
 |              }); 
 |          }, 
 |    
 |          /** 
 |           * 跳转消费流水详情页面 
 |           */ 
 |          showOrder:function(type ,param) { 
 |    
 |              var url =""; 
 |              if(type==1){ 
 |                  url=basePath+'/admin/order/orderItem?orderNo=' + param 
 |              }else{ 
 |                  url=basePath+'/admin/order/orderItem?id=' + param 
 |              } 
 |    
 |              layer.full(layer.open({ 
 |                  type : 2, 
 |                  title : "订单详情", 
 |                  maxmin : true, 
 |                  area : MUI.SIZE_M, 
 |                  content : [url ] 
 |              })); 
 |      } 
 |    
 |    
 |    
 |    
 |    
 |    
 |      } 
 |  }(); 
 |  
  |