<title>系统设置</title>
|
<div class="system_cfg" id="system_config">
|
<div class="bread_crumb">
|
<i class="fa fa-home" ></i>
|
<i class="fa fa-angle-right" aria-hidden="true"></i>
|
<label>系统设置</label>
|
</div>
|
|
|
|
<div class="container form ">
|
<ul id="myTab" class="col-md-8 nav nav-tabs">
|
<li class="active"><a data-toggle="tab" style="cursor:pointer" ng-click="chang_show_flag(0)">
|
系统设置</a></li>
|
<li><a data-toggle="tab" style="cursor:pointer" ng-click="chang_show_flag(1)">系统变量</a></li>
|
</ul>
|
<div id="system_setting" ng-show="show_flag==0">
|
|
<div class="row">
|
<div class="col-md-8">
|
<div class="panel panel-default">
|
<div class="panel-heading">
|
<label>系统设置</label>
|
</div>
|
<div class="panel-heading {{!parseInt(cfg_data.budget.budget_open) && 'collapse_heading'}}">
|
<label>是否启用预算单</label>
|
<img ng-src="{{parseInt(cfg_data.budget.budget_open)?'./static/img/switch_on.png':'./static/img/switch_off.png'}}" ng-click="toggle('cfg_data.budget.budget_open');">
|
<label>*(否,则无需针对其他相关参数设置)</label>
|
</div>
|
<!--<div class="panel-body" ng-if="parseInt(cfg_data.budget.budget_open)">
|
<table class="table table-bordered system_cfg_frm" >
|
<tbody>
|
<tr>
|
<td>启用预算类型</td>
|
<td>
|
<div >
|
<span>
|
<input type="checkbox" value="0" ng-model="cfg_data.budget.budget_type[0]" >
|
</span>
|
<label>
|
部门预算
|
</label>
|
</div>
|
<div>
|
<span>
|
<input type="checkbox" value="1" ng-model="cfg_data.budget.budget_type[1]" >
|
</span>
|
<label>
|
项目预算
|
</label>
|
</div>
|
</td>
|
</tr>
|
<tr>
|
<td>预算管控方式</td>
|
<td>
|
<div>
|
<span>
|
<input type="radio" value="0" ng-model="cfg_data.budget.budget_method" >
|
</span>
|
<label>
|
预警
|
</label>
|
</div>
|
<div>
|
<span>
|
<input type="radio" value="1" ng-model="cfg_data.budget.budget_method">
|
</span>
|
<label>
|
限制
|
</label>
|
</div>
|
</td>
|
</tr>
|
<tr>
|
<td>预算执行预警值</td>
|
<td>
|
<div>
|
<span>
|
<input type="radio" value="ratio" ng-model="budget_ctrl_value.type" ng-disabled="cfg_data.budget.budget_method === '1'">
|
</span>
|
<label>
|
比例值
|
<input
|
type="text"
|
ng-model="cfg_data.budget.budget_scale"
|
ng-disabled="budget_ctrl_value.type === 'finger' || cfg_data.budget.budget_method === '1'"
|
ng-change="check_ratio_value();">
|
</label>
|
<label class="error" ng-if="cfg_data.budget.budget_scale && !ratio_val_match">比例值类型不合法, 请重新输入。</label>
|
</div>
|
<div>
|
<span class="second_level" >
|
<input
|
type="radio"
|
value="finger"
|
ng-model="budget_ctrl_value.type"
|
ng-disabled="cfg_data.budget.budget_method === '1'">
|
</span>
|
<label>
|
数值
|
<input
|
type="text"
|
ng-model="cfg_data.budget.budget_amount"
|
ng-disabled="budget_ctrl_value.type === 'ratio' || cfg_data.budget.budget_method === '1'"
|
ng-change="check_finger_value();" >
|
</label>
|
<label class="error" ng-if="cfg_data.budget.budget_amount && !finger_val_match">数值类型不合法, 请重新输入。</label>
|
</div>
|
</td>
|
</tr>
|
</tbody>
|
</table>
|
</div>-->
|
</div>
|
</div>
|
</div>
|
|
<div class="row">
|
<div class="col-md-8">
|
<div class="panel panel-default">
|
<div class="panel-heading {{!parseInt(cfg_data.apply.apply_open) && 'collapse_heading'}}">
|
<label>是否启用申请单</label>
|
<img ng-src="{{parseInt(cfg_data.apply.apply_open)?'./static/img/switch_on.png':'./static/img/switch_off.png'}}" ng-click="toggle('cfg_data.apply.apply_open');">
|
<label><!--*(否,则无需针对其他相关参数设置)--></label>
|
</div>
|
<!--<div class="panel-body" ng-if="parseInt(cfg_data.apply.apply_open)">
|
<table class="table table-bordered system_cfg_frm" >
|
<tbody>
|
<tr>
|
<td>启用申请工具模块的业务类型</td>
|
<td>
|
<div>
|
<span>
|
<input type="checkbox" value="0" ng-model="cfg_data.apply.apply_type[0]" >
|
</span>
|
<label>
|
主数据带入
|
</label>
|
</div>
|
<div>
|
<span>
|
<input type="checkbox" value="1" ng-model="cfg_data.apply.apply_type[1]" >
|
</span>
|
<label>
|
参加业务类型集
|
</label>
|
</div>
|
</td>
|
</tr>
|
<tr>
|
<td>开始占用预算额度的审批节点</td>
|
<td>
|
<div>
|
<span>
|
<input type="radio" value="0" ng-model="cfg_data.apply.apply_point">
|
</span>
|
<label>
|
申请环节第一审批人
|
</label>
|
</div>
|
<div>
|
<span>
|
<input type="radio" value="1" ng-model="cfg_data.apply.apply_point">
|
</span>
|
<label>
|
申请环节最后审批人
|
</label>
|
</div>
|
</td>
|
</tr>
|
</tbody>
|
</table>
|
</div>-->
|
</div>
|
</div>
|
</div>
|
<div class="row">
|
<div class="col-md-8">
|
<div class="panel panel-default">
|
<div class="panel-heading {{!parseInt(cfg_data.expend.expend_open) && 'collapse_heading'}}">
|
<label>是否启用报销管理模块</label>
|
<img src="{{parseInt(cfg_data.expend.expend_open)?'./static/img/switch_on.png':'./static/img/switch_off.png'}}" ng-click="toggle('cfg_data.expend.expend_open');">
|
<label><!--*(否,则无需针对其他相关参数设置)--></label>
|
</div>
|
<!--<div class="panel-body" ng-if="parseInt(cfg_data.expend.expend_open)">
|
<table class="table table-bordered system_cfg_frm " >
|
<tbody>
|
<tr>
|
<td>报销金额是否允许超过原申请单金额</td>
|
<td>
|
<div>
|
<label style="text-align:center;">
|
是
|
</label>
|
<label>
|
<img
|
ng-src="{{parseInt(cfg_data.expend.expend_over)?'./static/img/switch_on.png':'./static/img/switch_off.png'}}"
|
ng-click="toggle('cfg_data.expend.expend_over');"
|
>
|
</label>
|
<label style="text-align:left;margin-left:-35px;">
|
否
|
</label>
|
<label>
|
*(逻辑管控点:超预算执行是否需要领导单独事项审批)
|
</label>
|
</div>
|
</td>
|
</tr>
|
<tr>
|
<td>报销金额小于等于原申请单金额情况下是否需要单独就报销事项再审批</td>
|
<td>
|
<div>
|
<label style="text-align:center;">
|
是
|
</label>
|
<label>
|
<img
|
ng-src="{{parseInt(cfg_data.expend.expend_below)?'./static/img/switch_on.png':'./static/img/switch_off.png'}}"
|
ng-click="toggle('cfg_data.expend.expend_below');"
|
>
|
</label>
|
<label style="text-align:left;margin-left:-35px;">
|
否
|
</label>
|
<label>
|
*(逻辑管控点:影响后续流程)
|
</label>
|
</div>
|
</td>
|
</tr>
|
<tr>
|
<td>是否允许白条报销</td>
|
<td>
|
<div>
|
<label style="text-align:center;">
|
是
|
</label>
|
<label>
|
<img
|
ng-src="{{parseInt(cfg_data.expend.expend_free)?'./static/img/switch_on.png':'./static/img/switch_off.png'}}"
|
ng-click="toggle('cfg_data.expend.expend_free');"
|
>
|
</label>
|
<label style="text-align:left;margin-left:-35px;">
|
否
|
</label>
|
<label>
|
*(接口传递,费用系统检查)
|
</label>
|
</div>
|
</td>
|
</tr>
|
<tr>
|
<td>是否允许跨区域单据报销(单据显示地与业务发生地不一致的情况)</td>
|
<td>
|
<div>
|
<label style="text-align:center;">
|
是
|
</label>
|
<label>
|
<img
|
ng-src="{{parseInt(cfg_data.expend.expend_cross)?'./static/img/switch_on.png':'./static/img/switch_off.png'}}"
|
ng-click="toggle('cfg_data.expend.expend_cross');"
|
>
|
</label>
|
<label style="text-align:left;margin-left:-35px;">
|
否
|
</label>
|
<label>
|
*(接口传递,费用系统检查)
|
</label>
|
</div>
|
</td>
|
</tr>
|
<tr>
|
<td>是否启用信息补录功能</td>
|
<td>
|
<div>
|
<label style="text-align:center;">
|
是
|
</label>
|
<label>
|
<img
|
ng-src="{{parseInt(cfg_data.expend.expend_supply)?'./static/img/switch_on.png':'./static/img/switch_off.png'}}"
|
ng-click="toggle('cfg_data.expend.expend_supply');"
|
>
|
</label>
|
<label style="text-align:left;margin-left:-35px;">
|
否
|
</label>
|
<label>
|
*(接口传递,费用系统检查)
|
</label>
|
</div>
|
</td>
|
</tr>
|
</tbody>
|
</table>
|
</div>-->
|
</div>
|
</div>
|
</div>
|
<div>
|
<buttton class="save_btn btn btn-success btn-favourite" ng-click="refdata()">同步组织机构</buttton>
|
</div>
|
</div>
|
<div id="system_variable" ng-show="show_flag==1">
|
<div class="row">
|
<div class="col-md-8">
|
<div class="panel panel-default">
|
<div class="panel-heading">
|
<label>系统变量</label>
|
<button ng-click="add_formula()" class="add_btn btn btn-success btn-favourite btn-action">新增</button>
|
</div>
|
<table class="table table-bordered system_cfg_frm" >
|
<tbody>
|
<tr ng-repeat="formula in formulaList">
|
<td>{{formula.name}}</td><td>{{formula.view}}</td><td><button ng-click="add_formula(formula)" class="btn btn-success btn-favourite btn-action">编辑</button> <button class="btn btn-success btn-favourite btn-action" ng-click="del_formula(formula)">删除</button></td>
|
</tr>
|
</tbody>
|
</table>
|
</div>
|
</div>
|
</div>
|
</div>
|
|
<div class="row" ng-show="show_flag==0">
|
<div class="col-md-12">
|
<button ng-show="permission_check('save_system')" class="save_btn btn btn-success btn-favourite" ng-click="save_system_cfg();" id="save_system"> 完成 </button>
|
</div>
|
</div>
|
</div>
|
</div>
|
|
|
|
|
|
|