227 lines
12 KiB
PHP
Executable File
227 lines
12 KiB
PHP
Executable File
<?php
|
|
use yii\helpers\Html;
|
|
use yii\helpers\Url;
|
|
use yii\widgets\LinkPager;
|
|
|
|
$this->title = '出车单费用列表';
|
|
$this->params['breadcrumbs'][] = $this->title;
|
|
?>
|
|
|
|
<!--下拉选择、选项框-->
|
|
<?=Html::cssFile('@web/css/plugins/chosen/chosen.css')?>
|
|
<?=Html::jsFile('@web/js/plugins/chosen/chosen.jquery.js')?>
|
|
<!--日期时间选择器-->
|
|
<?=Html::jsFile('@web/js/plugins/layer/laydate/laydate.js')?>
|
|
<?=Html::cssFile('@web/js/plugins/layer/laydate/need/laydate.css')?>
|
|
<?=Html::cssFile('@web/js/plugins/layer/laydate/skins/molv/laydate.css')?>
|
|
<style>
|
|
.laydate_body .laydate_top{
|
|
padding:0;
|
|
}
|
|
.laydate_body .laydate_ym{
|
|
/*margin:0;
|
|
padding:5px;*/
|
|
}
|
|
.laydate_body .laydate_table{
|
|
border:0;
|
|
border-bottom: 1px solid rgb(204, 204, 204);
|
|
}
|
|
.laydate_body .laydate_bottom {
|
|
border: 0;
|
|
margin-bottom: 10px;
|
|
}
|
|
</style>
|
|
<?php
|
|
if($oid){
|
|
include('detail.php');
|
|
}?>
|
|
<div class="wrapper wrapper-content">
|
|
<div class="row">
|
|
<div class="col-sm-12">
|
|
<div class="ibox float-e-margins">
|
|
<div class="ibox-content" style="text-align: center;">
|
|
<h1>搜索与筛选</h1>
|
|
<form role="form" class="form-horizontal m-t" action="<?=Url::current(['pid' => Yii::$app->session->get('pid')], false);?>" method="post">
|
|
<input type="hidden" name="_csrf-backend" value="<?= Yii::$app->getRequest()->getCsrfToken();?>" />
|
|
|
|
<div class="form-group">
|
|
<div class="col-sm-4">
|
|
<div class="input-group">
|
|
<span class="input-group-btn">
|
|
<button type="button" class="btn btn-sm btn-primary">支付月份</button>
|
|
</span>
|
|
<input class="input-sm form-control layer-date" type="text" name="search[pay_m]" placeholder="请选择月份" autocomplete="off" onclick="laydate({istime: false, format: 'YYYY-MM'})" value="<?=isset($search['pay_m'])?$search['pay_m']:''?>">
|
|
</div>
|
|
</div>
|
|
<div class="col-sm-4">
|
|
<div class="input-group">
|
|
<span class="input-group-btn">
|
|
<button type="button" class="btn btn-sm btn-primary">支付时间不早于</button>
|
|
</span>
|
|
<input class="input-sm form-control layer-date" type="text" name="search[pay_after]" placeholder="请选择日期" autocomplete="off" onclick="laydate({istime: false, format: 'YYYY-MM-DD'})" value="<?=isset($search['pay_after'])?$search['pay_after']:''?>">
|
|
</div>
|
|
</div>
|
|
<div class="col-sm-4">
|
|
<div class="input-group">
|
|
<span class="input-group-btn">
|
|
<button type="button" class="btn btn-sm btn-primary">支付时间不晚于</button>
|
|
</span>
|
|
<input class="input-sm form-control layer-date" type="text" name="search[pay_before]" placeholder="请选择日期" autocomplete="off" onclick="laydate({istime: false, format: 'YYYY-MM-DD'})" value="<?=isset($search['pay_before'])?$search['pay_before']:''?>">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<div class="col-sm-2">
|
|
<select data-placeholder="选择支付状态..." class="select-sm form-control chosen-select" name="search[status_code]">
|
|
<option value="all">选择支付状态</option>
|
|
<?php foreach($status as $key=>$val){?>
|
|
<option value="<?=$key?>" hassubinfo="true" <?=isset($search['status_code']) && $search['status_code']==$key ? 'selected':'';?>><?=$val?></option>
|
|
<?php }?>
|
|
</select>
|
|
</div>
|
|
|
|
<div class="col-sm-2">
|
|
<select data-placeholder="选择支付方式..." class="form-control chosen-select" name="search[paytype]">
|
|
<option value="">选择支付方式</option>
|
|
<?php foreach($paytypes as $key=>$val){?>
|
|
<option value="<?=$key?>" hassubinfo="true" <?=isset($search['paytype']) && $search['paytype']==$key ? 'selected':'';?>><?=$val?></option>
|
|
<?php }?>
|
|
</select>
|
|
</div>
|
|
|
|
<div class="col-sm-2">
|
|
<div class="input-group">
|
|
<input class="form-control" type="text" placeholder="支付人名字" name="search[pay_from]" id="pay_from" value="<?=isset($search['pay_from'])?$search['pay_from']:'';?>">
|
|
<span class="input-group-btn">
|
|
<button type="button" class="btn btn-info" onclick="clearInput('pay_from')">清除</button>
|
|
</span>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col-sm-2">
|
|
<div class="input-group">
|
|
<input class="form-control" type="text" placeholder="收款人名字" name="search[pay_to]" id="pay_to" value="<?=isset($search['pay_to'])?$search['pay_to']:'';?>">
|
|
<span class="input-group-btn">
|
|
<button type="button" class="btn btn-info" onclick="clearInput('pay_to')">清除</button>
|
|
</span>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col-sm-4">
|
|
<div class="input-group">
|
|
<input class="form-control" type="text" placeholder="支付流水号" name="search[sn]" id="sn" value="<?=isset($search['sn'])?$search['sn']:'';?>">
|
|
<span class="input-group-btn">
|
|
<button type="button" class="btn btn-info" onclick="clearInput('sn')">清除</button>
|
|
</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<script>
|
|
function clearInput(id)
|
|
{
|
|
$('#'+id).val('');
|
|
}
|
|
</script>
|
|
<div class="form-group">
|
|
<div class="col-sm-12">
|
|
<button type="submit" class="btn btn-sm btn-warning"> 搜索</button>
|
|
<?php if($oid){?>
|
|
<a class="btn btn-info btn-sm" href="<?= Url::toRoute(['feedriver/new','online_id'=>$oid])?>">新增费用明细单</a>
|
|
<?php }?>
|
|
</div>
|
|
</div>
|
|
|
|
</form>
|
|
</div>
|
|
|
|
<div class="ibox-title"><?= Html::encode($this->title) ?></div>
|
|
<div class="ibox-content">
|
|
<div class="table-responsive">
|
|
<table class="table table-striped">
|
|
<thead>
|
|
<tr>
|
|
<th>序号</th>
|
|
<th>支付方式</th>
|
|
<th>支付金额</th>
|
|
<th>支付流水号</th>
|
|
<th>支付人</th>
|
|
<th>收款人</th>
|
|
<th>状态</th>
|
|
<th>操作</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
|
|
<?php foreach($fees as $vo):?>
|
|
<tr>
|
|
<td><?=$vo['id']?></td>
|
|
<td>
|
|
<?=isset($paytypes[$vo['paytype']]) ? $paytypes[$vo['paytype']]:''?>
|
|
</td>
|
|
<td>
|
|
<?php if(isset($vo['fee']) && $vo['fee']<0){ ?>
|
|
<label class="label label-danger"><stron><large><?=isset($vo['fee']) ? round($vo['fee']/100,2):0?></large></stron></label> 元<br>
|
|
<?php }else{?>
|
|
<label class="label label-success"><stron><large><?=isset($vo['fee']) ? round($vo['fee']/100,2):0?></large></stron></label> 元<br>
|
|
<?php }?>
|
|
</td>
|
|
<td>
|
|
<?=isset($vo['sn']) ? $vo['sn']:''?>
|
|
</td>
|
|
<td>
|
|
<?=isset($vo['pay_from']) ? $vo['pay_from']:''?>
|
|
</td>
|
|
<td>
|
|
<?=isset($vo['pay_to']) ? $vo['pay_to']:''?>
|
|
</td>
|
|
<td>
|
|
<?php if($vo['status_code']<=0){?>
|
|
<label class="btn btn-default btn-xs"><?=$status[$vo['status_code']]?></label>
|
|
<?php }else{?>
|
|
<label class="btn btn-info btn-xs"><?=$status[$vo['status_code']]?></label>
|
|
<?php }?>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
<a class="btn btn-primary btn-xs" href="<?=Url::toRoute(['feedriver/edit','id'=>$vo['id']])?>"><i class="fa fa-edit"></i>详情</a>
|
|
<?php if($vo['status_code']==2){?>
|
|
<a class="btn btn-warning btn-xs" href="<?=Url::toRoute(['feedriver/chonghong','cid'=>$vo['id']])?>" w="90%;" h="90%;" title="管理冲红单" mini="load">管理冲红单</a>
|
|
<a class="btn btn-danger btn-xs" href="<?=Url::toRoute(['feedriver/finishch','id'=>$vo['id']])?>" data-toggle="tooltip" data-placement="top" title="结束冲红后,该费用单据即行确认冲红结束,不可再被冲红" mini="act">结束冲红</a>
|
|
<?php }else{?>
|
|
<a class="btn btn-danger btn-xs" href="<?=Url::toRoute(['feedriver/cancel','id'=>$vo['id']])?>" mini="act">申请冲红</a>
|
|
<?php }?>
|
|
<a class="btn btn-success btn-xs" href="<?=Url::toRoute(['feedriver/caiwu','id'=>$vo['id']])?>" w="50%;" h="80%;" title="财务审核" mini="load">财务审核</a>
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
<?php endforeach;?>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<script>
|
|
laydate.skin('molv');
|
|
$(document).ready(function() {
|
|
var config = {
|
|
".chosen-select": {},
|
|
".chosen-select-deselect": {
|
|
allow_single_deselect: !0
|
|
},
|
|
".chosen-select-no-single": {
|
|
disable_search_threshold: 10
|
|
},
|
|
".chosen-select-no-results": {
|
|
no_results_text: "Oops, nothing found!"
|
|
},
|
|
".chosen-select-width": {
|
|
width: "95%"
|
|
}
|
|
};
|
|
for (var selector in config) $(selector).chosen(config[selector]);
|
|
});
|
|
</script>
|