|
|
@@ -132,11 +132,23 @@ angular.module('app.business').controller("storeWareDetailModalCtrl",
|
|
132
|
132
|
// 树形下拉框(粮食性质)
|
|
133
|
133
|
$scope.getAttributeData = function() {
|
|
134
|
134
|
validator = $("#storeWareDetail-form").validate();
|
|
135
|
|
- var grainAttributeType=1032; //所有的粮油性质
|
|
|
135
|
+ var parentid=1032; //粮油性质父级ID
|
|
|
136
|
+ var notparentid = null;
|
|
|
137
|
+ var notenumid = null;
|
|
136
|
138
|
|
|
137
|
|
- //计划管理下的计划 粮食性质 不取储备粮的 用items.planManage区分
|
|
138
|
|
-
|
|
139
|
|
- enumService.getTreeListByTypeId($scope.storeWareDetail.grainAttribute, grainAttributeType,items.planManage).then(function(data) {
|
|
|
139
|
+ //计划管理下的计划 粮食性质 不取储备粮的,合同和通知单管理下出库业务中的粮食性质不取省级储备粮 用items.planManage区分
|
|
|
140
|
+ var ywlx = items.executeType;
|
|
|
141
|
+ detailType = "contract"
|
|
|
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
|
+
|
|
|
151
|
+ enumService.findConditionEnum($scope.storeWareDetail.grainAttribute, parentid, notparentid, notenumid).then(function(data) {
|
|
140
|
152
|
$scope.grainAttributeTreeData = data;
|
|
141
|
153
|
},function(data) {
|
|
142
|
154
|
console.log(data);
|