Ver código fonte

出入库结算管理-提交人,时间

hanqingsong 1 ano atrás
pai
commit
3063490c17

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

@@ -92,6 +92,12 @@ angular.module('app.business')
92 92
 			$scope.jsgl.orgId = $rootScope.orgInfo.orgId;
93 93
 			$scope.loadWare($scope.jsgl.houseId);
94 94
             $scope.remarksChange();
95
+            if ("" != id) {
96
+                if (butType != "show") {
97
+                    $scope.jsgl.commitPeople = $rootScope.userInfo.realName; // 提交人
98
+                    $scope.jsgl.commitTime = $filter('date')(new Date(), "yyyy-MM-dd HH:mm:ss");// 提交时间
99
+                }
100
+            }
95 101
 	    },function(data){
96 102
 	        console.log(data);
97 103
 	    });
@@ -123,6 +129,8 @@ angular.module('app.business')
123 129
     	$scope.jsgl.fpzt = "1"; //发票状态默认1正常
124 130
     	$scope.jsgl.bcjsfs = "1"; //付款方式默认1转账
125 131
     	$scope.jsgl.ywlx = "1"; //业务类型是非散粮类型
132
+        $scope.jsgl.commitPeople = $rootScope.userInfo.realName; // 提交人
133
+        $scope.jsgl.commitTime = $filter('date')(new Date(), "yyyy-MM-dd HH:mm:ss");// 提交时间
126 134
     }
127 135
 	
128 136
 	$scope.getReceiveContract = function() {

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

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