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
2cb62142
Commit
2cb62142
authored
Aug 12, 2019
by
顾俭
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
aship/aship#1 防伪码功能:申请防伪码接口
parent
1546d013
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
33 additions
and
8 deletions
+33
-8
BaseSupplierFileDto.java
...ain/java/com/i1/srm/base/web/dto/BaseSupplierFileDto.java
+9
-0
query.html
...n/resources/static/app/srm/purchaseOrder/query/query.html
+2
-1
query.js
...ain/resources/static/app/srm/purchaseOrder/query/query.js
+22
-7
No files found.
src/main/java/com/i1/srm/base/web/dto/BaseSupplierFileDto.java
View file @
2cb62142
...
...
@@ -122,6 +122,7 @@ public class BaseSupplierFileDto extends Dto<BaseSupplierFile> {
private
String
stopReason
;
private
String
uploadErp
;
private
String
uploadErpResult
;
private
String
useBarcode
;
public
String
getSupplierUid
()
{
return
supplierUid
;
...
...
@@ -978,4 +979,12 @@ public class BaseSupplierFileDto extends Dto<BaseSupplierFile> {
public
void
setUploadErpResult
(
String
uploadErpResult
)
{
this
.
uploadErpResult
=
uploadErpResult
;
}
public
String
getUseBarcode
()
{
return
useBarcode
;
}
public
void
setUseBarcode
(
String
useBarcode
)
{
this
.
useBarcode
=
useBarcode
;
}
}
src/main/resources/static/app/srm/purchaseOrder/query/query.html
View file @
2cb62142
...
...
@@ -120,7 +120,8 @@
<div
class=
"button-bar"
>
<button
class=
"btn btn-default mrs"
ng-click=
"view()"
ng-disabled=
"!currentPurchaseOrderMaster"
acl-check
func=
" 'PURCHASE_ORDER_FUNCTION' "
resource=
" 'VIEW' "
>
查看
</button>
<button
class=
"btn btn-default mrs"
ng-click=
"openReturnPage()"
ng-disabled=
"!canDoReturn()"
acl-check
func=
" 'PURCHASE_ORDER_FUNCTION' "
resource=
" 'RETURN' "
>
回执
</button>
<button
class=
"btn btn-default mrs"
data-toggle=
"modal"
data-target=
"#get-barcode-dlg"
<button
class=
"btn btn-default mrs"
ng-if=
"queryCondition.poMst.supplier && queryCondition.poMst.supplier.useBarcode == 'Y'"
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-click=
"clickExport()"
ng-disabled=
"gridOptions.data.length == 0"
acl-check
func=
" 'PURCHASE_ORDER_FUNCTION' "
resource=
" 'EXPORT' "
>
导出
</button>
...
...
src/main/resources/static/app/srm/purchaseOrder/query/query.js
View file @
2cb62142
...
...
@@ -2,7 +2,7 @@ angular.module('IOne').controller('PurchaseOrderQueryController', function ($sco
PoMstFileService
,
PoDtlFileService
,
BaseFactoryFileService
,
AuthService
,
BaseSupplierFileService
,
BaseProductFileService
,
UtilService
,
Constants
)
{
//variables
var
interval
;
var
interval
s
=
[]
;
$scope
.
Constants
=
Constants
;
$scope
.
baseProductFileService
=
BaseProductFileService
;
...
...
@@ -51,7 +51,8 @@ angular.module('IOne').controller('PurchaseOrderQueryController', function ($sco
if
(
$scope
.
queryCondition
.
poMst
.
supplier
.
id
)
{
$scope
.
queryCondition
.
poMst
.
supplier
=
{
id
:
$scope
.
queryCondition
.
poMst
.
supplier
.
id
,
name
:
$scope
.
queryCondition
.
poMst
.
supplier
.
name
name
:
$scope
.
queryCondition
.
poMst
.
supplier
.
name
,
useBarcode
:
$scope
.
queryCondition
.
poMst
.
supplier
.
useBarcode
};
}
...
...
@@ -144,9 +145,9 @@ angular.module('IOne').controller('PurchaseOrderQueryController', function ($sco
$scope
.
gridOptions
.
onRegisterApi
=
function
(
gridApi
)
{
//set gridApi on scope
$scope
.
gridApi
=
gridApi
;
interval
=
$interval
(
function
()
{
interval
s
.
push
(
$interval
(
function
()
{
$scope
.
gridApi
.
core
.
handleWindowResize
();
},
100
);
},
100
)
)
;
gridApi
.
selection
.
on
.
rowSelectionChanged
(
$scope
,
function
(
row
)
{
if
(
row
.
isSelected
)
{
...
...
@@ -223,7 +224,7 @@ angular.module('IOne').controller('PurchaseOrderQueryController', function ($sco
UtilService
.
exportExcel
(
jsonData
,
'采购单'
,
header
);
});
}
}
;
$scope
.
canDoReturn
=
function
()
{
...
...
@@ -244,8 +245,10 @@ angular.module('IOne').controller('PurchaseOrderQueryController', function ($sco
});
$scope
.
$on
(
"$destroy"
,
function
()
{
if
(
interval
)
{
$interval
.
cancel
(
interval
);
if
(
intervals
)
{
angular
.
forEach
(
intervals
,
function
(
item
)
{
$interval
.
cancel
(
item
);
})
}
});
...
...
@@ -273,6 +276,10 @@ angular.module('IOne').controller('PurchaseOrderQueryController', function ($sco
}
};
$scope
.
isAdmin
=
function
()
{
return
$rootScope
.
isAdmin
;
};
// 申请防伪码
$scope
.
barcodeGridOptions
=
{
enableRowSelection
:
false
,
...
...
@@ -295,6 +302,13 @@ angular.module('IOne').controller('PurchaseOrderQueryController', function ($sco
data
:
[]
};
$scope
.
barcodeGridOptions
.
onRegisterApi
=
function
(
barcodeGridApi
)
{
$scope
.
barcodeGridApi
=
barcodeGridApi
;
intervals
.
push
(
$interval
(
function
()
{
$scope
.
barcodeGridApi
.
core
.
handleWindowResize
();
},
100
));
};
$scope
.
genBarcodeClick
=
function
()
{
var
barcodeInput
=
{};
var
barcodeDtlInput
=
[];
...
...
@@ -310,6 +324,7 @@ angular.module('IOne').controller('PurchaseOrderQueryController', function ($sco
}
});
barcodeInput
.
dtl
=
barcodeDtlInput
;
PoMstFileService
.
genBarcode
(
barcodeInput
).
then
(
function
(
response
)
{
if
(
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