Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
杨建斌
/
page
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
1
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
5327bd0a
authored
2018-03-22 21:17:34 +0800
by
yangjianbin
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
init
1 parent
14524e18
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
21 deletions
application/views/finance/checkTheAccount.php
application/views/finance/checkTheAccount.php
View file @
5327bd0
<?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"></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>
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment