|
|
@@ -1451,7 +1451,7 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
};
|
|
|
}]);
|
|
|
|
|
|
- app.controller('TruckModalCtrl', ['$scope', '$rootScope', '$modalInstance', 'SaleTruck', 'PurcNotice', 'toaster', '$state', '$filter', function($scope, $rootScope, $modalInstance, SaleTruck, PurcNotice, toaster, $state, $filter){
|
|
|
+ app.controller('TruckModalCtrl', ['$scope', '$rootScope', '$modalInstance', 'SaleTruck', 'PurcNotice', 'toaster', '$state', '$filter', '$timeout', function($scope, $rootScope, $modalInstance, SaleTruck, PurcNotice, toaster, $state, $filter, $timeout){
|
|
|
$scope.saleSend = {sendItems: []};
|
|
|
SaleTruck.detail({}, function(data){
|
|
|
// 按物料编号排序
|
|
|
@@ -1479,6 +1479,15 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
$scope.cancel = function() {
|
|
|
$modalInstance.close();
|
|
|
};
|
|
|
+
|
|
|
+ $scope.lockstatus = false;
|
|
|
+ // 锁定时间按钮5秒
|
|
|
+ $scope.lockClick = function() {
|
|
|
+ $scope.lockstatus = true;
|
|
|
+ $timeout(function() {
|
|
|
+ $scope.lockstatus = false;
|
|
|
+ }, 5000);
|
|
|
+ }
|
|
|
$scope.send = function() {// 发货
|
|
|
if(!$scope.saleSend.code || $scope.saleSend.code == '') {//送货单号为空
|
|
|
toaster.pop('error', '错误', '请输入送货单号');
|