Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
A
Aidea
Project
Project
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
sa_aidea
Aidea
Commits
37c6e986
Commit
37c6e986
authored
Nov 27, 2020
by
谢希宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Aidea product update by Strive Date 2020-11-27
parent
1b257dd7
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
105 additions
and
25 deletions
+105
-25
orderlist.html
...le-web/src/main/webapp/WEB-INF/views/order/orderlist.html
+105
-25
No files found.
aidea-modules/order-module-web/src/main/webapp/WEB-INF/views/order/orderlist.html
View file @
37c6e986
...
...
@@ -57,6 +57,39 @@
<div
class=
"wrapper"
>
<div
class=
"content-wrapper"
style=
"margin-left:0;"
>
<!-- 当前选中框id -->
<input
type=
"hidden"
id=
"orderId"
>
<div
class=
"modal fade"
id=
"remindExampleModal"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"exampleModalLabel"
aria-hidden=
"true"
>
<div
class=
"modal-dialog"
>
<div
class=
"modal-content"
>
<div
class=
"modal-header"
>
<h4
class=
"modal-title"
id=
"remindExampleModalLabel"
style=
"font-weight: 700;"
>
设置订单提醒
</h4>
<button
type=
"button"
class=
"close"
data-dismiss=
"modal"
aria-label=
"Close"
>
<span
aria-hidden=
"true"
>
×
</span>
</button>
</div>
<div
class=
"modal-body"
>
<form
style=
"height: 80px;"
>
<div
class=
"col-xs-6"
>
<select
id=
"remind"
name=
"remind"
class=
"form-control required"
>
<option
value=
"0"
>
请选择提醒周期
</option>
<option
value=
"1"
>
7天前
</option>
<option
value=
"2"
>
当日
</option>
<option
value=
"3"
>
7天后
</option>
<option
value=
"0"
>
关闭提醒
</option>
</select>
</div>
</form>
</div>
<div
class=
"modal-footer"
>
<button
type=
"button"
class=
"btn btn-secondary"
data-dismiss=
"modal"
>
取消
</button>
<button
type=
"button"
class=
"btn btn-primary"
onclick=
"submitRemind()"
>
提交
</button>
</div>
</div>
</div>
</div>
<div
class=
"modal fade"
id=
"exampleModal"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"exampleModalLabel"
aria-hidden=
"true"
>
<div
class=
"modal-dialog"
>
<div
class=
"modal-content"
>
...
...
@@ -384,6 +417,7 @@
{
"mData"
:
"tradeNo"
}
,
{
"mData"
:
"confirm"
...
...
@@ -639,9 +673,10 @@
if
(
c
.
status
!=
'4'
&&
c
.
status
!=
'5'
)
{
html
+=
'<li><a onclick="showModal('
+
a
+
')">订单关闭</a></li>'
;
}
/* if (c.status == 4){
html += '<li><a href="#springUrl("/a/order/invoice?id=' + a + '")">开发票</a></li>';
}*/
if
(
c
.
status
==
'4'
)
{
//需求订单已完成设置提醒
html
+=
'<li><a onclick="showRemindModal('
+
a
+
')">订单提醒</a></li>'
;
}
// if (c.status == '2') {//待发货才可以出库操作
// html += '
<
li
><
a
href
=
"#springUrl("
/
a
/
order
/
sendOut
?
id
=
' + a + '
")"
>
订单出库
<
/a></
li
>
';
// }
...
...
@@ -794,6 +829,51 @@
});
Cfapp
.
init
();
function
showRemindModal
()
{
$
(
"#orderId"
).
val
(
id
);
$
(
'#remindExampleModal'
).
modal
(
'show'
);
}
function
submitRemind
()
{
let
option
=
$
(
'#remind option:selected'
)
.
val
();
if
(
option
==
null
||
option
==
''
)
{
Cfapp
.
alert
({
message
:
"请选择对应周期"
,
btntext
:
"确定"
,
success
:
function
()
{}
});
return
;
}
var
url
=
"#springUrl('/a/order/setOrderRemind')"
;
$
.
ajax
({
url
:
url
,
type
:
"GET"
,
data
:
{
id
:
$
(
"#orderId"
).
val
(),
option
:
option
},
success
:
function
(
rsp
)
{
$
(
'#remindExampleModal'
).
modal
(
'hide'
);
if
(
rsp
.
errorNo
==
"0"
)
{
Cfapp
.
alert
({
message
:
"设置成功"
,
btntext
:
"确定"
,
success
:
function
()
{
location
.
href
=
"#springUrl('/a/order/list')"
;
}
});
}
else
{
Cfapp
.
alert
({
message
:
"设置失败"
,
btntext
:
"确定"
,
success
:
function
()
{
location
.
href
=
"#springUrl('/a/order/list')"
;
}
});
}
}
});
}
function
showModal
(
id
)
{
$
(
"#orderId"
).
val
(
id
);
...
...
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