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
ce40c4ff
Commit
ce40c4ff
authored
Sep 25, 2024
by
liuyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2024-09-25
1.销售开票保存开票金额校验
parent
268e666b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
HGCW010.js
src/main/webapp/HG/CW/HGCW010.js
+5
-5
HGCW010.jsp
src/main/webapp/HG/CW/HGCW010.jsp
+2
-2
No files found.
src/main/webapp/HG/CW/HGCW010.js
View file @
ce40c4ff
...
@@ -276,7 +276,7 @@ function saveFunc() {
...
@@ -276,7 +276,7 @@ function saveFunc() {
flag
=
false
;
flag
=
false
;
return
false
;
return
false
;
}
}
if
(
isBlank
(
item
.
get
(
"totalContractPriceIncluding"
))
&&
!
isNumber
(
item
.
get
(
"totalContractPriceIncluding"
))
){
if
(
!
isNumber
(
item
.
get
(
"totalContractPriceIncluding"
))
||
item
.
get
(
"totalContractPriceIncluding"
)
<=
0
){
message
(
"选中的第"
+
(
index
+
1
)
+
"行开票总额,不能小于0!"
);
message
(
"选中的第"
+
(
index
+
1
)
+
"行开票总额,不能小于0!"
);
flag
=
false
;
flag
=
false
;
return
false
;
return
false
;
...
@@ -356,8 +356,8 @@ function fileDetailFunc(id) {
...
@@ -356,8 +356,8 @@ function fileDetailFunc(id) {
function
submitFunc
()
{
function
submitFunc
()
{
let
rows
=
resultGrid
.
getCheckedRows
();
let
rows
=
resultGrid
.
getCheckedRows
();
if
(
rows
.
length
!=
1
)
{
if
(
rows
.
length
<
1
)
{
message
(
"请选择
一条
数据"
);
message
(
"请选择数据"
);
return
;
return
;
}
}
var
flag
=
true
;
var
flag
=
true
;
...
@@ -416,8 +416,8 @@ function submitFunc() {
...
@@ -416,8 +416,8 @@ function submitFunc() {
function
billFunc
()
{
function
billFunc
()
{
let
rows
=
resultGrid
.
getCheckedRows
();
let
rows
=
resultGrid
.
getCheckedRows
();
if
(
rows
.
length
!=
1
)
{
if
(
rows
.
length
<
1
)
{
message
(
"请选择
一条
数据"
);
message
(
"请选择数据"
);
return
;
return
;
}
}
var
flag
=
true
;
var
flag
=
true
;
...
...
src/main/webapp/HG/CW/HGCW010.jsp
View file @
ce40c4ff
...
@@ -77,8 +77,8 @@
...
@@ -77,8 +77,8 @@
columnTemplate=
"#=textField#"
itemTemplate=
"#=textField#"
enable=
"true"
defaultValue=
"13"
>
columnTemplate=
"#=textField#"
itemTemplate=
"#=textField#"
enable=
"true"
defaultValue=
"13"
>
<EF:EFCodeOption
codeName=
"hggp.cw.taxPoints"
/>
<EF:EFCodeOption
codeName=
"hggp.cw.taxPoints"
/>
</EF:EFComboColumn>
</EF:EFComboColumn>
<EF:EFColumn
ename=
"totalContractPriceIncluding"
cname=
"开票总额"
width=
"120"
enable=
"true"
readonly=
"true"
format=
"{0:C2}"
editType=
"
text
"
<EF:EFColumn
ename=
"totalContractPriceIncluding"
cname=
"开票总额"
width=
"120"
enable=
"true"
readonly=
"true"
format=
"{0:C2}"
editType=
"
number
"
displayType=
"0.00"
sort=
"true"
align=
"right"
maxLength=
"15"
required=
"true"
displayType=
"0.00"
sort=
"true"
align=
"right"
maxLength=
"15"
required=
"true"
defaultValue=
"0"
data-regex=
"/^-?[0-9]{1,15}([.][0-9]{1,2})?$/"
data-regex=
"/^-?[0-9]{1,15}([.][0-9]{1,2})?$/"
data-errorprompt=
"请输入数字,该值最大可设置15位整数和2位小数!"
/>
data-errorprompt=
"请输入数字,该值最大可设置15位整数和2位小数!"
/>
<EF:EFColumn
ename=
"thisSettlementAmount"
cname=
"不含税金额"
width=
"120"
enable=
"false"
readonly=
"true"
format=
"{0:C2}"
editType=
"text"
<EF:EFColumn
ename=
"thisSettlementAmount"
cname=
"不含税金额"
width=
"120"
enable=
"false"
readonly=
"true"
format=
"{0:C2}"
editType=
"text"
...
...
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