|
|
@@ -16,6 +16,7 @@ angular.module('app.storage').controller("checkFoodSituationListCtrl",
|
|
16
|
16
|
}
|
|
17
|
17
|
$scope.findQuailckCardList($scope.GrainCardByIdObj.id);
|
|
18
|
18
|
$scope.findGrainCardList($scope.GrainCardByIdObj.qualitycheckId);
|
|
|
19
|
+ $scope.findailyCardList();
|
|
19
|
20
|
}, function (data) {
|
|
20
|
21
|
console.log(data);
|
|
21
|
22
|
});
|
|
|
@@ -60,22 +61,6 @@ angular.module('app.storage').controller("checkFoodSituationListCtrl",
|
|
60
|
61
|
$scope.grainCardView.zhycsj = $filter('date')($scope.grainCardView.zhycsj, "yyyy-MM-dd HH:mm:ss");
|
|
61
|
62
|
$scope.grainCardView.checkTime = $filter('date')($scope.grainCardView.checkTime, "yyyy-MM-dd");
|
|
62
|
63
|
|
|
63
|
|
- //小麦及混合小麦111 ,玉米112,大豆141,稻谷113 市平台
|
|
64
|
|
- //小麦及混合小麦3164,玉米3165,大豆2777,稻谷3166
|
|
65
|
|
-// if($stateParams.grainVarietyNum == 1110000 || $stateParams.grainVarietyNum == 111){
|
|
66
|
|
-// $scope.grainCardView.subType = 3164;
|
|
67
|
|
-// }else if($stateParams.grainVarietyNum == 1120000 || $stateParams.grainVarietyNum == 112){
|
|
68
|
|
-// $scope.grainCardView.subType = 3165;
|
|
69
|
|
-// }else if($stateParams.grainVarietyNum == 1410000 || $stateParams.grainVarietyNum == 141){
|
|
70
|
|
-// $scope.grainCardView.subType = 2777;
|
|
71
|
|
-// }else if($stateParams.grainVarietyNum == 1130000 || $stateParams.grainVarietyNum == 113){
|
|
72
|
|
-// $scope.grainCardView.subType = 3166;
|
|
73
|
|
-// }else if($stateParams.grainVarietyNum == null || $stateParams.grainVarietyNum == '' || typeof $stateParams.grainVarietyNum == 'undefined') {
|
|
74
|
|
-// $scope.grainCardView.subType = null;
|
|
75
|
|
-// }else{
|
|
76
|
|
-// $scope.grainCardView.subType = 7052;
|
|
77
|
|
-// }
|
|
78
|
|
-
|
|
79
|
64
|
if ($scope.grainCardView.storehouseYG == 2) {
|
|
80
|
65
|
$scope.grainCardView.useDate = $filter('date')($scope.grainCardView.useDate, "yyyy-MM-dd");
|
|
81
|
66
|
$scope.grainCardView.useDate = $scope.grainCardView.useDate.substr(0,4);//建设年份
|
|
|
@@ -116,9 +101,9 @@ angular.module('app.storage').controller("checkFoodSituationListCtrl",
|
|
116
|
101
|
}
|
|
117
|
102
|
|
|
118
|
103
|
//======日常检查==========
|
|
119
|
|
- $scope.search = {cardNum:$stateParams.id,storehouseId:$stateParams.storehouseId, warehouseId:$stateParams.warehouseId};
|
|
120
|
104
|
$scope.findailyCardList = function () {
|
|
121
|
105
|
// 日常检查列表
|
|
|
106
|
+ $scope.search = {cardNum:$stateParams.id,storehouseId:$scope.GrainCardByIdObj.storehouseId, warehouseId:$scope.GrainCardByIdObj.warehouseId};
|
|
122
|
107
|
grainDailyCardService.findDailyCardList($scope.search).then(function (data) {
|
|
123
|
108
|
$scope.dailyCardList = data.dailyList;
|
|
124
|
109
|
$scope.dailyCardOneList = data.dailyListOne;
|
|
|
@@ -127,7 +112,6 @@ angular.module('app.storage').controller("checkFoodSituationListCtrl",
|
|
127
|
112
|
console.log(data);
|
|
128
|
113
|
});
|
|
129
|
114
|
};
|
|
130
|
|
- $scope.findailyCardList();
|
|
131
|
115
|
|
|
132
|
116
|
// ------------------------温度卡start-------------------
|
|
133
|
117
|
// 温度卡查看列表
|
|
|
@@ -178,7 +162,7 @@ angular.module('app.storage').controller("checkFoodSituationListCtrl",
|
|
178
|
162
|
$state.go('app.storage.foodSituation.addTemperatureTest', {
|
|
179
|
163
|
cardNum: $stateParams.id,
|
|
180
|
164
|
// storehouseNum: $stateParams.storehouseNum,
|
|
181
|
|
- storehouseNum: $rootScope.storehouseObj[$stateParams.storehouseId].storehouseCode,
|
|
|
165
|
+ storehouseNum: $rootScope.storehouseObj[$scope.GrainCardByIdObj.storehouseId].storehouseCode,
|
|
182
|
166
|
warehouseNum: $scope.GrainCardByIdObj.warehouseNum,
|
|
183
|
167
|
grainRemark: $scope.grainRemark
|
|
184
|
168
|
})
|
|
|
@@ -241,9 +225,9 @@ angular.module('app.storage').controller("checkFoodSituationListCtrl",
|
|
241
|
225
|
$scope.moistureAddData = function () {
|
|
242
|
226
|
$state.go('app.storage.foodSituation.addMoistureTest',{
|
|
243
|
227
|
warterId: $stateParams.id,
|
|
244
|
|
- storehouse: $stateParams.storehouseId,
|
|
245
|
|
- warehouse: $stateParams.warehouseId,
|
|
246
|
|
- warterRemark: $stateParams.warterRemark
|
|
|
228
|
+ storehouse: $scope.GrainCardByIdObj.storehouseId,
|
|
|
229
|
+ warehouse: $scope.GrainCardByIdObj.warehouseId,
|
|
|
230
|
+ warterRemark: $scope.warterData.warterremark
|
|
247
|
231
|
});
|
|
248
|
232
|
}
|
|
249
|
233
|
|
|
|
@@ -292,8 +276,8 @@ angular.module('app.storage').controller("checkFoodSituationListCtrl",
|
|
292
|
276
|
$scope.dailyAddData = function () {
|
|
293
|
277
|
$state.go('app.storage.foodSituation.addDailyTest', {
|
|
294
|
278
|
cardNum: $stateParams.id,
|
|
295
|
|
- storehouseId: $stateParams.storehouseId,
|
|
296
|
|
- warehouseId: $stateParams.warehouseId
|
|
|
279
|
+ storehouseId: $scope.GrainCardByIdObj.storehouseId,
|
|
|
280
|
+ warehouseId: $scope.GrainCardByIdObj.warehouseId
|
|
297
|
281
|
})
|
|
298
|
282
|
};
|
|
299
|
283
|
|