5327bd0a by yangjianbin

init

1 parent 14524e18
<?php $this->load->view('common/header'); ?>
<body>
<div class="page-container">
<div class="page-container">
<form class="" onreset="resetHandler()">
<div class="date mb-20">
<input type="text"
......@@ -24,9 +24,9 @@
<span class="select-box">
<select class="select table_search" name="departmentId" size="1" column="6">
<option value="" selected>网点</option>
<?php foreach ($this->session->departments as $k=>$v):?>
<option value="<?=$v->id?>"><?=$v->name?></option>
<?php endforeach;?>
<?php foreach ($this->session->departments as $k => $v): ?>
<option value="<?= $v->id ?>"><?= $v->name ?></option>
<?php endforeach; ?>
</select>
</span>
</div>
......@@ -85,10 +85,10 @@
</tbody>
</table>
</div>
</div>
<?php $this->load->view('common/footer'); ?>
</div>
<?php $this->load->view('common/footer'); ?>
<script>
<script>
var table = $('#table').dataTable({
aaSorting: [[1, "desc"]],
serverSide: true,
......@@ -103,7 +103,7 @@
var ret = {}, json = jQuery.parseJSON(json);
ret.data = json.data;
var draw = getUrlParam('draw');
if(draw) {
if (draw) {
ret.draw = draw;
}
ret.recordsTotal = 0;
......@@ -126,7 +126,7 @@
return '<span class="dropDown dropDown_hover">\
<button class="btn radius size-M">请选择 <i class="Hui-iconfont">&#xe6d5;</i></button>\
<ul class="dropDown-menu menu radius box-shadow">\
<li><a href="javascript:;pass('+data+')">确认到款</a></li>\
<li><a href="javascript:;pass(' + data + ')">确认到款</a></li>\
</ul></span>';
}
},
......@@ -181,36 +181,36 @@
function pass(id) {
layer.confirm('通过之后, 账单同步更新到收款明细列表', {
btn: ['通过','取消'],
btn: ['通过', '取消'],
title: '确认到账',
icon: 3
}, function(){
}, function () {
var data = {
realRepaymentDate:getNowFormatDate()
realRepaymentDate: getNowFormatDate()
};
$.ajax({
type:'patch',
url:apiBaseUrl + 'manage/financial/confirm/' + id,
type: 'patch',
url: apiBaseUrl + 'manage/financial/confirm/' + id + '?realRepaymentDate=' + Date.now(),
cache: false,
dataType:'json',
data:JSON.stringify(data),
dataType: 'json',
data: JSON.stringify(data),
contentType: "application/json; charset=UTF-8",
success:function(data){
if(data.msg){
success: function (data) {
if (data.msg) {
layer.alert(data.msg);
} else if(data.code != 0){
} else if (data.code != 0) {
layer.alert('请求失败');
} else {
layer.msg('通过');
}
},
error:function(){
error: function () {
layer.alert("请求失败")
}
})
});
}
</script>
</script>
</body>
<html>
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!