c9234f3e by yangjianbin

init

1 parent 7c6ae82f
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
37 </span> 37 </span>
38 </div> 38 </div>
39 <div class="form-group col-sm-12"> 39 <div class="form-group col-sm-12">
40 <textarea class="textarea" placeholder="" name="dueDiligencePurpose"></textarea> 40 <textarea class="textarea" placeholder="" name="diligencePurpose"></textarea>
41 </div> 41 </div>
42 </div> 42 </div>
43 </div> 43 </div>
...@@ -64,6 +64,34 @@ ...@@ -64,6 +64,34 @@
64 icon: 3 64 icon: 3
65 }, function(){ 65 }, function(){
66 var data = $('#form').serializeJson(); 66 var data = $('#form').serializeJson();
67 //发起尽调
68 if(data.dueDiligence){
69 $.ajax({
70 type: 'post',
71 url: apiBaseUrl + 'flow/firstDueDiligence',
72 cache: false,
73 data: JSON.stringify(data),
74 dataType: 'json',
75 contentType: "application/json; charset=UTF-8",
76 success: function (data) {
77 if (data.msg) {
78 layer.alert(data.msg);
79 } else if (data.code != 0) {
80 layer.alert('操作失败');
81 } else {
82 layer.alert('操作成功');
83 }
84 if(!data.code){
85 setTimeout(function () {
86 loadIframe('<?=site_url('/work/check/12/'.$id);?>', '审核意见');
87 }, 500)
88 }
89 },
90 error: function () {
91 layer.alert("操作失败")
92 }
93 })
94 }else{
67 data.status = 1; 95 data.status = 1;
68 $.ajax({ 96 $.ajax({
69 type: 'post', 97 type: 'post',
...@@ -90,6 +118,7 @@ ...@@ -90,6 +118,7 @@
90 layer.alert("操作失败") 118 layer.alert("操作失败")
91 } 119 }
92 }) 120 })
121 }
93 }); 122 });
94 } 123 }
95 </script> 124 </script>
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!