记得上下班打卡 | 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
ebf232d1
Commit
ebf232d1
authored
Apr 22, 2022
by
sangchunxi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#1948 #1966 bug 修复,正式提交
parent
b7384352
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
7 deletions
+37
-7
list.html
...resources/templates/zhengzai/smile/smileTickets/list.html
+37
-7
No files found.
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-web/src/main/resources/templates/zhengzai/smile/smileTickets/list.html
View file @
ebf232d1
...
@@ -158,7 +158,7 @@
...
@@ -158,7 +158,7 @@
formatter
:
function
(
value
,
row
,
index
)
{
formatter
:
function
(
value
,
row
,
index
)
{
var
actions
=
[];
var
actions
=
[];
actions
.
push
(
'<a class="btn btn-success btn-xs '
+
detailFlag
+
'" href="javascript:void(0)" onclick="toPop(
\'
'
+
row
.
performancesId
+
'
\'
)"><i class="fa fa-edit"></i>设置票提</a> '
);
actions
.
push
(
'<a class="btn btn-success btn-xs '
+
detailFlag
+
'" href="javascript:void(0)" onclick="toPop(
\'
'
+
row
.
performancesId
+
'
\'
)"><i class="fa fa-edit"></i>设置票提</a> '
);
actions
.
push
(
'<a class="btn btn-success btn-xs '
+
detailFlag
+
'" href="javascript:void(0)" onclick="editPop(
\'
'
+
row
.
performancesId
+
'
\'
)"><i class="fa fa-edit"></i>编辑票提</a> '
);
//
actions.push('
<
a
class
=
"btn btn-success btn-xs ' + detailFlag + '"
href
=
"javascript:void(0)"
onclick
=
"editPop(
\
'' + row.performancesId + '
\
')"
><
i
class
=
"fa fa-edit"
><
/i>编辑票提</
a
>
');
actions.push('
<
a
class
=
"btn btn-success btn-xs ' + detailFlag + '"
href
=
"javascript:void(0)"
onclick
=
"toDetail(
\
'' + row.performancesId + '
\
')"
><
i
class
=
"fa fa-edit"
><
/i>查看</
a
>
');
actions.push('
<
a
class
=
"btn btn-success btn-xs ' + detailFlag + '"
href
=
"javascript:void(0)"
onclick
=
"toDetail(
\
'' + row.performancesId + '
\
')"
><
i
class
=
"fa fa-edit"
><
/i>查看</
a
>
');
actions.push('
<
a
class
=
"btn btn-success btn-xs ' + detailFlag + '"
href
=
"javascript:void(0)"
onclick
=
"$.operate.detail(
\
'' + row.performancesId + '
\
')"
><
i
class
=
"fa fa-edit"
><
/i>销售数据</
a
>
');
actions.push('
<
a
class
=
"btn btn-success btn-xs ' + detailFlag + '"
href
=
"javascript:void(0)"
onclick
=
"$.operate.detail(
\
'' + row.performancesId + '
\
')"
><
i
class
=
"fa fa-edit"
><
/i>销售数据</
a
>
');
return actions.join('');
return actions.join('');
...
@@ -198,10 +198,10 @@
...
@@ -198,10 +198,10 @@
postData.push({
postData.push({
delTag: subOArr[i].delTag,
delTag: subOArr[i].delTag,
id: subOArr[i].id,
id: subOArr[i].id,
ordCarry
:
Number
(
$
(
'.ticketsti'
+
i
).
find
(
'.normal'
).
val
())
/
100
,
ordCarry: Number($('
.
ticketsti
' + i).find('
.
normal
').val()) / 100
|| 0
,
performanceId: subOArr[i].performanceId,
performanceId: subOArr[i].performanceId,
ticketId: subOArr[i].ticketId,
ticketId: subOArr[i].ticketId,
totalCarry
:
Number
(
$
(
'.ticketsti'
+
i
).
find
(
'.total'
).
val
())
/
100
,
totalCarry: Number($('
.
ticketsti
' + i).find('
.
total
').val()) / 100
|| 0
,
});
});
}
}
$.ajax({
$.ajax({
...
@@ -210,7 +210,12 @@
...
@@ -210,7 +210,12 @@
headers: {"Content-Type": "application/json;charset=UTF-8"},
headers: {"Content-Type": "application/json;charset=UTF-8"},
data: JSON.stringify(postData),
data: JSON.stringify(postData),
success: function (e) {
success: function (e) {
$
(
".layui-layer-close1"
).
click
();
if (e.code === 301) {
$.modal.msgWarning(e.msg);
$(".layui-layer-close1").click();
} else {
$(".layui-layer-close1").click();
}
}
}
});
});
}
}
...
@@ -267,14 +272,15 @@
...
@@ -267,14 +272,15 @@
url
:
ctx
+
'smile/agent/list?performancesId='
+
id
,
url
:
ctx
+
'smile/agent/list?performancesId='
+
id
,
headers
:
{
"Content-Type"
:
"application/json;charset=UTF-8"
},
headers
:
{
"Content-Type"
:
"application/json;charset=UTF-8"
},
success
:
function
(
e
)
{
success
:
function
(
e
)
{
subOArr
=
e
.
data
;
subOArr
=
e
.
data
||
[]
;
subOArr
.
forEach
(
item
=>
{
subOArr
.
forEach
(
item
=>
{
$
(
'#addClassify .form-group'
).
append
(
$
(
'#addClassify .form-group'
).
append
(
'<div class="ticketsti'
+
item
+
'">'
+
'<div class="ticketsti'
+
item
+
'">'
+
'<p>'
+
item
.
ticketName
+
'</p>'
+
'<p>'
+
item
.
ticketName
+
'</p>'
+
'<p>票提设置</p>'
+
'<p>票提设置</p>'
+
'<span>总代<input type="text" class="total">%</span>'
+
'<span>总代<input type="text" id="total" class="total" onblur="allProxy()">%</span>'
+
'<span>普代<input type="text" class="normal">%</span>'
+
'<span>普代<input type="text" id="normal" class="normal" onblur="normalProxy()">%</span>'
+
'<p id="allProxyErrorText"></p>'
+
'</div>'
'</div>'
)
)
})
})
...
@@ -286,6 +292,30 @@
...
@@ -286,6 +292,30 @@
}
}
});
});
}
}
function
allProxy
()
{
var
allProxyVal
=
document
.
getElementById
(
"total"
).
value
;
var
int
=
isIntNum
(
allProxyVal
)
if
(
!
int
)
{
// 如果是整数
document
.
getElementById
(
"allProxyErrorText"
).
innerHTML
=
"请填写正整数!"
;
}
}
function
normalProxy
()
{
}
function
isIntNum
()
{
var
reg
=
new
RegExp
(
/^
[
1-9
]\d
*$/
);
// 表单验证规则设置:请确认输入为整数
if
(
!
reg
.
test
(
value
))
{
return
false
}
else
{
// 符合条件
return
true
}
}
</script>
</script>
</body>
</body>
</html>
</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