Commit f493d4d1 authored by Administrator's avatar Administrator

更新详细设计文档

parent f6554edf
...@@ -55,7 +55,7 @@ public class YingxinApi { ...@@ -55,7 +55,7 @@ public class YingxinApi {
* *
* *
*/ */
@RequestMapping("getCbCountInfo") @RequestMapping("getCardBodyCount")
public String getCbCountInfo(@RequestParam("startTime")String startTime ,@RequestParam("endTime")String endTime,HttpServletResponse resp) { public String getCbCountInfo(@RequestParam("startTime")String startTime ,@RequestParam("endTime")String endTime,HttpServletResponse resp) {
List<Map<String, Object>> list=cardBodyService.getCbCount(startTime, endTime); List<Map<String, Object>> list=cardBodyService.getCbCount(startTime, endTime);
YXJSONResponse yxjsonResponse = new YXJSONResponse(); YXJSONResponse yxjsonResponse = new YXJSONResponse();
......
...@@ -454,6 +454,21 @@ app.service('MessageService', function (ngDialog) { ...@@ -454,6 +454,21 @@ app.service('MessageService', function (ngDialog) {
MessageService.httpRequestFailed(JSON.stringify(errA)) MessageService.httpRequestFailed(JSON.stringify(errA))
}) })
}, },
updateFailedCard:function(failedCardId,state,success){
$http({
method: 'GET',
url: "../user/updateFailedinfo" + urlTimeStamp(),
params:{
failedCardId:failedCardId,
state:state
}
}).then(function successCallback(response) {
success(response.data)
},function(err){
var errA = {Error:true, ReturnCode:err.status, ReturnMsg:"API访问返回错误"}
MessageService.httpRequestFailed(JSON.stringify(errA))
})
},
findFailedinfo:function(state,workShop,success){ findFailedinfo:function(state,workShop,success){
$http({ $http({
method: 'GET', method: 'GET',
......
...@@ -90,6 +90,8 @@ app.controller('addRemainCardCtrl', ['$scope', '$rootScope', '$http', '$state', ...@@ -90,6 +90,8 @@ app.controller('addRemainCardCtrl', ['$scope', '$rootScope', '$http', '$state',
console.log($rootScope.arr) console.log($rootScope.arr)
$(".confirmBtn").attr("disabled", true); $(".confirmBtn").attr("disabled", true);
if(count==$scope.dataInfo.length){ if(count==$scope.dataInfo.length){
console.log($rootScope.arr,"---$rootScope.arr---")
HttpService.addRemainCard($rootScope.arr,function(data){ HttpService.addRemainCard($rootScope.arr,function(data){
$scope.isShowSuccess = 1; $scope.isShowSuccess = 1;
$scope.AddSuccess = data.respData.string; $scope.AddSuccess = data.respData.string;
......
...@@ -109,8 +109,8 @@ app.controller('failedCardCtrl', ['$scope', '$rootScope', '$http', '$state', '$f ...@@ -109,8 +109,8 @@ app.controller('failedCardCtrl', ['$scope', '$rootScope', '$http', '$state', '$f
] ]
$scope.finishClick = function (taskId, userState) { $scope.finishClick = function (failedCardId,userState) {
HttpService.updateProductionTask(taskId, userState, function (data) { HttpService.updateFailedCard(failedCardId, userState, function (data) {
//点击确认成功后 再次废证列表 //点击确认成功后 再次废证列表
getFailedCardListData($rootScope.loginData.state, $rootScope.loginData.workshop); getFailedCardListData($rootScope.loginData.state, $rootScope.loginData.workshop);
}) })
......
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