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
d3936be1
Commit
d3936be1
authored
Feb 19, 2025
by
1650842865
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
非财务供应商只能选择应付账款类型控制
parent
1fbdb2a0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
52 additions
and
0 deletions
+52
-0
suppliersDataDetail.js
...in/webapp/biz/topsun/sap/suppliers/suppliersDataDetail.js
+26
-0
suppliersExtendDataDetail.js
...app/biz/topsun/sap/suppliers/suppliersExtendDataDetail.js
+26
-0
No files found.
topsun-xt/src/main/webapp/biz/topsun/sap/suppliers/suppliersDataDetail.js
View file @
d3936be1
...
@@ -574,6 +574,32 @@ function loadSuppliersPayListGrid() {
...
@@ -574,6 +574,32 @@ function loadSuppliersPayListGrid() {
checkbox
:
true
,
checkbox
:
true
,
fixedCellHeight
:
true
,
fixedCellHeight
:
true
,
selectRowButtonOnly
:
true
,
selectRowButtonOnly
:
true
,
onAfterEdit
:
function
(
item
)
{
if
(
item
.
column
.
name
==
"akontTextView"
){
var
value
=
item
.
value
;
var
buGroup
=
$
(
"#buGroup"
).
val
();
if
(
buGroup
==
"Z004"
){
//财务供应商,选应收;其他选应付
if
(
value
.
indexOf
(
'2202010100'
)
>=
0
||
value
.
indexOf
(
"2202010200"
)
>=
0
){
Public
.
tip
(
"财务供应商只能选择应收账款类型"
);
var
_grid
=
UICtrl
.
getGridManager
(
'#sapSuppliersPayGrid'
);
_grid
.
updateRow
(
item
.
record
,{
akont
:
''
,
akontTextView
:
''
})
}
}
else
{
if
(
value
.
indexOf
(
'1122010100'
)
>=
0
||
value
.
indexOf
(
"1122010200"
)
>=
0
||
value
.
indexOf
(
"1221050000"
)
>=
0
){
Public
.
tip
(
"非财务供应商只能选择应付账款类型"
);
var
_grid
=
UICtrl
.
getGridManager
(
'#sapSuppliersPayGrid'
);
_grid
.
updateRow
(
item
.
record
,{
akont
:
''
,
akontTextView
:
''
})
}
}
}
return
item
;
},
});
});
UICtrl
.
setSearchAreaToggle
(
sapSuppliersPayGridManager
);
UICtrl
.
setSearchAreaToggle
(
sapSuppliersPayGridManager
);
}
}
...
...
topsun-xt/src/main/webapp/biz/topsun/sap/suppliers/suppliersExtendDataDetail.js
View file @
d3936be1
...
@@ -522,6 +522,32 @@ function loadSuppliersPayListGrid() {
...
@@ -522,6 +522,32 @@ function loadSuppliersPayListGrid() {
checkbox
:
true
,
checkbox
:
true
,
fixedCellHeight
:
true
,
fixedCellHeight
:
true
,
selectRowButtonOnly
:
true
,
selectRowButtonOnly
:
true
,
onAfterEdit
:
function
(
item
)
{
if
(
item
.
column
.
name
==
"akontTextView"
){
var
value
=
item
.
value
;
var
buGroup
=
$
(
"#buGroup"
).
val
();
if
(
buGroup
==
"Z004"
){
//财务供应商,选应收;其他选应付
if
(
value
.
indexOf
(
'2202010100'
)
>=
0
||
value
.
indexOf
(
"2202010200"
)
>=
0
){
Public
.
tip
(
"财务供应商只能选择应收账款类型"
);
var
_grid
=
UICtrl
.
getGridManager
(
'#sapSuppliersPayGrid'
);
_grid
.
updateRow
(
item
.
record
,{
akont
:
''
,
akontTextView
:
''
})
}
}
else
{
if
(
value
.
indexOf
(
'1122010100'
)
>=
0
||
value
.
indexOf
(
"1122010200"
)
>=
0
||
value
.
indexOf
(
"1221050000"
)
>=
0
){
Public
.
tip
(
"非财务供应商只能选择应付账款类型"
);
var
_grid
=
UICtrl
.
getGridManager
(
'#sapSuppliersPayGrid'
);
_grid
.
updateRow
(
item
.
record
,{
akont
:
''
,
akontTextView
:
''
})
}
}
}
return
item
;
},
// onAfterEdit:function (item) {
// onAfterEdit:function (item) {
// if(item.column.name == "bukrs"){
// if(item.column.name == "bukrs"){
// var bukrs = item.record.bukrs;
// var bukrs = item.record.bukrs;
...
...
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