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
cc9cc439
Commit
cc9cc439
authored
Sep 01, 2019
by
顾俭
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
启用防伪码送货单 单箱数量=送货数量
parent
f2c80704
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
11 deletions
+18
-11
update.js
...n/resources/static/app/srm/deliveryOrder/update/update.js
+18
-11
No files found.
src/main/resources/static/app/srm/deliveryOrder/update/update.js
View file @
cc9cc439
...
@@ -426,6 +426,7 @@ angular.module('IOne').controller('DeliveryOrderUpdateController', function ($ro
...
@@ -426,6 +426,7 @@ angular.module('IOne').controller('DeliveryOrderUpdateController', function ($ro
});
});
// aship 定制 原产地批次号制造日期默认值
// aship 定制 原产地批次号制造日期默认值
if
(
$scope
.
currentDeliveryOrder
.
supplier
.
useBarcode
==
'Y'
)
{
angular
.
forEach
(
$scope
.
currentDeliveryOrderDetails
,
function
(
item
)
{
angular
.
forEach
(
$scope
.
currentDeliveryOrderDetails
,
function
(
item
)
{
if
(
!
item
.
sourceArea
)
{
if
(
!
item
.
sourceArea
)
{
item
.
sourceArea
=
"-"
;
item
.
sourceArea
=
"-"
;
...
@@ -437,6 +438,7 @@ angular.module('IOne').controller('DeliveryOrderUpdateController', function ($ro
...
@@ -437,6 +438,7 @@ angular.module('IOne').controller('DeliveryOrderUpdateController', function ($ro
item
.
batchId
=
$filter
(
'date'
)(
item
.
manufacturingDate
,
'yyyyMMdd'
);
item
.
batchId
=
$filter
(
'date'
)(
item
.
manufacturingDate
,
'yyyyMMdd'
);
}
}
});
});
}
//保存用户所选的采购类型、是否钢卷条件
//保存用户所选的采购类型、是否钢卷条件
if
(
$rootScope
.
userInfo
.
suppliers
.
length
>
0
)
{
if
(
$rootScope
.
userInfo
.
suppliers
.
length
>
0
)
{
...
@@ -505,6 +507,11 @@ angular.module('IOne').controller('DeliveryOrderUpdateController', function ($ro
...
@@ -505,6 +507,11 @@ angular.module('IOne').controller('DeliveryOrderUpdateController', function ($ro
$scope
.
initAggregationGrid
=
function
()
{
$scope
.
initAggregationGrid
=
function
()
{
angular
.
forEach
(
$scope
.
deliveryOrderAggregationGridOptions
.
data
,
function
(
item
)
{
angular
.
forEach
(
$scope
.
deliveryOrderAggregationGridOptions
.
data
,
function
(
item
)
{
// aship 定制 单箱数量=送货数量
if
(
$scope
.
currentDeliveryOrder
.
supplier
.
useBarcode
==
'Y'
)
{
item
.
amountPerBox
=
item
.
totalAmount
;
}
item
.
getFullPackingBoxAmount
=
function
()
{
item
.
getFullPackingBoxAmount
=
function
()
{
if
(
item
.
amountPerBox
>
0
&&
item
.
totalAmount
>
0
)
{
if
(
item
.
amountPerBox
>
0
&&
item
.
totalAmount
>
0
)
{
return
item
.
fullPackingBoxAmount
=
Math
.
floor
(
item
.
totalAmount
/
item
.
amountPerBox
);
return
item
.
fullPackingBoxAmount
=
Math
.
floor
(
item
.
totalAmount
/
item
.
amountPerBox
);
...
...
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