创建版本

This commit is contained in:
2021-02-22 12:17:00 +08:00
commit af555f49c3
2332 changed files with 369202 additions and 0 deletions
@@ -0,0 +1,52 @@
<table class="table">
<thead>
<tr>
<th align="center">序号</th>
<th align="left">步骤</th>
<th align="left">办理内容</th>
<th align="center">办理人</th>
<th align="center">办理类型</th>
<th align="center">办理效率</th>
<th align="center">办理时间</th>
</tr>
</thead>
@foreach($rows as $i => $row)
<tr>
<td align="center">
{{$i + 1}}
</td>
<td align="left">
{{$steps[$row['step_number']]['name']}}
</td>
<td align="left">
{{$row[description]}}
</td>
<td align="center">
{{$row[created_by]}}
</td>
<td align="center">
@if($row[step_status] == 'back')
退回
@else
审批
@endif
</td>
<td align="center">
<?php
$start = $row['created_at'];
if ($i) {
$s = Carbon\Carbon::createFromTimeStamp($start);
$e = Carbon\Carbon::createFromTimeStamp($end);
echo $s->diffInHours($e).'小时';
} else {
echo '无';
}
$end = $start;
?>
</td>
<td align="center">
@datetime($row[created_at])
</td>
</tr>
@endforeach
</table>
@@ -0,0 +1,72 @@
<form class="form-horizontal" name="myturn" id="myturn" method="post">
<table class="table table-form">
<tr>
<td align="right">办理类型</td>
<td align="left">
<label class="i-checks i-checks-sm"><input type="radio" class="process-step" name="step_status" value="next"><i></i>审批</label>
@if($step->back == 1 && $step->number > 1)
&nbsp;
&nbsp;
<label class="i-checks i-checks-sm"><input type="radio" class="process-step" name="step_status" value="back"><i></i>退回</label>
@endif
&nbsp;
&nbsp;
<label class="i-checks i-checks-sm"><input type="radio" class="process-step" name="step_status" value="reject"><i></i>拒绝</label>
</td>
</tr>
<tr>
<td align="right" width="20%">选择进程</td>
<td align="left" width="80%">
<div id="process-step"></div>
</td>
</tr>
<tr>
<td align="right">审批备注</td>
<td align="left">
<textarea class="form-control" rows="3" id="description" name="description"></textarea>
</td>
</tr>
<tr>
<td align="right">提醒类型</td>
<td align="left">
<label class="i-checks i-checks-sm"><input type="checkbox" name="notify_sms" value="{{$notify['sms']}}" @if($notify['sms'])checked="checked" @endif><i></i>短信</label>
</td>
</tr>
<tr>
<td align="right">提醒内容</td>
<td align="left">
<input type="text" class="form-control input-sm" name="notify_text" value="{{$notify['text']}}" readonly="readonly">
</td>
</tr>
</table>
<input type="hidden" name="key" value="{{$key}}">
</form>
<script type="text/javascript">
$('.process-step').on('click', function() {
if(this.value == 'reject') {
$('#process-step').html('无');
} else {
var myform = $('#myform, #myturn').serialize();
var query = $.param({type: this.value, model_id:'{{$step->model_id}}', step_sn:'{{$step->sn}}'});
$.post('{{url("step")}}?' + query, myform, function(res) {
$('#process-step').html(res);
});
}
});
function get_step_user()
{
var myform = $('#myform,#myturn').serialize();
$.get('{{url("user")}}', myform, function(res) {
$('#process-user').html(res.data);
});
}
</script>