浏览代码

Merge branch 'master' of http://101.36.160.140:21044/depot-tianjin/depot-web-tianjin

fanxw 1 年之前
父节点
当前提交
ac09b387bf

+ 8 - 0
src/main/resources/static/app/storage/controller/qualitycheckAssayCtrl.js

@@ -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");

+ 18 - 1
src/main/resources/static/app/storage/views/qualitycheck/qualitycheck-firstcheck-edit.html

@@ -259,7 +259,7 @@
259 259
 											<section class="col col-3">
260 260
 												<label class="label">检验机构:<span style="color: red;">*</span></label>
261 261
 												<label class="input">
262
-													<input type="text" ng-model="qualitycheck.acceptUnite" ng-readonly="isNotEdit" name="acceptUnite"
262
+													<input type="text" ng-model="qualitycheck.acceptUnite" ng-readonly="true" name="acceptUnite"
263 263
 														   placeholder="检验机构" required>
264 264
 												</label>
265 265
 											</section>
@@ -1787,6 +1787,23 @@
1787 1787
 									</tr>
1788 1788
 									<!--第四3个tr结束 -->
1789 1789
 								</table>
1790
+								<!--提交人 提交时间-->
1791
+								<fieldset>
1792
+									<div class="row">
1793
+										<section class="col col-3">
1794
+											<label class="label">提交人:</label>
1795
+											<label class="input">
1796
+												<input type="text" ng-model="qualitycheck.commitPeople" name="commitPeople" ng-readonly="true" required>
1797
+											</label>
1798
+										</section>
1799
+										<section class="col col-3">
1800
+											<label class="label">提交时间:</label>
1801
+											<label class="input">
1802
+												<input type="text" ng-model="qualitycheck.commitTime" name="commitTime" ng-readonly="true" required>
1803
+											</label>
1804
+										</section>
1805
+									</div>
1806
+								</fieldset>
1790 1807
 								<!-- 附件 end -->
1791 1808
 									<fieldset>
1792 1809
 										<footer class="modal-footer text-align-center">