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
63b63665
Commit
63b63665
authored
May 15, 2025
by
1650842865
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
付款相关优化
parent
604d8c39
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
35 additions
and
36 deletions
+35
-36
advancePayment.js
...webapp/biz/topsun/sap/costReimbursement/advancePayment.js
+9
-12
costReimbursement.js
...app/biz/topsun/sap/costReimbursement/costReimbursement.js
+11
-11
payApply.js
.../main/webapp/biz/topsun/sap/costReimbursement/payApply.js
+6
-6
payApplyNoPO.js
...n/webapp/biz/topsun/sap/costReimbursement/payApplyNoPO.js
+8
-6
refundApply.js
...in/webapp/biz/topsun/sap/costReimbursement/refundApply.js
+1
-1
No files found.
topsun-xt/src/main/webapp/biz/topsun/sap/costReimbursement/advancePayment.js
View file @
63b63665
...
...
@@ -369,6 +369,7 @@ var tableArray = [
}
];
var
isAllData
=
true
;
var
zepPayFlag
=
false
,
changed
=
false
;
//创建表格(参数、列、插入的节点、数据源)
function
loadGrid
(
obj
)
{
...
...
@@ -438,23 +439,17 @@ function loadGrid(obj) {
}
});
tableArray
.
forEach
((
item
)
=>
{
// if (item.node != "reimbursementApplierGrid"){
// var data = item.gridManager.getSelectedRows();
// $.each(data, function (i, o) {
// item.gridManager.deleteRow(o);
// });
// }
var
data
=
item
.
gridManager
.
getSelectedRows
();
$
.
each
(
data
,
function
(
i
,
o
)
{
item
.
gridManager
.
deleteRow
(
o
);
});
})
//initFinancialAuditGridData();
var
_secondGrid
=
UICtrl
.
getGridManager
(
'#financialAuditGrid'
);
if
(
_secondGrid
!=
null
&&
_secondGrid
.
currentData
!=
null
){
var
secondRows
=
_secondGrid
.
currentData
.
Rows
;
totalFinancialAuditGrid
(
secondRows
);
}
//
var _secondGrid = UICtrl.getGridManager('#financialAuditGrid');
//
if (_secondGrid != null && _secondGrid.currentData != null){
//
var secondRows = _secondGrid.currentData.Rows;
//
totalFinancialAuditGrid(secondRows);
//
}
},
copyHandler
:
{
id
:
'copyHandler'
,
text
:
'复制'
,
img
:
'fa-copy'
,
click
:
function
()
{
...
...
@@ -492,6 +487,7 @@ function loadGrid(obj) {
checkbox
:
true
,
fixedCellHeight
:
true
,
selectRowButtonOnly
:
true
,
autoApplyNextEditor
:
false
,
onBeforeCheckRow
:
function
(
checked
,
data
)
{
//同时选定或取消所有表格中的对应行
tableArray
.
forEach
((
item
)
=>
{
...
...
@@ -625,7 +621,8 @@ function loadGrid(obj) {
column
.
editor
.
required
=
zepPayFlag
;
}
})
UICtrl
.
setGridColumns
(
obj
.
gridManager
,
columns
);
obj
.
gridManager
.
set
(
'columns'
,
columns
);
//UICtrl.setGridColumns(obj.gridManager,columns);
}
return
item
;
},
...
...
topsun-xt/src/main/webapp/biz/topsun/sap/costReimbursement/costReimbursement.js
View file @
63b63665
...
...
@@ -561,21 +561,21 @@ function loadGrid(obj) {
gridManager
:
_grid
,
idFieldName
:
'reimbursementDetailId'
,
onSuccess
:
function
()
{
tableArray
.
forEach
((
item
)
=>
{
var
data
=
item
.
gridManager
.
getSelectedRows
();
$
.
each
(
data
,
function
(
i
,
o
)
{
item
.
gridManager
.
deleteRow
(
o
);
});
})
reloadGrid
();
}
});
tableArray
.
forEach
((
item
)
=>
{
var
data
=
item
.
gridManager
.
getSelectedRows
();
$
.
each
(
data
,
function
(
i
,
o
)
{
item
.
gridManager
.
deleteRow
(
o
);
});
})
//totalGrid();
var
_secondGrid
=
UICtrl
.
getGridManager
(
'#financialAuditGrid'
);
if
(
_secondGrid
!=
null
&&
_secondGrid
.
currentData
!=
null
){
var
secondRows
=
_secondGrid
.
currentData
.
Rows
;
totalFinancialAuditGrid
(
secondRows
);
}
//
var _secondGrid = UICtrl.getGridManager('#financialAuditGrid');
//
if (_secondGrid != null && _secondGrid.currentData != null){
//
var secondRows = _secondGrid.currentData.Rows;
//
totalFinancialAuditGrid(secondRows);
//
}
},
copyHandler
:
{
id
:
'copyHandler'
,
text
:
'复制'
,
img
:
'fa-copy'
,
click
:
function
()
{
...
...
topsun-xt/src/main/webapp/biz/topsun/sap/costReimbursement/payApply.js
View file @
63b63665
...
...
@@ -387,16 +387,16 @@ function loadGrid(obj) {
gridManager
:
_grid
,
idFieldName
:
'reimbursementDetailId'
,
onSuccess
:
function
()
{
tableArray
.
forEach
((
item
)
=>
{
var
data
=
item
.
gridManager
.
getSelectedRows
();
$
.
each
(
data
,
function
(
i
,
o
)
{
item
.
gridManager
.
deleteRow
(
o
);
});
})
reloadGrid
();
//totalGrid();
},
});
tableArray
.
forEach
((
item
)
=>
{
var
data
=
item
.
gridManager
.
getSelectedRows
();
$
.
each
(
data
,
function
(
i
,
o
)
{
item
.
gridManager
.
deleteRow
(
o
);
});
})
},
copyHandler
:
{
id
:
'copyHandler'
,
text
:
'复制'
,
img
:
'fa-copy'
,
click
:
function
()
{
...
...
topsun-xt/src/main/webapp/biz/topsun/sap/costReimbursement/payApplyNoPO.js
View file @
63b63665
...
...
@@ -372,6 +372,7 @@ function getColumns() {
return
columns
;
}
var
isAllData
=
true
;
var
zepPayFlag
=
false
,
changed
=
false
;
//创建表格(参数、列、插入的节点、数据源)
...
...
@@ -460,12 +461,12 @@ function loadGrid(obj) {
item
.
gridManager
.
deleteRow
(
o
);
});
})
totalGrid
();
var
_secondGrid
=
UICtrl
.
getGridManager
(
'#financialAuditGrid'
);
if
(
_secondGrid
!=
null
){
var
secondRows
=
_secondGrid
.
currentData
.
Rows
;
totalFinancialAuditGrid
(
secondRows
);
}
//
var _secondGrid = UICtrl.getGridManager('#financialAuditGrid');
//
if (_secondGrid != null){
//
var secondRows = _secondGrid.currentData.Rows;
//
totalFinancialAuditGrid(secondRows);
//
}
},
copyHandler
:
{
id
:
'copyHandler'
,
text
:
'复制'
,
img
:
'fa-copy'
,
click
:
function
()
{
...
...
@@ -691,6 +692,7 @@ function loadGrid(obj) {
}
}
}
totalGrid
();
}
});
UICtrl
.
setSearchAreaToggle
(
obj
.
gridManager
);
...
...
topsun-xt/src/main/webapp/biz/topsun/sap/costReimbursement/refundApply.js
View file @
63b63665
...
...
@@ -348,7 +348,7 @@ function loadGrid(obj) {
item
.
gridManager
.
deleteRow
(
o
);
});
})
initFinancialAuditGridData
();
//
initFinancialAuditGridData();
},
copyHandler
:
{
id
:
'copyHandler'
,
text
:
'复制'
,
img
:
'fa-copy'
,
click
:
function
()
{
...
...
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