|  | @ -36,6 +36,17 @@ | 
			
		
	
		
		
			
				
					|  |  |                 <el-option v-for="(val, key) in organizationLevels" :key="key" :label="key" :value="val"></el-option> |  |  |                 <el-option v-for="(val, key) in organizationLevels" :key="key" :label="key" :value="val"></el-option> | 
			
		
	
		
		
			
				
					|  |  |             </el-select> |  |  |             </el-select> | 
			
		
	
		
		
			
				
					|  |  |           </el-form-item> |  |  |           </el-form-item> | 
			
		
	
		
		
			
				
					|  |  |  |  |  |           <el-form-item prop="logo" label="客户LOGO"> | 
			
		
	
		
		
			
				
					|  |  |  |  |  |               <el-upload | 
			
		
	
		
		
			
				
					|  |  |  |  |  |                 class="avatar-uploader" | 
			
		
	
		
		
			
				
					|  |  |  |  |  |                 :action="uploadUlr" | 
			
		
	
		
		
			
				
					|  |  |  |  |  |                 :show-file-list="false" | 
			
		
	
		
		
			
				
					|  |  |  |  |  |                 :on-success="handleAvatarSuccess" | 
			
		
	
		
		
			
				
					|  |  |  |  |  |                 :before-upload="beforeAvatarUpload"> | 
			
		
	
		
		
			
				
					|  |  |  |  |  |                 <img v-if="dataForm2.logo" :src="dataForm2.logo" class="avatar"> | 
			
		
	
		
		
			
				
					|  |  |  |  |  |                 <i v-else class="el-icon-plus avatar-uploader-icon"></i> | 
			
		
	
		
		
			
				
					|  |  |  |  |  |                 </el-upload> | 
			
		
	
		
		
			
				
					|  |  |  |  |  |           </el-form-item> | 
			
		
	
		
		
			
				
					|  |  |           <el-button type="primary" @click="submitStepHandle">下一步</el-button> |  |  |           <el-button type="primary" @click="submitStepHandle">下一步</el-button> | 
			
		
	
		
		
			
				
					|  |  |         </el-form> |  |  |         </el-form> | 
			
		
	
		
		
			
				
					|  |  |       </div> |  |  |       </div> | 
			
		
	
	
		
		
			
				
					|  | @ -108,6 +119,7 @@ export default { | 
			
		
	
		
		
			
				
					|  |  |         getDataListURL: '/oper/crm/customer/getvalidcustomerlist', |  |  |         getDataListURL: '/oper/crm/customer/getvalidcustomerlist', | 
			
		
	
		
		
			
				
					|  |  |         getDataListIsPage: false |  |  |         getDataListIsPage: false | 
			
		
	
		
		
			
				
					|  |  |       }, |  |  |       }, | 
			
		
	
		
		
			
				
					|  |  |  |  |  |       uploadUlr: window.SITE_CONFIG['apiURL'] + '/oss/file/customerlogo/upload', | 
			
		
	
		
		
			
				
					|  |  |       pcd: 'district', |  |  |       pcd: 'district', | 
			
		
	
		
		
			
				
					|  |  |       pcdError: true, |  |  |       pcdError: true, | 
			
		
	
		
		
			
				
					|  |  |       centerDialogVisible: false, |  |  |       centerDialogVisible: false, | 
			
		
	
	
		
		
			
				
					|  | @ -124,6 +136,7 @@ export default { | 
			
		
	
		
		
			
				
					|  |  |       customerId: '', |  |  |       customerId: '', | 
			
		
	
		
		
			
				
					|  |  |       agencyId: '', |  |  |       agencyId: '', | 
			
		
	
		
		
			
				
					|  |  |       dataForm2: { |  |  |       dataForm2: { | 
			
		
	
		
		
			
				
					|  |  |  |  |  |         logo: '', | 
			
		
	
		
		
			
				
					|  |  |         customerName: '', |  |  |         customerName: '', | 
			
		
	
		
		
			
				
					|  |  |         organizationLevel: '' |  |  |         organizationLevel: '' | 
			
		
	
		
		
			
				
					|  |  |       }, |  |  |       }, | 
			
		
	
	
		
		
			
				
					|  | @ -296,6 +309,22 @@ export default { | 
			
		
	
		
		
			
				
					|  |  |       if (this.pcd === 'district') { |  |  |       if (this.pcd === 'district') { | 
			
		
	
		
		
			
				
					|  |  |         this.pcdError = false |  |  |         this.pcdError = false | 
			
		
	
		
		
			
				
					|  |  |       } |  |  |       } | 
			
		
	
		
		
			
				
					|  |  |  |  |  |     }, | 
			
		
	
		
		
			
				
					|  |  |  |  |  |     handleAvatarSuccess (res, file) { | 
			
		
	
		
		
			
				
					|  |  |  |  |  |       if (res.code === 0 && res.msg === 'success') this.dataForm2.logo = res.data.url | 
			
		
	
		
		
			
				
					|  |  |  |  |  |       else this.$message.error(res.msg) | 
			
		
	
		
		
			
				
					|  |  |  |  |  |     }, | 
			
		
	
		
		
			
				
					|  |  |  |  |  |     beforeAvatarUpload (file) { | 
			
		
	
		
		
			
				
					|  |  |  |  |  |       const isJPG = file.type === 'image/jpeg' | 
			
		
	
		
		
			
				
					|  |  |  |  |  |       const isLt2M = file.size / 1024 / 1024 < 2 | 
			
		
	
		
		
			
				
					|  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					|  |  |  |  |  |       if (!isJPG) { | 
			
		
	
		
		
			
				
					|  |  |  |  |  |         this.$message.error('上传头像图片只能是 JPG 格式!') | 
			
		
	
		
		
			
				
					|  |  |  |  |  |       } | 
			
		
	
		
		
			
				
					|  |  |  |  |  |       if (!isLt2M) { | 
			
		
	
		
		
			
				
					|  |  |  |  |  |         this.$message.error('上传头像图片大小不能超过 2MB!') | 
			
		
	
		
		
			
				
					|  |  |  |  |  |       } | 
			
		
	
		
		
			
				
					|  |  |  |  |  |       return isJPG && isLt2M | 
			
		
	
		
		
			
				
					|  |  |     } |  |  |     } | 
			
		
	
		
		
			
				
					|  |  |   }, |  |  |   }, | 
			
		
	
		
		
			
				
					|  |  |   computed: { |  |  |   computed: { | 
			
		
	
	
		
		
			
				
					|  | 
 |