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
19c66045
Commit
19c66045
authored
Oct 31, 2024
by
liuyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化销售开票选择任务添加金额校验
parent
77be3f11
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
21 additions
and
3 deletions
+21
-3
HGCW010A.js
src/main/webapp/HG/CW/HGCW010A.js
+6
-0
HGCW010A.jsp
src/main/webapp/HG/CW/HGCW010A.jsp
+1
-1
HGCW010D.js
src/main/webapp/HG/CW/HGCW010D.js
+6
-0
HGCW010D.jsp
src/main/webapp/HG/CW/HGCW010D.jsp
+1
-1
HGCW010E.js
src/main/webapp/HG/CW/HGCW010E.js
+6
-0
HGCW010E.jsp
src/main/webapp/HG/CW/HGCW010E.jsp
+1
-1
No files found.
src/main/webapp/HG/CW/HGCW010A.js
View file @
19c66045
...
...
@@ -81,11 +81,17 @@ function saveFunc() {
let
flag
=
true
;
$
.
each
(
rows
,
function
(
index
,
item
)
{
let
reviewStatus
=
item
.
get
(
"reviewStatus"
);
let
thisAmount
=
item
.
get
(
"thisAmount"
);
if
((
reviewStatus
===
"1"
)){
message
(
"数据已审核"
);
flag
=
false
;
return
false
;
}
if
(
!
isNumber
(
thisAmount
)
&&
!
isPositiveNumber
(
thisAmount
))
{
message
(
"勾选的第"
+
(
index
+
1
)
+
"行本次收票金额必须是大于0的数字"
);
flag
=
false
;
return
false
;
}
});
if
(
flag
)
{
JSUtils
.
confirm
(
"确定对勾选中的["
+
rows
.
length
+
"]条数据做
\"
保存
\"
操作? "
,
{
...
...
src/main/webapp/HG/CW/HGCW010A.jsp
View file @
19c66045
...
...
@@ -56,7 +56,7 @@
data-errorprompt=
"请输入数字,该值最大可设置15位整数和2位小数!"
/>
<EF:EFColumn
ename=
"thisPriceTax"
cname=
"结算含税金额"
enable=
"false"
hidden=
"false"
format=
"{0:N2}"
align=
"right"
/>
<EF:EFColumn
ename=
"thisAmount"
cname=
"本次开票金额"
width=
"120"
enable=
"true"
readonly=
"false"
format=
"{0:N2}"
editType=
"text"
displayType=
"0.00"
sort=
"true"
align=
"right"
maxLength=
"15"
required=
"
fals
e"
displayType=
"0.00"
sort=
"true"
align=
"right"
maxLength=
"15"
required=
"
tru
e"
data-regex=
"/^-?[0-9]{1,15}([.][0-9]{1,2})?$/"
data-errorprompt=
"请输入数字,该值最大可设置15位整数和2位小数!"
/>
<EF:EFColumn
ename=
"remainingAmount"
cname=
"剩余开票金额"
width=
"120"
enable=
"false"
format=
"{0:N2}"
editType=
"text"
...
...
src/main/webapp/HG/CW/HGCW010D.js
View file @
19c66045
...
...
@@ -57,11 +57,17 @@ function saveFunc() {
let
flag
=
true
;
$
.
each
(
rows
,
function
(
index
,
item
)
{
let
reviewStatus
=
item
.
get
(
"reviewStatus"
);
let
thisAmount
=
item
.
get
(
"thisAmount"
);
if
((
reviewStatus
===
"1"
)){
message
(
"数据已审核"
);
flag
=
false
;
return
false
;
}
if
(
!
isNumber
(
thisAmount
)
&&
!
isPositiveNumber
(
thisAmount
))
{
message
(
"勾选的第"
+
(
index
+
1
)
+
"行本次收票金额必须是大于0的数字"
);
flag
=
false
;
return
false
;
}
});
if
(
flag
)
{
JSUtils
.
confirm
(
"确定对勾选中的["
+
rows
.
length
+
"]条数据做
\"
保存
\"
操作? "
,
{
...
...
src/main/webapp/HG/CW/HGCW010D.jsp
View file @
19c66045
...
...
@@ -69,7 +69,7 @@
data-regex="/^-?[0-9]{1,15}([.][0-9]{1,2})?$/"
data-errorprompt="请输入数字,该值最大可设置15位整数和2位小数!"/>
<EF:EFColumn ename="thisAmount" cname="本次开票金额" width="120" enable="true" readonly="false" format="{0:N2}" editType="text"
displayType="0.00" sort="true" align="right" maxLength="15" required="
fals
e"
displayType="0.00" sort="true" align="right" maxLength="15" required="
tru
e"
data-regex="/^-?[0-9]{1,15}([.][0-9]{1,2})?$/"
data-errorprompt="请输入数字,该值最大可设置15位整数和2位小数!"/>
<EF:EFColumn ename="remainingAmount" cname="剩余开票金额" width="120" enable="false" format="{0:N2}" editType="text"
...
...
src/main/webapp/HG/CW/HGCW010E.js
View file @
19c66045
...
...
@@ -57,11 +57,17 @@ function saveFunc() {
let
flag
=
true
;
$
.
each
(
rows
,
function
(
index
,
item
)
{
let
reviewStatus
=
item
.
get
(
"reviewStatus"
);
let
thisAmount
=
item
.
get
(
"thisAmount"
);
if
((
reviewStatus
===
"1"
)){
message
(
"数据已审核"
);
flag
=
false
;
return
false
;
}
if
(
!
isNumber
(
thisAmount
)
&&
!
isPositiveNumber
(
thisAmount
))
{
message
(
"勾选的第"
+
(
index
+
1
)
+
"行本次收票金额必须是大于0的数字"
);
flag
=
false
;
return
false
;
}
});
if
(
flag
)
{
JSUtils
.
confirm
(
"确定对勾选中的["
+
rows
.
length
+
"]条数据做
\"
保存
\"
操作? "
,
{
...
...
src/main/webapp/HG/CW/HGCW010E.jsp
View file @
19c66045
...
...
@@ -63,7 +63,7 @@
data-regex="/^-?[0-9]{1,15}([.][0-9]{1,2})?$/"
data-errorprompt="请输入数字,该值最大可设置15位整数和2位小数!"/>
<EF:EFColumn ename="thisAmount" cname="本次开票金额" width="120" enable="true" readonly="false" format="{0:N2}" editType="text"
displayType="0.00" sort="true" align="right" maxLength="15" required="
fals
e"
displayType="0.00" sort="true" align="right" maxLength="15" required="
tru
e"
data-regex="/^-?[0-9]{1,15}([.][0-9]{1,2})?$/"
data-errorprompt="请输入数字,该值最大可设置15位整数和2位小数!"/>
<EF:EFColumn ename="remainingAmount" cname="剩余开票金额" width="120" enable="false" format="{0:N2}" 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