Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
JSH ERP
Commits
a66f8665
Commit
a66f8665
authored
Apr 30, 2020
by
季圣华
Browse files
优化账户界面
parent
2d237fcd
Changes
1
Hide whitespace changes
Inline
Side-by-side
erp_web/pages/manage/account.html
View file @
a66f8665
...
...
@@ -425,27 +425,32 @@
if
(
checkAccountName
())
{
return
;
}
$
.
ajax
({
url
:
url
,
type
:
"
post
"
,
dataType
:
"
json
"
,
data
:
({
info
:
JSON
.
stringify
(
$
(
"
#accountFM
"
).
serializeObject
())
}),
success
:
function
(
res
)
{
if
(
res
&&
res
.
code
===
200
)
{
$
(
'
#accountDlg
'
).
dialog
(
'
close
'
);
//加载完以后重新初始化
var
opts
=
$
(
"
#tableData
"
).
datagrid
(
'
options
'
);
showAccountDetails
(
opts
.
pageNumber
,
opts
.
pageSize
);
if
(
!
$
(
'
#accountFM
'
).
form
(
'
validate
'
)){
return
;
}
else
{
$
.
ajax
({
url
:
url
,
type
:
"
post
"
,
dataType
:
"
json
"
,
data
:
({
info
:
JSON
.
stringify
(
$
(
"
#accountFM
"
).
serializeObject
())
}),
success
:
function
(
res
)
{
if
(
res
&&
res
.
code
===
200
)
{
$
(
'
#accountDlg
'
).
dialog
(
'
close
'
);
//加载完以后重新初始化
var
opts
=
$
(
"
#tableData
"
).
datagrid
(
'
options
'
);
showAccountDetails
(
opts
.
pageNumber
,
opts
.
pageSize
);
}
},
//此处添加错误处理
error
:
function
()
{
$
.
messager
.
alert
(
'
提示
'
,
'
保存结算账户异常,请稍后再试!
'
,
'
error
'
);
return
;
}
},
//此处添加错误处理
error
:
function
()
{
$
.
messager
.
alert
(
'
提示
'
,
'
保存结算账户异常,请稍后再试!
'
,
'
error
'
);
return
;
}
});
});
}
});
//编辑结算账户
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
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 comment