490c3afe by yangjianbin

init

1 parent 8e3eff26
1 <?php $this->load->view('common/header'); ?> 1 <?php $this->load->view('common/header'); ?>
2 2
3 <body> 3 <body>
4 <div class="cl pd-5 bg-1"> 4 <div class="cl pd-5 bg-1">
5 <span class="r"> 5 <span class="r">
6 <button class="btn btn-primary radius">保存</button> 6 <button class="btn btn-primary radius">保存</button>
7 <button class="btn btn-primary radius">预览信用报告</button> 7 <button class="btn btn-primary radius">预览信用报告</button>
8 </span> 8 </span>
9 </div> 9 </div>
10
11 <?php $this->load->view('work/审批/信用报告'); ?>
10 12
11 <?php $this->load->view('work/审批/信用报告'); ?> 13 <div class="row cl pb-20 col-sm-12">
12 14 <div class="col-sm-offset-3 col-sm-2">
13 <div class="row cl pb-20 col-sm-12"> 15 <button class="btn btn-warning btn-block">退回订单</button>
14 <div class="col-sm-offset-3 col-sm-2"> 16 </div>
15 <button class="btn btn-warning btn-block">退回订单</button> 17 <div class="col-sm-2">
16 </div> 18 <button class="btn btn-danger btn-block" onclick="refuse()">拒绝</button>
17 <div class="col-sm-2"> 19 </div>
18 <button class="btn btn-danger btn-block" onclick="refuse()">拒绝</button> 20 <div class="col-sm-2">
19 </div> 21 <button class="btn btn-primary btn-block" onclick="pass()">
20 <div class="col-sm-2"> 22 通过
21 <button class="btn btn-primary btn-block" onclick="loadIframe('<?=site_url('/work/check/7');?>', '审核意见');">通过</button> 23 </button>
22 </div>
23 </div> 24 </div>
25 </div>
26
27 <?php $this->load->view('common/footer'); ?>
28
29 <script>
30 function refuse() {
31 layer.open({
32 type: 2,
33 title: '电核记录',
34 shadeClose: true,
35 area: ['800px', '400px'],
36 content: '<?=site_url('work/telRefuse')?>'
37 });
38 }
39
40 function pass() {
41 var data = $("#form1").serializeJson();
42 $.ajax({
43 type: 'post',
44 url: apiBaseUrl + 'audit/creditReport',
45 cache: false,
46 data: JSON.stringify(data),
47 dataType: 'json',
48 contentType: "application/json; charset=UTF-8",
49 success: function (data) {
50 if (data.msg) {
51 layer.alert(data.msg);
52 } else if (data.code != 0) {
53 layer.alert('操作失败');
54 } else {
55 layer.alert('操作成功');
56 }
57 setTimeout(function () {
58 loadIframe(url, '审核意见');
59 }, 500)
60 },
61 error: function () {
62 layer.alert("操作失败")
63 }
64
65 })
24 66
25 <?php $this->load->view('common/footer'); ?> 67 }
26 68 </script>
27 <script>
28 function refuse() {
29 layer.open({
30 type: 2,
31 title: '电核记录',
32 shadeClose: true,
33 area: ['800px', '400px'],
34 content: '<?=site_url('work/telRefuse')?>'
35 });
36 }
37 </script>
38 </body> 69 </body>
39 </html> 70 </html>
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!