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
e8a127f1
Commit
e8a127f1
authored
Aug 13, 2019
by
顾俭
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
aship/aship#2 防伪码功能-打印:前端和接口地址配置
parent
36592699
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
60 additions
and
6 deletions
+60
-6
application.yml
deploy/IOne-SRM-Prod/application.yml
+4
-0
application.yml
deploy/IOne-SRM-Staging/application.yml
+4
-0
BarCodePrintClient.java
...main/java/com/i1/erp/barcode/soap/BarCodePrintClient.java
+4
-0
Function.java
src/main/java/com/i1/srm/am/entity/Function.java
+1
-1
Resource.java
src/main/java/com/i1/srm/am/entity/Resource.java
+2
-1
PoBarcodePrintDto.java
...a/com/i1/srm/purchaseOrder/web/dto/PoBarcodePrintDto.java
+4
-0
application.yml
src/main/resources/application.yml
+9
-1
po.js
src/main/resources/static/app/srm/purchaseOrder/po.js
+3
-2
query.html
...n/resources/static/app/srm/purchaseOrder/query/query.html
+4
-0
query.js
...ain/resources/static/app/srm/purchaseOrder/query/query.js
+25
-1
No files found.
deploy/IOne-SRM-Prod/application.yml
View file @
e8a127f1
...
...
@@ -54,6 +54,10 @@ srm:
supplierErpCheck
:
true
supplierErpSend
:
true
genBarcode
:
SRM_genbarcode
printBarcode
:
SRM_printbarcode
voidBarcode
:
SRM_voidbarcode
getBarcodeStatus
:
SRM_getbarcodestatus
fahuoConfirm
:
SRM_fahuoconfirm
email
:
enable
:
true
recipients
:
gujian@benchmarkchina.com,raven@benchmarkchina.com
...
...
deploy/IOne-SRM-Staging/application.yml
View file @
e8a127f1
...
...
@@ -54,6 +54,10 @@ srm:
supplierErpCheck
:
true
supplierErpSend
:
true
genBarcode
:
SRM_genbarcode
printBarcode
:
SRM_printbarcode
voidBarcode
:
SRM_voidbarcode
getBarcodeStatus
:
SRM_getbarcodestatus
fahuoConfirm
:
SRM_fahuoconfirm
email
:
enable
:
true
recipients
:
gujian@benchmarkchina.com,raven@benchmarkchina.com
...
...
src/main/java/com/i1/erp/barcode/soap/BarCodePrintClient.java
0 → 100644
View file @
e8a127f1
package
com
.
i1
.
erp
.
barcode
.
soap
;
public
class
BarCodePrintClient
{
}
src/main/java/com/i1/srm/am/entity/Function.java
View file @
e8a127f1
...
...
@@ -15,7 +15,7 @@ import static com.i1.srm.am.entity.Resource.*;
public
enum
Function
{
INDEX_NOTICE_FUNCTION
(
0
,
0
,
"首页公告"
,
Lists
.
newArrayList
(
QUERY
,
CREATE
,
VIEW_NOTICE_HISTORY
)),
//1采购协同管理
PURCHASE_ORDER_FUNCTION
(
1
,
11
,
"采购单管理"
,
Lists
.
newArrayList
(
QUERY
,
VIEW
,
RETURN
,
EXPORT
,
GEN_BARCODE
)),
PURCHASE_ORDER_FUNCTION
(
1
,
11
,
"采购单管理"
,
Lists
.
newArrayList
(
QUERY
,
VIEW
,
RETURN
,
EXPORT
,
GEN_BARCODE
,
PRINT_BARCODE
)),
PURCHASE_ORDER_CHANGE_FUNCTION
(
14
,
12
,
"采购变更单管理"
,
Lists
.
newArrayList
(
QUERY
,
VIEW
,
EXPORT
,
RETURN
,
CONFIRM
,
RETURN_ACCEPT
,
RETURN_REJECT
,
CONFIRM_ACCEPT
,
CONFIRM_REJECT
)),
//2送货协同管理
...
...
src/main/java/com/i1/srm/am/entity/Resource.java
View file @
e8a127f1
...
...
@@ -63,7 +63,8 @@ public enum Resource {
CHECK_RELEASE
(
53
,
"审核发布"
),
ADDITIONAL_RECORDING
(
54
,
"补录税票"
),
SEND_TO_ERP
(
55
,
"上传ERP"
),
GEN_BARCODE
(
56
,
"申请防伪码"
)
GEN_BARCODE
(
56
,
"申请防伪码"
),
PRINT_BARCODE
(
57
,
"打印防伪码"
)
;
private
Integer
id
;
...
...
src/main/java/com/i1/srm/purchaseOrder/web/dto/PoBarcodePrintDto.java
0 → 100644
View file @
e8a127f1
package
com
.
i1
.
srm
.
purchaseOrder
.
web
.
dto
;
public
class
PoBarcodePrintDto
{
}
src/main/resources/application.yml
View file @
e8a127f1
...
...
@@ -104,7 +104,10 @@ srm:
supplierErpCheck
:
false
supplierErpSend
:
false
genBarcode
:
SRM_genbarcode
printBarcode
:
SRM_printbarcode
voidBarcode
:
SRM_voidbarcode
getBarcodeStatus
:
SRM_getbarcodestatus
fahuoConfirm
:
SRM_fahuoconfirm
email
:
enable
:
true
recipients
:
gujian@benchmarkchina.com,raven@benchmarkchina.com
...
...
@@ -205,6 +208,11 @@ srm:
defaultPoChgReturnType
:
1
supplierErpCheck
:
false
supplierErpSend
:
false
genBarcode
:
SRM_genbarcode
printBarcode
:
SRM_printbarcode
voidBarcode
:
SRM_voidbarcode
getBarcodeStatus
:
SRM_getbarcodestatus
fahuoConfirm
:
SRM_fahuoconfirm
email
:
enable
:
true
recipients
:
gujian@benchmarkchina.com,raven@benchmarkchina.com
...
...
src/main/resources/static/app/srm/purchaseOrder/po.js
View file @
e8a127f1
...
...
@@ -30,13 +30,14 @@
}
);
},
getUnReturnedOrders
:
function
()
{
return
this
.
httpService
.
get
(
'/purchaseOrderDetails/getSummary/getUnReturnedOrders'
);
},
getOverdueUnfinishedOrders
:
function
()
{
return
this
.
httpService
.
get
(
'/purchaseOrderDetails/getSummary/getOverdueUnfinishedOrders'
);
},
printBarcode
:
function
(
id
)
{
return
this
.
httpService
.
get
(
'/purchaseOrderDetails/'
+
id
+
"/printBarcode"
);
}
});
});
...
...
src/main/resources/static/app/srm/purchaseOrder/query/query.html
View file @
e8a127f1
...
...
@@ -124,6 +124,10 @@
data-toggle=
"modal"
data-target=
"#get-barcode-dlg"
ng-disabled=
"!currentPurchaseOrderMaster"
acl-check
func=
" 'PURCHASE_ORDER_FUNCTION' "
resource=
" 'GEN_BARCODE' "
>
申请防伪码
</button>
<button
class=
"btn btn-default mrs"
ng-if=
"queryCondition.poMst.supplier && queryCondition.poMst.supplier.useBarcode == 'Y'"
ng-click=
"printBarcodeClick()"
ng-disabled=
"!currentPurchaseOrderMaster"
acl-check
func=
" 'PURCHASE_ORDER_FUNCTION' "
resource=
" 'PRINT_BARCODE' "
>
打印防伪码
</button>
<button
class=
"btn btn-default mrs"
ng-click=
"clickExport()"
ng-disabled=
"gridOptions.data.length == 0"
acl-check
func=
" 'PURCHASE_ORDER_FUNCTION' "
resource=
" 'EXPORT' "
>
导出
</button>
<ul
uib-pagination
total-items=
"pageOption.totalElements"
ng-model=
"pageOption.page"
items-per-page=
"pageOption.size"
ng-change=
"getPurchaseOrderDetails()"
class=
"pagination-sm pull-right mbn mtn"
boundary-links=
"true"
rotate=
"false"
max-size=
"5"
...
...
src/main/resources/static/app/srm/purchaseOrder/query/query.js
View file @
e8a127f1
angular
.
module
(
'IOne'
).
controller
(
'PurchaseOrderQueryController'
,
function
(
$scope
,
$rootScope
,
$timeout
,
$log
,
$interval
,
$routeParams
,
angular
.
module
(
'IOne'
).
controller
(
'PurchaseOrderQueryController'
,
function
(
$scope
,
$rootScope
,
$timeout
,
$log
,
$interval
,
$routeParams
,
$window
,
PoMstFileService
,
PoDtlFileService
,
BaseFactoryFileService
,
AuthService
,
BaseSupplierFileService
,
BaseProductFileService
,
UtilService
,
Constants
)
{
//variables
...
...
@@ -373,4 +373,28 @@ angular.module('IOne').controller('PurchaseOrderQueryController', function ($sco
});
});
// 打印防伪码
// printBarcode
$scope
.
printBarcodeClick
=
function
()
{
// to call poDtl api, to call soap ws, to get print urls, to open windows
PoDtlFileService
.
printBarcode
(
$scope
.
selectedPurchaseOrder
.
id
).
then
(
function
(
response
)
{
if
(
response
.
data
&&
response
.
data
.
code
==
'0'
)
{
angular
.
forEach
(
response
.
data
.
printUrls
,
function
(
url
)
{
try
{
$window
.
open
(
url
);
}
catch
(
e
)
{
console
.
error
(
e
);
}
});
}
else
{
UtilService
.
showError
(
"打印防伪码失败:<br>"
+
response
.
data
.
message
);
}
},
function
(
response
)
{
UtilService
.
showError
(
"打印防伪码失败:<br>"
+
response
.
data
);
}
)
}
});
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