c9234f3e by yangjianbin

init

1 parent 7c6ae82f
......@@ -37,7 +37,7 @@
</span>
</div>
<div class="form-group col-sm-12">
<textarea class="textarea" placeholder="" name="dueDiligencePurpose"></textarea>
<textarea class="textarea" placeholder="" name="diligencePurpose"></textarea>
</div>
</div>
</div>
......@@ -64,6 +64,34 @@
icon: 3
}, function(){
var data = $('#form').serializeJson();
//发起尽调
if(data.dueDiligence){
$.ajax({
type: 'post',
url: apiBaseUrl + 'flow/firstDueDiligence',
cache: false,
data: JSON.stringify(data),
dataType: 'json',
contentType: "application/json; charset=UTF-8",
success: function (data) {
if (data.msg) {
layer.alert(data.msg);
} else if (data.code != 0) {
layer.alert('操作失败');
} else {
layer.alert('操作成功');
}
if(!data.code){
setTimeout(function () {
loadIframe('<?=site_url('/work/check/12/'.$id);?>', '审核意见');
}, 500)
}
},
error: function () {
layer.alert("操作失败")
}
})
}else{
data.status = 1;
$.ajax({
type: 'post',
......@@ -90,6 +118,7 @@
layer.alert("操作失败")
}
})
}
});
}
</script>
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!