|  | @@ -2870,14 +2870,15 @@
 | 
											
												
													
														|  |      </el-dialog>
 |  |      </el-dialog>
 | 
											
												
													
														|  |      <el-dialog
 |  |      <el-dialog
 | 
											
												
													
														|  |        title="选择库位"
 |  |        title="选择库位"
 | 
											
												
													
														|  | 
 |  | +      :data="treeselectList"
 | 
											
												
													
														|  |        :visible.sync="choiceWarehouse"
 |  |        :visible.sync="choiceWarehouse"
 | 
											
												
													
														|  |        width="30%"
 |  |        width="30%"
 | 
											
												
													
														|  |        :before-close="hanDleclose">
 |  |        :before-close="hanDleclose">
 | 
											
												
													
														|  | -      <treeselect v-model="fWarehouselocid" :options="warehousesOptions" :show-count="true" placeholder="请选择归属库区" />
 |  | 
 | 
											
												
													
														|  | 
 |  | +      <treeselect v-model="treeselectList.fWarehouselocid" @select="getAlltree" :options="fWarehouseidOptions" :show-count="true" :disable-branch-nodes="true" placeholder="请选择归属库区" />
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |        <span slot="footer" class="dialog-footer">
 |  |        <span slot="footer" class="dialog-footer">
 | 
											
												
													
														|  |      <el-button @click="choiceWarehouse = false">取 消</el-button>
 |  |      <el-button @click="choiceWarehouse = false">取 消</el-button>
 | 
											
												
													
														|  | -    <el-button type="primary" @click="choiceWarehouse = false">确 定</el-button>
 |  | 
 | 
											
												
													
														|  | 
 |  | +    <el-button type="primary" @click="confirm">确 定</el-button>
 | 
											
												
													
														|  |    </span>
 |  |    </span>
 | 
											
												
													
														|  |      </el-dialog>
 |  |      </el-dialog>
 | 
											
												
													
														|  |    </div>
 |  |    </div>
 | 
											
										
											
												
													
														|  | @@ -2930,6 +2931,9 @@ export default {
 | 
											
												
													
														|  |    },
 |  |    },
 | 
											
												
													
														|  |    data() {
 |  |    data() {
 | 
											
												
													
														|  |      return {
 |  |      return {
 | 
											
												
													
														|  | 
 |  | +      treeselectList:{
 | 
											
												
													
														|  | 
 |  | +        fWarehouselocid:null
 | 
											
												
													
														|  | 
 |  | +      },
 | 
											
												
													
														|  |        fWarehouseidOptions:[],
 |  |        fWarehouseidOptions:[],
 | 
											
												
													
														|  |        // 部门树选项
 |  |        // 部门树选项
 | 
											
												
													
														|  |        warehousesOptions:[],
 |  |        warehousesOptions:[],
 | 
											
										
											
												
													
														|  | @@ -3215,6 +3219,7 @@ export default {
 | 
											
												
													
														|  |            },
 |  |            },
 | 
											
												
													
														|  |          ],
 |  |          ],
 | 
											
												
													
														|  |        },
 |  |        },
 | 
											
												
													
														|  | 
 |  | +      defaultTitle:[]
 | 
											
												
													
														|  |      };
 |  |      };
 | 
											
												
													
														|  |    },
 |  |    },
 | 
											
												
													
														|  |    created() {
 |  |    created() {
 | 
											
										
											
												
													
														|  | @@ -3267,14 +3272,34 @@ export default {
 | 
											
												
													
														|  |        console.log(key, keyPath);
 |  |        console.log(key, keyPath);
 | 
											
												
													
														|  |      },
 |  |      },
 | 
											
												
													
														|  |      /** 查询部门下拉树结构 */
 |  |      /** 查询部门下拉树结构 */
 | 
											
												
													
														|  | -    getTreeselect() {
 |  | 
 | 
											
												
													
														|  | 
 |  | +    getTreeselect(vaue) {
 | 
											
												
													
														|  |        this.choiceWarehouse = true
 |  |        this.choiceWarehouse = true
 | 
											
												
													
														|  |        treeselect(this.form.fWarehouseid).then(response => {
 |  |        treeselect(this.form.fWarehouseid).then(response => {
 | 
											
												
													
														|  |          console.log(response)
 |  |          console.log(response)
 | 
											
												
													
														|  |          this.fWarehouseidOptions = response.data;
 |  |          this.fWarehouseidOptions = response.data;
 | 
											
												
													
														|  |          console.log(this.fWarehouseidOptions)
 |  |          console.log(this.fWarehouseidOptions)
 | 
											
												
													
														|  |          // console.log(this.dataList.fWarehouseid)
 |  |          // console.log(this.dataList.fWarehouseid)
 | 
											
												
													
														|  | -      });
 |  | 
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  | 
 |  | +      })
 | 
											
												
													
														|  | 
 |  | +    },
 | 
											
												
													
														|  | 
 |  | +    getAlltree(tree){
 | 
											
												
													
														|  | 
 |  | +      console.log(tree)
 | 
											
												
													
														|  | 
 |  | +      // treeselect(this.form.fWarehouseid).then(response => {
 | 
											
												
													
														|  | 
 |  | +      //   console.log(response)
 | 
											
												
													
														|  | 
 |  | +      //   console.log(this.fWarehouseidOptions)
 | 
											
												
													
														|  | 
 |  | +      //   for (let li in response.data) {
 | 
											
												
													
														|  | 
 |  | +      //     console.log(response.data[li])
 | 
											
												
													
														|  | 
 |  | +      //     //在根节点找到对应选项
 | 
											
												
													
														|  | 
 |  | +      //     if (!lable && response.data[li].label == tree) {
 | 
											
												
													
														|  | 
 |  | +      //       this.defaultTitle = response.data[li].label
 | 
											
												
													
														|  | 
 |  | +      //     }else if(){
 | 
											
												
													
														|  | 
 |  | +      //
 | 
											
												
													
														|  | 
 |  | +      //     }
 | 
											
												
													
														|  | 
 |  | +      //   }
 | 
											
												
													
														|  | 
 |  | +      // })
 | 
											
												
													
														|  | 
 |  | +    },
 | 
											
												
													
														|  | 
 |  | +    confirm(){
 | 
											
												
													
														|  | 
 |  | +      this.choiceWarehouse = false
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |      },
 |  |      },
 | 
											
												
													
														|  |      // 出库件数的计算
 |  |      // 出库件数的计算
 |