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
7029e9ae
Commit
7029e9ae
authored
Jun 20, 2024
by
鲁鑫
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
成本中心只能删除历史数据和新增已中止数据;统计指标过账显示
parent
16281b6c
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
14 additions
and
9 deletions
+14
-9
sapCostCenterList.js
...ain/webapp/biz/topsun/sap/costCenter/sapCostCenterList.js
+3
-2
statsIndicators.js
.../webapp/biz/topsun/sap/statsIndicators/statsIndicators.js
+7
-3
statsIndicators.jsp
...webapp/biz/topsun/sap/statsIndicators/statsIndicators.jsp
+1
-1
statsIndicatorsList.js
...app/biz/topsun/sap/statsIndicators/statsIndicatorsList.js
+2
-2
statsIndicatorsList.jsp
...pp/biz/topsun/sap/statsIndicators/statsIndicatorsList.jsp
+1
-1
No files found.
topsun-xt/src/main/webapp/biz/topsun/sap/costCenter/sapCostCenterList.js
View file @
7029e9ae
...
...
@@ -163,8 +163,9 @@ function updateHandler(row) {
//删除按钮
function
deleteHandler
()
{
let
row
=
DataUtil
.
getSelectedRow
(
gridManager
);
if
(
row
.
isCostCenterHis
!=
1
){
Public
.
tip
(
"只能删除历史数据"
)
//只能删除历史数据和新增已中止数据
if
(
row
.
isCostCenterHis
!=
1
&&
row
.
status
!=
5
){
Public
.
tip
(
"只能删除已中止数据"
);
return
false
;
}
DataUtil
.
del
({
...
...
topsun-xt/src/main/webapp/biz/topsun/sap/statsIndicators/statsIndicators.js
View file @
7029e9ae
...
...
@@ -188,9 +188,13 @@ function getExtendedData(processAction) {
if
(
!
datas
)
{
return
false
;
}
else
if
(
datas
.
some
(
item
=>
item
.
kostl
===
""
&&
item
.
aufnr
===
""
)){
const
nullItems
=
datas
.
filter
(
item
=>
item
.
kostl
===
""
&&
item
.
aufnr
===
""
).
map
(
item
=>
item
.
zlenr
);
Public
.
tip
(
"行号["
+
nullItems
.
join
(
","
)
+
"]成本中心or订单选择一栏填写"
);
return
false
;
const
nullItems
=
datas
.
filter
(
item
=>
item
.
kostl
===
""
&&
item
.
aufnr
===
""
).
map
(
item
=>
item
.
zlenr
);
Public
.
tip
(
"行号["
+
nullItems
.
join
(
","
)
+
"]成本中心or订单只能选择一栏填写"
);
return
false
;
}
else
if
(
datas
.
some
(
item
=>
item
.
kostl
!=
""
&&
item
.
aufnr
!=
""
)){
const
nullItems
=
datas
.
filter
(
item
=>
item
.
kostl
!=
""
&&
item
.
aufnr
!=
""
).
map
(
item
=>
item
.
zlenr
);
Public
.
tip
(
"行号["
+
nullItems
.
join
(
","
)
+
"]成本中心or订单只能选择一栏填写"
);
return
false
;
}
extendedData
.
statsIndicatorsDetail
=
Public
.
encodeJSONURI
(
datas
);
...
...
topsun-xt/src/main/webapp/biz/topsun/sap/statsIndicators/statsIndicators.jsp
View file @
7029e9ae
...
...
@@ -8,7 +8,7 @@
</head>
<body>
<x:hidden
name=
"isDetailPage"
value=
"false"
/>
<!--是否是详情页-->
<x:billTitle
title=
"统计指标
指数
过账"
needStatus=
"false"
needPerson=
"true"
/>
<x:billTitle
title=
"统计指标过账"
needStatus=
"false"
needPerson=
"true"
/>
<form
class=
"hg-form"
method=
"post"
action=
""
id=
"submitForm"
>
<x:hidden
name=
"id"
/>
<x:hidden
name=
"billCode"
/>
...
...
topsun-xt/src/main/webapp/biz/topsun/sap/statsIndicators/statsIndicatorsList.js
View file @
7029e9ae
...
...
@@ -107,7 +107,7 @@ function deleteHandler() {
function
addHandler
()
{
UICtrl
.
addTabItem
({
tabid
:
'statsIndicators'
,
text
:
"
统计指标数据
"
,
text
:
"
新增统计指标过账
"
,
url
:
web_app
.
name
+
'/sapStatsIndicators/forwardStatsIndicators.job'
});
}
...
...
@@ -115,7 +115,7 @@ function addHandler() {
function
doView
(
id
)
{
UICtrl
.
addTabItem
({
tabid
:
'showStatsIndicators'
+
id
,
text
:
"统计指标详情"
,
text
:
"统计指标
过账
详情"
,
url
:
web_app
.
name
+
'/sapStatsIndicators/showStatsIndicators.job?bizId='
+
id
+
"&isDetailPage=true"
});
}
...
...
topsun-xt/src/main/webapp/biz/topsun/sap/statsIndicators/statsIndicatorsList.jsp
View file @
7029e9ae
...
...
@@ -13,7 +13,7 @@
<x:select
name=
"yesorno"
dictionary=
"yesorno"
/>
</div>
<div
id=
"layout"
>
<div
position=
"center"
title=
"统计指标"
>
<div
position=
"center"
title=
"统计指标
过账列表
"
>
<x:title
title=
"common.button.search"
hideTable=
"queryMainForm"
isHide=
"true"
/>
<form
class=
"hg-form ui-hide"
method=
"post"
action=
""
id=
"queryMainForm"
>
<x:inputC
name=
"proofingApplyNo"
required=
"false"
label=
"申请单号"
labelCol=
"1"
/>
...
...
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