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
89fd6ac4
Commit
89fd6ac4
authored
Jun 27, 2024
by
江和松
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
生产领料单新增时被限制的问题处理
parent
c2c8e9aa
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
13 deletions
+13
-13
HGKC003.js
src/main/webapp/HG/KC/HGKC003.js
+11
-11
HGKC003.jsp
src/main/webapp/HG/KC/HGKC003.jsp
+1
-1
HGKC008.js
src/main/webapp/HG/KC/HGKC008.js
+1
-1
No files found.
src/main/webapp/HG/KC/HGKC003.js
View file @
89fd6ac4
...
...
@@ -62,17 +62,17 @@ $(function () {
var
item
=
e
.
items
[
0
];
//仓库下拉框
if
(
e
.
field
==
"whCode"
)
{
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 == "whCode") {
//
loadChange(grid,e,"price");
//
}
//
//
//
金额计算
//
if (e.field == "price") {
//
if(item.price && item.invQty){
//
let totalAmount = item.price * item.invQty;
//
resultGrid.setCellValue(item, 'amount', totalAmount)
//
}
//
}
});
},
onSuccess
:
function
(
e
)
{
...
...
src/main/webapp/HG/KC/HGKC003.jsp
View file @
89fd6ac4
...
...
@@ -67,7 +67,7 @@
defaultValue=
"0"
data-regex=
"/^-?[0-9]{1,17}([.][0-9]{1,3})?$/"
data-errorprompt=
"请输入数字,该值最大可设置17位整数和3位小数!"
required=
"
tru
e"
/>
required=
"
false"
enable=
"fals
e"
/>
<EF:EFColumn
ename=
"amount"
cname=
"金额"
width=
"120"
align=
"right"
enable=
"false"
format=
"{0:N3}"
/>
<EF:EFComboColumn
cname=
"提交状态"
ename=
"submitStatus"
width=
"90"
align=
"center"
required=
"false"
>
<EF:EFCodeOption
codeName=
"hggp.sc.productStatus"
/>
...
...
src/main/webapp/HG/KC/HGKC008.js
View file @
89fd6ac4
...
...
@@ -163,7 +163,7 @@ $(function (){
},
beforeEdit
:
function
(
e
)
{
let
item
=
e
.
model
;
if
(
item
.
status
!=
'0
'
){
if
(
item
.
status
===
'1
'
){
e
.
preventDefault
();
}
},
...
...
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