You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
150 lines
5.0 KiB
150 lines
5.0 KiB
{extend name="admin@public/base" /}
|
|
{block name="main-content"}
|
|
<script src="__PUBLIC__/ueditor/ueditor.config.js" type="text/javascript"></script>
|
|
<script src="__PUBLIC__/ueditor/ueditor.all.js" type="text/javascript"></script>
|
|
<script src="__PUBLIC__/others/jquery-ui-1.10.3.min.js"></script>
|
|
<script src="__PUBLIC__/others/jquery.ui.widget.js"></script>
|
|
<script src="__PUBLIC__/others/jquery.fileupload.js"></script>
|
|
<script src="__PUBLIC__/others/base.js"></script>
|
|
<style>
|
|
.table-bordered>tbody>tr>td{padding:4px;}
|
|
.filebtn{
|
|
position: relative;
|
|
display: inline-block;
|
|
background: #d0eeff;
|
|
border: 1px solid #99d3f5;
|
|
border-radius: 4px;
|
|
padding: 4px 9pt;
|
|
overflow: hidden;
|
|
color: #1e88c7;
|
|
text-decoration: none;
|
|
text-indent: 0;
|
|
line-height: 25px;
|
|
}
|
|
.filebtn input[type='file']{
|
|
position: absolute;
|
|
z-index:999;
|
|
font-size: 75pt;
|
|
right: 10;
|
|
top: 0;
|
|
opacity: 0;
|
|
}
|
|
.text-left{text-align:left !important;}
|
|
</style>
|
|
<div class="page-content">
|
|
<!--主题-->
|
|
<div class="page-header">
|
|
<h1>
|
|
您当前操作
|
|
<small>
|
|
<i class="ace-icon fa fa-angle-double-right"></i>
|
|
用户审核操作
|
|
</small>
|
|
</h1>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-xs-12">
|
|
<form class="form-horizontal postForm" name="list_edit" method="post" action="{:url('editstate')}">
|
|
<input name="id" type="hidden" value="{$list.id}" />
|
|
<input name="aid" type="hidden" value="{$aid}" />
|
|
{if condition="isset($list['uway']) and $list['uway'] eq 1"}
|
|
<div class="form-group">
|
|
<label class="col-sm-2 control-label no-padding-right" >自提日期: </label>
|
|
<div class="col-sm-10">
|
|
<input type="text" name="exptime" id="exptime" placeholder="输入自提日期" data-date-format="yyyy-mm-dd" value="{$list.exptime?date('Y-m-d',$list['exptime']):''}" class="col-xs-10 col-sm-5 date-picker" required/>
|
|
</div>
|
|
</div>
|
|
<div class="space-4"></div>
|
|
{else}
|
|
<div class="form-group">
|
|
<label class="col-sm-2 control-label no-padding-right" >快递名称: </label>
|
|
<div class="col-sm-10">
|
|
<input type="text" name="expname" id="expname" placeholder="输入快递名称" value="{$list.expname}" class="col-xs-10 col-sm-5" required/>
|
|
</div>
|
|
</div>
|
|
<div class="space-4"></div>
|
|
<div class="form-group">
|
|
<label class="col-sm-2 control-label no-padding-right" >快递单号: </label>
|
|
<div class="col-sm-10">
|
|
<input type="text" name="express" id="express" placeholder="输入快递单号" value="{$list.express}" class="col-xs-10 col-sm-5" required/>
|
|
</div>
|
|
</div>
|
|
{/if}
|
|
<div class="space-4"></div>
|
|
<div class="form-group">
|
|
<label class="col-sm-2 control-label no-padding-right" >审核状态: </label>
|
|
<div class="col-sm-10" style="padding-top:5px;">
|
|
<input name="state" id="status1" {if condition="$list['state'] eq 1"}checked{/if} value="1" type="radio" /> 已通过(发送短信)
|
|
<input name="state" id="status3" {if condition="$list['state'] eq 3"}checked{/if} value="3" type="radio" /> 不通过
|
|
<input name="state" id="status2" {if condition="$list['state'] eq 2"}checked{/if} value="2" type="radio" /> 已审核
|
|
</div>
|
|
</div>
|
|
<div class="space-4"></div>
|
|
<div class="form-group">
|
|
<label class="col-sm-2 control-label no-padding-right" >审核意见: </label>
|
|
<div class="col-sm-10">
|
|
<textarea name="advice" id="advice" placeholder="审核意见" class="col-xs-10 col-sm-5">{$list.advice}</textarea>
|
|
</div>
|
|
</div>
|
|
<div class="clearfix form-actions">
|
|
<div class="col-md-offset-3 col-md-9">
|
|
<button class="btn btn-info" type="submit">
|
|
<i class="ace-icon fa fa-check bigger-110"></i>
|
|
保存
|
|
</button>
|
|
|
|
|
|
<button class="btn" type="button" onclick="window.history.go(-1)">
|
|
<i class="ace-icon fa fa-undo bigger-110"></i>
|
|
返回
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
|
|
</div><!-- /.page-content -->
|
|
<script>
|
|
function showRequest2(){
|
|
loading("保存中");
|
|
return true;
|
|
}
|
|
|
|
$(function(){
|
|
{if condition="$list['state'] eq 3"}
|
|
$("input[type='text']").removeAttr('required');
|
|
$("#advice").attr('required',true);
|
|
{else}
|
|
$("input[type='text']").removeAttr('required');
|
|
$("#advice").removeAttr('required');
|
|
{/if}
|
|
$("input[name='state']").change(function(){
|
|
var val=$("input[name='state']:checked").val();
|
|
console.log("val",val);
|
|
if(val==3){
|
|
$("input[type='text']").removeAttr('required');
|
|
$("#advice").attr('required',true);
|
|
}else if(val==1){
|
|
$("input[type='text']").attr('required',true);
|
|
$("#advice").removeAttr('required');
|
|
}
|
|
});
|
|
$('.postForm').ajaxForm({
|
|
beforeSerialize: showRequest2, //提交前的回调函数
|
|
success: complete, // 这是提交后的方法
|
|
dataType: 'json'
|
|
});
|
|
|
|
})
|
|
</script>
|
|
{/block}
|
|
{block name="scripts"}
|
|
<script>
|
|
$('.date-picker').datepicker({
|
|
autoclose: true,
|
|
todayHighlight: true,
|
|
language:'zh-CN',
|
|
})
|
|
</script>
|
|
{/block}
|