Explorar el Código

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

hanqingsong hace 1 año
padre
commit
3063490c17

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

@@ -92,6 +92,12 @@ angular.module('app.business')
92
 			$scope.jsgl.orgId = $rootScope.orgInfo.orgId;
92
 			$scope.jsgl.orgId = $rootScope.orgInfo.orgId;
93
 			$scope.loadWare($scope.jsgl.houseId);
93
 			$scope.loadWare($scope.jsgl.houseId);
94
             $scope.remarksChange();
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
 	    },function(data){
101
 	    },function(data){
96
 	        console.log(data);
102
 	        console.log(data);
97
 	    });
103
 	    });
@@ -123,6 +129,8 @@ angular.module('app.business')
123
     	$scope.jsgl.fpzt = "1"; //发票状态默认1正常
129
     	$scope.jsgl.fpzt = "1"; //发票状态默认1正常
124
     	$scope.jsgl.bcjsfs = "1"; //付款方式默认1转账
130
     	$scope.jsgl.bcjsfs = "1"; //付款方式默认1转账
125
     	$scope.jsgl.ywlx = "1"; //业务类型是非散粮类型
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
 	$scope.getReceiveContract = function() {
136
 	$scope.getReceiveContract = function() {

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

@@ -227,6 +227,20 @@
227
                                             </label>
227
                                             </label>
228
                                         </section>
228
                                         </section>
229
                                     </div>
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
                                 </fieldset>
244
                                 </fieldset>
231
 
245
 
232
                                 <div>
246
                                 <div>