why.xingtongworld.com项目
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.
 
 
 
 
 

700 lines
29 KiB

{layout name="public/layout" /}
<style>
.control-label{line-height:2.8em;}
input[type=radio]{margin-top:2px;}
.col-xs-3{padding-right:0px !important;}
.btn-group-xs>.btn, .btn-xs{padding:1px;}
</style>
<ol class="breadcrumb" style="margin-top:10px">
<li><i class="glyphicon glyphicon-home"></i>&nbsp;<a href="{:url('center/index')}">用户中心</a></li>
<li class="active">我要托管</li>
</ol>
<h3 class="text-center" style="margin-top:20px;margin-bottom:5px">托管申请表</h3>
<div class="apply">
<form class="form-horizontal container" id="postForm" method="post" action="{:url('api/capital/apply',['apply_type'=>$tg_type,'apply_id'=>$apply_id])}">
<div class="form-group">
<div class="col-xs-9">
<div class="checkbox" style='margin-top:4px;'>
<label>
<input type="checkbox" name="tg_type[]" id="tg_typ1" {if condition="is_array($info['tg_type']) and in_array(1,$info['tg_type'])"}checked{/if} value="1">托管申请
</label>
<label style="margin-left:10px;">
<input type="checkbox" name="tg_type[]" id="tg_typ2" {if condition="is_array($info['tg_type']) and in_array(2,$info['tg_type'])"}checked{/if} value="2">拍卖申请
</label>
</div>
</div>
</div>
<h4 class="text-center">(基础信息)</h4>
<div class="form-group">
<label class="col-xs-3 control-label">托管方类别</label>
<div class="col-xs-9">
<div class="radio" style="display:inline-block;">
<label>
<input type="radio" name="hoster_type" id="hoster_type0" {if condition="$info['hoster_type'] eq 1 or $info['hoster_type'] eq ''"}checked{/if} value="1"> 企业
</label>
</div>
&nbsp;
<div class="radio" style="display:inline-block;">
<label>
<input type="radio" name="hoster_type" id="hoster_type1" value="2"> 个人
</label>
</div>
</div>
</div>
<h5>基本情况</h5>
<div id="hoster" class="form-group">
<label class="col-xs-3 control-label" style="padding-left:0px;"><i style="color:red">*</i>企业名称</label>
<label class="col-xs-3 control-label" style="display:none"><i style="color:red">*</i>权属人姓名</label>
<div class="col-xs-9">
<input type="text" class="form-control" name="hoster_name" value="{$info.hoster_name}">
</div>
</div>
<div class="company">
<div class="form-group">
<label class="col-xs-3 control-label" style="padding-left:0px;"><i style="color:red">*</i>营业执照代码</label>
<div class="col-xs-9">
<input name="business_code" class="form-control" value="{$info.business_code}">
</div>
</div>
<div class="form-group">
<label class="col-xs-3 control-label"><i style="color:red">*</i>法定代表人</label>
<div class="col-xs-9">
<input name="legal_person" class="form-control" value="{$info.legal_person}">
</div>
</div>
</div>
<div class="personal" >
<div class="form-group">
<label class="col-xs-3 control-label">证件类型</label>
<div class="col-xs-9">
<select name="leader_cardtype" class="form-control">
<option value="000" {if condition="$info['leader_cardtype'] eq '000'"}selected{/if}>身份证</option>
<option value="001" {if condition="$info['leader_cardtype'] eq '001'"}selected{/if}>护照</option>
<option value="002" {if condition="$info['leader_cardtype'] eq '002'"}selected{/if}>户口簿</option>
</select>
</div>
</div>
<div class="form-group">
<label class="col-xs-3 control-label"><i style="color:red">*</i>证件号码</label>
<div class="col-xs-9">
<input name="leader_cardno" class="form-control" value="{$info.leader_cardno}">
</div>
</div>
</div>
<h5>联系方式</h5>
<div class="form-group">
<label class="col-xs-3 control-label"><i style="color:red">*</i>联系人</label>
<div class="col-xs-9">
<input name="natural_name" class="form-control" value="{$info.natural_name}">
</div>
</div>
<div class="form-group">
<label class="col-xs-3 control-label"><i style="color:red">*</i>通讯地址</label>
<div class="col-xs-9">
<input name="natural_addr" class="form-control" value="{$info.natural_addr}">
</div>
</div>
<div class="form-group">
<label class="col-xs-3 control-label"><i style="color:red">*</i>联系电话</label>
<div class="col-xs-9">
<input name="natural_tel" class="form-control" value="{$info.natural_tel}">
</div>
</div>
<div class="form-group">
<label class="col-xs-3 control-label">传真</label>
<div class="col-xs-9">
<input name="natural_fax" class="form-control" value="{$info.natural_fax}">
</div>
</div>
<div class="form-group">
<label class="col-xs-3 control-label">电子邮件</label>
<div class="col-xs-9">
<input name="natural_email" class="form-control" value="{$info.natural_email}">
</div>
</div>
<div class="form-group">
<label class="col-xs-3 control-label">邮编</label>
<div class="col-xs-9">
<input name="natural_code" class="form-control" value="{$info.natural_code}">
</div>
</div>
{if condition="isset($info) and $info['apply_type'] eq 2 and $info['proassign'] eq 1"}
<div class="form-group">
<label class="col-xs-3 control-label">专家修改</label>
<div class="col-xs-9">
<div class="radio" style="display:inline-block;"><label><input type="radio" name="assagree" id="assagree1" {if condition="$info['ass_agree'] eq 1 or $info['ass_agree'] eq ''"}checked{/if} value="1">同意{$info.ass_agree}</label></div>
&nbsp;
<div class="radio" style="display:inline-block;"><label><input type="radio" name="assagree" id="assagree2" value="0">不同意</label></div>
</div>
</div>
{/if}
<br/>
<h4 class="text-center">附件提交</h4>
{notempty name="files"}
{volist name="files" id="vo" key="k"}
<div class="poster">
<div class="form-group ">
<label class="col-xs-12" style="line-height:1.6em;">{$k}<i style="color:red">*</i>
<span class="txt">{if condition="isset($vo['flag']) and $vo.flag eq 1 and $vo.path"}<a href='{$vo.path}'>{$vo.ftypedescr}</a>{else}{$vo.ftypedescr}{/if}</span>
<span class="text-danger">({$vo.ftype|strtolower})</span> {notempty name="vo.ftemp_id"}<a href="{:get_capitaltempfile($vo.ftemp_id)}">下载模板</a>{/notempty}
{if condition="(isset($vo['reload']) and $vo['reload'] eq 1) and (isset($vo['flag']) and $vo.flag eq 1)"}&nbsp;&nbsp;<span class="text-danger file_name" style="position:relative;opacity:1;" data-uniquecode="{$vo.unique_code}" {if condition="$vo.mustupload eq 1"} required{/if}>审核通过</span>{/if}
{if condition="(isset($vo['flag']) and $vo.flag eq 1) and (isset($vo['reload']) and $vo['reload']!=1)"}&nbsp;&nbsp;<span class="text-danger file_name" style="position:relative;opacity:1;" data-uniquecode="{$vo.unique_code}" {if condition="$vo.mustupload eq 1"} required{/if}>审核通过</span>{/if}
</label>
</div>
{if condition="(isset($vo['flag']) and $vo.flag neq 1)"}
<div class="form-group">
<div class="col-xs-12">
{if condition="!isset($showinfo) or $showinfo!=1"}
<div class="buttonright modeub buttonright2" style="margin-left: 0px;">
<a href="#" class="btn btn-danger btn-xs">选择文件</a>
<div class="file_name webuploader-container" id="file_one_{$vo.ftype_id}" {if condition="$vo.ftype eq 'JPG'"}accept="image/jpeg" {/if}
{if condition="$vo.ftype eq 'PDF'"}accept="application/pdf" {/if}
{if condition="isset($vo['reload']) and $vo['reload'] eq 1"} data-fname="{$vo.fname}" data-url="{$vo.path}" data-uniquecode="{$vo.unique_code}"{/if}
{if condition="$vo.ftype eq 'DOC'"}accept="application/msword,application/vnd.openxmlformats-officedocument.wordprocessingml.document" {/if} data-fname="{$vo.ftypedescr}" {if condition="$vo.mustupload eq 1"} required{/if}>
</div>
<span class="help-inline"></span>
</div>
{/if}
</div>
</div>
{/if}
</div>
{/volist}
{/notempty}
<br/>
<h4 class="text-center">(托管信息)</h4>
<div class="form-group">
<label class="col-xs-3 control-label">资产数量</label>
<div class="col-xs-9">
<input type="number" min="0" name="capital_num" class="form-control" placeholder="件" value="{$info.capital_num}">
</div>
</div>
<br/>
<div class="form-group">
<label class="col-xs-9 control-label"><i style="color:red">*</i>艺术资产托管清单</label>
{if condition="!isset($status) or (isset($status) and $status elt 40)"}
<div class="col-xs-3"><a href="#" class="btn btn-danger btn-xs addproduct" style=" margin-top:8px;margin-left:9px;"><i class="plus">+</i> 添加资产</a></div>
{/if}
</div>
<div class="form-group">
<div class="col-xs-12" style="padding-left:0px;padding-right:0px;">
<table id="prolist" class="table table-bordered text-center" width="100%">
<thead>
<tr>
<th align="center">#</th>
<th align="center" width="68px">资产名称</th>
<th align="center" width="70px">资产类型</th>
<th align="center" width="60px">自报价格</th>
{if condition="(isset($products) and count($products)) or ($info and $info.apply_id) "}
<th align="center">状态</th>
{/if}
{if condition="!isset($status) or (isset($status) and $status elt 40)"}
<th align="center" width="72px">操作</th>
{/if}
</tr>
</thead>
<tbody>
{if condition="isset($products) and count($products)"}
{volist name="products" id="vo" key="k"}
<tr data-json="<?php echo urldecode(http_build_query($vo));?>">
<td>{$k}</td>
<td width="62px">{$vo.capital_name}{$vo.zj_name?'<br/>专家修改:<br/>'.$vo.zj_name:''}</td>
<td>{$vo.capital_type|getCapitalType}</td>
<td>{$vo.capital_price}</td>
<td><span class="text-danger">{if condition="$vo['flag'] eq 1"}审核通过{else}未审核{/if}</span></td>
{if condition="!isset($status) or (isset($status) and $status elt 40)"}
<td>{if condition="$vo['flag'] neq 1"}<a href="#" class="btn btn-danger btn-xs edtproduct">编辑</a>&nbsp;&nbsp;<a href="#" class="btn btn-danger btn-xs delproduct">删除</a>{/if}</td>
{/if}
</tr>
{/volist}
{/if}
</tbody>
</table>
</div>
</div>
<br/>
<div class="form-group">
<input type="hidden" id="unique_code" name="unique_code" value=""/>
<input type="hidden" id="unique_has" name="unique_has" value=""/>
<input type="hidden" name="mobile" value="1"/>
<input type="hidden" id="products" name="products" value=""/>
<input type="hidden" name="jump" value="{:url('center/mytg')}"/>
{if condition="isset($showinfo) and $showinfo"}
<button type="button" onclick='window.location.href="{:url("center/mytg")}"' class="btn btn-danger " style="width:100%">返回</button>
{else}
<button type="submit" class="btn btn-danger " style="width:100%">提交</button>
{/if}
</div>
</form>
</div>
<script src="{$yf_theme_path}public/js/jquery.form.js"></script>
<script src="{$yf_theme_path}public/js/jquery.validate.min.js"></script>
<script src="{$yf_theme_path}public/js/layer/layer.js"></script>
<script src="{$yf_theme_path}public/js/jquery-ui-1.10.3.min.js"></script>
<script src="{$yf_theme_path}public/js/jquery.ui.widget.js"></script>
<script src="{$yf_theme_path}public/js/jquery.fileupload.js"></script>
<script src="{$yf_theme_path}public/js/webuploader.min.js"></script>
<script src="{$yf_theme_path}public/js/base.js"></script>
<script>
function uploadProgress(currDiv) {
var id=currDiv.attr('id');
var accept=currDiv.attr('accept');
console.log(id,accept);
var uploader=WebUploader.create({
chunked:true,
//10M
chunkSize:10485760,
threads:5,
auto: true,
fileVal:"file",
formData:{ftype_id:id.replace('file_one_','')},
pick: '#'+id,
server: '/api/capital/upload',
accept: {
title: currDiv.attr('data-fname'),
mimeTypes: accept
},
});
uploader.on('fileQueued', function( file ) {
console.log('fileQueued...');
var name = file.name;
var filetype = name.substring(name.lastIndexOf(".")+1).toUpperCase();
currDiv.parent().prev().css("text-align","left");
var error=0;
var text=currDiv.parent().parent().prev().text().toUpperCase();
if(text=='PDF'){
if(filetype!='PDF'){
name ='文件类型错误';error=1;
currDiv.parent().prev().css("text-align","right");
}
}else if(text=='JPG'){
if(filetype!='JPG'){
name ='文件类型错误';error=2;
currDiv.parent().prev().css("text-align","right")
}
}else if(text=='DOC'){
if(filetype!='DOC' && filetype!='DOCX' ){
name ='文件类型错误';error=3;
currDiv.parent().prev().css("text-align","right")
}
}else if(text=='RAR/ZIP'){
if(filetype!='ZIP' && filetype!='RAR' ){
name ='文件类型错误';error=4;
currDiv.parent().prev().css("text-align","right")
}
}else if(text=='JPG/PDF'){
if(filetype!='JPG' && filetype!='PDF' ){
name ='文件类型错误';error=5;
currDiv.parent().prev().css("text-align","right")
}
}
var textobj=currDiv.parent().find(".help-inline");
if(error>0){
textobj.html(name);
uploader.cancelFile( file );
}
});
uploader.on('uploadProgress',function (file,percentage) {
var percent=Math.round(percentage*10000)/100;
currDiv.parent().find(".help-inline").html(file.name+" "+percent+'%');
});
uploader.on('uploadSuccess',function (file,result) {
console.log('file=',file,result);
var textobj=currDiv.parent().find(".help-inline");
if(result&&result.code==200&&result.data){
textobj.html(file.name);
currDiv.attr("data-url",result.data.img_url);
currDiv.attr("data-uniquecode",result.data.unique_code);
}else{
textobj.html('<font style="color:red;font-size:12px">上传失败</font>');
}
});
uploader.on( 'uploadError', function( file ) {
console.log('uploadError');
currDiv.parent().prev().text("上传文件出错");
currDiv.attr("data-url","");
currDiv.find("input").value("");
currDiv.attr("data-uniquecode","");
});
}
function bindFileUpload() {
var file_nameEl= $(".file_name");
for(var i=0,len=file_nameEl.length;i<len;i++){
console.log("file_nameEl[i]",file_nameEl[i]);
var has=$(file_nameEl[i]).hasClass('webuploader-container');
if(has)uploadProgress($(file_nameEl[i]));
}
$(".file_name").change(function(e){
var fileEl=e.currentTarget;
console.log("change",fileEl.files);
if(typeof fileEl.files=='undefined'||fileEl.files.length==0){
$(this).prev().prev().text("");
fileEl.setAttribute("data-url","");
fileEl.setAttribute("data-uniquecode","");
}else{
var name = fileEl.files[0].name;
var filetype = name.substring(name.lastIndexOf(".")+1).toUpperCase();
$(this).prev().prev().css("text-align","left")
var error=0;
if($(this).parent().prev().text().toUpperCase()=='PDF'){
if(filetype!='PDF'){
name ='文件类型错误';error=1;
$(this).val('');
$(this).prev().prev().css("text-align","right");
}
}else if($(this).parent().prev().text().toUpperCase()=='JPG'){
if(filetype!='JPG'){
name ='文件类型错误';error=2;
$(this).val('');
$(this).prev().prev().css("text-align","right")
}
}else if($(this).parent().prev().text().toUpperCase()=='DOC'){
if(filetype!='DOC' && filetype!='DOCX' ){
name ='文件类型错误';error=3;
$(this).val('');
$(this).prev().prev().css("text-align","right")
}
}else if($(this).parent().prev().text().toUpperCase()=='RAR/ZIP'){
if(filetype!='ZIP' && filetype!='RAR' ){
name ='文件类型错误';error=4;
$(this).val('');
$(this).prev().prev().css("text-align","right")
}
}else if($(this).parent().prev().text().toUpperCase()=='JPG/PDF'){
if(filetype!='JPG' && filetype!='PDF' ){
name ='文件类型错误';error=4;
$(this).val('');
$(this).prev().prev().css("text-align","right")
}
}
var textobj=$(this).parent().find(".help-inline");
if(error>0){
textobj.html(name);
return;
}
function processcallback(result){
//{percent: "100%", loaded: 231023, total: 231023}
textobj.html(name+" "+result.percent);
if(result.loaded==result.total){
}
}
function successcallback(result){
if(result && result.data){
textobj.html(name);
fileEl.setAttribute("data-url",result.data.img_url);
fileEl.setAttribute("data-uniquecode",result.data.unique_code);
}else{
textobj.html('<font style="color:red;font-size:12px">上传失败</font>');
}
}
uploadfile(e.currentTarget,processcallback,successcallback,fileEl)
textobj.html(name+" 正在上传");
}
})
}
function uploadfile(fileobj,processcallback,successcallback,fileEl){
var xhr = new XMLHttpRequest();
xhr.upload.onprogress = function(_upevent){
if (_upevent.lengthComputable) {
var oksize=_upevent.loaded;
var percentComplete =oksize / _upevent.total;
var bfbint=parseInt(percentComplete*100);
var bfbstr=bfbint+"%";
processcallback({"percent":bfbstr,"loaded":_upevent.loaded,"total":_upevent.total});
}
};
var fileobjs=fileobj.files;
var onefileobj=fileobjs[0];
var urlstr="/api/capital/upload";
xhr.open("POST",urlstr,true);
var formdata = new FormData();
formdata.append(fileobj.id,onefileobj);
xhr.onload = function(res) {
if(this.status==200){
var _responseText=this.responseText;
var attachjson=JSON.parse(_responseText);
successcallback(attachjson);
}else{
successcallback();
}
};
xhr.send(formdata);
}
function layerAlert(msg,type,call) {
var icon=0;
if(type=='error'){
icon=5;
}else if(type=='success'){
icon=6;
}
layer.alert(msg, {icon: icon,
cancel:function () {
call&&call();
}},
function (index) {
layer.close(index);
call&&call();
}
);
}
function getFiles() {
var file_nameobjs=$(".file_name");
var unique_code="";
var file_nameobjslen=file_nameobjs.length;
var has=0;
if(file_nameobjslen){
for(var i=0;i<file_nameobjslen;i++){
var onefile_nameobj=$(file_nameobjs[i]);
var datauniquecode=onefile_nameobj.attr("data-uniquecode");
var required=onefile_nameobj.attr("required");
console.log("required",required);
if(required)has=1;
if(datauniquecode){
unique_code+=","+datauniquecode
}else{
if(required){
layerAlert("请上传文件“"+onefile_nameobj.attr("data-fname")+"”!");
return {code:'',has:1};
}
}
}
}
if(unique_code)unique_code=unique_code.substring(1);
return {code:unique_code,has:has};
}
function getProducts(){
var objs=$("#prolist tbody tr");
var len=objs.length;
if(len==0)return '';
var products={};
for(var j=0;j<len;j++){
var item=objs.eq(j).attr('data-json');
data=item.split("&");
product={};
product['hoster_reason']={}
if(data.length){
for(var i=0;i<data.length;i++){
var row=data[i].split('=');
if(row.length==2){
var key=row[0];
if(key=='allpic'){
var pics=decodeURIComponent(row[1]);
pics=pics.split(';');
product[key]=pics;
continue;
}
if(key=='hoster_reason'){
product[key][i]=row[1];
continue;
}
if(key!='capitalid'){
product[key]=row[1];
continue;
}
}
}
}
console.log('product',product);
products[j]=product;
}
console.log('products',products);
return JSON.stringify(products);
}
function isIdCardNo(value){
var isIDNumber15 = /^[1-9]\d{7}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}$/;
var isIDNumber18 = /^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}([0-9]|X)$/;
if (isIDNumber15.test(value)) {
return true;
} else if (isIDNumber18.test(value)) {
return true;
}
return false;
}
function isEmail(value){
var reg = new RegExp("^[a-z0-9]+([._\\-]*[a-z0-9])*@([a-z0-9]+[-a-z0-9]*[a-z0-9]+.){1,63}[a-z0-9]+$");
if(reg.test(value)){
return true;
}
return false;
}
$(function(){
var txts=[["法人身份证正面照片","法人身份证反面照片"],["权属人身份证正面照片","权属人身份证反面照片"]];
var rules={
"hoster_name":"required",
"natural_name":"required",
"natural_addr":"required",
"natural_tel":{
"required":true,
"isMobile":true
},
"leader_cardno":{
"required":true
},
"business_code":"required",
"legal_person":"required",
};
$(".poster .file_name").eq(2).attr('required',true);
$("input[name='hoster_type']").change(function(){
var val=$("[name='hoster_type']:checked").val();
$("#hoster .control-label").hide();
if(val==1){
rules.business_code="required";
rules.legal_person="required";
$("#hoster .control-label").eq(0).show();
$(".company").show();
var txt=txts[0];
$(".poster .txt").eq(0).html(txt[0]);
$(".poster .txt").eq(1).html(txt[1]);
$(".poster").eq(2).show();
$(".poster .file_name").eq(2).attr('required',true);
}else{
rules.business_code="";
rules.legal_person="";
$("#hoster .control-label").eq(1).show();
$(".company").hide();
$(".poster").eq(2).hide();
$(".poster .file_name").eq(2).attr('required',false);
var txt=txts[1];
$(".poster .txt").eq(0).html(txt[0]);
$(".poster .txt").eq(1).html(txt[1]);
}
});
{if condition="$info['hoster_type'] eq 2"}
$("input[name='hoster_type']").eq(1).trigger('click');
{/if}
{if condition="isset($status) and $status gt 40"}
$('input').attr('disabled',true);
$('select').attr('disabled',true);
$('textarea').attr('disabled',true);
{/if}
// 手机号码验证
jQuery.validator.addMethod("isMobile", function(value, element) {
var length = value.length;
return this.optional(element) || (length == 11 && /^(((13[0-9]{1})|(15[0-9]{1})|(18[0-9]{1}))+\d{8})$/.test(value));
}, "请正确填写您的手机号码。");
bindFileUpload();
var messages={
"hoster_name":"请输入名称",
"natural_name":"请填写联系人",
"natural_addr":"请填写通讯地址",
"natural_tel":{
"required":"请填写联系电话",
"isMobile":"请正确填写您的手机号码"
},
"business_code":"请填写营业执照代码",
"legal_person":"请填写法定代表人",
"leader_cardno":{
"required":"请填写证件号码"
},
};
tool.commonForm("#postForm",rules,messages,'',function(){
var cardtype=$("[name='leader_cardtype']").val();
var cardno=$("[name='leader_cardno']").val();
var tgtype=$("[name='tg_type[]']:checked").val();
console.log("tgtype",tgtype);
if(typeof tgtype=='undefined'||tgtype==''){
tool.msg("请选择申请类型");
return false;
}
if(cardtype=='000'){
if(!isIdCardNo(cardno)){
$("[name='leader_cardno']").focus();
tool.msg("请输入有效的身份证号");
return false;
}
}
var email=$("[name='natural_email']").val();
if(email&&!isEmail(email)){
$("[name='natural_email']").focus();
tool.msg("请输入有效的邮箱");
return false;
}
var products=getProducts();
if(typeof products=='undefined'||products==''){
tool.msg("请添加艺术资产托管清单");
return false;
}
var unique_code=getFiles();
console.log("unique_code",unique_code);
if(!unique_code.code&&unique_code.has){
tool.msg("请上传附件");
return false;
}
console.log("products2",products);
$("#unique_code").val(unique_code.code);
$("#unique_has").val(unique_code.has);
$("#products").val(products);
return true;
});
$(".addproduct").click(function(event){
event.preventDefault();
var capital_num=$("input[name='capital_num']").val();
if(capital_num<=0){
tool.msg("请先填写资产数量");
return true;
}
var current=$("#prolist tbody tr").length;
if(current+1>capital_num){
tool.msg("超过最大资产托管数量");
return true;
}
layer.open({
type: 2,
area: ['96%', '94%'],
maxmin:false,
//skin: 'layui-layer-rim', //加上边框
title: false,
content:"{:url('jointg3',['tg_type'=>$tg_type,'apply_id'=>$apply_id])}"
});
});
$("body").delegate(".delproduct",'click',function(){
var parent=$(this).parents('#prolist');
var index=parent.find(this).index('.delproduct');
tool.confirm('确定删除此托管资产?','删除操作',0.5,function(){
$("#prolist tbody tr").eq(index).remove();
});
});
$("body").delegate(".edtproduct",'click',function(){
var parent=$(this).parents('#prolist');
var index=parent.find(this).index('.edtproduct');
var url="{:url('jointg3',['tg_type'=>$tg_type,'apply_id'=>$apply_id])}";
layer.open({
type: 2,
area: ['96%', '94%'],
maxmin:false,
//skin: 'layui-layer-rim', //加上边框
title: false,
content:url+"?index="+index
});
});
});
</script>