记得上下班打卡 | git大法好,push需谨慎
Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liquidnet-bus-v1
Project
Project
Details
Activity
Releases
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
董敬伟
liquidnet-bus-v1
Commits
1bd9d1be
Commit
1bd9d1be
authored
Apr 24, 2022
by
sangchunxi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#1880 精度问题 确认修复
parent
d6797f81
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
31 deletions
+6
-31
list.html
...resources/templates/zhengzai/smile/smileTickets/list.html
+6
-31
No files found.
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-web/src/main/resources/templates/zhengzai/smile/smileTickets/list.html
View file @
1bd9d1be
...
...
@@ -198,10 +198,10 @@
postData.push({
delTag: subOArr[i].delTag,
id: subOArr[i].id,
ordCarry:
Number($('
.
ticketsti
' + i).find('
.
normal
').val()) / 100 ||
0,
ordCarry:
Math.round($('
.
ticketsti
' + i).find('
.
normal
').val() * 100) / 10
0,
performanceId: subOArr[i].performanceId,
ticketId: subOArr[i].ticketId,
totalCarry:
Number($('
.
ticketsti
' + i).find('
.
total
').val()) / 100 ||
0,
totalCarry:
Math.round($('
.
ticketsti
' + i).find('
.
total
').val() * 100) / 10
0,
});
}
$.ajax({
...
...
@@ -212,7 +212,6 @@
success: function (e) {
if (e.code === 301) {
$.modal.msgWarning(e.msg);
$(".layui-layer-close1").click();
} else {
$(".layui-layer-close1").click();
}
...
...
@@ -273,14 +272,13 @@
headers
:
{
"Content-Type"
:
"application/json;charset=UTF-8"
},
success
:
function
(
e
)
{
subOArr
=
e
.
data
||
[];
subOArr
.
forEach
(
item
=>
{
subOArr
.
forEach
(
(
item
,
index
)
=>
{
$
(
'#addClassify .form-group'
).
append
(
'<div class="ticketsti'
+
i
tem
+
'">'
+
'<div class="ticketsti'
+
i
ndex
+
'">'
+
'<p>'
+
item
.
ticketName
+
'</p>'
+
'<p>票提设置</p>'
+
'<span>总代<input type="text" id="total" class="total" onblur="allProxy()">%</span>'
+
'<span>普代<input type="text" id="normal" class="normal" onblur="normalProxy()">%</span>'
+
'<p id="allProxyErrorText"></p>'
+
'<span>总代<input type="text" class="total">%</span>'
+
'<span>普代<input type="text" class="normal">%</span>'
+
'</div>'
)
})
...
...
@@ -293,29 +291,6 @@
});
}
function
allProxy
()
{
var
allProxyVal
=
document
.
getElementById
(
"total"
).
value
;
var
int
=
isIntNum
(
allProxyVal
)
if
(
!
int
)
{
// 如果是整数
document
.
getElementById
(
"allProxyErrorText"
).
innerHTML
=
"请填写正整数!"
;
}
}
function
normalProxy
()
{
}
function
isIntNum
(
value
)
{
var
reg
=
new
RegExp
(
/^
[
1-9
]\d
*$/
);
// 表单验证规则设置:请确认输入为整数
if
(
!
reg
.
test
(
value
))
{
return
false
}
else
{
// 符合条件
return
true
}
}
</script>
</body>
</html>
\ No newline at end of file
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