Commit f2c80704 authored by 顾俭's avatar 顾俭

新增送货单 原产地批次号制造日期默认值

parent e95a481f
......@@ -425,6 +425,18 @@ angular.module('IOne').controller('DeliveryOrderUpdateController', function ($ro
}
});
// aship 定制 原产地批次号制造日期默认值
angular.forEach($scope.currentDeliveryOrderDetails, function (item) {
if (!item.sourceArea) {
item.sourceArea = "-";
}
if (!item.manufacturingDate) {
item.manufacturingDate = new Date();
}
if (!item.batchId) {
item.batchId = $filter('date')(item.manufacturingDate, 'yyyyMMdd');
}
});
//保存用户所选的采购类型、是否钢卷条件
if ($rootScope.userInfo.suppliers.length > 0) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment