Kaynağa Gözat

散粮入库结算-提交人,提交时间

hanqingsong 1 yıl önce
ebeveyn
işleme
7484bdebaa

+ 8 - 0
src/main/resources/static/app/business/jsgl/controller/jsglCtrl.js

@@ -330,6 +330,12 @@ angular.module('app.business')
330 330
 			$scope.jsgl = data;
331 331
 			$scope.jsgl.orgId = $rootScope.orgInfo.orgId;
332 332
 			$scope.loadWare($scope.jsgl.houseId);
333
+            if ("" != id) {
334
+                if (butType != "show") {
335
+                    $scope.jsgl.commitPeople = $rootScope.userInfo.realName; // 提交人
336
+                    $scope.jsgl.commitTime = $filter('date')(new Date(), "yyyy-MM-dd HH:mm:ss");// 提交时间
337
+                }
338
+            }
333 339
 	    },function(data){
334 340
 	        console.log(data);
335 341
 	    });
@@ -361,6 +367,8 @@ angular.module('app.business')
361 367
     	$scope.jsgl.fpzt = "1"; //发票状态默认1正常
362 368
     	$scope.jsgl.bcjsfs = "1"; //付款方式默认1转账
363 369
     	$scope.jsgl.ywlx = "0"; //业务类型是散粮类型
370
+        $scope.jsgl.commitPeople = $rootScope.userInfo.realName; // 提交人
371
+        $scope.jsgl.commitTime = $filter('date')(new Date(), "yyyy-MM-dd HH:mm:ss");// 提交时间
364 372
     }
365 373
 
366 374
 	//获取储备粮外面的自建通知单列表

+ 14 - 0
src/main/resources/static/app/business/jsgl/views/jsgl-sl-edit.html

@@ -222,6 +222,20 @@
222 222
                                             </label>
223 223
                                         </section>
224 224
                                     </div>
225
+                                    <div class="row">
226
+                                        <section class="col col-3">
227
+                                            <label class="label">提交人:</label>
228
+                                            <label class="input">
229
+                                                <input type="text" ng-model="jsgl.commitPeople" name="commitPeople" ng-readonly="true" required>
230
+                                            </label>
231
+                                        </section>
232
+                                        <section class="col col-3">
233
+                                            <label class="label">提交时间:</label>
234
+                                            <label class="input">
235
+                                                <input type="text" ng-model="jsgl.commitTime" name="commitTime" ng-readonly="true" required>
236
+                                            </label>
237
+                                        </section>
238
+                                    </div>
225 239
                                 </fieldset>
226 240
 
227 241
                                 <div>