|
|
@@ -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;
|