Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
srm
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
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
Jobs
Commits
Open sidebar
aship
srm
Commits
e3de36b7
Commit
e3de36b7
authored
Sep 08, 2019
by
顾俭
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
防伪码送货单 取消审核
parent
a7f8db21
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
2 deletions
+15
-2
DoMstFileController.java
...ava/com/i1/srm/deliveryOrder/web/DoMstFileController.java
+9
-2
query.html
...n/resources/static/app/srm/deliveryOrder/query/query.html
+6
-0
No files found.
src/main/java/com/i1/srm/deliveryOrder/web/DoMstFileController.java
View file @
e3de36b7
...
...
@@ -81,8 +81,15 @@ public class DoMstFileController extends AbstractController<DoMstFile, DoMstFile
try
{
DoMstFile
doMstFile
=
service
.
get
(
id
);
if
(
doMstFile
!=
null
)
{
if
(
doMstFile
.
getReleased
().
equalsIgnoreCase
(
DoMstFile
.
UNRELEASED
))
{
throw
new
IOneServiceException
(
"该送货单未发布,不能撤销"
,
"该送货单未发布,不能撤销"
);
if
(
"Y"
.
equals
(
doMstFile
.
getSupplier
().
getUseBarcode
()))
{
if
(
doMstFile
.
getReleased
().
equalsIgnoreCase
(
DoMstFile
.
UNRELEASED
)
&&
doMstFile
.
getConfirm
().
equalsIgnoreCase
(
DoMstFile
.
UNCONFIRMED
))
{
throw
new
IOneServiceException
(
"该送货单未审核未发布,不能取消审核"
,
"该送货单未审核未发布,不能取消审核"
);
}
}
else
{
if
(
doMstFile
.
getReleased
().
equalsIgnoreCase
(
DoMstFile
.
UNRELEASED
))
{
throw
new
IOneServiceException
(
"该送货单未发布,不能撤销"
,
"该送货单未发布,不能撤销"
);
}
}
return
deliveryOrderWithdrawClient
.
withdraw
(
id
);
}
else
{
...
...
src/main/resources/static/app/srm/deliveryOrder/query/query.html
View file @
e3de36b7
...
...
@@ -174,11 +174,17 @@
acl-check
func=
" 'DELIVERY_ORDER_FUNCTION' "
resource=
" 'UNDO_RELEASE' "
ng-if=
"queryCondition.poMst.supplier.useBarcode !== 'Y'"
>
发布撤回
</button>
<!--启用防伪码:-->
<button
class=
"btn btn-default mrs"
ng-click=
"release()"
ng-disabled=
"!currentDeliveryOrder || currentDeliveryOrder.confirm == '1' || currentDeliveryOrder.released == '1' || uiOption.releasing"
acl-check
func=
" 'DELIVERY_ORDER_FUNCTION' "
resource=
" 'RELEASE' "
ng-if=
"queryCondition.poMst.supplier.useBarcode === 'Y'"
>
审核
</button>
<button
class=
"btn btn-default mrs"
ng-click=
"unrelease()"
ng-disabled=
"!currentDeliveryOrder || (currentDeliveryOrder.released == '0' && currentDeliveryOrder.confirm == '0') || uiOption.unReleasing"
acl-check
func=
" 'DELIVERY_ORDER_FUNCTION' "
resource=
" 'UNDO_RELEASE' "
ng-if=
"queryCondition.poMst.supplier.useBarcode === 'Y'"
>
取消审核
</button>
<button
class=
"btn btn-default mrs"
ng-click=
"clickExport()"
ng-disabled=
"gridOptions.data.length == 0"
acl-check
func=
" 'DELIVERY_ORDER_FUNCTION' "
resource=
" 'EXPORT' "
>
导出
</button>
...
...
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