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
ad50261d
Commit
ad50261d
authored
Jun 17, 2024
by
江和松
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
生产领料单bug修改
parent
51b1512b
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
45 additions
and
17 deletions
+45
-17
HGKC008.js
src/main/webapp/HG/KC/HGKC008.js
+8
-0
HGKC008A.js
src/main/webapp/HG/KC/HGKC008A.js
+32
-12
HGKC008A.jsp
src/main/webapp/HG/KC/HGKC008A.jsp
+3
-3
HGKC010.jsp
src/main/webapp/HG/KC/HGKC010.jsp
+2
-2
No files found.
src/main/webapp/HG/KC/HGKC008.js
View file @
ad50261d
...
...
@@ -121,6 +121,14 @@ $(function (){
filter
:
"contains"
});
}
},
{
field
:
"receiptDate"
,
attributes
:
{
class
:
"i-input-readonly"
},
defaultValue
:
function
()
{
return
currShortDate
();
}
}
],
loadComplete
:
function
(
grid
)
{
...
...
src/main/webapp/HG/KC/HGKC008A.js
View file @
ad50261d
...
...
@@ -129,18 +129,6 @@ $(function (){
let
totalWeight
=
item
.
invQty
*
item
.
invUnitWeight
;
resultGrid
.
setCellValue
(
item
,
'invWeight'
,
totalWeight
)
}
if
(
item
.
price
&&
item
.
invQty
){
let
totalAmount
=
item
.
price
*
item
.
invQty
;
resultGrid
.
setCellValue
(
item
,
'amount'
,
totalAmount
)
}
loadChange
(
grid
,
e
,
"price"
);
}
//单价计算
if
(
e
.
field
==
"price"
)
{
if
(
item
.
price
&&
item
.
invQty
){
let
totalAmount
=
item
.
price
*
item
.
invQty
;
resultGrid
.
setCellValue
(
item
,
'amount'
,
totalAmount
)
}
}
if
(
e
.
field
==
"inventType"
)
{
//选择后,先加载此方法,再加载属性中的方法,所以存货类型加载时,先修改存货编号下拉框的查询
...
...
@@ -264,6 +252,38 @@ let save = function (btnNode) {
return
;
}
let
flag
=
true
;
$
.
each
(
rows
,
function
(
index
,
item
)
{
let
inventType
=
item
.
get
(
"inventType"
);
let
inventCode
=
item
.
get
(
"inventCode"
);
let
inventName
=
item
.
get
(
"inventName"
);
let
invSpec
=
item
.
get
(
"invSpec"
);
let
invQty
=
item
.
get
(
"invQty"
);
if
(
isBlank
(
inventType
)){
message
(
"选中的第"
+
(
index
+
1
)
+
"行
\"
存货类型
\"
,不能为空!"
);
flag
=
false
;
return
false
;
}
if
(
isBlank
(
inventCode
)){
message
(
"选中的第"
+
(
index
+
1
)
+
"行
\"
存货编码
\"
,不能为空!"
);
flag
=
false
;
return
false
;
}
if
(
isBlank
(
inventName
)){
message
(
"选中的第"
+
(
index
+
1
)
+
"行
\"
存货名称
\"
,不能为空!"
);
flag
=
false
;
return
false
;
}
if
(
isBlank
(
invSpec
)){
message
(
"选中的第"
+
(
index
+
1
)
+
"行
\"
规格
\"
,不能为空!"
);
flag
=
false
;
return
false
;
}
if
(
isBlank
(
invQty
)){
message
(
"选中的第"
+
(
index
+
1
)
+
"行
\"
数量
\"
,不能为空!"
);
flag
=
false
;
return
false
;
}
});
if
(
flag
)
{
JSUtils
.
confirm
(
"确定对勾选中的["
+
rows
.
length
+
"]条数据做
\"
保存
\"
操作? "
,
{
ok
:
function
()
{
...
...
src/main/webapp/HG/KC/HGKC008A.jsp
View file @
ad50261d
...
...
@@ -45,15 +45,15 @@
<EF:EFColumn
ename=
"invThick"
cname=
"厚度(MM)"
width=
"120"
align=
"center"
enable=
"false"
/>
<EF:EFColumn
ename=
"invQty"
cname=
"数量"
width=
"120"
align=
"right"
format=
"{0:N0}"
enable=
"true"
required=
"true"
/>
<EF:EFColumn
ename=
"invUnitWeight"
cname=
"单重"
width=
"100"
enable=
"false"
readonly=
"true"
format=
"{0:N3}"
editType=
"text"
displayType=
"0.000"
sort=
"true"
align=
"right"
maxLength=
"17"
required=
"
tru
e"
defaultValue=
"0"
displayType=
"0.000"
sort=
"true"
align=
"right"
maxLength=
"17"
required=
"
fals
e"
defaultValue=
"0"
data-regex=
"/^-?[0-9]{1,17}([.][0-9]{1,3})?$/"
data-errorprompt=
"请输入数字,该值最大可设置17位整数和3位小数!"
/>
<EF:EFColumn
ename=
"invWeight"
cname=
"重量"
width=
"100"
enable=
"false"
readonly=
"true"
format=
"{0:N3}"
editType=
"text"
displayType=
"0.000"
sort=
"true"
align=
"right"
maxLength=
"17"
required=
"false"
defaultValue=
"0"
data-regex=
"/^-?[0-9]{1,17}([.][0-9]{1,3})?$/"
data-errorprompt=
"请输入数字,该值最大可设置17位整数和3位小数!"
/>
<EF:EFColumn
ename=
"price"
cname=
"单价"
width=
"100"
enable=
"
tru
e"
format=
"{0:N3}"
editType=
"text"
displayType=
"0.000"
sort=
"true"
align=
"right"
maxLength=
"17"
required=
"
tru
e"
defaultValue=
"0"
<EF:EFColumn
ename=
"price"
cname=
"单价"
width=
"100"
enable=
"
fals
e"
format=
"{0:N3}"
editType=
"text"
displayType=
"0.000"
sort=
"true"
align=
"right"
maxLength=
"17"
required=
"
fals
e"
defaultValue=
"0"
data-regex=
"/^-?[0-9]{1,17}([.][0-9]{1,3})?$/"
data-errorprompt=
"请输入数字,该值最大可设置17位整数和3位小数!"
/>
<EF:EFColumn
ename=
"amount"
cname=
"金额"
width=
"100"
enable=
"false"
format=
"{0:N3}"
editType=
"text"
...
...
src/main/webapp/HG/KC/HGKC010.jsp
View file @
ad50261d
...
...
@@ -16,11 +16,11 @@
optionLabel=
"全部"
defultValue=
""
filter=
"contains"
>
<EF:EFOptions
blockId=
"wh_record_block_id"
textField=
"textField"
valueField=
"valueField"
/>
</EF:EFSelect>
<EF:EFSelect
cname=
"存货类型"
blockId=
"inqu_status"
ename=
"in
c
entType"
row=
"0"
colWidth=
"3"
<EF:EFSelect
cname=
"存货类型"
blockId=
"inqu_status"
ename=
"in
v
entType"
row=
"0"
colWidth=
"3"
optionLabel=
"全部"
defultValue=
""
filter=
"contains"
>
<EF:EFOptions
blockId=
"invent_type_block_id"
textField=
"textField"
valueField=
"valueField"
/>
</EF:EFSelect>
<EF:EFSelect
cname=
"存货名称"
blockId=
"inqu_status"
ename=
"in
c
entCode"
row=
"0"
colWidth=
"3"
<EF:EFSelect
cname=
"存货名称"
blockId=
"inqu_status"
ename=
"in
v
entCode"
row=
"0"
colWidth=
"3"
optionLabel=
"全部"
defultValue=
""
filter=
"contains"
>
<EF:EFOptions
blockId=
"invent_record_block_id"
textField=
"textField"
valueField=
"valueField"
/>
</EF:EFSelect>
...
...
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