fanxw 2 yıl önce
ebeveyn
işleme
6624a10787

+ 3 - 3
src/main/resources/static/app/home/controller/homeworkCtrl.js

@@ -17,14 +17,14 @@ angular.module('app.system')
17 17
         };
18 18
         $scope.getIndex();
19 19
         $scope.getJobDate = function(type,id) {
20
-            if (type == "3.1") {
20
+            /*if (type == "3.1") {
21 21
                 $state.go("app.storage.taskDispatch.aerationSummaryList",{id : id,homePage : "SY"});
22 22
             } else if (type == "3.2") {
23
-                $state.go("app.intelligent.fumigation.fumigationList",{id : id,homePage : "SY"});
23
+                $state.go("app.storage.fumigation.forRecordList",{id : id,homePage : "SY"});
24 24
             }else if (type == "3.3") {
25 25
                 $state.go("app.storage.quantity.crkresult.truckList",{id:id,states:"1",homePage:"SY"});
26 26
             } else if (type == "3.4") {
27 27
                 $state.go("app.storage.quantity.crkresult.truckList",{id:id,states:"3",homePage:"SY"});
28
-            }
28
+            }*/
29 29
         }
30 30
     });

+ 8 - 8
src/main/resources/static/app/home/controller/quxtCtrl.js

