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
b423cf00
Commit
b423cf00
authored
Apr 12, 2021
by
谢希宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Submit by Strive
Date 2021/04/12 Project End
parent
b1f9b7e3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
10 deletions
+15
-10
orderSendOut.html
...web/src/main/webapp/WEB-INF/views/order/orderSendOut.html
+11
-6
orderform.html
...le-web/src/main/webapp/WEB-INF/views/order/orderform.html
+4
-4
No files found.
aidea-modules/order-module-web/src/main/webapp/WEB-INF/views/order/orderSendOut.html
View file @
b423cf00
...
...
@@ -216,7 +216,7 @@
<div
class=
"box-footer"
>
#if($shiro.hasPermission("qy:order:edit"))
#if($!{pageType} != 'true')
<button
class=
"btn btn-primary"
onclick=
"save()"
>
订单出库
</button>
<button
class=
"btn btn-primary"
onclick=
"save(
this
)"
>
订单出库
</button>
#end
#end
<a
href=
"#springUrl('/a/order/listout')"
class=
"btn btn-default"
>
取消
</a>
...
...
@@ -487,7 +487,7 @@
if
(
pageType
==
'true'
)
{
HtmlAmount
=
`<input name="sendNum" class="form-control" type="text" style="width: 100px;margin-right: 50px;" readonly value="
${
count
}
"></input>`
;
}
else
{
HtmlAmount
=
`<input name="sendNum" class="form-control" type="text" style="width: 100px;margin-right: 50px;" readonly value="
${
count
}
"></input>`
;
HtmlAmount
=
`<input name="sendNum" class="form-control" type="text" style="width: 100px;margin-right: 50px;" readonly value="
0
"></input>`
;
}
//var HtmlBatchNo = `
<
input
name
=
"batchNo"
class
=
"form-control"
type
=
"text"
style
=
"width: 300px; margin-right: 50px;"
><
/input>`
;
...
...
@@ -517,7 +517,7 @@
/**
* 保存事件
*/
function
save
()
{
function
save
(
ele
)
{
//是否扫码
let
flag
=
false
;
$
(
"#group"
).
find
(
'.list-group-item'
).
each
(
function
(
i
)
{
...
...
@@ -533,6 +533,12 @@
return
;
}
if
(
$
(
"#splitTable"
).
find
(
'.split-translate'
).
length
==
0
)
{
$
(
"#labels"
).
text
(
"请拆分订单且选择批次号!"
);
$
(
'#exampleModal'
).
modal
(
'show'
);
return
;
}
//增加产品批次号
let
drugArr
=
[];
$
(
"#splitTable"
).
find
(
'.split-translate'
).
each
(
function
(
i
,
item
)
{
...
...
@@ -564,8 +570,7 @@
$
(
'#exampleModal'
).
modal
(
'show'
);
return
;
}
$
(
"#save"
).
attr
(
"disabled"
,
true
);
$
(
ele
).
attr
(
"disabled"
,
true
);
var
url
=
"#springUrl('/a/waybill/orderSendOutForWaybill')"
;
$
.
ajax
({
url
:
url
,
...
...
@@ -577,7 +582,7 @@
orderId
:
$
(
"#id"
).
val
(),
datas
:
JSON
.
stringify
(
drugArr
)},
success
:
function
(
rsp
)
{
$
(
"#save"
).
attr
(
"disabled"
,
false
);
$
(
ele
).
attr
(
"disabled"
,
false
);
if
(
rsp
.
errorNo
==
"0"
){
Cfapp
.
alert
({
message
:
"出库成功"
,
...
...
aidea-modules/order-module-web/src/main/webapp/WEB-INF/views/order/orderform.html
View file @
b423cf00
...
...
@@ -286,7 +286,7 @@
<div
class=
"box-footer"
>
#if ($!{isView} != 'true')
#if($shiro.hasPermission("qy:order:edit"))
<button
class=
"btn btn-primary"
onclick=
"save()"
>
确认
</button>
<button
class=
"btn btn-primary"
onclick=
"save(
this
)"
>
确认
</button>
#end
#end
<a
href=
"#springUrl('/a/order/list')"
class=
"btn btn-default"
>
取消
</a>
...
...
@@ -519,7 +519,7 @@
/**
* 需求清单确认提交
*/
function
save
()
{
function
save
(
ele
)
{
var
arr
=
[]
var
obj
=
{}
...
...
@@ -584,8 +584,8 @@
return
;
}
$
(
ele
).
attr
(
"disabled"
,
true
);
var
url
=
"#springUrl('/a/order/formData')"
;
$
(
"#save"
).
attr
(
"disabled"
,
true
);
console
.
log
(
JSON
.
stringify
(
datas
));
$
.
ajax
({
url
:
url
,
...
...
@@ -601,7 +601,7 @@
orderAmount
:
$
(
'input[name="orderAmount"]'
).
val
()
},
success
:
function
(
rsp
)
{
$
(
"#save"
).
attr
(
"disabled"
,
false
);
$
(
ele
).
attr
(
"disabled"
,
false
);
console
.
log
(
rsp
);
if
(
rsp
.
errorNo
==
"0"
)
{
Cfapp
.
alert
({
...
...
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