|
|
@@ -11901,6 +11901,19 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
$scope.deOrder.usertel = data.vendorUser.userTel;
|
|
|
})
|
|
|
}
|
|
|
+
|
|
|
+ // 检验订单编号是否存在
|
|
|
+ $scope.checkOrder = function(salecode, deputyuu) {
|
|
|
+ DeputyOrder.checkOrders({salecode: salecode, deputyuu: deputyuu}, {}, function(data) {
|
|
|
+ if(data.info) {
|
|
|
+ toaster.pop('warning', '提示', data.info);
|
|
|
+ }
|
|
|
+ }, function(response) {
|
|
|
+ toaster.pop('error', '提示', response.data);
|
|
|
+ })
|
|
|
+ }
|
|
|
+
|
|
|
+ // 保存
|
|
|
$scope.save = function() {
|
|
|
$scope.deOrder.entrystatus = '保存';
|
|
|
angular.forEach($scope.deOrder.deputyOrderItems, function(item) {
|
|
|
@@ -11923,6 +11936,7 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ // 提交
|
|
|
$scope.submit = function() {
|
|
|
$scope.deOrder.entrystatus = '已提交';
|
|
|
angular.forEach($scope.deOrder.deputyOrderItems, function(item) {
|
|
|
@@ -12198,6 +12212,18 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
$scope.deOrder.$editing = false;
|
|
|
}
|
|
|
|
|
|
+ // 检验订单编号是否存在
|
|
|
+ $scope.checkOrder = function(salecode, deputyuu) {
|
|
|
+ DeputyOrder.checkOrders({salecode: salecode, deputyuu: deputyuu}, {}, function(data) {
|
|
|
+ if(data.info) {
|
|
|
+ toaster.pop('warning', '提示', data.info);
|
|
|
+ }
|
|
|
+ }, function(response) {
|
|
|
+ toaster.pop('error', '提示', response.data);
|
|
|
+ })
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
// 保存
|
|
|
$scope.save = function() {
|
|
|
$scope.deOrder.entrystatus = '保存';
|