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.
324 lines
16 KiB
324 lines
16 KiB
{extend name="admin@public/base" /}
|
|
{block name="main-content"}
|
|
<div class="page-content">
|
|
<link href="__PUBLIC__/ppy/css/fileinput.css" media="all" rel="stylesheet" type="text/css" />
|
|
<script src="__PUBLIC__/ppy/js/fileinput.js" type="text/javascript"></script>
|
|
<script src="__PUBLIC__/ppy/js/fileinput_locale_zh.js" type="text/javascript"></script>
|
|
<script src="__PUBLIC__/ueditor/ueditor.config.js" type="text/javascript"></script>
|
|
<script src="__PUBLIC__/ueditor/ueditor.all.js" type="text/javascript"></script>
|
|
<!--主题-->
|
|
<div class="page-header">
|
|
<h1>
|
|
您当前操作
|
|
<small>
|
|
<i class="ace-icon fa fa-angle-double-right"></i>
|
|
{$apply_types[$apply_type]}资产托管 -{$statuslist[$process]}
|
|
</small>
|
|
</h1>
|
|
</div>
|
|
<h4 class="header green">{$apply_types[$apply_type]}资产托管 - {$statuslist[$process]}</h4>
|
|
<div class="row">
|
|
<div class="col-xs-12">
|
|
<div class="col-xs-12 col-sm-12">
|
|
<div class="widget-box">
|
|
<div class="widget-header">
|
|
<h4 class="widget-title">项目基本信息</h4>
|
|
<div class="widget-toolbar">
|
|
<a href="#" data-action="collapse">
|
|
<i class="ace-icon fa fa-chevron-up"></i>
|
|
</a>
|
|
</div>
|
|
</div>
|
|
{include file='capital@capital:content' /}
|
|
<div id="advice"></div>
|
|
|
|
<div class="widget-box">
|
|
<div class="widget-header">
|
|
<h4 class="widget-title">{if condition="in_array($apply_type,[3,4])"}保证金设定{else}联席会审核信息{/if}</h4>
|
|
<div class="widget-toolbar">
|
|
<a href="#" data-action="collapse">
|
|
<i class="ace-icon fa fa-chevron-up"></i>
|
|
</a>
|
|
</div>
|
|
</div>
|
|
<div class="widget-body">
|
|
<div class="widget-main">
|
|
<div class="form-group">
|
|
<label class="col-sm-2 control-label no-padding-right"> {if condition="in_array($apply_type,[3,4])"}保证金设定{else}联席会审核信息{/if}意见: </label>
|
|
<div class="col-sm-9">
|
|
<textarea name="advice" rows="100%" style="width:100%" id="editor" value=""></textarea>
|
|
<script type="text/javascript">
|
|
var ue = UE.getEditor('editor', {
|
|
toolbars: [
|
|
[
|
|
'template', //模板
|
|
'undo', //撤销
|
|
'redo', //重做
|
|
'bold', //加粗
|
|
'indent', //首行缩进
|
|
'snapscreen', //截图
|
|
'italic', //斜体
|
|
'underline', //下划线
|
|
'strikethrough', //删除线
|
|
'subscript', //下标
|
|
'fontborder', //字符边框
|
|
'superscript', //上标
|
|
'formatmatch', //格式刷
|
|
'source', //源代码
|
|
'blockquote', //引用
|
|
'pasteplain', //纯文本粘贴模式
|
|
'selectall', //全选
|
|
'horizontal', //分隔线
|
|
'removeformat', //清除格式
|
|
'time', //时间
|
|
'date', //日期
|
|
'unlink', //取消链接
|
|
'insertrow', //前插入行
|
|
'insertcol', //前插入列
|
|
'mergeright', //右合并单元格
|
|
'mergedown', //下合并单元格
|
|
'deleterow', //删除行
|
|
'deletecol', //删除列
|
|
'splittorows', //拆分成行
|
|
'splittocols', //拆分成列
|
|
'splittocells', //完全拆分单元格
|
|
'deletecaption', //删除表格标题
|
|
'inserttitle', //插入标题
|
|
'mergecells', //合并多个单元格
|
|
'deletetable', //删除表格
|
|
'cleardoc', //清空文档
|
|
'insertparagraphbeforetable', //"表格前插入行"
|
|
'fontfamily', //字体
|
|
'fontsize', //字号
|
|
'paragraph', //段落格式
|
|
'edittable', //表格属性
|
|
'edittd', //单元格属性
|
|
'link', //超链接
|
|
'emotion', //表情
|
|
'spechars', //特殊字符
|
|
'searchreplace', //查询替换
|
|
'help', //帮助
|
|
'justifyleft', //居左对齐
|
|
'justifyright', //居右对齐
|
|
'justifycenter', //居中对齐
|
|
'justifyjustify', //两端对齐
|
|
'forecolor', //字体颜色
|
|
'backcolor', //背景色
|
|
'insertorderedlist', //有序列表
|
|
'insertunorderedlist', //无序列表
|
|
'fullscreen', //全屏
|
|
'directionalityltr', //从左向右输入
|
|
'directionalityrtl', //从右向左输入
|
|
'rowspacingtop', //段前距
|
|
'rowspacingbottom', //段后距
|
|
'pagebreak', //分页
|
|
'insertframe', //插入Iframe
|
|
'imagenone', //默认
|
|
'imageleft', //左浮动
|
|
'imageright', //右浮动
|
|
'imagecenter', //居中
|
|
'lineheight', //行间距
|
|
'edittip ', //编辑提示
|
|
'customstyle', //自定义标题
|
|
'autotypeset', //自动排版
|
|
'touppercase', //字母大写
|
|
'tolowercase', //字母小写
|
|
'background', //背景
|
|
'scrawl', //涂鸦
|
|
'inserttable', //插入表格
|
|
'drafts', // 从草稿箱加载
|
|
'charts', // 图表
|
|
]
|
|
],
|
|
autoHeightEnabled: true,
|
|
autoFloatEnabled: true
|
|
});
|
|
</script>
|
|
<span style="color: #F3920A;">请输入您的联席会审核意见,并提交!</span>
|
|
</div>
|
|
</div>
|
|
<div class="space-4" style="margin-top: 200px;"></div>
|
|
<div class="clearfix form-actions">
|
|
<div class="col-sm-offset-3 col-sm-9">
|
|
<input type="hidden" id="apply_id" value="{$apply_id}" />
|
|
<button class="btn btn-info" type="submit" name="btn1" value="1" onclick="checkform(1);return false;"><i class="ace-icon fa fa-check bigger-110"></i>审核通过</button>
|
|
<button class="btn btn-info" type="submit" name="btn2" value="2" onclick="checkform(2);return false;"><i class="ace-icon fa fa-check bigger-110"></i>审核不通过</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div><!-- /.page-content -->
|
|
{/block}
|
|
{block name="scripts"}
|
|
<script>
|
|
var checkinfo = '{$checkinfo}';
|
|
checkinfo = JSON.parse( checkinfo );
|
|
var sta = '{$status}';
|
|
sta = JSON.parse( sta );
|
|
console.log(checkinfo);
|
|
for(var i=0;i<checkinfo.length;i++){
|
|
var status = checkinfo[i].check_type;
|
|
var html = '<div class="widget-box">' +
|
|
'<div class="widget-header">' +
|
|
'<h4 class="widget-title">'+sta[status]+'信息</h4>' +
|
|
'<div class="widget-toolbar">' +
|
|
'<a href="#" data-action="collapse">' +
|
|
'<i class="ace-icon fa fa-chevron-up"></i>' +
|
|
'</a>' +
|
|
'</div>' +
|
|
'</div>' +
|
|
'<div class="widget-body">' +
|
|
'<div class="widget-main">' +checkinfo[i].advice+
|
|
'</div>' +
|
|
'</div>' +
|
|
'</div>';
|
|
$('#advice').append(html);
|
|
}
|
|
//checkform
|
|
function checkform(apply_status){
|
|
var advice = ue.getContent();
|
|
var apply_id = $('#apply_id').val();
|
|
if(advice=="" || ue.getContentTxt()==""){
|
|
layer.alert("请输入审核意见")
|
|
return false
|
|
}
|
|
|
|
var data="advice="+advice+'&apply_id='+apply_id+'&apply_status='+apply_status+'&status=70&next_status=80&apply_type={$apply_type}';
|
|
{if condition="$apply_type eq 3 or $apply_type eq 4"}
|
|
var form=$("form[name='baseinfo']").serialize();
|
|
data+='&'+form;
|
|
{/if}
|
|
|
|
var mobile=0;
|
|
{if(isset($products)&&count($products)&&($apply_type==3 or $apply_type==4))}
|
|
mobile=1;
|
|
var ower=$("#ower").val();
|
|
var cunit=$("#capital_unit").val();
|
|
var cprice=$("#capital_price").val();
|
|
var ccomm=$("#capital_commission").val();
|
|
if(ower=='undefined'||ower==''){
|
|
layer.alert("请选择信息所属人");
|
|
return false
|
|
}
|
|
if(cunit=='undefined'||cunit==''){
|
|
layer.alert("请填写收费标准");
|
|
return false
|
|
}
|
|
if(cprice=='undefined'||cprice==''){
|
|
layer.alert("请填写单价金额");
|
|
return false
|
|
}
|
|
|
|
if(ccomm=='undefined'||ccomm==''){
|
|
layer.alert("请填写交易佣金");
|
|
return false
|
|
}
|
|
data+="&ower="+ower+"&capital_unit="+cunit+"&capital_price="+cprice+"&capital_commission="+ccomm;
|
|
var len=$(".pid").length;
|
|
for(var i=0;i<len;i++){
|
|
var code=$("input[name='code["+i+"]']").val();
|
|
var level=$("input[name='capital_level["+i+"]']").val();
|
|
var capdate=$("input[name='capital_date["+i+"]']").val();
|
|
var deposit=$("input[name='deposit["+i+"]']:checked").val();
|
|
var amount=$("input[name='pay_amount["+i+"]']").val();
|
|
var date=$("input[name='pay_date["+i+"]']").val();
|
|
if(deposit==''||deposit!=1){
|
|
$("input[name='deposit["+i+"]']").focus();
|
|
layer.msg('请确认已缴纳保证金');
|
|
return false;
|
|
break;
|
|
}
|
|
if(amount==''){
|
|
$("input[name='pay_amount["+i+"]']").focus();
|
|
layer.msg('请填写缴纳金额');
|
|
return false;
|
|
break;
|
|
}
|
|
if(date==''){
|
|
$("input[name='pay_date["+i+"]']").focus();
|
|
layer.msg('请填写缴纳时间');
|
|
return false;
|
|
break;
|
|
}
|
|
if(code==''){
|
|
$("input[name='code["+i+"]']").focus();
|
|
layer.msg('请填写资产托管代码');
|
|
return false;
|
|
break;
|
|
}
|
|
if(capdate==''){
|
|
$("input[name='capital_date["+i+"]']").focus();
|
|
layer.msg('请填写托管日期');
|
|
return false;
|
|
break;
|
|
}
|
|
if(level==''){
|
|
$("input[name='capital_level["+i+"]']").focus();
|
|
layer.msg('请填写资产等级');
|
|
return false;
|
|
break;
|
|
}
|
|
}
|
|
{/if}
|
|
if(mobile==1){
|
|
$.ajax({
|
|
url:"/capital/Capital/apply_product",
|
|
type:"POST",
|
|
data:"id="+apply_id+"&apply_type={$apply_type}",
|
|
success: function(ret){
|
|
|
|
if (ret == false) {
|
|
layer.alert("资产托管清单全部通过审核之后,才可以进行此操作!", {icon: 5}, function (index) {
|
|
layer.close(index);
|
|
});
|
|
return false;
|
|
}else{
|
|
$.ajax({
|
|
url:"/capital/Capital/capital_check",
|
|
type:"POST",
|
|
data:data,
|
|
success: function(data){
|
|
if (data.status) {
|
|
layer.alert(data.msg, {icon: 6}, function (index) {
|
|
layer.close(index);
|
|
window.location.href = data.url;
|
|
});
|
|
} else {
|
|
layer.alert(data.msg, {icon: 5}, function (index) {
|
|
layer.close(index);
|
|
});
|
|
}
|
|
}
|
|
});
|
|
}
|
|
}
|
|
});
|
|
}else{
|
|
|
|
$.ajax({
|
|
url:"/capital/Capital/capital_check",
|
|
type:"POST",
|
|
data:data,
|
|
success: function(data){
|
|
if (data.status) {
|
|
layer.alert(data.msg, {icon: 6}, function (index) {
|
|
layer.close(index);
|
|
window.location.href = data.url;
|
|
});
|
|
} else {
|
|
layer.alert(data.msg, {icon: 5}, function (index) {
|
|
layer.close(index);
|
|
});
|
|
}
|
|
}
|
|
});
|
|
}
|
|
return false;
|
|
}
|
|
</script>
|
|
{/block}
|
|
|