|
|
@@ -9089,6 +9089,7 @@ app.controller('SaleSendCtrl', ['$scope', '$filter', 'SaleSend', 'ngTableParams'
|
|
|
$scope.workovertime = false;
|
|
|
$scope.workdaily = false;
|
|
|
$scope.feeplease = false;
|
|
|
+ $scope.signapp = false;
|
|
|
appFlow.viewAppFlow({}, function(data) {// 获取已设置的列表
|
|
|
$scope.nodes = data;
|
|
|
angular.forEach($scope.nodes, function(node) {
|
|
|
@@ -9104,6 +9105,9 @@ app.controller('SaleSendCtrl', ['$scope', '$filter', 'SaleSend', 'ngTableParams'
|
|
|
if(node.appname = '出差单') {
|
|
|
$scope.feeplease = true;
|
|
|
}
|
|
|
+ if(node.appname = '申诉单') {
|
|
|
+ $scope.signapp = true;
|
|
|
+ }
|
|
|
});
|
|
|
}, function(response) {
|
|
|
|
|
|
@@ -9220,6 +9224,34 @@ app.controller('SaleSendCtrl', ['$scope', '$filter', 'SaleSend', 'ngTableParams'
|
|
|
|
|
|
});
|
|
|
}
|
|
|
+
|
|
|
+ $scope.signAppSet = function() {
|
|
|
+ var modalInstance = $modal.open({
|
|
|
+ templateUrl: 'static/tpl/index/approvalFlow/step1.html',
|
|
|
+ controller: 'NoteStep1Ctrl',
|
|
|
+ size: 'lg',
|
|
|
+ resolve: {
|
|
|
+ AppName: function() {
|
|
|
+ return '申诉单';
|
|
|
+ }
|
|
|
+ }
|
|
|
+ });
|
|
|
+
|
|
|
+ modalInstance.result.then(function(data) {
|
|
|
+ appFlow.saveAppFlowSet({json: data}, {}, function(data) {
|
|
|
+ if(data.error) {
|
|
|
+ toaster.pop('error', '提示', data.error);
|
|
|
+ }
|
|
|
+ if(data.success) {
|
|
|
+ toaster.pop('success', '提示', data.success);
|
|
|
+ }
|
|
|
+ }, function(response) {
|
|
|
+
|
|
|
+ });
|
|
|
+ }, function(){
|
|
|
+
|
|
|
+ });
|
|
|
+ }
|
|
|
}]);
|
|
|
|
|
|
/**
|
|
|
@@ -9906,6 +9938,7 @@ app.controller('SaleSendCtrl', ['$scope', '$filter', 'SaleSend', 'ngTableParams'
|
|
|
};
|
|
|
|
|
|
// 删除(在录入状态)
|
|
|
+ // TODO
|
|
|
$scope.delete = function(tender) {
|
|
|
PurcTender.deleteOne({}, tender, function() {
|
|
|
toaster.pop('info', '提示', '删除成功');
|