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
2161d64f
Commit
2161d64f
authored
May 23, 2019
by
qiankunpingtai
Browse files
修改财务管理模块保存时js出错的问题
parent
1353f7b0
Changes
6
Hide whitespace changes
Inline
Side-by-side
erp_web/js/pages/financial/advance_in.js
View file @
2161d64f
...
...
@@ -894,8 +894,10 @@ function CheckData() {
return
true
;
}
function
saveAccountHeadAndDetail
(
listType
,
ChangeAmount
,
TotalPrice
,
OrganId
)
{
append
();
removeit
();
if
(
editIndex
!=
undefined
)
{
$
(
'
#accountData
'
).
datagrid
(
'
endEdit
'
,
editIndex
);
editIndex
=
undefined
;
}
if
(
!
CheckData
())
return
false
;
var
inserted
=
$
(
"
#accountData
"
).
datagrid
(
'
getChanges
'
,
"
inserted
"
);
...
...
@@ -929,9 +931,6 @@ function saveAccountHeadAndDetail(listType,ChangeAmount,TotalPrice,OrganId) {
$
(
'
#accountHeadDlg
'
).
dialog
(
'
close
'
);
var
opts
=
$
(
"
#tableData
"
).
datagrid
(
'
options
'
);
showAccountHeadDetails
(
opts
.
pageNumber
,
opts
.
pageSize
);
if
(
endEditing
())
{
$
(
'
#accountData
'
).
datagrid
(
'
acceptChanges
'
);
}
}
else
{
...
...
@@ -947,6 +946,10 @@ function saveAccountHeadAndDetail(listType,ChangeAmount,TotalPrice,OrganId) {
$
.
messager
.
alert
(
'
提示
'
,
XmlHttpRequest
.
responseText
,
'
error
'
);
}
});
}
erp_web/js/pages/financial/giro.js
View file @
2161d64f
...
...
@@ -801,8 +801,10 @@ function CheckData() {
return
true
;
}
function
saveAccountHeadAndDetail
(
listType
,
ChangeAmount
,
TotalPrice
,
OrganId
)
{
append
();
removeit
();
if
(
editIndex
!=
undefined
)
{
$
(
'
#accountData
'
).
datagrid
(
'
endEdit
'
,
editIndex
);
editIndex
=
undefined
;
}
if
(
!
CheckData
())
return
false
;
var
inserted
=
$
(
"
#accountData
"
).
datagrid
(
'
getChanges
'
,
"
inserted
"
);
...
...
@@ -836,9 +838,6 @@ function saveAccountHeadAndDetail(listType,ChangeAmount,TotalPrice,OrganId) {
$
(
'
#accountHeadDlg
'
).
dialog
(
'
close
'
);
var
opts
=
$
(
"
#tableData
"
).
datagrid
(
'
options
'
);
showAccountHeadDetails
(
opts
.
pageNumber
,
opts
.
pageSize
);
if
(
endEditing
())
{
$
(
'
#accountData
'
).
datagrid
(
'
acceptChanges
'
);
}
}
else
{
...
...
@@ -854,5 +853,4 @@ function saveAccountHeadAndDetail(listType,ChangeAmount,TotalPrice,OrganId) {
$
.
messager
.
alert
(
'
提示
'
,
XmlHttpRequest
.
responseText
,
'
error
'
);
}
});
}
\ No newline at end of file
erp_web/js/pages/financial/item_in.js
View file @
2161d64f
...
...
@@ -817,8 +817,10 @@ function CheckData() {
return
true
;
}
function
saveAccountHeadAndDetail
(
listType
,
ChangeAmount
,
TotalPrice
,
OrganId
)
{
append
();
removeit
();
if
(
editIndex
!=
undefined
)
{
$
(
'
#accountData
'
).
datagrid
(
'
endEdit
'
,
editIndex
);
editIndex
=
undefined
;
}
if
(
!
CheckData
())
return
false
;
var
inserted
=
$
(
"
#accountData
"
).
datagrid
(
'
getChanges
'
,
"
inserted
"
);
...
...
@@ -852,9 +854,6 @@ function saveAccountHeadAndDetail(listType,ChangeAmount,TotalPrice,OrganId) {
$
(
'
#accountHeadDlg
'
).
dialog
(
'
close
'
);
var
opts
=
$
(
"
#tableData
"
).
datagrid
(
'
options
'
);
showAccountHeadDetails
(
opts
.
pageNumber
,
opts
.
pageSize
);
if
(
endEditing
())
{
$
(
'
#accountData
'
).
datagrid
(
'
acceptChanges
'
);
}
}
else
{
...
...
@@ -870,5 +869,4 @@ function saveAccountHeadAndDetail(listType,ChangeAmount,TotalPrice,OrganId) {
$
.
messager
.
alert
(
'
提示
'
,
XmlHttpRequest
.
responseText
,
'
error
'
);
}
});
}
\ No newline at end of file
erp_web/js/pages/financial/item_out.js
View file @
2161d64f
...
...
@@ -823,8 +823,10 @@ function CheckData() {
return
true
;
}
function
saveAccountHeadAndDetail
(
listType
,
ChangeAmount
,
TotalPrice
,
OrganId
)
{
append
();
removeit
();
if
(
editIndex
!=
undefined
)
{
$
(
'
#accountData
'
).
datagrid
(
'
endEdit
'
,
editIndex
);
editIndex
=
undefined
;
}
if
(
!
CheckData
())
return
false
;
var
inserted
=
$
(
"
#accountData
"
).
datagrid
(
'
getChanges
'
,
"
inserted
"
);
...
...
@@ -858,9 +860,6 @@ function saveAccountHeadAndDetail(listType,ChangeAmount,TotalPrice,OrganId) {
$
(
'
#accountHeadDlg
'
).
dialog
(
'
close
'
);
var
opts
=
$
(
"
#tableData
"
).
datagrid
(
'
options
'
);
showAccountHeadDetails
(
opts
.
pageNumber
,
opts
.
pageSize
);
if
(
endEditing
())
{
$
(
'
#accountData
'
).
datagrid
(
'
acceptChanges
'
);
}
}
else
{
...
...
@@ -876,5 +875,4 @@ function saveAccountHeadAndDetail(listType,ChangeAmount,TotalPrice,OrganId) {
$
.
messager
.
alert
(
'
提示
'
,
XmlHttpRequest
.
responseText
,
'
error
'
);
}
});
}
\ No newline at end of file
erp_web/js/pages/financial/money_in.js
View file @
2161d64f
...
...
@@ -813,8 +813,10 @@ function CheckData() {
return
true
;
}
function
saveAccountHeadAndDetail
(
listType
,
ChangeAmount
,
TotalPrice
,
OrganId
)
{
append
();
removeit
();
if
(
editIndex
!=
undefined
)
{
$
(
'
#accountData
'
).
datagrid
(
'
endEdit
'
,
editIndex
);
editIndex
=
undefined
;
}
if
(
!
CheckData
())
return
false
;
var
inserted
=
$
(
"
#accountData
"
).
datagrid
(
'
getChanges
'
,
"
inserted
"
);
...
...
@@ -848,9 +850,6 @@ function saveAccountHeadAndDetail(listType,ChangeAmount,TotalPrice,OrganId) {
$
(
'
#accountHeadDlg
'
).
dialog
(
'
close
'
);
var
opts
=
$
(
"
#tableData
"
).
datagrid
(
'
options
'
);
showAccountHeadDetails
(
opts
.
pageNumber
,
opts
.
pageSize
);
if
(
endEditing
())
{
$
(
'
#accountData
'
).
datagrid
(
'
acceptChanges
'
);
}
}
else
{
...
...
@@ -866,5 +865,4 @@ function saveAccountHeadAndDetail(listType,ChangeAmount,TotalPrice,OrganId) {
$
.
messager
.
alert
(
'
提示
'
,
XmlHttpRequest
.
responseText
,
'
error
'
);
}
});
}
\ No newline at end of file
erp_web/js/pages/financial/money_out.js
View file @
2161d64f
...
...
@@ -835,8 +835,10 @@ function CheckData() {
return
true
;
}
function
saveAccountHeadAndDetail
(
listType
,
ChangeAmount
,
TotalPrice
,
OrganId
)
{
append
();
removeit
();
if
(
editIndex
!=
undefined
)
{
$
(
'
#accountData
'
).
datagrid
(
'
endEdit
'
,
editIndex
);
editIndex
=
undefined
;
}
if
(
!
CheckData
())
return
false
;
var
inserted
=
$
(
"
#accountData
"
).
datagrid
(
'
getChanges
'
,
"
inserted
"
);
...
...
@@ -870,9 +872,6 @@ function saveAccountHeadAndDetail(listType,ChangeAmount,TotalPrice,OrganId) {
$
(
'
#accountHeadDlg
'
).
dialog
(
'
close
'
);
var
opts
=
$
(
"
#tableData
"
).
datagrid
(
'
options
'
);
showAccountHeadDetails
(
opts
.
pageNumber
,
opts
.
pageSize
);
if
(
endEditing
())
{
$
(
'
#accountData
'
).
datagrid
(
'
acceptChanges
'
);
}
}
else
{
...
...
@@ -888,5 +887,4 @@ function saveAccountHeadAndDetail(listType,ChangeAmount,TotalPrice,OrganId) {
$
.
messager
.
alert
(
'
提示
'
,
XmlHttpRequest
.
responseText
,
'
error
'
);
}
});
}
\ No newline at end of file
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