1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
webservices.factory('vatWorkflowService', ['$http', 'apiConfig', 'enums', function ($http, apiConfig, enums) {
'use strict';
return {
sample: function () {
return $http.get('url', apiConfig.createVat());
},
setProcessLog: function (status,dbName, periodId, dictKey, isFinished) {
return $http.get('/workflow/setProcessLog/' + status + '/' + dbName + '/' + periodId + '/' + dictKey + '/' + isFinished, apiConfig.createVat());
},
setWorkflowNodeLog: function (status, dbName, periodId, dictKey, isFinished) {
return $http.get('/workflow/setProcessLog/' + status + '/' + dbName + '/' + periodId + '/' + dictKey + '/' + isFinished, apiConfig.createVat());
},
//添加TaxAdmin.WorkflowApproveReportLog和项目数据下的OperationLog表的数据
addApproveReportLog: function (approveLog) {
return $http.post('/workflow/addApproveReportLog/', approveLog, apiConfig.createVat());
},
getWorkflowDetailByDb: function (dbName, periodId) {
return $http.get('/workflow/getWorkflowDetailByDb/' + dbName + '/' + periodId, apiConfig.createVat());
},
execute: function () {
return $http.get('/WorkflowMessageJob/execute',apiConfig.createVat());
},
addExceptionMessage: function(exMsg){
return $http.post('/WorkflowMessageJob/addExceptionMessage/',exMsg, apiConfig.createVat());
},
addErpImportExceptionMessage: function (dbName, periodId, erpValidationTypeId) {
// return $http.get('/WorkflowMessageJob/addErpImportExceptionMessage/' + dbName + "/" + periodId + '/' + erpValidationTypeId, apiConfig.createVat());
},
addApproveMessage: function (approveMsg) {
return $http.post('/WorkflowMessageJob/addApproveMessage/', approveMsg, apiConfig.createVat());
},
getWorkflowApproveReportLog: function (dbName, period, orderIndex,operationTypeId,templateCode){
return $http.get('/workflow/getWorkflowApproveReportLog/' + dbName + "/" + period + '/' + orderIndex + '/' + operationTypeId + '/' + templateCode, apiConfig.createVat());
},
getWorkflowApproveReportLogNoLevel: function (dbName, period, operationTypeId, templateCode) {
return $http.get('/workflow/getWorkflowApproveReportLogNoLevel/' + dbName + "/" + period + '/' + operationTypeId + '/' + templateCode, apiConfig.createVat());
},
isExistApproveLogSubmitItem: function (dbName, period, orderIndex, operationTypeId, templateCode) {
return $http.get('/workflow/isExistApproveLogSubmitItem/' + dbName + "/" + period + '/' + orderIndex + '/' + operationTypeId + '/' + templateCode, apiConfig.createVat());
}
};
}]);