<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">
|
更改查询内容
|
</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"> 显示内容
|
</a>
|
</span>
|
<!--
|
<span><img src="./static/img/travel_expense_full.png"> 全屏</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">
|
|
</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')"
|
>
|
预 算
|
</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')"
|
>
|
申 请
|
</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')"
|
>
|
报 销
|
</a>
|
</li>
|
</ul>
|
</div>
|
</div>
|