Bladeren bron

出库检验

hanqingsong 1 jaar geleden
bovenliggende
commit
c8686f1a5f

+ 2 - 0
src/main/resources/static/app/storage/controller/qualitycheckSampleCtrl.js

@@ -314,6 +314,8 @@ angular.module('app.storage')
314 314
             $scope.loadDataById($stateParams.id);
315 315
             if ($stateParams.buttype == "update") {//修改
316 316
                 $scope.isNotEdit = false; //数据可编辑
317
+                $scope.qualitycheck.commitPeople = $rootScope.userInfo.realName; // 提交人
318
+                $scope.qualitycheck.commitTime = $filter('date')(new Date(), "yyyy-MM-dd HH:mm:ss");// 提交时间
317 319
             }
318 320
             if ($stateParams.buttype == "view") {//查看
319 321
                 $scope.isNotEdit = true; //数据不可编辑

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

@@ -288,7 +288,7 @@
288 288
 											<section class="col col-3">
289 289
 												<label class="label">检验机构:<span style="color: red;">*</span></label>
290 290
 												<label class="input">
291
-													<input type="text" ng-model="qualitycheck.acceptUnite" ng-readonly="isNotEdit" name="acceptUnite"
291
+													<input type="text" ng-model="qualitycheck.acceptUnite" ng-readonly="true" name="acceptUnite"
292 292
 														   placeholder="检验机构" required>
293 293
 												</label>
294 294
 											</section>
@@ -1815,6 +1815,23 @@
1815 1815
 									</tr>
1816 1816
 									<!--第四3个tr结束 -->
1817 1817
 								</table>
1818
+								<!--提交人,提交时间-->
1819
+								<fieldset>
1820
+									<div class="row">
1821
+										<section class="col col-3">
1822
+											<label class="label">提交人:</label>
1823
+											<label class="input">
1824
+												<input type="text" ng-model="qualitycheck.commitPeople" name="commitPeople" ng-readonly="true" required>
1825
+											</label>
1826
+										</section>
1827
+										<section class="col col-3">
1828
+											<label class="label">提交时间:</label>
1829
+											<label class="input">
1830
+												<input type="text" ng-model="qualitycheck.commitTime" name="commitTime" ng-readonly="true" required>
1831
+											</label>
1832
+										</section>
1833
+									</div>
1834
+								</fieldset>
1818 1835
 								<!-- 附件 end -->
1819 1836
 									<fieldset>
1820 1837
 										<footer class="modal-footer text-align-center">

+ 14 - 0
src/main/resources/static/app/storage/views/qualitycheck/qualitycheck-outcheck-sample-edit.html

@@ -190,6 +190,20 @@
190 190
 												</label>
191 191
 											</section>
192 192
 										</div>
193
+										<div class="row">
194
+											<section class="col col-3">
195
+												<label class="label">提交人:</label>
196
+												<label class="input">
197
+													<input type="text" ng-model="qualitycheck.commitPeople" name="commitPeople" ng-readonly="true" required>
198
+												</label>
199
+											</section>
200
+											<section class="col col-3">
201
+												<label class="label">提交时间:</label>
202
+												<label class="input">
203
+													<input type="text" ng-model="qualitycheck.commitTime" name="commitTime" ng-readonly="true" required>
204
+												</label>
205
+											</section>
206
+										</div>
193 207
 									</fieldset>
194 208
 									</div>
195 209
 									</form>