Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
hp-smart
Overview
Overview
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
platform
hp-smart
Commits
8a08bf2b
Commit
8a08bf2b
authored
Jan 25, 2024
by
971729
Browse files
Options
Browse Files
Download
Plain Diff
修改HPSC003
parents
f96ceae4
f7fee46e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
32 additions
and
14 deletions
+32
-14
HPSC003.xml
src/main/java/com/baosight/hpjx/hp/sc/sql/HPSC003.xml
+5
-5
HPSC003.js
src/main/webapp/HP/SC/HPSC003.js
+15
-2
HPSC003.jsp
src/main/webapp/HP/SC/HPSC003.jsp
+12
-7
No files found.
src/main/java/com/baosight/hpjx/hp/sc/sql/HPSC003.xml
View file @
8a08bf2b
...
@@ -34,19 +34,19 @@
...
@@ -34,19 +34,19 @@
PROJ_TYPE = #projType#
PROJ_TYPE = #projType#
</isNotEmpty>
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"projCode"
>
<isNotEmpty
prepend=
" AND "
property=
"projCode"
>
PROJ_CODE
= #projCode#
PROJ_CODE
LIKE ('%$projCode$%')
</isNotEmpty>
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"projName"
>
<isNotEmpty
prepend=
" AND "
property=
"projName"
>
PROJ_NAME LIKE ('%$projName$%')
PROJ_NAME LIKE ('%$projName$%')
</isNotEmpty>
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"planInfoNo"
>
<isNotEmpty
prepend=
" AND "
property=
"planInfoNo"
>
PLAN_INFO_NO
= #planInfoNo#
PLAN_INFO_NO
LIKE ('%$planInfoNo$%')
</isNotEmpty>
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"prdtType"
>
<isNotEmpty
prepend=
" AND "
property=
"prdtType"
>
PRDT_TYPE = #prdtType#
PRDT_TYPE = #prdtType#
</isNotEmpty>
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"prdtCode"
>
<isNotEmpty
prepend=
" AND "
property=
"prdtCode"
>
PRDT_CODE
= #prdtCode#
PRDT_CODE
LIKE ('%$prdtCode$%')
</isNotEmpty>
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"prdtName"
>
<isNotEmpty
prepend=
" AND "
property=
"prdtName"
>
PRDT_NAME = #prdtName#
PRDT_NAME = #prdtName#
...
@@ -99,7 +99,7 @@
...
@@ -99,7 +99,7 @@
REMARK as "remark",
<!-- 备注 -->
REMARK as "remark",
<!-- 备注 -->
CONCAT((
CONCAT((
SELECT
SELECT
ifnull( SUM( ACTUAL_COMPLETION_NUM ), 0 ) / ifnull( SUM( NUM ), 0 ) * 100
format((ifnull( SUM( ACTUAL_COMPLETION_NUM ), 0 ) / ifnull( SUM( NUM ), 0 ) * 100),2)
FROM
FROM
hpjx.T_HPSC004
hpjx.T_HPSC004
WHERE
WHERE
...
@@ -143,7 +143,7 @@
...
@@ -143,7 +143,7 @@
PRDT_CODE = #prdtCode#
PRDT_CODE = #prdtCode#
</isNotEmpty>
</isNotEmpty>
<isNotEmpty prepend=" AND " property="prdtName">
<isNotEmpty prepend=" AND " property="prdtName">
PRDT_NAME
= #prdtName#
PRDT_NAME
LIKE ('%$prdtName$%')
</isNotEmpty>
</isNotEmpty>
<isNotEmpty prepend=" AND " property="planCompletionDate">
<isNotEmpty prepend=" AND " property="planCompletionDate">
PLAN_COMPLETION_DATE = #planCompletionDate#
PLAN_COMPLETION_DATE = #planCompletionDate#
...
...
src/main/webapp/HP/SC/HPSC003.js
View file @
8a08bf2b
...
@@ -16,17 +16,30 @@ $(function () {
...
@@ -16,17 +16,30 @@ $(function () {
{
{
field
:
"operator"
,
field
:
"operator"
,
template
:
function
(
item
)
{
template
:
function
(
item
)
{
console
.
log
(
item
)
let
auditStatus
=
item
.
status
;
let
auditStatus
=
item
.
status
;
let
template
=
''
;
let
template
=
''
;
if
(
auditStatus
==
0
)
{
if
(
auditStatus
==
0
)
{
template
+=
'<a style="cursor: pointer;display: inline-flex;justify-content: center;" '
+
template
+=
'<a style="cursor: pointer;display: inline-flex;justify-content: center;" '
+
'onclick="check('
+
item
.
id
+
',1)" >审核</a>'
;
'onclick="check('
+
item
.
id
+
',1)" >审核</a>'
;
}
else
{
}
template
+=
'<a style="cursor: pointer;display: inline-flex;justify-content: center;" '
+
else
{
template
+=
'<a hidden="hidden" style="cursor: pointer;display: inline-flex;justify-content: center;" '
+
'onclick="check('
+
item
.
id
+
',0)" >反审</a>'
;
'onclick="check('
+
item
.
id
+
',0)" >反审</a>'
;
}
}
return
template
;
return
template
;
}
}
},
{
field
:
"planCompletionDate"
,
template
:
function
(
item
){
let
auditStatus
=
item
.
status
;
let
template
=
''
;
if
(
auditStatus
==
1
){
template
+=
'this.blur();'
;
}
return
template
;
}
}
}
],
],
onRowClick
:
function
(
e
)
{
onRowClick
:
function
(
e
)
{
...
...
src/main/webapp/HP/SC/HPSC003.jsp
View file @
8a08bf2b
...
@@ -9,14 +9,19 @@
...
@@ -9,14 +9,19 @@
</head>
</head>
<EF:EFPage
title=
"生产计划"
>
<EF:EFPage
title=
"生产计划"
>
<EF:EFRegion
id=
"inqu"
title=
"查询条件"
><
%
--
type=
"query"
efRegionShowClear=
"true"
efRegionSave=
"true"
--
%
>
<EF:EFRegion
id=
"inqu"
title=
"查询条件"
align-item=
"center"
><
%
--
type=
"query"
efRegionShowClear=
"true"
efRegionSave=
"true"
--
%
>
<div
class=
"row"
>
<
%
--
blockId=
"inqu_status"
row=
"0"
--
%
>
<div
class=
"row"
>
<
%
--
blockId=
"inqu_status"
row=
"0"
--
%
>
<EF:EFInput
blockId=
"inqu_status"
ename=
"projName"
cname=
"项目名称:"
row=
"0"
/>
<EF:EFInput
blockId=
"inqu_status"
ename=
"projCode"
colWidth=
"3"
cname=
"项目编号:"
row=
"0"
/>
<EF:EFInput
blockId=
"inqu_status"
ename=
"planInfoNo"
cname=
"生产计划单号:"
row=
"0"
/>
<EF:EFInput
blockId=
"inqu_status"
ename=
"projName"
colWidth=
"3"
cname=
"项目名称:"
row=
"0"
/>
<EF:EFDatePicker
blockId=
"inqu_status"
ename=
"planCompletionDate"
cname=
"计划完成日期"
<EF:EFInput
blockId=
"inqu_status"
ename=
"prdtCode"
colWidth=
"3"
cname=
"产品编码:"
row=
"0"
/>
<EF:EFInput
blockId=
"inqu_status"
ename=
"prdtName"
colWidth=
"3"
cname=
"产品名称:"
row=
"0"
/>
</div>
<div
class=
"row"
>
<EF:EFInput
blockId=
"inqu_status"
ename=
"planInfoNo"
colWidth=
"3"
cname=
"生产计划单号:"
row=
"0"
/>
<EF:EFDatePicker
blockId=
"inqu_status"
ename=
"planCompletionDate"
colWidth=
"3"
cname=
"计划完成日期:"
format=
"yyyy-MM-dd"
required=
"true"
/>
format=
"yyyy-MM-dd"
required=
"true"
/>
<EF:EFSelect
cname=
"状态:"
optionLabel=
"全部"
blockId=
"inqu_status"
ename=
"status"
row=
"0"
>
<EF:EFSelect
cname=
"状态:"
optionLabel=
"全部"
blockId=
"inqu_status"
colWidth=
"3"
ename=
"status"
row=
"0"
>
<EF:EFOption
label=
"未审核"
value=
"0"
/>
<EF:EFOption
label=
"未审核"
value=
"0"
/>
<EF:EFOption
label=
"已审核"
value=
"1"
/>
<EF:EFOption
label=
"已审核"
value=
"1"
/>
</EF:EFSelect>
</EF:EFSelect>
...
@@ -34,7 +39,7 @@
...
@@ -34,7 +39,7 @@
<EF:EFColumn
enable=
"false"
ename=
"prdtCode"
cname=
"产品编码"
readonly=
"true"
/>
<EF:EFColumn
enable=
"false"
ename=
"prdtCode"
cname=
"产品编码"
readonly=
"true"
/>
<EF:EFColumn
enable=
"false"
ename=
"prdtName"
cname=
"产品名称"
readonly=
"true"
/>
<EF:EFColumn
enable=
"false"
ename=
"prdtName"
cname=
"产品名称"
readonly=
"true"
/>
<EF:EFColumn
ename=
"planCompletionDate"
cname=
"计划完成日期"
editType=
"date"
dateFormat=
"yyyy/MM/dd"
width=
"150"
<EF:EFColumn
ename=
"planCompletionDate"
cname=
"计划完成日期"
editType=
"date"
dateFormat=
"yyyy/MM/dd"
width=
"150"
required=
'true'
/>
required=
'true'
readonly=
"true"
/>
<EF:EFColumn
enable=
"false"
ename=
"schedule"
cname=
"生产完工进度"
format=
"{0:N2}"
readonly=
"true"
/>
<EF:EFColumn
enable=
"false"
ename=
"schedule"
cname=
"生产完工进度"
format=
"{0:N2}"
readonly=
"true"
/>
<EF:EFComboColumn
enable=
"false"
ename=
"status"
cname=
"状态"
>
<EF:EFComboColumn
enable=
"false"
ename=
"status"
cname=
"状态"
>
<EF:EFOption
label=
"未审核"
value=
"0"
/>
<EF:EFOption
label=
"未审核"
value=
"0"
/>
...
...
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