记得上下班打卡 | 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
9a40cb7d
Commit
9a40cb7d
authored
Jul 29, 2021
by
jiangxiulong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
print
parent
e5399cb6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
49 additions
and
40 deletions
+49
-40
performanceOrderList.html
...ngzai/kylin/performancesExpress/performanceOrderList.html
+49
-40
No files found.
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-web/src/main/resources/templates/zhengzai/kylin/performancesExpress/performanceOrderList.html
View file @
9a40cb7d
...
...
@@ -73,15 +73,17 @@
</div>
<div
class=
"btn-group-sm"
id=
"toolbar"
role=
"group"
>
<a
class=
"btn btn-success multiple disabled"
onclick=
"$.operate.removeAll('确定下单吗?', '/kylin/performancesExpress/placeOrder')"
<a
class=
"btn btn-success multiple disabled"
onclick=
"$.operate.removeAll('确定下单吗?', '/kylin/performancesExpress/placeOrder')"
shiro:hasPermission=
"kylin:performancesExpress:placeOrder"
>
批量下单
</a>
<a
class=
"btn btn-danger multiple disabled"
onclick=
"$.operate.removeAll('确定取消吗?', '/kylin/performancesExpress/cancelOrder', 'orderExpressId')"
<a
class=
"btn btn-danger multiple disabled"
onclick=
"$.operate.removeAll('确定取消吗?', '/kylin/performancesExpress/cancelOrder', 'orderExpressId')"
shiro:hasPermission=
"kylin:performancesExpress:cancelOrder"
>
批量取消
</a>
<a
class=
"btn btn-info multiple disabled"
onclick=
"
$.operate.removeAll('确定打印吗?', '/kylin/performancesExpress/printExpress', 'orderExpressId'
)"
<a
class=
"btn btn-info multiple disabled"
onclick=
"
printExpress(
)"
shiro:hasPermission=
"kylin:performancesExpress:printExpress"
>
批量打印
</a>
...
...
@@ -302,47 +304,54 @@
}
function
printExpress
(
orderExpressId
)
{
try
{
var
LODOP
=
getLodop
();
if
(
LODOP
==
undefined
)
{
var
message
=
"确定打印吗?"
;
$
.
modal
.
confirm
(
message
,
function
()
{
try
{
var
LODOP
=
getLodop
();
if
(
LODOP
==
undefined
)
{
return
false
;
}
}
catch
(
err
)
{
return
false
;
}
}
catch
(
err
)
{
return
false
;
}
var
data
=
''
;
if
(
orderExpressId
)
{
var
ids
=
[
orderExpressId
];
data
=
{
"ids"
:
ids
.
join
()};
}
else
{
var
rows
=
$
.
common
.
isEmpty
(
table
.
options
.
uniqueId
)
?
$
.
table
.
selectFirstColumns
()
:
$
.
table
.
selectColumns
(
table
.
options
.
uniqueId
);
data
=
{
"ids"
:
rows
.
join
()};
}
var
configPrint
=
{
url
:
prefix
+
"/printExpress"
,
type
:
"post"
,
dataType
:
"json"
,
data
:
data
,
beforeSend
:
function
()
{
$
.
modal
.
loading
(
"正在获取数据中,请稍后..."
);
},
success
:
function
(
result
)
{
$
.
modal
.
closeLoading
();
$
.
modal
.
loading
(
"正在打印中,请稍后..."
);
var
expressList
=
result
.
data
.
expressList
;
var
listLen
=
expressList
.
length
;
var
jContact
=
result
.
data
.
jcontact
;
var
jAddress
=
result
.
data
.
jaddress
;
var
jTel
=
result
.
data
.
jtel
;
if
(
listLen
>
0
)
{
$
.
each
(
expressList
,
function
(
index
,
value
)
{
printExpressData
(
value
,
jContact
,
jAddress
,
jTel
,
index
+
1
,
listLen
);
});
var
data
=
''
;
if
(
orderExpressId
)
{
var
ids
=
[
orderExpressId
];
data
=
{
"ids"
:
ids
.
join
()};
}
else
{
var
rows
=
$
.
table
.
selectColumns
(
"orderExpressId"
);
if
(
rows
.
length
==
0
)
{
$
.
modal
.
alertWarning
(
"请至少选择一条记录"
);
return
;
}
$
.
modal
.
closeLoading
()
;
data
=
{
"ids"
:
rows
.
join
()}
;
}
};
$
.
ajax
(
configPrint
)
var
configPrint
=
{
url
:
prefix
+
"/printExpress"
,
type
:
"post"
,
dataType
:
"json"
,
data
:
data
,
beforeSend
:
function
()
{
$
.
modal
.
loading
(
"正在获取数据中,请稍后..."
);
},
success
:
function
(
result
)
{
$
.
modal
.
closeLoading
();
$
.
modal
.
loading
(
"正在打印中,请稍后..."
);
var
expressList
=
result
.
data
.
expressList
;
var
listLen
=
expressList
.
length
;
var
jContact
=
result
.
data
.
jcontact
;
var
jAddress
=
result
.
data
.
jaddress
;
var
jTel
=
result
.
data
.
jtel
;
if
(
listLen
>
0
)
{
$
.
each
(
expressList
,
function
(
index
,
value
)
{
printExpressData
(
value
,
jContact
,
jAddress
,
jTel
,
index
+
1
,
listLen
);
});
}
$
.
modal
.
closeLoading
();
}
};
$
.
ajax
(
configPrint
)
});
}
$
(
function
()
{
...
...
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