| 
						
						
							
								
							
						
						
					 | 
					 | 
					@ -78,7 +78,7 @@ | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
														<view class="flex" style="padding: 15rpx 0;"> | 
					 | 
					 | 
					 | 
														<view class="flex" style="padding: 15rpx 0;"> | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
															共享总公司额度 | 
					 | 
					 | 
					 | 
															共享总公司额度 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
															<view style="margin: 0 10rpx;min-width: 150rpx;" class="blackcolor"> | 
					 | 
					 | 
					 | 
															<view style="margin: 0 10rpx;min-width: 150rpx;" class="blackcolor"> | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
																{{ item.shareParentAmt =='0'?'共享':'不共享' }} | 
					 | 
					 | 
					 | 
																{{ item.shareParentAmt =='0'?'不共享':'共享' }} | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
															</view> | 
					 | 
					 | 
					 | 
															</view> | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
														</view> | 
					 | 
					 | 
					 | 
														</view> | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
													</view> | 
					 | 
					 | 
					 | 
													</view> | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					 | 
					@ -91,9 +91,7 @@ | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
															</view> | 
					 | 
					 | 
					 | 
															</view> | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
															<view class="flex" style="padding: 15rpx 0;"> | 
					 | 
					 | 
					 | 
															<view class="flex" style="padding: 15rpx 0;"> | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
																联动分油 | 
					 | 
					 | 
					 | 
																联动分油 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
																<switch class="my-switch" :class="item.parentMark ==0?'disabledMark':''" | 
					 | 
					 | 
					 | 
																<switch class="my-switch" :checked="item.shareDistribute=='1'?true:false" | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
																	:disabled="item.parentMark ==0?true:false" | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
																	:checked="item.shareDistribute=='1'?true:false" | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
																	style="transform:scale(0.7)" @change=" changeDistribute(item)"></switch> | 
					 | 
					 | 
					 | 
																	style="transform:scale(0.7)" @change=" changeDistribute(item)"></switch> | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
															</view> | 
					 | 
					 | 
					 | 
															</view> | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
															<view class="flex" style="padding: 15rpx 0;"> | 
					 | 
					 | 
					 | 
															<view class="flex" style="padding: 15rpx 0;"> | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
					 | 
					@ -167,6 +165,11 @@ | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
								}, | 
					 | 
					 | 
					 | 
								}, | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
								changeEnableMark(item) { | 
					 | 
					 | 
					 | 
								changeEnableMark(item) { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
									const data = [item] | 
					 | 
					 | 
					 | 
									const data = [item] | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
									if(item.enableMark ==1){ | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
										data[0].enableMark = 0 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
									}else{ | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
										data[0].enableMark = 1 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
									} | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
									companyManagement.updateBatchEnable(data).then(res => { | 
					 | 
					 | 
					 | 
									companyManagement.updateBatchEnable(data).then(res => { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
										if (res.code === 20000) { | 
					 | 
					 | 
					 | 
										if (res.code === 20000) { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
											uni.showToast({ | 
					 | 
					 | 
					 | 
											uni.showToast({ | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					 | 
					@ -182,6 +185,12 @@ | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
										id: item.id, | 
					 | 
					 | 
					 | 
										id: item.id, | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
										shareDistribute: item.shareDistribute | 
					 | 
					 | 
					 | 
										shareDistribute: item.shareDistribute | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
									} | 
					 | 
					 | 
					 | 
									} | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
									if(item.shareDistribute == '1'){ | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
										data.shareDistribute = '0' | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
									}else{ | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
										data.shareDistribute = '1' | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
									} | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
									console.log(data,item,'............iitem...') | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
									companyManagement.openShareDistribute(data).then(res => { | 
					 | 
					 | 
					 | 
									companyManagement.openShareDistribute(data).then(res => { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
										if (res.code === 20000) { | 
					 | 
					 | 
					 | 
										if (res.code === 20000) { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
											uni.showToast({ | 
					 | 
					 | 
					 | 
											uni.showToast({ | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
					 | 
					
  |