|
|
@@ -88,6 +88,7 @@ angular.module('app.storage')
|
|
88
|
88
|
|
|
89
|
89
|
//自检:处理、查看、修改
|
|
90
|
90
|
$scope.doProcess = function (id, buttype, typeUpdate) {
|
|
|
91
|
+ console.log(typeUpdate)
|
|
91
|
92
|
if (typeUpdate == 3) {
|
|
92
|
93
|
$state.go('app.storage.qualitycheck.outlist.outeditAssay',{id : id, isNotEdit : false, buttype : buttype});
|
|
93
|
94
|
} else if (typeUpdate == 0 || typeUpdate == 4 || typeUpdate == 6) {
|
|
|
@@ -297,6 +298,13 @@ angular.module('app.storage')
|
|
297
|
298
|
if($stateParams.buttype == "add"){
|
|
298
|
299
|
$scope.qualitycheck.checkTime = $filter('date')(new Date(), "yyyy-MM-dd HH:mm:ss");
|
|
299
|
300
|
$scope.qualitycheck.checkResult = "0"; //检验结果:默认给合格
|
|
|
301
|
+ $scope.qualitycheck.acceptUnite = $rootScope.orgInfo.orgName; // 检验机构
|
|
|
302
|
+ $scope.qualitycheck.commitPeople = $rootScope.userInfo.realName; // 提交人
|
|
|
303
|
+ $scope.qualitycheck.commitTime = $filter('date')(new Date(), "yyyy-MM-dd HH:mm:ss");// 提交时间
|
|
|
304
|
+ }
|
|
|
305
|
+ if ("update" === $stateParams.buttype) {
|
|
|
306
|
+ $scope.qualitycheck.commitPeople = $rootScope.userInfo.realName; // 提交人
|
|
|
307
|
+ $scope.qualitycheck.commitTime = $filter('date')(new Date(), "yyyy-MM-dd HH:mm:ss");// 提交时间
|
|
300
|
308
|
}
|
|
301
|
309
|
$scope.qualitycheck.checkTime = $filter('date')($scope.qualitycheck.checkTime, "yyyy-MM-dd HH:mm:ss");
|
|
302
|
310
|
$scope.qualitycheck.applyCheckTime = $filter('date')($scope.qualitycheck.applyCheckTime, "yyyy-MM-dd");
|