| 
					
				 | 
			
			
				@@ -20,7 +20,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           :wrapper-col="formItemLayout.wrapperCol" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         > 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           <a-form-model-item label="调拨类别" prop="allocateCategory"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            <AllocateTypeByLevel id="transferTypeManagementEdit-allocateCategory" @change="changeCategory" :level="2" v-model="form.allocateCategory" placeholder="请选择调拨类别"></AllocateTypeByLevel> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <allocateType id="transferTypeManagementEdit-allocateCategory" v-model="allocateType" @change="changeCategory" :level="2" placeholder="请选择调拨类别"></allocateType> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           </a-form-model-item> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           <a-form-model-item label="调拨类型名称" prop="name"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <a-input 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -45,11 +45,11 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import { commonMixin } from '@/utils/mixin' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import { VSelect } from '@/components' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import { allocateTypeSave } from '@/api/allocateType' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-import AllocateTypeByLevel from '@/views/common/allocateTypeByLevel.js' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import allocateType from '@/views/common/allocateType' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   name: 'TransferTypeManagementEditModal', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   mixins: [commonMixin], 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-  components: { VSelect, AllocateTypeByLevel }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  components: { VSelect, allocateType }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   props: { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     openModal: { //  弹框显示状态 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       type: Boolean, 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -77,6 +77,7 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         labelCol: { span: 6 }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         wrapperCol: { span: 16 } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      allocateType: [], 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       form: { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         name: '', // 调拨类型名称 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         allocateCategory: undefined, //  调拨类别 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -100,11 +101,8 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       str = str.replace(/[\r\n]/g, '') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.form.name = str 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    changeCategory (v) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      if (v) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        this.form.allocateCategory = v 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        this.$refs.ruleForm.clearValidate('allocateCategory') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    changeCategory (v, opt) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      this.form.allocateCategory = v && v[1] ? v[1] : '' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     //  保存 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     handleSave () { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -139,12 +137,14 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       if (!newValue) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         this.$emit('close') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         this.$refs.ruleForm.resetFields() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        this.allocateType = [] 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     itemSn (newValue, oldValue) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       if (this.isShow && newValue) { //  编辑 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         this.form.name = this.nowData && this.nowData.name ? this.nowData.name : '' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         this.form.allocateCategory = this.nowData && this.nowData.superior ? this.nowData.superior.allocateTypeSn : '' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        this.allocateType = [this.form.allocateCategory, this.form.allocateCategory] 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       } else { //  添加 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         this.form.name = '' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         this.form.allocateCategory = undefined 
			 |