@@ -201,17 +201,17 @@ angular.module('app.system').controller("quxtCtrl",
201 201
 
202 202
                
203 203
                 quxt.setOption(option);
204
-           setTimeout(function (){
205
-            window.onresize = function () {
206
-                quxt.resize();
207
-            }
208
-        },100)
204
+                setTimeout(function () {
205
+                    window.onresize = function () {
206
+                        quxt.resize();
207
+                    }
208
+                },100)
209 209
 
210 210
 
211 211
                // myChart.setOption(option);
212
-                if($("#houseSele").html() == undefined){
213
-                    var sele = "<select id='houseSele' ng-change='newInit()' ng-model=\"houseId\" " +
214
-                        "ng-options=\"store.storehouseId as store.storehouseName for store in storehouseList\" style=\"float:right;margin-right:20px;background-color:transparent;color:#1ca1e0;min-width:65px;border-color:#1ca1e0\">\n" +
212
+               if($("#houseSele").html() == undefined){
213
+                    var sele = "<select id='houseSele' ng-change='newInit()' ng-model=\"storehouseCode\" " +
214
+                        "ng-options=\"store.storehouseCode as store.storehouseName for store in storehouseList\" style=\"float:right;margin-right:20px;background-color:transparent;color:#1ca1e0;min-width:65px;border-color:#1ca1e0\">\n" +
215 215
                         // "        <option value=\"\">--仓房--</option>\n" +
216 216
                         "    </select>";
217 217
                     $("#quxt").prepend($compile(sele)($scope)); 

+ 1 - 1
src/main/resources/static/app/intelligent/fumigation/controller/forRecordCtrl.js

@@ -11,7 +11,7 @@ angular.module('app.intelligent')
11 11
     $scope.loadData = function() {
12 12
         $scope.searchStartDate = $("#startDate").val();
13 13
         $scope.searchEndDate = $("#endDate").val();
14
-        forRecordService.getFumigationForRecordList($scope.pageInfo,$scope.searchStartDate,$scope.searchEndDate, orgId).then(function(data){
14
+        forRecordService.getFumigationForRecordList($scope.pageInfo,$scope.searchStartDate,$scope.searchEndDate, orgId, null, $scope.houseId).then(function(data){
15 15
             $scope.pageInfo = data;
16 16
         },function(data){
17 17
             console.log(data);

+ 3 - 2
src/main/resources/static/app/intelligent/fumigation/service/forRecordService.js

@@ -2,7 +2,7 @@
2 2
 angular.module('app.intelligent').service("forRecordService", function($http, $q, APP_CONFIG) {
3 3
 
4 4
     // 分页列表数据
5
-    this.getFumigationForRecordList = function (pageInfo,searchStartDate,searchEndDate, orgId,xzzydh) {
5
+    this.getFumigationForRecordList = function (pageInfo,searchStartDate,searchEndDate, orgId, xzzydh, houseId) {
6 6
         var d = $q.defer();
7 7
         $http({
8 8
             method : 'GET',
@@ -13,7 +13,8 @@ angular.module('app.intelligent').service("forRecordService", function($http, $q
13 13
                 searchStartDate : searchStartDate,
14 14
                 searchEndDate : searchEndDate,
15 15
                 orgId : orgId == undefined ? "":orgId,
16
-                xzzydh : xzzydh
16
+                xzzydh : xzzydh,
17
+                houseId : houseId
17 18
             }
18 19
         }).then(function successCallback(response) {
19 20
             // 请求成功执行代码

+ 4 - 4
src/main/resources/static/app/intelligent/fumigation/views/plan/forRecord-edit.html

@@ -80,7 +80,7 @@
80 80
 													</section>
81 81
 												</th>
82 82
 												<th>
83
-													<label class="label" style="margin-top: 9px;text-align: center;">熏蒸作业施药开始时间<span style="color: red;">*</span></label>
83
+													<label class="label" style="margin-top: 9px;text-align: center;">熏蒸施药开始时间<span style="color: red;">*</span></label>
84 84
 												</th>
85 85
 												<th width='15%'>
86 86
 													<section>
@@ -93,7 +93,7 @@
93 93
 											</tr>
94 94
 											<tr>
95 95
 												<th>
96
-													<label class="label" style="margin-top: 9px;text-align: center;">熏蒸作业施药结束时间<span style="color: red;">*</span></label>
96
+													<label class="label" style="margin-top: 9px;text-align: center;">熏蒸施药结束时间<span style="color: red;">*</span></label>
97 97
 												</th>
98 98
 												<th width='15%'>
99 99
 													<section>
@@ -127,7 +127,7 @@
127 127
 												</th>
128 128
 											<tr>
129 129
 											    <th>
130
-													<label class="label" style="margin-top: 9px;text-align: center;">预计残渣收集作业开始时间<span style="color: red;">*</span></label>
130
+													<label class="label" style="margin-top: 9px;text-align: center;">预计残渣收集开始时间<span style="color: red;">*</span></label>
131 131
 												</th>
132 132
 												<th width='15%'>
133 133
 													<section>
@@ -138,7 +138,7 @@
138 138
 													</section>
139 139
 												</th>
140 140
 												<th>
141
-													<label class="label" style="margin-top: 9px;text-align: center;">预计残收集作业结束时间<span style="color: red;">*</span></label>
141
+													<label class="label" style="margin-top: 9px;text-align: center;">预计残收集结束时间<span style="color: red;">*</span></label>
142 142
 												</th>
143 143
 												<th width='15%'>
144 144
 													<section>

+ 7 - 1
src/main/resources/static/app/intelligent/fumigation/views/plan/forRecord-list.html

@@ -19,11 +19,17 @@
19 19
                                             <!-- <label>
20 20
                                                 <a has-permission="604" href-void class="btn btn-primary btn-sm" ng-click="getAddList()"><i class="fa fa-plus"></i>&nbsp;新&nbsp;增</a>
21 21
                                             </label> -->
22
-                                            <label> 申请日期:&emsp;
22
+                                            <label> 施药日期:&emsp;
23 23
                                                 <input style="width: 100px;" class="form-control" type="text" ng-model="searchStartDate" id="startDate" name="searchStartDate" onClick="WdatePicker({lang:'zh-cn',maxDate:'#F{$dp.$D(\'endDate\')}'})">
24 24
                                                 ——&nbsp;<input style="width: 100px;" class="form-control" type="text" ng-model="searchEndDate" id="endDate" name="searchEndDate" onClick="WdatePicker({lang:'zh-cn',minDate:'#F{$dp.$D(\'startDate\')}'})">
25 25
                                                 &emsp;
26 26
                                             </label>
27
+                                            <label>  仓房名称:&emsp;
28
+                                                <select ng-model="houseId" class="form-control input-sm"
29
+                                                        ng-options="store.storehouseId as store.storehouseName for store in store_tank_list">
30
+                                                    <option value="">请选择</option>
31
+                                                </select>&emsp;
32
+                                            </label>
27 33
                                             <a class="btn btn-default btn-sm" ng-click="loadData()">
28 34
                                                 <i class="fa fa-search"></i>&nbsp;查&nbsp;询</a>
29 35
                                         </div>

+ 8 - 8
src/main/resources/static/app/system/controller/orgCtrl.js

@@ -64,9 +64,9 @@ angular.module('app.system').controller("orgCtrl", function($scope, $rootScope,
64 64
 		'click #add': function (e, value, row, index) {
65 65
 			$state.go("app.system.org.edit", {parentId:row.orgId});
66 66
 		},
67
-        'click #addDepart': function (e, value, row, index) {
68
-            $scope.editDepartment(null, row.orgId);
69
-        },
67
+//        'click #addDepart': function (e, value, row, index) {
68
+//            $scope.editDepartment(null, row.orgId);
69
+//        },
70 70
 		'click #edit': function (e, value, row, index) {
71 71
 			if (row.orgClassId==5527) {
72 72
                 $scope.editDepartment(row.orgId, row.parentId);
@@ -104,9 +104,9 @@ angular.module('app.system').controller("orgCtrl", function($scope, $rootScope,
104 104
         		btns.push('<a href="javascript:void(0)" id="add"><i class="fa fa-plus"></i> 下级组织</a>');
105 105
         	}
106 106
         }
107
-        if (permissions.hasPermission(58)) {
108
-        	btns.push('<a href="javascript:void(0)" id="addDepart"><i class="fa fa-plus"></i> 部门</a>&nbsp;');
109
-        }
107
+//        if (permissions.hasPermission(58)) {
108
+//        	btns.push('<a href="javascript:void(0)" id="addDepart"><i class="fa fa-plus"></i> 部门</a>&nbsp;');
109
+//        }
110 110
         if (permissions.hasPermission(183)) {
111 111
         	btns.push('<a href="javascript:void(0)" id="edit"><i class="fa fa-edit"></i> 修改</a>&nbsp;');
112 112
         }
@@ -146,7 +146,6 @@ function($scope, $rootScope, $state, $stateParams, $filter, orgService, enumServ
146 146
 	$scope.loadOrg = function() {
147 147
 		orgService.editOrg($stateParams.orgId).then(function(data) {
148 148
 			$scope.orgInfo = {};
149
-			$scope.initBasic(319);
150 149
 			if ($stateParams.orgId == "") {
151 150
 				$scope.orgInfo.parentId = $stateParams.parentId;
152 151
 				//$scope.orgInfo.registDate = new Date();
@@ -160,6 +159,7 @@ function($scope, $rootScope, $state, $stateParams, $filter, orgService, enumServ
160 159
 				$scope.orgInfo.useDate = $filter('date')($scope.orgInfo.useDate, "yyyy-MM-dd");
161 160
 				$scope.orgInfo.depotProperty = $scope.orgInfo.depotProperty == null ? "1":$scope.orgInfo.depotProperty;
162 161
 			}
162
+			$scope.initBasic(319);
163 163
 		}, function(data) {
164 164
 			console.log(data);
165 165
 		});
@@ -178,7 +178,7 @@ function($scope, $rootScope, $state, $stateParams, $filter, orgService, enumServ
178 178
 
179 179
 	//获取组织类型
180 180
 	$scope.initBasic = function (deviceTypeId) {
181
-		enumService.getTreeListByTypeId($scope.orgInfo.depotClass, deviceTypeId).then(function(data) {
181
+		enumService.findConditionEnum($scope.orgInfo.depotClass, deviceTypeId).then(function(data) {
182 182
         	var data_new = $scope.data_add(data);
183 183
         	$scope.grainAttributeTreeData = data_new;
184 184
         },function(data) {