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
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
<title ng-bind="type=='10'?'预算单':''+type=='20'?'申请单':''+type=='30'?'报销单':''">
 
</title>
<div class="split_form" id="searchorder">
    <div class="main travel_expense" style="padding-left:230px;padding-right:0px;">
        <div>
            <ul class="main_choose">
                <li ng-bind="my_form" ng-click="toggle_form(1)" ng-class="{'main_active':$root.my_form_type == 1}"></li>
                <li ng-if="$root.permission_check(type,3)" ng-bind="my_check_form" ng-click="toggle_form(2)" ng-class="{'main_active':$root.my_form_type == 2}"></li>
            </ul>
        </div>
        <div class="condition_search">
            <div class="condition_search_header">
                <label class="first"></label>
                <label class="second" ng-show="permission_check('change',1)">
                    <a 
                        ng-href="javascript:void(0);" 
                        ng-click="show_search_dropdown($event);"
                        id="change_search_condition"
                        >
                        <img src="./static/img/search_item.png">
                        &nbsp;更改查询内容
                    </a>
                </label>
            </div>
            <div class="search_item" >
                <div class="search_column" ng-repeat="search in searchlist | filter: {selected: true}">
                    <!--预算、申请、报销单号-->
                    <span ng-if="search.gc_cpn_type == 1 || search.gc_cpn_type == 2 || search.gc_cpn_type == 90">
                        <input type="text" name="{{search.sfFieldName}}" ng-model="search.valueLeft" ng-keydown="search_keydown($event)" class="text_input">
                    </span>
                    <span ng-if="search.gc_cpn_type == 5" style="display: inline-block;width:285px;">
                        <span style="display: inline-block;width: 47%;">
                            <input type="text" date editflag="1" name="{{search.sfFieldName}}" ng-model="search.valueLeft" ng-keydown="search_keydown($event)"> 
                        </span>
                        <span>
                            ~ 
                        </span>
                        <span style="display: inline-block;width: 47%;">
                            <input type="text" date editflag="1" name="{{search.sfFieldName}}" ng-model="search.valueRight" ng-keydown="search_keydown($event)">
                        </span>
                    </span>
                    <span ng-if="search.gc_cpn_type == 7">
                        <span>
                            <input type="text" name="{{search.sfFieldName}}" ng-model="search.valueLeft" ng-keydown="search_keydown($event)"> 
                        </span>
                        <span>
                            ~ 
                        </span>
                        <span>
                            <input type="text" name="{{search.sfFieldName}}" ng-model="search.valueRight" ng-keydown="search_keydown($event)">
                        </span>
                    </span>
                    <span ng-if="search.gc_cpn_type == 3 || search.gc_cpn_type == 4 || search.gc_cpn_type == 6" ng-model="search.valueLeft">
                        <span select3 item="search">
                            <select name="{{search.sfFieldName}}"
                                multiple
                                load-data
                            >
                            </select>
                        </span>
                    </span>
                    <span ng-if="search.gc_cpn_type == 11">
                        <span select3 item="search">
                            <select name="{{search.sfFieldName}}"
                                multiple
                                load-data
                            >
                            </select>
                        </span>
                    </span>
                    <span ng-if="search.gc_cpn_type == 12">
                        <span select3 item="search">
                            <select name="{{search.sfFieldName}}"
                                multiple
                                load-data
                            >
                            </select>
                        </span>
                    </span>
                    <span ng-if="search.gc_cpn_type == 13">
 
                    </span>
                    
                    <!--<span ng-if="search.gc_cpn_type == 0">
                        <span select3 item="search">
                            <select name="{{search.sfFieldName}}"
                                multiple
                                load-data
                            >
                            </select>
                        </span>
                    </span>-->
                    <label ng-bind="search.gc_cpn_alias">
                        <!--{{search.gc_cpn_alias}}-->
                    </label>
                </div>
                <div class="search_column" ng-if="$root.my_form_type == 2">
                    <label>状态</label>
                    <select name="status" ng-model="$root.my_status" class="myselect">
                        <option ng-value="10" >已审核</option>
                        <option ng-value="20" >驳回</option>
                        <option ng-value="30" >已通过</option>
                        <option ng-value="50" >待审核</option>
                    </select>
                </div>
                <div class="search_column_button" ng-if="$root.my_form_type == 1">
                    <span>
                        <span>
                            <button ng-show="permission_check('search',1)" class="btn btn-success btn-favourite btn-action" ng-click="refreshdata()" id="search_condition">查询</button> 
                        </span>
                    </span>
                </div>
                <div class="search_column_button" ng-if="$root.my_form_type == 2">
                    <span>
                        <span>
                            <button ng-show="permission_check(type,4)" class="btn btn-success btn-favourite btn-action" ng-click="refreshdata()" id="search_condition">查询</button> 
                        </span>
                    </span>
                </div>
            </div>
        </div>
        <div class="condition_search">
            <div class="condition_search_header">
                <div class="first">
                    <span><button ng-show="permission_check('new',1) && $root.my_form_type == 1" class="btn btn-success btn-favourite btn-action" ng-click="new();" id="new_order">+ 新建</button></span>   
                    <span ng-show="permission_check('delete',1) && $root.my_form_type == 1"><a ng-href="javascript:void(0);" ng-click="delete_batch();"><img src="./static/img/travel_expense_del.png" id="delete_order">删除</a></span>
                    <!--
                    <span><a ng-href="javascript:void(0);" ng-click="import();"><img src="./static/img/travel_expense_import.png">导入</a></span>
                    <span><a ng-href="javascript:void(0);" ng-click="export();"><img src="./static/img/travel_expense_export.png">导出</a></span>
                    -->
                </div>
                <label class="second">
                  <!--  <span>汇总金额: <span ng-bind="sum_money"></span></span>-->
                    <span ng-show="permission_check('show',1)">
                        <a
                        ng-href="javascript:void(0);" 
                        ng-click="show_conent_dropdown($event);"
                        id="show_condition"
                        >
                            <img src="./static/img/travel_expense_view_content.png">&nbsp;显示内容
                        </a>
                    </span>
                    <!--
                    <span><img src="./static/img/travel_expense_full.png">&nbsp;全屏</span>
                    -->
                </label>
            </div>
            <div class="table-content">
                <table class="table table_travel_expense">
                    <thead>
                        <tr>
                            
                            <th style="width:70px;" ng-show="$root.my_form_type == 1">
                                &nbsp;
                            </th>
                            <th ng-repeat="data in budget_data.headers track by $index" ng-click="content_ordering()">
                                {{data.label}}
                            </th>
                            <th ng-if="$root.my_form_type == 2">
                                状态
                            </th>
                        </tr>
                    </thead>
                    <tbody>
                        
                        <tr 
                            class="{{($index % 2)?'odd':'even'}}"
                            click-detail-td 
                            ng-repeat="data in budget_data.data track by $index"
                        >
                            <td ng-show="$root.my_form_type == 1">
                                <input 
                                    type="checkbox" 
                                    style="margin:0px;height:12px;width:12px;"
                                    bind_value="{{doc_id(data)}}"
                                    name="bill_cbx_{{doc_id(data)}}" 
                                    ng-click="select_bill($event);"
                                    ng-show="doc_id(data) && delete_checkbox(data)"
                                />
                            </td>
                            <td class="ellipsis_td" ng-repeat="value in sub_data(data) track by $index" title="{{value}}">
                                {{value}}
                            </td>
                        </tr>
                    </tbody>
                </table>
            </div>
            <div class="condition_search_footer">
                <label class="first">
                    <span>
                        <select ng-model="num_per_page" ng-change="change_page_num();">
                            <option value="20" selected="selected" >20条/页</option>
                            <option value="50"> 50条/页</option>
                            <option value="100">100条/页</option>
                        </select>
                    </span>
                    <span ng-bind="'共'+math_ceil(rows / num_per_page)+'页'">
                        <!--共{{math_ceil(rows / num_per_page)}}页-->
                    </span>
                </label>
                <label class="second">
                    <span>
                    <a ng-href="javascript:void(0);" ng-click="pre_page();">
                        <i class="fa" aria-hidden="true">上一页</i>
                    </a>
                    </span>
                    <span>
                        <a ng-href="javascript:void(0);" ng-click="next_page();">
                            <i class="fa" aria-hidden="true">下一页</i>
                        </a>
                    </span>
                    <span>第<input type="text" value="1" ng-model="page_num" ng-blur="change_page();" ng-change="change_keycode(page_num)"> 页/ 共<span ng-bind="math_ceil(rows / num_per_page)"></span>页</span>
                </label>
            </div>
        </div>
    </div>
    <div class="wait bg-modal bill_create_pop" ng-if="wait"><i class="fa fa-spinner fa-pulse fa-3x fa-fw"></i></div>
    <div class="left" style="width:230px;">
        <ul class="ul-tree">
            <li>
                <img src="./static/img/to_do.png" class="small" >
                <a
                    ng-href="javascript:void(0);"
                    ng-click="redirect_to('/travel_expense_todos/')"
                >
                    我的待办
                </a>
            </li>
            <li ng-if="permission_check('budgetorder') && $root.budget_open == 1">
                <img src="./static/img/create_form.png" class="small" >
                <a
                    ng-class="{'active': type=='10'}"
                    ng-href="javascript:void(0);"
                    ng-click="redirect_to('/travel_expense/1')"
                >
                    预&nbsp;算
                </a>
            </li>
            <li ng-if="permission_check('applyorder') && $root.apply_open == 1">
                <img src="./static/img/form_created.png" >
                <a
                    ng-class="{'active': type=='20'}"
                    ng-href="javascript:void(0);"
                    ng-click="redirect_to('/travel_expense/2')"
                >
                    申&nbsp;请
                </a>
            </li>
            <li ng-if="permission_check('expendorder') && $root.expend_open == 1">
                <img src="./static/img/form_default.png" >
                <a
                    ng-class="{'active': type=='30'}"
                    ng-href="javascript:void(0);"
                    ng-click="redirect_to('/travel_expense/3')"
                >
                    报&nbsp;销
                </a>
            </li>
        </ul>
    </div>
</div>