Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
T
topsun-bpm
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
鲁鑫
topsun-bpm
Commits
4675c708
Commit
4675c708
authored
Jun 14, 2024
by
鲁鑫
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
删除明细行,重新计算总金额
parent
1f9f2df1
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
84 additions
and
46 deletions
+84
-46
advancePayment.js
...webapp/biz/topsun/sap/costReimbursement/advancePayment.js
+14
-8
costReimbursement.js
...app/biz/topsun/sap/costReimbursement/costReimbursement.js
+18
-8
employeeLoan.js
...n/webapp/biz/topsun/sap/costReimbursement/employeeLoan.js
+13
-8
payApply.js
.../main/webapp/biz/topsun/sap/costReimbursement/payApply.js
+11
-6
payApplyNoPO.js
...n/webapp/biz/topsun/sap/costReimbursement/payApplyNoPO.js
+14
-8
refundApply.js
...in/webapp/biz/topsun/sap/costReimbursement/refundApply.js
+14
-8
No files found.
topsun-xt/src/main/webapp/biz/topsun/sap/costReimbursement/advancePayment.js
View file @
4675c708
...
@@ -405,13 +405,19 @@ function loadGrid(obj) {
...
@@ -405,13 +405,19 @@ function loadGrid(obj) {
}
}
});
});
tableArray
.
forEach
((
item
)
=>
{
tableArray
.
forEach
((
item
)
=>
{
if
(
item
.
node
!=
"reimbursementApplierGrid"
){
// if (item.node != "reimbursementApplierGrid"){
// var data = item.gridManager.getSelectedRows();
// $.each(data, function (i, o) {
// item.gridManager.deleteRow(o);
// });
// }
var
data
=
item
.
gridManager
.
getSelectedRows
();
var
data
=
item
.
gridManager
.
getSelectedRows
();
$
.
each
(
data
,
function
(
i
,
o
)
{
$
.
each
(
data
,
function
(
i
,
o
)
{
item
.
gridManager
.
deleteRow
(
o
);
item
.
gridManager
.
deleteRow
(
o
);
});
});
}
})
})
totalGrid
();
initFinancialAuditGridData
();
}
}
});
});
}
}
...
@@ -567,7 +573,7 @@ function getExtendedData(processAction) {
...
@@ -567,7 +573,7 @@ function getExtendedData(processAction) {
//回退、打回、转交时,不需要验证必填项是否已经填写;
//回退、打回、转交时,不需要验证必填项是否已经填写;
if
(
processAction
==
ProcessAction
.
BACK
if
(
processAction
==
ProcessAction
.
BACK
||
processAction
==
ProcessAction
.
REPLENISH
||
processAction
==
ProcessAction
.
REPLENISH
||
processAction
==
ProcessAction
.
TRANSMIT
)
{
||
processAction
==
ProcessAction
.
TRANSMIT
||
"2"
==
getHandleResult
()
)
{
isAllData
=
false
isAllData
=
false
//不验证
//不验证
$
(
'#submitForm'
).
attr
(
'check'
,
false
);
$
(
'#submitForm'
).
attr
(
'check'
,
false
);
...
@@ -602,7 +608,7 @@ function checkConstraints() {
...
@@ -602,7 +608,7 @@ function checkConstraints() {
var
_grid
=
UICtrl
.
getGridManager
(
'#financialAuditGrid'
);
var
_grid
=
UICtrl
.
getGridManager
(
'#financialAuditGrid'
);
var
datas
=
DataUtil
.
getGridData
({
var
datas
=
DataUtil
.
getGridData
({
gridManager
:
_grid
,
gridManager
:
_grid
,
isAllData
:
true
,
isAllData
:
isAllData
,
onCheck
:
function
()
{
onCheck
:
function
()
{
return
true
;
return
true
;
}
}
...
...
topsun-xt/src/main/webapp/biz/topsun/sap/costReimbursement/costReimbursement.js
View file @
4675c708
...
@@ -565,13 +565,23 @@ function loadGrid(obj) {
...
@@ -565,13 +565,23 @@ function loadGrid(obj) {
}
}
});
});
tableArray
.
forEach
((
item
)
=>
{
tableArray
.
forEach
((
item
)
=>
{
if
(
item
.
node
!=
"reimbursementApplierGrid"
){
// if (item.node != "reimbursementApplierGrid"){
// var data = item.gridManager.getSelectedRows();
// $.each(data, function (i, o) {
// item.gridManager.deleteRow(o);
// });
// }
var
data
=
item
.
gridManager
.
getSelectedRows
();
var
data
=
item
.
gridManager
.
getSelectedRows
();
$
.
each
(
data
,
function
(
i
,
o
)
{
$
.
each
(
data
,
function
(
i
,
o
)
{
item
.
gridManager
.
deleteRow
(
o
);
item
.
gridManager
.
deleteRow
(
o
);
});
});
}
})
})
totalGrid
();
var
_secondGrid
=
UICtrl
.
getGridManager
(
'#financialAuditGrid'
);
if
(
_secondGrid
!=
null
){
var
secondRows
=
_secondGrid
.
currentData
.
Rows
;
totalFinancialAuditGrid
(
secondRows
);
}
},
},
copyHandler
:
{
copyHandler
:
{
id
:
'copyHandler'
,
text
:
'复制'
,
img
:
'fa-copy'
,
click
:
function
()
{
id
:
'copyHandler'
,
text
:
'复制'
,
img
:
'fa-copy'
,
click
:
function
()
{
...
@@ -797,7 +807,7 @@ function checkConstraints() {
...
@@ -797,7 +807,7 @@ function checkConstraints() {
var
_grid
=
UICtrl
.
getGridManager
(
'#reimbursementApplierGrid'
);
var
_grid
=
UICtrl
.
getGridManager
(
'#reimbursementApplierGrid'
);
var
datas
=
DataUtil
.
getGridData
({
var
datas
=
DataUtil
.
getGridData
({
gridManager
:
_grid
,
gridManager
:
_grid
,
isAllData
:
true
,
isAllData
:
isAllData
,
onCheck
:
function
()
{
onCheck
:
function
()
{
return
true
;
return
true
;
}
}
...
@@ -822,7 +832,7 @@ function checkConstraints() {
...
@@ -822,7 +832,7 @@ function checkConstraints() {
var
_grid
=
UICtrl
.
getGridManager
(
'#financialAuditGrid'
);
var
_grid
=
UICtrl
.
getGridManager
(
'#financialAuditGrid'
);
var
datas
=
DataUtil
.
getGridData
({
var
datas
=
DataUtil
.
getGridData
({
gridManager
:
_grid
,
gridManager
:
_grid
,
isAllData
:
true
,
isAllData
:
isAllData
,
onCheck
:
function
()
{
onCheck
:
function
()
{
return
true
;
return
true
;
}
}
...
...
topsun-xt/src/main/webapp/biz/topsun/sap/costReimbursement/employeeLoan.js
View file @
4675c708
...
@@ -432,13 +432,18 @@ function loadGrid(obj) {
...
@@ -432,13 +432,18 @@ function loadGrid(obj) {
}
}
});
});
tableArray
.
forEach
((
item
)
=>
{
tableArray
.
forEach
((
item
)
=>
{
if
(
item
.
node
!=
"reimbursementApplierGrid"
){
// if (item.node != "reimbursementApplierGrid"){
// var data = item.gridManager.getSelectedRows();
// $.each(data, function (i, o) {
// item.gridManager.deleteRow(o);
// });
// }
var
data
=
item
.
gridManager
.
getSelectedRows
();
var
data
=
item
.
gridManager
.
getSelectedRows
();
$
.
each
(
data
,
function
(
i
,
o
)
{
$
.
each
(
data
,
function
(
i
,
o
)
{
item
.
gridManager
.
deleteRow
(
o
);
item
.
gridManager
.
deleteRow
(
o
);
});
});
}
})
})
totalGrid
();
}
}
});
});
}
}
...
@@ -587,7 +592,7 @@ function getExtendedData(processAction) {
...
@@ -587,7 +592,7 @@ function getExtendedData(processAction) {
//回退、打回、转交时,不需要验证必填项是否已经填写;
//回退、打回、转交时,不需要验证必填项是否已经填写;
if
(
processAction
==
ProcessAction
.
BACK
if
(
processAction
==
ProcessAction
.
BACK
||
processAction
==
ProcessAction
.
REPLENISH
||
processAction
==
ProcessAction
.
REPLENISH
||
processAction
==
ProcessAction
.
TRANSMIT
)
{
||
processAction
==
ProcessAction
.
TRANSMIT
||
"2"
==
getHandleResult
()
)
{
isAllData
=
false
isAllData
=
false
//不验证
//不验证
$
(
'#submitForm'
).
attr
(
'check'
,
false
);
$
(
'#submitForm'
).
attr
(
'check'
,
false
);
...
@@ -622,7 +627,7 @@ function checkConstraints() {
...
@@ -622,7 +627,7 @@ function checkConstraints() {
var
_grid
=
UICtrl
.
getGridManager
(
'#financialAuditGrid'
);
var
_grid
=
UICtrl
.
getGridManager
(
'#financialAuditGrid'
);
var
datas
=
DataUtil
.
getGridData
({
var
datas
=
DataUtil
.
getGridData
({
gridManager
:
_grid
,
gridManager
:
_grid
,
isAllData
:
true
,
isAllData
:
isAllData
,
onCheck
:
function
()
{
onCheck
:
function
()
{
return
true
;
return
true
;
}
}
...
...
topsun-xt/src/main/webapp/biz/topsun/sap/costReimbursement/payApply.js
View file @
4675c708
...
@@ -417,13 +417,18 @@ function loadGrid(obj) {
...
@@ -417,13 +417,18 @@ function loadGrid(obj) {
}
}
});
});
tableArray
.
forEach
((
item
)
=>
{
tableArray
.
forEach
((
item
)
=>
{
if
(
item
.
node
!=
"reimbursementApplierGrid"
){
// if (item.node != "reimbursementApplierGrid"){
// var data = item.gridManager.getSelectedRows();
// $.each(data, function (i, o) {
// item.gridManager.deleteRow(o);
// });
// }
var
data
=
item
.
gridManager
.
getSelectedRows
();
var
data
=
item
.
gridManager
.
getSelectedRows
();
$
.
each
(
data
,
function
(
i
,
o
)
{
$
.
each
(
data
,
function
(
i
,
o
)
{
item
.
gridManager
.
deleteRow
(
o
);
item
.
gridManager
.
deleteRow
(
o
);
});
});
}
})
})
totalGrid
();
}
}
});
});
}
}
...
@@ -600,7 +605,7 @@ function getExtendedData(processAction) {
...
@@ -600,7 +605,7 @@ function getExtendedData(processAction) {
//回退、打回、转交时,不需要验证必填项是否已经填写;
//回退、打回、转交时,不需要验证必填项是否已经填写;
if
(
processAction
==
ProcessAction
.
BACK
if
(
processAction
==
ProcessAction
.
BACK
||
processAction
==
ProcessAction
.
REPLENISH
||
processAction
==
ProcessAction
.
REPLENISH
||
processAction
==
ProcessAction
.
TRANSMIT
)
{
||
processAction
==
ProcessAction
.
TRANSMIT
||
"2"
==
getHandleResult
()
)
{
isAllData
=
false
isAllData
=
false
//不验证
//不验证
$
(
'#submitForm'
).
attr
(
'check'
,
false
);
$
(
'#submitForm'
).
attr
(
'check'
,
false
);
...
@@ -635,7 +640,7 @@ function checkConstraints() {
...
@@ -635,7 +640,7 @@ function checkConstraints() {
var
_grid
=
UICtrl
.
getGridManager
(
'#financialAuditGrid'
);
var
_grid
=
UICtrl
.
getGridManager
(
'#financialAuditGrid'
);
var
datas
=
DataUtil
.
getGridData
({
var
datas
=
DataUtil
.
getGridData
({
gridManager
:
_grid
,
gridManager
:
_grid
,
isAllData
:
true
,
isAllData
:
isAllData
,
onCheck
:
function
()
{
onCheck
:
function
()
{
return
true
;
return
true
;
}
}
...
@@ -706,7 +711,7 @@ function businessJudgmentUnit() {
...
@@ -706,7 +711,7 @@ function businessJudgmentUnit() {
var
isApply
=
isApplyProcUnit
();
var
isApply
=
isApplyProcUnit
();
if
(
isApply
)
{
if
(
isApply
)
{
$
(
"#approvalMoney"
).
hide
();
$
(
"#approvalMoney"
).
hide
();
$
(
"#financialAudit"
).
hide
();
//
$("#financialAudit").hide();
$
(
"#financialAudit_sapReturn"
).
hide
();
$
(
"#financialAudit_sapReturn"
).
hide
();
$
(
"#capitalPost"
).
hide
();
$
(
"#capitalPost"
).
hide
();
$
(
"#paymentAccomplish_sapReturn"
).
hide
();
$
(
"#paymentAccomplish_sapReturn"
).
hide
();
...
...
topsun-xt/src/main/webapp/biz/topsun/sap/costReimbursement/payApplyNoPO.js
View file @
4675c708
...
@@ -572,13 +572,19 @@ function loadGrid(obj) {
...
@@ -572,13 +572,19 @@ function loadGrid(obj) {
}
}
});
});
tableArray
.
forEach
((
item
)
=>
{
tableArray
.
forEach
((
item
)
=>
{
if
(
item
.
node
!=
"reimbursementApplierGrid"
){
// if (item.node != "reimbursementApplierGrid"){
// var data = item.gridManager.getSelectedRows();
// $.each(data, function (i, o) {
// item.gridManager.deleteRow(o);
// });
// }
var
data
=
item
.
gridManager
.
getSelectedRows
();
var
data
=
item
.
gridManager
.
getSelectedRows
();
$
.
each
(
data
,
function
(
i
,
o
)
{
$
.
each
(
data
,
function
(
i
,
o
)
{
item
.
gridManager
.
deleteRow
(
o
);
item
.
gridManager
.
deleteRow
(
o
);
});
});
}
})
})
totalGrid
();
initFinancialAuditGridData
();
},
},
copyHandler
:
{
copyHandler
:
{
id
:
'copyHandler'
,
text
:
'复制'
,
img
:
'fa-copy'
,
click
:
function
()
{
id
:
'copyHandler'
,
text
:
'复制'
,
img
:
'fa-copy'
,
click
:
function
()
{
...
@@ -772,7 +778,7 @@ function getExtendedData(processAction) {
...
@@ -772,7 +778,7 @@ function getExtendedData(processAction) {
//回退、打回、转交时,不需要验证必填项是否已经填写;
//回退、打回、转交时,不需要验证必填项是否已经填写;
if
(
processAction
==
ProcessAction
.
BACK
if
(
processAction
==
ProcessAction
.
BACK
||
processAction
==
ProcessAction
.
REPLENISH
||
processAction
==
ProcessAction
.
REPLENISH
||
processAction
==
ProcessAction
.
TRANSMIT
)
{
||
processAction
==
ProcessAction
.
TRANSMIT
||
"2"
==
getHandleResult
()
)
{
isAllData
=
false
isAllData
=
false
//不验证
//不验证
$
(
'#submitForm'
).
attr
(
'check'
,
false
);
$
(
'#submitForm'
).
attr
(
'check'
,
false
);
...
@@ -804,7 +810,7 @@ function checkConstraints() {
...
@@ -804,7 +810,7 @@ function checkConstraints() {
var
_grid
=
UICtrl
.
getGridManager
(
'#reimbursementApplierGrid'
);
var
_grid
=
UICtrl
.
getGridManager
(
'#reimbursementApplierGrid'
);
var
datas
=
DataUtil
.
getGridData
({
var
datas
=
DataUtil
.
getGridData
({
gridManager
:
_grid
,
gridManager
:
_grid
,
isAllData
:
true
,
isAllData
:
isAllData
,
onCheck
:
function
()
{
onCheck
:
function
()
{
return
true
;
return
true
;
}
}
...
...
topsun-xt/src/main/webapp/biz/topsun/sap/costReimbursement/refundApply.js
View file @
4675c708
...
@@ -364,13 +364,19 @@ function loadGrid(obj) {
...
@@ -364,13 +364,19 @@ function loadGrid(obj) {
}
}
});
});
tableArray
.
forEach
((
item
)
=>
{
tableArray
.
forEach
((
item
)
=>
{
if
(
item
.
node
!=
"reimbursementApplierGrid"
){
// if (item.node != "reimbursementApplierGrid"){
// var data = item.gridManager.getSelectedRows();
// $.each(data, function (i, o) {
// item.gridManager.deleteRow(o);
// });
// }
var
data
=
item
.
gridManager
.
getSelectedRows
();
var
data
=
item
.
gridManager
.
getSelectedRows
();
$
.
each
(
data
,
function
(
i
,
o
)
{
$
.
each
(
data
,
function
(
i
,
o
)
{
item
.
gridManager
.
deleteRow
(
o
);
item
.
gridManager
.
deleteRow
(
o
);
});
});
}
})
})
totalGrid
();
initFinancialAuditGridData
();
}
}
});
});
}
}
...
@@ -546,7 +552,7 @@ function getExtendedData(processAction) {
...
@@ -546,7 +552,7 @@ function getExtendedData(processAction) {
//回退、打回、转交时,不需要验证必填项是否已经填写;
//回退、打回、转交时,不需要验证必填项是否已经填写;
if
(
processAction
==
ProcessAction
.
BACK
if
(
processAction
==
ProcessAction
.
BACK
||
processAction
==
ProcessAction
.
REPLENISH
||
processAction
==
ProcessAction
.
REPLENISH
||
processAction
==
ProcessAction
.
TRANSMIT
)
{
||
processAction
==
ProcessAction
.
TRANSMIT
||
"2"
==
getHandleResult
()
)
{
isAllData
=
false
isAllData
=
false
//不验证
//不验证
$
(
'#submitForm'
).
attr
(
'check'
,
false
);
$
(
'#submitForm'
).
attr
(
'check'
,
false
);
...
@@ -581,7 +587,7 @@ function checkConstraints() {
...
@@ -581,7 +587,7 @@ function checkConstraints() {
var
_grid
=
UICtrl
.
getGridManager
(
'#financialAuditGrid'
);
var
_grid
=
UICtrl
.
getGridManager
(
'#financialAuditGrid'
);
var
datas
=
DataUtil
.
getGridData
({
var
datas
=
DataUtil
.
getGridData
({
gridManager
:
_grid
,
gridManager
:
_grid
,
isAllData
:
true
,
isAllData
:
isAllData
,
onCheck
:
function
()
{
onCheck
:
function
()
{
return
true
;
return
true
;
}
}
...
...
Write
Preview
Markdown
is supported
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