| 
					
				 | 
			
			
				@@ -21,9 +21,11 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             name="radioGroup" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             v-model="form.purchaseTargetSn" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             @change="tragetTypeChange" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            v-if="purchaseTragetType.length" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             id="purchaseOrder-basicInfo-purchaseTargetSn" > 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <a-radio v-for="item in purchaseTragetType" :key="item.purchaseTargetSn" :value="item.purchaseTargetSn" class="radio-s">{{ item.purchaseTargetName }}</a-radio> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           </a-radio-group> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          <span v-else>没有可选择的供应商</span> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </a-form-model-item> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <a-form-model-item label="支付方式" prop="settleStyleSn"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           <a-select placeholder="请选择支付方式" v-model="form.settleStyleSn"> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -183,21 +185,24 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     getParentDealer () { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      let params = null 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      // 向上级和总部采购 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      if (this.$hasPermissions('B_SJANDZB')) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        params = {} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      const zb = this.$hasPermissions('B_SUPPLIER_ZB') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      const sj = this.$hasPermissions('B_SUPPLIER_SJ') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      let params = {} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      params.purchaseTargetType = 'DEALER_UP' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       // 只能向上级采购 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      if (this.$hasPermissions('B_SUPPLIER_SJ')) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      if (sj) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         params.purchaseTargetType = 'DEALER_UP' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       // 只能向总部采购 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      if (this.$hasPermissions('B_SUPPLIER_ZB')) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      if (zb) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         params.purchaseTargetType = 'SUPPLIER_SYS' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      // 总部和上级都可以 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      if (sj && zb) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        params = {} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       purchaseTargetList(params).then(res => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        if (res.status == 200) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        if (res.status == 200 && res.data[0]) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           this.purchaseTragetType = res.data 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           this.purchaseTragetType = [] 
			 |