zm
2020-04-12 0d659cff38f50d83e782a9f8c5c20fb54a5c0321
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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
<title>模板中心</title>
<div class="split_form" ng-click="show_sign_all();$event.stopPropagation();$(event).preventDefault();" id="templates_center">
    <div class="main travel_expense form_container" style="padding-left:230px;padding-right:0px;">
        <div class="content">
            <div class="container">
                <ul class="business_items forms_center">
 
                    <li ng-repeat="business in indus_templates">
                        <div ng-mouseenter="mouseover_business_item($event)" ng-mouseleave="mouseout_business_item($event)">
                            <label ng-bind="business.inName"></label>
                            <ul>
                                <li ng-bind="business.inDesc">
                                    <!--{{business.inDesc}}-->
                                </li>
                            </ul>
                            <img src="{{business.inBigIcon}}" />
                            <span ng-bind="business.inName"></span>
                        </div>
                    </li>
 
                    <!--
                    <li>
                        <a ng-href="javascript:void(0);" ng-click="show_more();">
                            <img src="./static/img/more_collapse.png" />
                            <label class="bottom_label"> &nbsp;&nbsp;&nbsp;{{business_card_shown?'返回':'更多'}}</label>
                        </a>
                    </li>
                   -->
                </ul>
            </div>
        </div>
    </div>
 
    <div class="left" style="width:230px;">
        <div class="containr_header">
            模板管理
        </div>
        <ul class="ul-tree templates_list">
            <li ng-repeat="template in indus_templates">
                <div class="template_list_top">
                    <a ng-href="javascript:void(0);" ng-click="collapse=!collapse">
                        <img src="{{template.inBigIcon}}"><i style="font-style: normal;" ng-bind="template.inName"></i>
                    </a>
 
                    <!--加入标志符-->
                    <span ng-style="template.o1" ng-click="show_sign(template);$event.stopPropagation();">i</span>
                </div>
 
                <!--表单内容-->
                <div class="list-operation" ng-show="template.num1==1&&temp_show_falg">
                    <div class="list-triangle-top">
                        <div class="list-triangle-top-in"></div>
                        <div class="list-triangle-top-out"></div>
                    </div>
                    <div class="list-group list-operation-centent" ng-init="indus_change_type=0">
                        <a ng-show="permission_check('add_bussiness')" ng-href="javascript:void(0);" class="list-group-item" ng-click="template.num2=1;template.num1=0;indus_change_type=1;" id="add_bussiness">添加行业</a>
                        <a ng-show="permission_check('edit_bussiness')" ng-href="javascript:void(0);" class="list-group-item" ng-click="template.num2=1;template.num1=0;indus_change_type=2;" id="edit_bussiness">修改行业</a>
                        <a ng-show="permission_check('delete_bussiness')" ng-href="javascript:void(0);" class="list-group-item" ng-click="delete_indus(template);template.num3=0;template.num1=0;indus_change_type=3;" id="delete_bussiness">删除行业</a>
                    </div>
                </div>
                <div class="list-change" ng-show="template.num2==1||template.num3==1">
                    <div class="list-triangle-top">
                        <div class="list-triangle-top-in"></div>
                        <div class="list-triangle-top-out"></div>
                    </div>
                    <div class="list-change-centent">
                        <label ng-show="template.num2==1">标题&nbsp;&nbsp;</label><input ng-show="template.num2==1" type="text" ng-model="$parent.template_title">
                        <!-- <div ng-show="permission_check('template_pass')&&template.num2==1"> -->
                        <div ng-show="false">
                            <label>图标</label><input type="file" file-model="images" ngf-select onchange="angular.element(this).scope().img_change(this.files)" name="file"  ngf-pattern="image/*" accept="image/jpg,image/jpeg,image/png" ngf-max-size="5MB" ngf-min-height="100"/>
                            <img src={{images}} alt="" ng-show="template.img_show_flag">
                        </div>
                        <div class="list-button">
                            <button type="button" class="btn btn-primary" ng-click="indus_change(template,indus_change_type)" id="template_pass">确定</button>
                            <button type="button" class="btn btn-default" data-dismiss="modal" ng-click="template.num1=0;template.num2=0;template.num3=0;template.o1={}" id="template_cancle">取消</button>
                        </div>
                    </div>
                </div>
                <!--表单内容结束-->
 
                <ul ng-if="collapse" class="list_detail_ul">
                    <li class="list_detail_li">
                        <div class="template_list_second">
                            <!--<img src="./static/img/doc.png">-->
                            <img src="./static/img/rebuise_card.png"/>
                            <a ng-href="javascript:void(0);" ng-click="budget_show =! budget_show;$event.stopPropagation();">
                                预算单
                            </a>
                            <!--加入标志符-->
                            <span ng-style="template.o1_budget" ng-click="show_sign_budget(template);$event.stopPropagation();">i</span>
                        </div>
                        <!--表单内容-->
                        <div class="list-operation" ng-show="template.num1_budget==1&&temp_show_falg">
                            <div class="list-triangle-top">
                                <div class="list-triangle-top-in"></div>
                                <div class="list-triangle-top-out"></div>
                            </div>
                            <div ng-show="permission_check('add_budget_template')" class="list-group list-operation-centent">
                                <a ng-href="javascript:void(0);" class="list-group-item" ng-click="redirect_to_args('/budget_form_customize',10,template.inCode,'',3)" id="add_budget_template">添加预算单模版</a>
                            </div>
                        </div>
                        <!--表单内容结束-->
                        <ul ng-if="budget_show">
                            <li class="list_detail" ng-repeat="budget in template.budgets">
                                <a ng-href="javascript:void(0);" ng-click="show_saved_form( template.inCode,10,3,budget.guId);$event.stopPropagation();">
                                    {{budget.guTempName}}
                                </a>
                                <!--加入标志符-->
                                <span ng-style="budget.o1_detail" ng-click="show_sign_budget_detail(template,budget);$event.stopPropagation();">i</span>
                                <!--表单内容-->
                                <div class="list-operation" ng-show="budget.num1_detail==1&&temp_show_falg">
                                    <div class="list-triangle-top">
                                        <div class="list-triangle-top-in"></div>
                                        <div class="list-triangle-top-out"></div>
                                    </div>
                                    <div ng-show="permission_check('delete_budget_template')" class="list-group list-operation-centent">
                                        <a ng-href="javascript:void(0);" class="list-group-item" ng-click="delete_form(budget);budget.num3=1;budget.num1=0"  id="delete_budget_template">删除预算单模版</a>
                                    </div>
                                </div>
                                <div class="list-change" ng-show="budget.num2==1||budget.num3==1">
                                    <div class="list-triangle-top">
                                        <div class="list-triangle-top-in"></div>
                                        <div class="list-triangle-top-out"></div>
                                    </div>
                                </div>
                                <!--表单内容结束-->
                            </li>
                        </ul>
                    </li>
                    <li class="list_detail_li">
                        <div class="template_list_second">
                            <!--<img src="./static/img/doc.png">-->
                            <img src="./static/img/rebuise_card.png"/>
                            <a ng-href="javascript:void(0);" ng-click="apply_show =!apply_show;$event.stopPropagation();">
                                申请单
                            </a>
                            <!--加入标志符-->
                            <span ng-style="template.o1_apply" ng-click="show_sign_apply(template);$event.stopPropagation();">i</span>
                        </div>
                        <!--表单内容-->
                        <div class="list-operation" ng-show="template.num1_apply==1&&temp_show_falg">
                            <div class="list-triangle-top">
                                <div class="list-triangle-top-in"></div>
                                <div class="list-triangle-top-out"></div>
                            </div>
                            <div ng-show="permission_check('add_apply_template')" class="list-group list-operation-centent">
                                <a ng-href="javascript:void(0);" class="list-group-item" ng-click="redirect_to_args('/budget_form_customize',20,template.inCode,'',3)" id="add_apply_template">添加申请单模版</a>
                            </div>
                        </div>
                        <!--表单内容结束-->
                        <ul ng-if="apply_show">
                            <li class="list_detail" ng-repeat="apply in template.applys">
                                <a ng-href="javascript:void(0);" ng-click="show_saved_form( template.inCode,20,3,apply.guId);$event.stopPropagation();">
                                    {{apply.guTempName}}
                                </a>
                                <!--加入标志符-->
                                <span ng-style="apply.o1_detail" ng-click="show_sign_apply_budget_detail(template,apply);$event.stopPropagation();">i</span>
                                <!--表单内容-->
                                <div class="list-operation" ng-show="apply.num1_detail==1&&temp_show_falg">
                                    <div class="list-triangle-top">
                                        <div class="list-triangle-top-in"></div>
                                        <div class="list-triangle-top-out"></div>
                                    </div>
                                    <div ng-show="permission_check('delete_apply_template')" class="list-group list-operation-centent">
                                        <a ng-href="javascript:void(0);" class="list-group-item" ng-click="delete_form(apply);apply.num3=1;apply.num1=0" id="delete_apply_template">删除申请单模版</a>
                                    </div>
                                </div>
                                <!--表单内容结束-->
                            </li>
                        </ul>
                    </li>
                    <li class="list_detail_li">
                        <div class="template_list_second">
                            <!--<img src="./static/img/doc.png">-->
                            <img src="./static/img/rebuise_card.png"/>
                            <a ng-href="javascript:void(0);" ng-click="expend_show =! expend_show;$event.stopPropagation();">
                                报销单
                            </a>
                            <!--加入标志符-->
                            <span ng-style="template.o1_reimbursement" ng-click="show_sign_reimbursement(template);$event.stopPropagation();">i</span>
                        </div>
                        <!--表单内容-->
                        <div class="list-operation" ng-show="template.num1_reimbursement==1&&temp_show_falg">
                            <div class="list-triangle-top">
                                <div class="list-triangle-top-in"></div>
                                <div class="list-triangle-top-out"></div>
                            </div>
                            <div ng-show="permission_check('add_expend_template')" class="list-group list-operation-centent">
                                <a ng-href="javascript:void(0);" class="list-group-item" ng-click="redirect_to_args('/budget_form_customize',30,template.inCode,'',3)" id="add_expend_template">添加报销单模版</a>
                            </div>
                        </div>
                        <!--表单内容结束-->
                        <ul ng-if="expend_show">
                            <li class="list_detail" ng-repeat="expend in template.expends">
                                <a ng-href="javascript:void(0);" ng-click="show_saved_form( template.inCode,30,3,expend.guId);$event.stopPropagation();">
                                    {{expend.guTempName}}
                                </a>
                                <!--加入标志符-->
                                <span ng-style="expend.o1_detail" ng-click="show_sign_extend_detail(template,expend);$event.stopPropagation();">i</span>
                                <!--表单内容-->
                                <div class="list-operation" ng-show="expend.num1_detail==1&&temp_show_falg">
                                    <div class="list-triangle-top">
                                        <div class="list-triangle-top-in"></div>
                                        <div class="list-triangle-top-out"></div>
                                    </div>
                                    <div ng-show="permission_check('delete_expend_template')" class="list-group list-operation-centent">
                                        <a ng-href="javascript:void(0);" class="list-group-item" ng-click="delete_form(expend);expend.num3=1;expend.num1=0;" id="delete_expend_template">删除报销单模版</a>
                                    </div>
                                </div>
                                <!--表单内容结束-->
                            </li>
                        </ul>
                    </li>
                </ul>
            </li>
        </ul>
    </div>
</div>