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
1364de19
Commit
1364de19
authored
Jan 31, 2024
by
wuwenlong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
产品库存管理
parent
15b4e566
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
58 deletions
+21
-58
HPKC011.js
src/main/webapp/HP/KC/HPKC011.js
+0
-39
HPKC011.jsp
src/main/webapp/HP/KC/HPKC011.jsp
+21
-19
No files found.
src/main/webapp/HP/KC/HPKC011.js
View file @
1364de19
var
inventNameGlobalData
=
[];
var
specGlobalData
=
[];
$
(
function
()
{
// 查询
$
(
"#QUERY"
).
on
(
"click"
,
query
);
...
...
@@ -16,36 +15,6 @@ $(function() {
}
return
""
;
}
},
{
field
:
"spec"
,
template
:
function
(
dataItem
)
{
for
(
let
i
=
0
;
i
<
specGlobalData
.
length
;
i
++
)
{
if
(
specGlobalData
[
i
][
'valueField'
]
===
dataItem
[
'inventRecordId'
])
{
return
specGlobalData
[
i
][
'textField'
];
}
}
return
""
;
}
},
{
field
:
"material"
,
template
:
function
(
dataItem
)
{
for
(
let
i
=
0
;
i
<
specGlobalData
.
length
;
i
++
)
{
if
(
specGlobalData
[
i
][
'valueField'
]
===
dataItem
[
'inventRecordId'
])
{
return
specGlobalData
[
i
][
'param1Field'
];
}
}
return
""
;
}
},
{
field
:
"unit"
,
template
:
function
(
dataItem
)
{
for
(
let
i
=
0
;
i
<
specGlobalData
.
length
;
i
++
)
{
if
(
specGlobalData
[
i
][
'valueField'
]
===
dataItem
[
'inventRecordId'
])
{
return
specGlobalData
[
i
][
'param2Field'
];
}
}
return
""
;
}
}]
},
};
...
...
@@ -64,14 +33,6 @@ $(window).load(function () {
onFail
:
function
(
ei
)
{
}
},
{
async
:
false
});
// 规格
EiCommunicator
.
send
(
"HPPZ006"
,
"queryComboBoxAll"
,
eiInfo
,
{
onSuccess
:
function
(
ei
)
{
specGlobalData
=
ei
.
getBlock
(
"invent_all_block_id"
).
getMappedRows
();
},
onFail
:
function
(
ei
)
{
}
},
{
async
:
false
});
// 查询
query
();
});
...
...
src/main/webapp/HP/KC/HPKC011.jsp
View file @
1364de19
...
...
@@ -5,24 +5,25 @@
<c:set
var=
"ctx"
value=
"${pageContext.request.contextPath}"
/>
<EF:EFPage
title=
"
实时
库存管理"
>
<EF:EFPage
title=
"
产品
库存管理"
>
<EF:EFRegion
id=
"inqu"
title=
"查询条件"
>
<div
class=
"row"
>
<EF:EFInput
blockId=
"inqu_status"
ename=
"projCode"
colWidth=
"3"
cname=
"项目编号:"
/>
<EF:EFInput
blockId=
"inqu_status"
ename=
"projName"
colWidth=
"3"
cname=
"项目名称:"
/>
<EF:EFInput
blockId=
"inqu_status"
ename=
"prodNo"
colWidth=
"3"
cname=
"生产单号:"
/>
<EF:EFSelect
ename=
"inqu_status-0-whCode"
cname=
"仓库名称"
colWidth=
"3"
filter=
"contains"
defultValue=
""
>
<EF:EFOption
label=
"全部"
value=
""
/>
<EF:EFOptions
blockId=
"wh_record_block_id"
textField=
"textField"
valueField=
"valueField"
/>
</EF:EFSelect>
<EF:EFSelect
ename=
"inqu_status-0-inventType"
cname=
"存货类型"
colWidth=
"3"
filter=
"contains"
>
<EF:EFOption
label=
"全部"
value=
""
/>
<EF:EFCodeOption
codeName=
"hpjx.hpkc.inventType"
/>
</EF:EFSelect>
<EF:EFSelect
ename=
"inqu_status-0-inventCode"
cname=
"存货名称"
colWidth=
"3"
filter=
"contains"
defultValue=
""
>
</div>
<div
class=
"row"
>
<EF:EFSelect
ename=
"inqu_status-0-inventCode"
cname=
"部件名称"
colWidth=
"3"
filter=
"contains"
defultValue=
""
>
<EF:EFOption
label=
"全部"
value=
""
/>
<EF:EFOptions
blockId=
"material_record_block_id"
textField=
"textField"
valueField=
"valueField"
/>
</EF:EFSelect>
<EF:EFSelect
ename=
"inqu_status-0-s
pec"
cname=
"规格
"
colWidth=
"3"
filter=
"contains"
defultValue=
""
>
<EF:EFSelect
ename=
"inqu_status-0-s
ubInventCode"
cname=
"零部件名称
"
colWidth=
"3"
filter=
"contains"
defultValue=
""
>
<EF:EFOption
label=
"全部"
value=
""
/>
<EF:EFOptions
blockId=
"
spec_name
_block_id"
textField=
"textField"
valueField=
"valueField"
/>
<EF:EFOptions
blockId=
"
material_record
_block_id"
textField=
"textField"
valueField=
"valueField"
/>
</EF:EFSelect>
</div>
</EF:EFRegion>
...
...
@@ -30,22 +31,24 @@
<EF:EFRegion
id=
"result"
title=
"明细信息"
>
<EF:EFGrid
blockId=
"result"
autoDraw=
"override"
isFloat=
"true"
checkMode=
"row"
>
<EF:EFColumn
ename=
"id"
cname=
"内码"
hidden=
"true"
/>
<EF:EFColumn
ename=
"
inventRecordId"
cname=
"存货档案ID"
hidden
=
"true"
/>
<EF:EFColumn
ename=
"
prodNo"
cname=
"生产单号"
width=
"120"
align=
"center"
required
=
"true"
/>
<EF:EFComboColumn
ename=
"whCode"
cname=
"仓库编码"
width=
"120"
columnTemplate=
"#=textField#"
itemTemplate=
"#=textField#"
blockName=
"wh_record_block_id"
textField=
"textField"
valueField=
"valueField"
align=
"center"
filter=
"contains"
>
</EF:EFComboColumn>
<EF:EFCo
mboColumn
ename=
"inventType"
cname=
"存货类型"
width=
"100"
align=
"center"
required=
"true"
>
<EF:EFCodeOption
codeName=
"hpjx.hpkc.inventTyp
e"
/>
<
/EF:EFComboColumn
>
<EF:EFColumn
ename=
"
inventCode"
cname=
"存货
名称"
width=
"120"
align=
"center"
required=
"true"
/>
<EF:EFColumn
ename=
"
spec"
cname=
"规格"
width=
"120"
align=
"center
"
/>
<EF:EFColumn
ename=
"
material"
cname=
"材质"
width=
"120"
align=
"center
"
/>
<EF:EFColumn
ename=
"
unit"
cname=
"单位"
width=
"120"
align=
"center
"
/>
<EF:EFCo
lumn
ename=
"projCode"
cname=
"项目编号"
width=
"120"
align=
"center"
required=
"true"
/
>
<EF:EFColumn
ename=
"projName"
cname=
"项目名称"
width=
"120"
align=
"center"
required=
"tru
e"
/>
<
EF:EFColumn
ename=
"inventCode"
cname=
"部件名称"
width=
"120"
align=
"center"
required=
"true"
/
>
<EF:EFColumn
ename=
"
subInventCode"
cname=
"零部件
名称"
width=
"120"
align=
"center"
required=
"true"
/>
<EF:EFColumn
ename=
"
length"
cname=
"长"
format=
"{0:N3}"
maxLength=
"20"
width=
"90"
align=
"right
"
/>
<EF:EFColumn
ename=
"
width"
cname=
"宽"
format=
"{0:N3}"
maxLength=
"20"
width=
"90"
align=
"right
"
/>
<EF:EFColumn
ename=
"
thich"
cname=
"厚"
format=
"{0:N3}"
maxLength=
"20"
width=
"90"
align=
"right
"
/>
<EF:EFColumn
ename=
"amount"
cname=
"数量"
format=
"{0:N3}"
maxLength=
"20"
width=
"90"
align=
"right"
/>
<EF:EFColumn
ename=
"weight"
cname=
"重量"
format=
"{0:N3}"
maxLength=
"20"
width=
"90"
align=
"right"
/>
<EF:EFColumn
ename=
"createdBy"
cname=
"创建人"
enable=
"false"
width=
"100"
align=
"center"
/>
<EF:EFColumn
ename=
"unitWeight"
cname=
"单重"
format=
"{0:N3}"
maxLength=
"20"
width=
"90"
align=
"right"
/>
<EF:EFColumn
ename=
"weight"
cname=
"重量"
format=
"{0:N3}"
maxLength=
"20"
width=
"90"
align=
"right"
/>
<EF:EFColumn
ename=
"remark"
cname=
"备注"
width=
"120"
align=
"center"
/>
<EF:EFColumn
ename=
"createdBy"
cname=
"创建人"
enable=
"false"
width=
"100"
align=
"center"
/>
<EF:EFColumn
ename=
"createdTime"
cname=
"创建时刻"
enable=
"false"
width=
"140"
align=
"center"
editType=
"datetime"
parseFormats=
"['yyyyMMddHHmmss']"
/>
<EF:EFColumn
ename=
"updatedBy"
cname=
"更新人"
enable=
"false"
width=
"100"
align=
"center"
/>
...
...
@@ -53,5 +56,4 @@
editType=
"datetime"
parseFormats=
"['yyyyMMddHHmmss']"
/>
</EF:EFGrid>
</EF:EFRegion>
</EF:EFPage>
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