Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
hg-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
hg-smart
Commits
b4b4530d
Commit
b4b4530d
authored
May 30, 2024
by
wancheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
其他入库单,其他出库单
parent
30194b75
Show whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
146 additions
and
22 deletions
+146
-22
ServiceHGKC006A.java
...java/com/baosight/hggp/hg/kc/service/ServiceHGKC006A.java
+0
-1
ServiceHGKC007A.java
...java/com/baosight/hggp/hg/kc/service/ServiceHGKC007A.java
+0
-1
HGKC006.xml
src/main/java/com/baosight/hggp/hg/kc/sql/HGKC006.xml
+1
-1
HGKC006A.xml
src/main/java/com/baosight/hggp/hg/kc/sql/HGKC006A.xml
+1
-1
HGKC007.xml
src/main/java/com/baosight/hggp/hg/kc/sql/HGKC007.xml
+1
-1
HGKC007A.xml
src/main/java/com/baosight/hggp/hg/kc/sql/HGKC007A.xml
+1
-1
HGKC006.js
src/main/webapp/HG/KC/HGKC006.js
+1
-0
HGKC006.jsp
src/main/webapp/HG/KC/HGKC006.jsp
+4
-2
HGKC006A.js
src/main/webapp/HG/KC/HGKC006A.js
+48
-0
HGKC006A.jsp
src/main/webapp/HG/KC/HGKC006A.jsp
+17
-6
HGKC007.js
src/main/webapp/HG/KC/HGKC007.js
+1
-0
HGKC007.jsp
src/main/webapp/HG/KC/HGKC007.jsp
+6
-2
HGKC007A.js
src/main/webapp/HG/KC/HGKC007A.js
+49
-1
HGKC007A.jsp
src/main/webapp/HG/KC/HGKC007A.jsp
+16
-5
No files found.
src/main/java/com/baosight/hggp/hg/kc/service/ServiceHGKC006A.java
View file @
b4b4530d
...
@@ -84,7 +84,6 @@ public class ServiceHGKC006A extends ServiceBase {
...
@@ -84,7 +84,6 @@ public class ServiceHGKC006A extends ServiceBase {
for
(
int
i
=
0
;
i
<
resultRows
.
size
();
i
++)
{
for
(
int
i
=
0
;
i
<
resultRows
.
size
();
i
++)
{
HGKC006A
hgkc006A
=
new
HGKC006A
();
HGKC006A
hgkc006A
=
new
HGKC006A
();
hgkc006A
.
fromMap
(
resultRows
.
get
(
i
));
hgkc006A
.
fromMap
(
resultRows
.
get
(
i
));
hgkc006A
.
setInvWeight
(
hgkc006A
.
getInvUnitWeight
().
multiply
(
hgkc006A
.
getInvQty
()));
if
(
hgkc006A
.
getId
()
==
null
||
hgkc006A
.
getId
()
==
0
)
{
if
(
hgkc006A
.
getId
()
==
null
||
hgkc006A
.
getId
()
==
0
)
{
Map
queryMap
=
new
HashMap
();
Map
queryMap
=
new
HashMap
();
queryMap
.
put
(
"id"
,
inInfo
.
getCellStr
(
EiConstant
.
queryBlock
,
ACConstants
.
ROW_CODE_0
,
HGKC006A
.
FIELD_PRIMARY_ID
));
queryMap
.
put
(
"id"
,
inInfo
.
getCellStr
(
EiConstant
.
queryBlock
,
ACConstants
.
ROW_CODE_0
,
HGKC006A
.
FIELD_PRIMARY_ID
));
...
...
src/main/java/com/baosight/hggp/hg/kc/service/ServiceHGKC007A.java
View file @
b4b4530d
...
@@ -86,7 +86,6 @@ public class ServiceHGKC007A extends ServiceBase {
...
@@ -86,7 +86,6 @@ public class ServiceHGKC007A extends ServiceBase {
for
(
int
i
=
0
;
i
<
resultRows
.
size
();
i
++)
{
for
(
int
i
=
0
;
i
<
resultRows
.
size
();
i
++)
{
HGKC007A
hgkc007A
=
new
HGKC007A
();
HGKC007A
hgkc007A
=
new
HGKC007A
();
hgkc007A
.
fromMap
(
resultRows
.
get
(
i
));
hgkc007A
.
fromMap
(
resultRows
.
get
(
i
));
hgkc007A
.
setInvWeight
(
hgkc007A
.
getInvUnitWeight
().
multiply
(
hgkc007A
.
getInvQty
()));
if
(
hgkc007A
.
getId
()
==
null
||
hgkc007A
.
getId
()
==
0
)
{
if
(
hgkc007A
.
getId
()
==
null
||
hgkc007A
.
getId
()
==
0
)
{
Map
queryMap
=
new
HashMap
();
Map
queryMap
=
new
HashMap
();
queryMap
.
put
(
"id"
,
inInfo
.
getCellStr
(
EiConstant
.
queryBlock
,
ACConstants
.
ROW_CODE_0
,
HGKC006A
.
FIELD_PRIMARY_ID
));
queryMap
.
put
(
"id"
,
inInfo
.
getCellStr
(
EiConstant
.
queryBlock
,
ACConstants
.
ROW_CODE_0
,
HGKC006A
.
FIELD_PRIMARY_ID
));
...
...
src/main/java/com/baosight/hggp/hg/kc/sql/HGKC006.xml
View file @
b4b4530d
...
@@ -93,7 +93,7 @@
...
@@ -93,7 +93,7 @@
WH_CODE = #whCode#
WH_CODE = #whCode#
</isNotEmpty>
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"whName"
>
<isNotEmpty
prepend=
" AND "
property=
"whName"
>
WH_NAME
= #whName#
WH_NAME
LIKE CONCAT('%', #whName#, '%')
</isNotEmpty>
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"otherEnterNoOld"
>
<isNotEmpty
prepend=
" AND "
property=
"otherEnterNoOld"
>
OTHER_ENTER_NO_OLD = #otherEnterNoOld#
OTHER_ENTER_NO_OLD = #otherEnterNoOld#
...
...
src/main/java/com/baosight/hggp/hg/kc/sql/HGKC006A.xml
View file @
b4b4530d
...
@@ -114,7 +114,7 @@
...
@@ -114,7 +114,7 @@
INVENT_CODE = #inventCode#
INVENT_CODE = #inventCode#
</isNotEmpty>
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"inventName"
>
<isNotEmpty
prepend=
" AND "
property=
"inventName"
>
INVENT_NAME
= #inventName#
INVENT_NAME
LIKE CONCAT('%', #inventName#, '%')
</isNotEmpty>
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"invQty"
>
<isNotEmpty
prepend=
" AND "
property=
"invQty"
>
INV_QTY = #invQty#
INV_QTY = #invQty#
...
...
src/main/java/com/baosight/hggp/hg/kc/sql/HGKC007.xml
View file @
b4b4530d
...
@@ -93,7 +93,7 @@
...
@@ -93,7 +93,7 @@
WH_CODE = #whCode#
WH_CODE = #whCode#
</isNotEmpty>
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"whName"
>
<isNotEmpty
prepend=
" AND "
property=
"whName"
>
WH_NAME
= #whName#
WH_NAME
LIKE CONCAT('%', #whName#, '%')
</isNotEmpty>
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"otherOutNoOld"
>
<isNotEmpty
prepend=
" AND "
property=
"otherOutNoOld"
>
OTHER_OUT_NO_OLD = #otherOutNoOld#
OTHER_OUT_NO_OLD = #otherOutNoOld#
...
...
src/main/java/com/baosight/hggp/hg/kc/sql/HGKC007A.xml
View file @
b4b4530d
...
@@ -114,7 +114,7 @@
...
@@ -114,7 +114,7 @@
INVENT_CODE = #inventCode#
INVENT_CODE = #inventCode#
</isNotEmpty>
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"inventName"
>
<isNotEmpty
prepend=
" AND "
property=
"inventName"
>
INVENT_NAME
= #inventName#
INVENT_NAME
LIKE CONCAT('%', #inventName#, '%')
</isNotEmpty>
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"invQty"
>
<isNotEmpty
prepend=
" AND "
property=
"invQty"
>
INV_QTY = #invQty#
INV_QTY = #invQty#
...
...
src/main/webapp/HG/KC/HGKC006.js
View file @
b4b4530d
...
@@ -42,6 +42,7 @@ $(function () {
...
@@ -42,6 +42,7 @@ $(function () {
template
:
function
(
dataItem
)
{
template
:
function
(
dataItem
)
{
for
(
let
i
=
0
;
i
<
WhNameGlobalData
.
length
;
i
++
)
{
for
(
let
i
=
0
;
i
<
WhNameGlobalData
.
length
;
i
++
)
{
if
(
WhNameGlobalData
[
i
][
'valueField'
]
===
dataItem
[
'whCode'
])
{
if
(
WhNameGlobalData
[
i
][
'valueField'
]
===
dataItem
[
'whCode'
])
{
dataItem
[
'whName'
]
=
WhNameGlobalData
[
i
][
'textField'
];
return
WhNameGlobalData
[
i
][
'textField'
];
return
WhNameGlobalData
[
i
][
'textField'
];
}
}
}
}
...
...
src/main/webapp/HG/KC/HGKC006.jsp
View file @
b4b4530d
...
@@ -13,11 +13,12 @@
...
@@ -13,11 +13,12 @@
<EF:EFDatePicker
cname=
"单据日期"
ename=
"otherEnterDate"
blockId=
"inqu_status"
row=
"0"
colWidth=
"3"
<EF:EFDatePicker
cname=
"单据日期"
ename=
"otherEnterDate"
blockId=
"inqu_status"
row=
"0"
colWidth=
"3"
format=
"yyyy-MM-dd"
readonly=
"true"
/>
format=
"yyyy-MM-dd"
readonly=
"true"
/>
<EF:EFInput
cname=
"其他入库单号"
ename=
"otherEnterNo"
blockId=
"inqu_status"
row=
"0"
colWidth=
"3"
/>
<EF:EFInput
cname=
"其他入库单号"
ename=
"otherEnterNo"
blockId=
"inqu_status"
row=
"0"
colWidth=
"3"
/>
<EF:EFSelect
cname=
"仓库名称"
ename=
"whCode"
blockId=
"inqu_status"
row=
"0"
colWidth=
"3"
<
%
--
<
EF:EFSelect
cname=
"仓库名称"
ename=
"whCode"
blockId=
"inqu_status"
row=
"0"
colWidth=
"3"
filter=
"contains"
defultValue=
""
>
filter=
"contains"
defultValue=
""
>
<EF:EFOption
label=
"全部"
value=
""
/>
<EF:EFOption
label=
"全部"
value=
""
/>
<EF:EFOptions
blockId=
"wh_record_block_id"
textField=
"textField"
valueField=
"valueField"
/>
<EF:EFOptions
blockId=
"wh_record_block_id"
textField=
"textField"
valueField=
"valueField"
/>
</EF:EFSelect>
</EF:EFSelect>
--%>
<EF:EFInput
cname=
"仓库名称"
ename=
"whName"
blockId=
"inqu_status"
row=
"0"
colWidth=
"3"
/>
<EF:EFSelect
cname=
"单据状态"
ename=
"submitStatus"
blockId=
"inqu_status"
row=
"0"
colWidth=
"3"
>
<EF:EFSelect
cname=
"单据状态"
ename=
"submitStatus"
blockId=
"inqu_status"
row=
"0"
colWidth=
"3"
>
<EF:EFOption
label=
"全部"
value=
""
/>
<EF:EFOption
label=
"全部"
value=
""
/>
<EF:EFCodeOption
codeName=
"hggp.hpkc.submitStatus"
/>
<EF:EFCodeOption
codeName=
"hggp.hpkc.submitStatus"
/>
...
@@ -42,6 +43,7 @@
...
@@ -42,6 +43,7 @@
dateFormat=
"yyyy-MM-dd"
parseFormats=
"['yyyyMMdd']"
required=
"true"
/>
dateFormat=
"yyyy-MM-dd"
parseFormats=
"['yyyyMMdd']"
required=
"true"
/>
<EF:EFColumn
ename=
"otherEnterNo"
cname=
"其他入库单号"
enable=
"false"
width=
"140"
align=
"center"
/>
<EF:EFColumn
ename=
"otherEnterNo"
cname=
"其他入库单号"
enable=
"false"
width=
"140"
align=
"center"
/>
<EF:EFColumn
ename=
"whCode"
cname=
"仓库名称"
width=
"120"
align=
"center"
required=
"true"
/>
<EF:EFColumn
ename=
"whCode"
cname=
"仓库名称"
width=
"120"
align=
"center"
required=
"true"
/>
<EF:EFColumn
ename=
"whName"
cname=
"仓库名称"
hidden=
"true"
/>
<EF:EFComboColumn
cname=
"状态"
ename=
"submitStatus"
width=
"90"
align=
"center"
required=
"true"
defaultValue=
"0"
>
<EF:EFComboColumn
cname=
"状态"
ename=
"submitStatus"
width=
"90"
align=
"center"
required=
"true"
defaultValue=
"0"
>
<EF:EFCodeOption
codeName=
"hggp.hpkc.submitStatus"
/>
<EF:EFCodeOption
codeName=
"hggp.hpkc.submitStatus"
/>
</EF:EFComboColumn>
</EF:EFComboColumn>
...
...
src/main/webapp/HG/KC/HGKC006A.js
View file @
b4b4530d
...
@@ -17,6 +17,7 @@ $(function () {
...
@@ -17,6 +17,7 @@ $(function () {
template
:
function
(
dataItem
)
{
template
:
function
(
dataItem
)
{
for
(
let
i
=
0
;
i
<
InventNameGlobalData
.
length
;
i
++
)
{
for
(
let
i
=
0
;
i
<
InventNameGlobalData
.
length
;
i
++
)
{
if
(
InventNameGlobalData
[
i
][
'valueField'
]
===
dataItem
[
'inventCode'
])
{
if
(
InventNameGlobalData
[
i
][
'valueField'
]
===
dataItem
[
'inventCode'
])
{
dataItem
[
'inventName'
]
=
InventNameGlobalData
[
i
][
'textField'
];
return
InventNameGlobalData
[
i
][
'textField'
];
return
InventNameGlobalData
[
i
][
'textField'
];
}
}
}
}
...
@@ -56,6 +57,43 @@ $(function () {
...
@@ -56,6 +57,43 @@ $(function () {
inInfo
.
set
(
"field"
,
options
.
field
);
inInfo
.
set
(
"field"
,
options
.
field
);
refreshSelect
(
container
,
inInfo
);
refreshSelect
(
container
,
inInfo
);
}
}
},{
field
:
"invQty"
,
template
:
function
(
item
)
{
if
(
item
.
invQty
&&
item
.
invUnitWeight
){
debugger
;
let
invWeight
=
item
.
invQty
*
item
.
invUnitWeight
;
//item['invWeight'] = invWeight.toString();
resultGrid
.
setCellValue
(
item
,
'invWeight'
,
invWeight
);
}
if
(
item
.
invQty
&&
item
.
price
){
let
amount
=
item
.
invQty
*
item
.
price
;
//item['amount'] = amount.toString();
resultGrid
.
setCellValue
(
item
,
'amount'
,
amount
);
}
return
item
.
invQty
;
}
},
{
field
:
"invUnitWeight"
,
template
:
function
(
item
)
{
debugger
;
if
(
item
.
invQty
&&
item
.
invUnitWeight
){
let
invWeight
=
item
.
invQty
*
item
.
invUnitWeight
;
//item['invWeight'] = invWeight.toString();
resultGrid
.
setCellValue
(
item
,
'invWeight'
,
invWeight
);
}
return
item
.
invUnitWeight
;
}
},{
field
:
"price"
,
template
:
function
(
item
)
{
if
(
item
.
invQty
&&
item
.
price
){
let
amount
=
item
.
invQty
*
item
.
price
;
//item['amount'] = amount.toString();
resultGrid
.
setCellValue
(
item
,
'amount'
,
amount
);
}
return
item
.
price
;
}
},
],
},
],
loadComplete
:
function
(
grid
)
{
loadComplete
:
function
(
grid
)
{
// 此grid对象
// 此grid对象
...
@@ -75,6 +113,16 @@ $(function () {
...
@@ -75,6 +113,16 @@ $(function () {
}
}
}
}
}
}
/* if (e.field == "invQty") {
loadChange(grid,e,"invWeight");
loadChange(grid,e,"amount");
}
if (e.field == "invUnitWeight") {
loadChange(grid,e,"invWeight");
}
if (e.field == "price") {
loadChange(grid,e,"amount");
}*/
});
});
},
},
onSave
:
function
(
e
)
{
onSave
:
function
(
e
)
{
...
...
src/main/webapp/HG/KC/HGKC006A.jsp
View file @
b4b4530d
...
@@ -8,11 +8,12 @@
...
@@ -8,11 +8,12 @@
<EF:EFPage
title=
"其他入库单明细"
>
<EF:EFPage
title=
"其他入库单明细"
>
<EF:EFRegion
id=
"inqu"
title=
"查询条件"
>
<EF:EFRegion
id=
"inqu"
title=
"查询条件"
>
<div
class=
"row"
>
<div
class=
"row"
>
<EF:EFSelect
cname=
"存货名称"
blockId=
"inqu_status"
ename=
"inventCode"
row=
"0"
colWidth=
"3"
filter=
"contains"
<
%
--
<
EF:EFSelect
cname=
"存货名称"
blockId=
"inqu_status"
ename=
"inventCode"
row=
"0"
colWidth=
"3"
filter=
"contains"
defultValue=
""
>
defultValue=
""
>
<EF:EFOption
label=
"全部"
value=
""
/>
<EF:EFOption
label=
"全部"
value=
""
/>
<EF:EFOptions
blockId=
"invent_record_box_block_id"
textField=
"textField"
valueField=
"valueField"
/>
<EF:EFOptions
blockId=
"invent_record_box_block_id"
textField=
"textField"
valueField=
"valueField"
/>
</EF:EFSelect>
</EF:EFSelect>
--%>
<EF:EFInput
cname=
"存货名称"
ename=
"inventName"
blockId=
"inqu_status"
row=
"0"
colWidth=
"3"
/>
<EF:EFInput
cname=
"主表id"
ename=
"primaryId"
blockId=
"inqu_status"
row=
"0"
colWidth=
"3"
type=
"hidden"
/>
<EF:EFInput
cname=
"主表id"
ename=
"primaryId"
blockId=
"inqu_status"
row=
"0"
colWidth=
"3"
type=
"hidden"
/>
</div>
</div>
<
%
--
<
div
class=
"row"
>
<
%
--
<
div
class=
"row"
>
...
@@ -34,16 +35,26 @@
...
@@ -34,16 +35,26 @@
filter=
"contains"
>
filter=
"contains"
>
</EF:EFComboColumn>
</EF:EFComboColumn>
<EF:EFColumn
ename=
"inventCode"
cname=
"存货名称"
width=
"120"
align=
"center"
required=
"true"
readonly=
"true"
/>
<EF:EFColumn
ename=
"inventCode"
cname=
"存货名称"
width=
"120"
align=
"center"
required=
"true"
readonly=
"true"
/>
<EF:EFColumn
ename=
"inventName"
cname=
"存货名称"
hidden=
"true"
/>
<EF:EFColumn
ename=
"inventRecordId"
cname=
"规格"
width=
"120"
align=
"center"
required=
"true"
readonly=
"true"
/>
<EF:EFColumn
ename=
"inventRecordId"
cname=
"规格"
width=
"120"
align=
"center"
required=
"true"
readonly=
"true"
/>
<EF:EFColumn
ename=
"partLength"
cname=
"长(MM)"
enable=
"false"
width=
"80"
align=
"right"
format=
"{0:N3}"
/>
<EF:EFColumn
ename=
"partLength"
cname=
"长(MM)"
enable=
"false"
width=
"80"
align=
"right"
format=
"{0:N3}"
/>
<EF:EFColumn
ename=
"partWidth"
cname=
"宽(MM)"
enable=
"false"
width=
"80"
align=
"right"
format=
"{0:N3}"
/>
<EF:EFColumn
ename=
"partWidth"
cname=
"宽(MM)"
enable=
"false"
width=
"80"
align=
"right"
format=
"{0:N3}"
/>
<EF:EFColumn
ename=
"partThick"
cname=
"厚(MM)"
enable=
"false"
width=
"80"
align=
"right"
format=
"{0:N3}"
/>
<EF:EFColumn
ename=
"partThick"
cname=
"厚(MM)"
enable=
"false"
width=
"80"
align=
"right"
format=
"{0:N3}"
/>
<EF:EFColumn
ename=
"invQty"
cname=
"数量"
width=
"120"
align=
"right"
format=
"{0:N0}"
/>
<EF:EFColumn
ename=
"invQty"
cname=
"数量"
width=
"120"
align=
"right"
format=
"{0:N0}"
<EF:EFColumn
ename=
"invUnitWeight"
cname=
"单重"
width=
"120"
align=
"right"
format=
"{0:N3}"
/>
defaultValue=
"0"
<EF:EFColumn
ename=
"invWeight"
cname=
"总重"
enable=
"false"
width=
"120"
align=
"right"
format=
"{0:N3}"
/>
data-regex=
"/^-?[0-9]{1,17}([.][0-9]{1,3})?$/"
data-errorprompt=
"请输入数字,该值最大可设置17位整数和3位小数!"
/>
<EF:EFColumn
ename=
"invUnitWeight"
cname=
"单重"
width=
"120"
align=
"right"
format=
"{0:N3}"
defaultValue=
"0"
data-regex=
"/^-?[0-9]{1,17}([.][0-9]{1,3})?$/"
data-errorprompt=
"请输入数字,该值最大可设置17位整数和3位小数!"
/>
<EF:EFColumn
ename=
"invWeight"
cname=
"总重"
width=
"120"
align=
"right"
enable=
"false"
format=
"{0:N3}"
/>
<EF:EFColumn
ename=
"prdtCode"
cname=
"部件编码"
enable=
"false"
width=
"120"
align=
"center"
hidden=
"true"
/>
<EF:EFColumn
ename=
"prdtCode"
cname=
"部件编码"
enable=
"false"
width=
"120"
align=
"center"
hidden=
"true"
/>
<EF:EFColumn
ename=
"partCode"
cname=
"零件编码"
enable=
"false"
width=
"120"
align=
"center"
hidden=
"true"
/>
<EF:EFColumn
ename=
"partCode"
cname=
"零件编码"
enable=
"false"
width=
"120"
align=
"center"
hidden=
"true"
/>
<EF:EFColumn
ename=
"price"
cname=
"单价"
width=
"120"
align=
"right"
format=
"{0:N3}"
/>
<EF:EFColumn
ename=
"price"
cname=
"单价"
width=
"120"
align=
"right"
format=
"{0:N3}"
defaultValue=
"0"
data-regex=
"/^-?[0-9]{1,17}([.][0-9]{1,3})?$/"
data-errorprompt=
"请输入数字,该值最大可设置17位整数和3位小数!"
/>
<EF:EFColumn
ename=
"amount"
cname=
"金额"
width=
"120"
align=
"right"
enable=
"false"
format=
"{0:N3}"
/>
<EF:EFColumn
ename=
"amount"
cname=
"金额"
width=
"120"
align=
"right"
enable=
"false"
format=
"{0:N3}"
/>
</EF:EFGrid>
</EF:EFGrid>
</EF:EFRegion>
</EF:EFRegion>
...
...
src/main/webapp/HG/KC/HGKC007.js
View file @
b4b4530d
...
@@ -42,6 +42,7 @@ $(function () {
...
@@ -42,6 +42,7 @@ $(function () {
template
:
function
(
dataItem
)
{
template
:
function
(
dataItem
)
{
for
(
let
i
=
0
;
i
<
WhNameGlobalData
.
length
;
i
++
)
{
for
(
let
i
=
0
;
i
<
WhNameGlobalData
.
length
;
i
++
)
{
if
(
WhNameGlobalData
[
i
][
'valueField'
]
===
dataItem
[
'whCode'
])
{
if
(
WhNameGlobalData
[
i
][
'valueField'
]
===
dataItem
[
'whCode'
])
{
dataItem
[
'whName'
]
=
WhNameGlobalData
[
i
][
'textField'
];
return
WhNameGlobalData
[
i
][
'textField'
];
return
WhNameGlobalData
[
i
][
'textField'
];
}
}
}
}
...
...
src/main/webapp/HG/KC/HGKC007.jsp
View file @
b4b4530d
...
@@ -13,11 +13,13 @@
...
@@ -13,11 +13,13 @@
<EF:EFDatePicker
cname=
"单据日期"
ename=
"otherOutDate"
blockId=
"inqu_status"
row=
"0"
colWidth=
"3"
<EF:EFDatePicker
cname=
"单据日期"
ename=
"otherOutDate"
blockId=
"inqu_status"
row=
"0"
colWidth=
"3"
format=
"yyyy-MM-dd"
readonly=
"true"
/>
format=
"yyyy-MM-dd"
readonly=
"true"
/>
<EF:EFInput
cname=
"其他出库单号"
ename=
"otherOutNo"
blockId=
"inqu_status"
row=
"0"
colWidth=
"3"
/>
<EF:EFInput
cname=
"其他出库单号"
ename=
"otherOutNo"
blockId=
"inqu_status"
row=
"0"
colWidth=
"3"
/>
<EF:EFSelect
cname=
"仓库名称"
ename=
"whCode"
blockId=
"inqu_status"
row=
"0"
colWidth=
"3"
<
%
--
<
EF:EFSelect
cname=
"仓库名称"
ename=
"whCode"
blockId=
"inqu_status"
row=
"0"
colWidth=
"3"
filter=
"contains"
defultValue=
""
>
filter=
"contains"
defultValue=
""
>
<EF:EFOption
label=
"全部"
value=
""
/>
<EF:EFOption
label=
"全部"
value=
""
/>
<EF:EFOptions
blockId=
"wh_record_block_id"
textField=
"textField"
valueField=
"valueField"
/>
<EF:EFOptions
blockId=
"wh_record_block_id"
textField=
"textField"
valueField=
"valueField"
/>
</EF:EFSelect>
</EF:EFSelect>
--%>
<EF:EFInput
cname=
"仓库名称"
ename=
"whName"
blockId=
"inqu_status"
row=
"0"
colWidth=
"3"
/>
<EF:EFSelect
cname=
"单据状态"
ename=
"submitStatus"
blockId=
"inqu_status"
row=
"0"
colWidth=
"3"
>
<EF:EFSelect
cname=
"单据状态"
ename=
"submitStatus"
blockId=
"inqu_status"
row=
"0"
colWidth=
"3"
>
<EF:EFOption
label=
"全部"
value=
""
/>
<EF:EFOption
label=
"全部"
value=
""
/>
<EF:EFCodeOption
codeName=
"hggp.hpkc.submitStatus"
/>
<EF:EFCodeOption
codeName=
"hggp.hpkc.submitStatus"
/>
...
@@ -42,9 +44,11 @@
...
@@ -42,9 +44,11 @@
dateFormat=
"yyyy-MM-dd"
parseFormats=
"['yyyyMMdd']"
required=
"true"
/>
dateFormat=
"yyyy-MM-dd"
parseFormats=
"['yyyyMMdd']"
required=
"true"
/>
<EF:EFColumn
ename=
"otherOutNo"
cname=
"其他入库单号"
enable=
"false"
width=
"140"
align=
"center"
/>
<EF:EFColumn
ename=
"otherOutNo"
cname=
"其他入库单号"
enable=
"false"
width=
"140"
align=
"center"
/>
<EF:EFColumn
ename=
"whCode"
cname=
"仓库名称"
width=
"120"
align=
"center"
required=
"true"
/>
<EF:EFColumn
ename=
"whCode"
cname=
"仓库名称"
width=
"120"
align=
"center"
required=
"true"
/>
<EF:EFColumn
ename=
"whName"
cname=
"仓库名称"
hidden=
"true"
/>
<EF:EFComboColumn
cname=
"状态"
ename=
"submitStatus"
width=
"90"
align=
"center"
required=
"true"
defaultValue=
"0"
>
<EF:EFComboColumn
cname=
"状态"
ename=
"submitStatus"
width=
"90"
align=
"center"
required=
"true"
defaultValue=
"0"
>
<EF:EFCodeOption
codeName=
"hggp.hpkc.submitStatus"
/>
<EF:EFCodeOption
codeName=
"hggp.hpkc.submitStatus"
/>
</EF:EFComboColumn>
</EF:EFComboColumn>
</EF:EFGrid>
</EF:EFGrid>
</EF:EFRegion>
</EF:EFRegion>
...
...
src/main/webapp/HG/KC/HGKC007A.js
View file @
b4b4530d
...
@@ -17,6 +17,7 @@ $(function () {
...
@@ -17,6 +17,7 @@ $(function () {
template
:
function
(
dataItem
)
{
template
:
function
(
dataItem
)
{
for
(
let
i
=
0
;
i
<
InventNameGlobalData
.
length
;
i
++
)
{
for
(
let
i
=
0
;
i
<
InventNameGlobalData
.
length
;
i
++
)
{
if
(
InventNameGlobalData
[
i
][
'valueField'
]
===
dataItem
[
'inventCode'
])
{
if
(
InventNameGlobalData
[
i
][
'valueField'
]
===
dataItem
[
'inventCode'
])
{
dataItem
[
'inventName'
]
=
InventNameGlobalData
[
i
][
'textField'
];
return
InventNameGlobalData
[
i
][
'textField'
];
return
InventNameGlobalData
[
i
][
'textField'
];
}
}
}
}
...
@@ -56,7 +57,44 @@ $(function () {
...
@@ -56,7 +57,44 @@ $(function () {
inInfo
.
set
(
"field"
,
options
.
field
);
inInfo
.
set
(
"field"
,
options
.
field
);
refreshSelect
(
container
,
inInfo
);
refreshSelect
(
container
,
inInfo
);
}
}
},
],
},{
field
:
"invQty"
,
template
:
function
(
item
)
{
if
(
item
.
invQty
&&
item
.
invUnitWeight
){
debugger
;
let
invWeight
=
item
.
invQty
*
item
.
invUnitWeight
;
//item['invWeight'] = invWeight.toString();
resultGrid
.
setCellValue
(
item
,
'invWeight'
,
invWeight
);
}
if
(
item
.
invQty
&&
item
.
price
){
let
amount
=
item
.
invQty
*
item
.
price
;
//item['amount'] = amount.toString();
resultGrid
.
setCellValue
(
item
,
'amount'
,
amount
);
}
return
item
.
invQty
;
}
},
{
field
:
"invUnitWeight"
,
template
:
function
(
item
)
{
debugger
;
if
(
item
.
invQty
&&
item
.
invUnitWeight
){
let
invWeight
=
item
.
invQty
*
item
.
invUnitWeight
;
//item['invWeight'] = invWeight.toString();
resultGrid
.
setCellValue
(
item
,
'invWeight'
,
invWeight
);
}
return
item
.
invUnitWeight
;
}
},{
field
:
"price"
,
template
:
function
(
item
)
{
if
(
item
.
invQty
&&
item
.
price
){
let
amount
=
item
.
invQty
*
item
.
price
;
//item['amount'] = amount.toString();
resultGrid
.
setCellValue
(
item
,
'amount'
,
amount
);
}
return
item
.
price
;
}
},],
loadComplete
:
function
(
grid
)
{
loadComplete
:
function
(
grid
)
{
// 此grid对象
// 此grid对象
grid
.
dataSource
.
bind
(
"change"
,
function
(
e
)
{
grid
.
dataSource
.
bind
(
"change"
,
function
(
e
)
{
...
@@ -75,6 +113,16 @@ $(function () {
...
@@ -75,6 +113,16 @@ $(function () {
}
}
}
}
}
}
/* if (e.field == "invQty") {
loadChange(grid,e,"invWeight");
loadChange(grid,e,"amount");
}
if (e.field == "invUnitWeight") {
loadChange(grid,e,"invWeight");
}
if (e.field == "price") {
loadChange(grid,e,"amount");
}*/
});
});
},
},
onSave
:
function
(
e
)
{
onSave
:
function
(
e
)
{
...
...
src/main/webapp/HG/KC/HGKC007A.jsp
View file @
b4b4530d
...
@@ -8,11 +8,12 @@
...
@@ -8,11 +8,12 @@
<EF:EFPage
title=
"其他出库单明细"
>
<EF:EFPage
title=
"其他出库单明细"
>
<EF:EFRegion
id=
"inqu"
title=
"查询条件"
>
<EF:EFRegion
id=
"inqu"
title=
"查询条件"
>
<div
class=
"row"
>
<div
class=
"row"
>
<EF:EFSelect
cname=
"存货名称"
blockId=
"inqu_status"
ename=
"inventCode"
row=
"0"
colWidth=
"3"
filter=
"contains"
<
%
--
<
EF:EFSelect
cname=
"存货名称"
blockId=
"inqu_status"
ename=
"inventCode"
row=
"0"
colWidth=
"3"
filter=
"contains"
defultValue=
""
>
defultValue=
""
>
<EF:EFOption
label=
"全部"
value=
""
/>
<EF:EFOption
label=
"全部"
value=
""
/>
<EF:EFOptions
blockId=
"invent_record_box_block_id"
textField=
"textField"
valueField=
"valueField"
/>
<EF:EFOptions
blockId=
"invent_record_box_block_id"
textField=
"textField"
valueField=
"valueField"
/>
</EF:EFSelect>
</EF:EFSelect>
--%>
<EF:EFInput
cname=
"存货名称"
ename=
"inventName"
blockId=
"inqu_status"
row=
"0"
colWidth=
"3"
/>
<EF:EFInput
cname=
"主表id"
ename=
"primaryId"
blockId=
"inqu_status"
row=
"0"
colWidth=
"3"
type=
"hidden"
/>
<EF:EFInput
cname=
"主表id"
ename=
"primaryId"
blockId=
"inqu_status"
row=
"0"
colWidth=
"3"
type=
"hidden"
/>
</div>
</div>
</EF:EFRegion>
</EF:EFRegion>
...
@@ -26,16 +27,26 @@
...
@@ -26,16 +27,26 @@
filter=
"contains"
>
filter=
"contains"
>
</EF:EFComboColumn>
</EF:EFComboColumn>
<EF:EFColumn
ename=
"inventCode"
cname=
"存货名称"
width=
"120"
align=
"center"
required=
"true"
readonly=
"true"
/>
<EF:EFColumn
ename=
"inventCode"
cname=
"存货名称"
width=
"120"
align=
"center"
required=
"true"
readonly=
"true"
/>
<EF:EFColumn
ename=
"inventName"
cname=
"存货名称"
hidden=
"true"
/>
<EF:EFColumn
ename=
"inventRecordId"
cname=
"规格"
width=
"120"
align=
"center"
required=
"true"
readonly=
"true"
/>
<EF:EFColumn
ename=
"inventRecordId"
cname=
"规格"
width=
"120"
align=
"center"
required=
"true"
readonly=
"true"
/>
<EF:EFColumn
ename=
"partLength"
cname=
"长(MM)"
enable=
"false"
width=
"80"
align=
"right"
format=
"{0:N3}"
/>
<EF:EFColumn
ename=
"partLength"
cname=
"长(MM)"
enable=
"false"
width=
"80"
align=
"right"
format=
"{0:N3}"
/>
<EF:EFColumn
ename=
"partWidth"
cname=
"宽(MM)"
enable=
"false"
width=
"80"
align=
"right"
format=
"{0:N3}"
/>
<EF:EFColumn
ename=
"partWidth"
cname=
"宽(MM)"
enable=
"false"
width=
"80"
align=
"right"
format=
"{0:N3}"
/>
<EF:EFColumn
ename=
"partThick"
cname=
"厚(MM)"
enable=
"false"
width=
"80"
align=
"right"
format=
"{0:N3}"
/>
<EF:EFColumn
ename=
"partThick"
cname=
"厚(MM)"
enable=
"false"
width=
"80"
align=
"right"
format=
"{0:N3}"
/>
<EF:EFColumn
ename=
"invQty"
cname=
"数量"
width=
"120"
align=
"right"
format=
"{0:N0}"
/>
<EF:EFColumn
ename=
"invQty"
cname=
"数量"
width=
"120"
align=
"right"
format=
"{0:N0}"
<EF:EFColumn
ename=
"invUnitWeight"
cname=
"单重"
width=
"120"
align=
"right"
format=
"{0:N3}"
/>
defaultValue=
"0"
data-regex=
"/^-?[0-9]{1,17}([.][0-9]{1,3})?$/"
data-errorprompt=
"请输入数字,该值最大可设置17位整数和3位小数!"
/>
<EF:EFColumn
ename=
"invUnitWeight"
cname=
"单重"
width=
"120"
align=
"right"
format=
"{0:N3}"
defaultValue=
"0"
data-regex=
"/^-?[0-9]{1,17}([.][0-9]{1,3})?$/"
data-errorprompt=
"请输入数字,该值最大可设置17位整数和3位小数!"
/>
<EF:EFColumn
ename=
"invWeight"
cname=
"总重"
enable=
"false"
width=
"120"
align=
"right"
format=
"{0:N3}"
/>
<EF:EFColumn
ename=
"invWeight"
cname=
"总重"
enable=
"false"
width=
"120"
align=
"right"
format=
"{0:N3}"
/>
<EF:EFColumn
ename=
"prdtCode"
cname=
"部件编码"
enable=
"false"
width=
"120"
align=
"center"
hidden=
"true"
/>
<EF:EFColumn
ename=
"prdtCode"
cname=
"部件编码"
enable=
"false"
width=
"120"
align=
"center"
hidden=
"true"
/>
<EF:EFColumn
ename=
"partCode"
cname=
"零件编码"
enable=
"false"
width=
"120"
align=
"center"
hidden=
"true"
/>
<EF:EFColumn
ename=
"partCode"
cname=
"零件编码"
enable=
"false"
width=
"120"
align=
"center"
hidden=
"true"
/>
<EF:EFColumn
ename=
"price"
cname=
"单价"
width=
"120"
align=
"right"
format=
"{0:N3}"
/>
<EF:EFColumn
ename=
"price"
cname=
"单价"
width=
"120"
align=
"right"
format=
"{0:N3}"
defaultValue=
"0"
data-regex=
"/^-?[0-9]{1,17}([.][0-9]{1,3})?$/"
data-errorprompt=
"请输入数字,该值最大可设置17位整数和3位小数!"
/>
<EF:EFColumn
ename=
"amount"
cname=
"金额"
width=
"120"
align=
"right"
enable=
"false"
format=
"{0:N3}"
/>
<EF:EFColumn
ename=
"amount"
cname=
"金额"
width=
"120"
align=
"right"
enable=
"false"
format=
"{0:N3}"
/>
</EF:EFGrid>
</EF:EFGrid>
</EF:EFRegion>
</EF:EFRegion>
...
...
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