fanxw hace 2 años
padre
commit
8a813957ff

+ 10 - 10
src/main/resources/static/app/business/storeWareDetail/controller/storeWareDetailModalCtrl.js

@@ -133,20 +133,20 @@ angular.module('app.business').controller("storeWareDetailModalCtrl",
133 133
     $scope.getAttributeData = function() {
134 134
     	validator = $("#storeWareDetail-form").validate();
135 135
     	var parentid=1032; //粮油性质父级ID
136
-    	var notparentid = 3045;
137
-    	var notenumid = 3045;
136
+    	var notparentid = null;
137
+    	var notenumid = null;
138 138
     	
139 139
     	//计划管理下的计划 粮食性质 不取储备粮的,合同和通知单管理下出库业务中的粮食性质不取省级储备粮   用items.planManage区分
140 140
     	var ywlx = items.executeType;
141 141
     	//detailType = "contract"
142
-//    	if (items.detailType == "contract") {//合同业务
143
-//    		if (ywlx == "3148" || ywlx == "7131") {//出库类型的业务
144
-//    			notenumid = 6877;
145
-//    		}
146
-//    	} else if (items.detailType == "plan" || items.detailType == "notice") {
147
-//    		notparentid = 3045;
148
-//    		notenumid = 3045;
149
-//    	}
142
+    	if (items.detailType == "contract") {//合同业务
143
+    		if (ywlx == "3148" || ywlx == "7131") {//出库类型的业务
144
+    			notenumid = 6877;
145
+    		}
146
+    	} else if (items.detailType == "plan") {
147
+    		notparentid = 3045;
148
+    		notenumid = 3045;
149
+    	}
150 150
 
151 151
         enumService.findConditionEnum($scope.storeWareDetail.grainAttribute, parentid, notparentid, notenumid).then(function(data) {
152 152
             $scope.grainAttributeTreeData = data;

+ 4 - 0
src/main/resources/static/app/intelligent/grainDetection/controller/humitureDetectionModel.js

@@ -188,11 +188,15 @@ angular.module('app.intelligent').controller("humitureDetectionModel", function
188 188
             for (var i =1;i<= Object.keys(detailList).length; i++) {
189 189
                 if ($scope.td_type_5_avg_true) {
190 190
                     $("#t_body tr").eq(trNum).append(
191
+//                        "<td colspan='" + $scope.td_type_5_avg + "' style=\"border: 1px solid #000;text-align: center;\">"
192
+//                        + i + '层' + "</td>"
191 193
                         "<td colspan='" + $scope.td_type_5_avg + "' style=\"border: 1px solid #000;text-align: center;\">"
192 194
                         + i + '层' + "</td>"
193 195
                     );
194 196
                 } else {
195 197
                     $("#t_body tr").eq(trNum).append(
198
+//                        "<td colspan='" + $scope.td_type_5_avg_p + "' style=\"border: 1px solid #000;text-align: center;width:5%;\">"
199
+//                        + i + '层' + "</td>"
196 200
                         "<td colspan='" + $scope.td_type_5_avg_p + "' style=\"border: 1px solid #000;text-align: center;width:5%;\">"
197 201
                         + i + '层' + "</td>"
198 202
                     );

+ 2 - 2
src/main/resources/static/app/intelligent/grainDetection/views/humitureDetection-model.html

@@ -33,7 +33,7 @@
33 33
             <table border="1" id="table" class="table table-bordered table-striped" style="table-layout: fixed;border-collapse:collapse; width:100%;margin-bottom:0">
34 34
             	<caption align="top" style="font-size: 25px;text-align: center;color:black">{{orgInfo.orgName}}粮情检测报表</caption>
35 35
             	<tbody style="font-size: 10px;">
36
-            	<tr style="text-align: center;height:3px">
36
+            	<tr style="text-align: center;height:30px;">
37 37
             		<td style="border: 1px solid #000;text-align: center;width:9.5%;">仓房名称</td>
38 38
             		<td style="border: 1px solid #000;text-align: center;width:19%;">{{storeHouseCodeObj[vCfCode].storehouseName}}</td>
39 39
             		<td style="border: 1px solid #000;text-align: center;width:9.5%;">粮油品种</td>
@@ -43,7 +43,7 @@
43 43
             		<td style="border: 1px solid #000;text-align: center;width:9.5%;">数量(t)</td>
44 44
             		<td style="border: 1px solid #000;text-align: center;width:10%;">{{storehouseCode[vCfCode]==undefined?'':storehouseCode[vCfCode].kcsl/1000}}</td>
45 45
             	</tr>
46
-            	<tr>
46
+            	<tr style="text-align: center;height:30px;">
47 47
             		<td style="border: 1px solid #000;text-align: center;width:9.5%;">检测时间</td>
48 48
             		<td style="border: 1px solid #000;text-align: center;width:19%;">{{time | date:'yyyy/MM/dd HH:mm:ss'}}</td>
49 49
             		<td style="border: 1px solid #000;text-align: center;width:9.5%;">仓温</td>

+ 3 - 8
src/main/resources/static/app/storage/product/views/product-list.html

@@ -99,18 +99,13 @@
99 99
 													<a has-permission="709" href-void ng-click="deletes(product.id)">
100 100
 														<i class="fa fa-trash-o"></i>删除
101 101
 													</a>
102
-													<a href-void ng-click="edit(product.id, 'detail')">
103
-														<i class="fa fa-info-circle"></i>查看
104
-													</a>
105 102
 													<a has-permission="710" href-void ng-click="gitSubmit(product.id)">
106 103
 														<i class="fa fa-info-circle"></i>审核
107 104
 													</a>
108 105
 												</span>
109
-												<span ng-if="product.deleteState=='2'">
110
-													<a href-void ng-click="edit(product.id, 'detail')">
111
-														<i class="fa fa-info-circle"></i>查看
112
-													</a>
113
-												</span>
106
+												<a href-void ng-click="edit(product.id, 'detail')">
107
+													<i class="fa fa-info-circle"></i>查看
108
+												</a>
114 109
 											</td>
115 110
 										</tr>
116 111
 									</tbody>

+ 4 - 0
src/main/resources/static/app/storage/waterCheck/controller/waterCheckCtrl.js

@@ -82,6 +82,10 @@ angular.module('app.storage')
82 82
 
83 83
     //刪除
84 84
     $scope.deletes = function(id) {
85
+    	var flag = confirm("确定要删除吗?");
86
+        if (!flag) {
87
+            return;
88
+        }
85 89
     	waterCheckService.remove(id).then(function(data){
86 90
     		if (data.status == "success") {
87 91
     			$scope.loadData();

+ 0 - 1
src/main/resources/static/app/system/controller/userCtrl.js

@@ -48,7 +48,6 @@ angular.module('app.system').controller("userCtrl",
48 48
         // 删除一条记录
49 49
         $scope.remove = function(userId) {
50 50
             var flag = confirm("确定要删除吗?删除用户会同时删除当前用户对应的员工的信息,请知悉!");
51
-            console.log(flag);
52 51
             if (!flag) {
53 52
                 return;
54 53
             }