|  |  | @ -623,7 +623,7 @@ import { getCollectBusType } from '@/api/basic/collectPoint/gatherOrderType' | 
			
		
	
		
		
			
				
					
					|  |  |  | import panelGroup from '@/views/dashboard/PanelGroup' |  |  |  | import panelGroup from '@/views/dashboard/PanelGroup' | 
			
		
	
		
		
			
				
					
					|  |  |  | import { delUserBindWork, getUserBindWork } from '@/api/basic/collectPoint/userWorkplace' |  |  |  | import { delUserBindWork, getUserBindWork } from '@/api/basic/collectPoint/userWorkplace' | 
			
		
	
		
		
			
				
					
					|  |  |  | import selectBusType from './selectBusType' |  |  |  | import selectBusType from './selectBusType' | 
			
		
	
		
		
			
				
					
					|  |  |  | import { getWorkBindBusTypes } from '@/api/basic/workPlace/sysWorkplaceDocuments' |  |  |  | import { getWorkBindBusTypes,removeBusTypeById } from '@/api/basic/workPlace/sysWorkplaceDocuments' | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  | export default { |  |  |  | export default { | 
			
		
	
		
		
			
				
					
					|  |  |  |   components: { selectBusType }, |  |  |  |   components: { selectBusType }, | 
			
		
	
	
		
		
			
				
					|  |  | @ -687,6 +687,9 @@ export default { | 
			
		
	
		
		
			
				
					
					|  |  |  |         ], |  |  |  |         ], | 
			
		
	
		
		
			
				
					
					|  |  |  |         unitTittle: [ |  |  |  |         unitTittle: [ | 
			
		
	
		
		
			
				
					
					|  |  |  |           { required: true, message: '请输入往来类型标题', trigger: 'blur' } |  |  |  |           { required: true, message: '请输入往来类型标题', trigger: 'blur' } | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         ], | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         workplaceStatus: [ | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |           { required: true, message: '请选择工位状态', trigger: 'blur' } | 
			
		
	
		
		
			
				
					
					|  |  |  |         ] |  |  |  |         ] | 
			
		
	
		
		
			
				
					
					|  |  |  |       }, |  |  |  |       }, | 
			
		
	
		
		
			
				
					
					|  |  |  |       invQuery: { |  |  |  |       invQuery: { | 
			
		
	
	
		
		
			
				
					|  |  | @ -790,12 +793,14 @@ export default { | 
			
		
	
		
		
			
				
					
					|  |  |  |             this.formData.workplaceId = this.workplaceCode + 1001 |  |  |  |             this.formData.workplaceId = this.workplaceCode + 1001 | 
			
		
	
		
		
			
				
					
					|  |  |  |             this.formData.operationType = 1 |  |  |  |             this.formData.operationType = 1 | 
			
		
	
		
		
			
				
					
					|  |  |  |             this.formData.checkInsert = 1 |  |  |  |             this.formData.checkInsert = 1 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             this.formData.workplaceStatus = 1 | 
			
		
	
		
		
			
				
					
					|  |  |  |             this.addWorkplaceDialogVisible = true |  |  |  |             this.addWorkplaceDialogVisible = true | 
			
		
	
		
		
			
				
					
					|  |  |  |             this.getTree() |  |  |  |             this.getTree() | 
			
		
	
		
		
			
				
					
					|  |  |  |           } else { |  |  |  |           } else { | 
			
		
	
		
		
			
				
					
					|  |  |  |             this.formData = { |  |  |  |             this.formData = { | 
			
		
	
		
		
			
				
					
					|  |  |  |               operationType: 1, |  |  |  |               operationType: 1, | 
			
		
	
		
		
			
				
					
					|  |  |  |               checkInsert: 1 |  |  |  |               checkInsert: 1, | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |               workplaceStatus: 1 | 
			
		
	
		
		
			
				
					
					|  |  |  |             } |  |  |  |             } | 
			
		
	
		
		
			
				
					
					|  |  |  |             this.getTree() |  |  |  |             this.getTree() | 
			
		
	
		
		
			
				
					
					|  |  |  |             this.formData.workplaceId = res.data |  |  |  |             this.formData.workplaceId = res.data | 
			
		
	
	
		
		
			
				
					|  |  | @ -1130,7 +1135,25 @@ export default { | 
			
		
	
		
		
			
				
					
					|  |  |  |         } |  |  |  |         } | 
			
		
	
		
		
			
				
					
					|  |  |  |       }) |  |  |  |       }) | 
			
		
	
		
		
			
				
					
					|  |  |  |     }, |  |  |  |     }, | 
			
		
	
		
		
			
				
					
					|  |  |  |     closeDialog(){ |  |  |  |     removeBusType(row) { | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |       this.$confirm('此操作将永久移除该单据类型, 是否继续?', '提示', { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         confirmButtonText: '确定', | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         cancelButtonText: '取消', | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         type: 'warning' | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |       }).then(() => { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         removeBusTypeById(row).then(res => { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |           if (res.code == 20000) { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             this.$message.success('移除成功') | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             this.getWorkBindBusTypes() | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |           }else { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             this.$message.error("移除失败") | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |           } | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         }) | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |       }).catch(() => { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |       }) | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     }, | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     closeDialog() { | 
			
		
	
		
		
			
				
					
					|  |  |  |       this.chooseBusTypeDialogVisible = false |  |  |  |       this.chooseBusTypeDialogVisible = false | 
			
		
	
		
		
			
				
					
					|  |  |  |       this.getWorkBindBusTypes() |  |  |  |       this.getWorkBindBusTypes() | 
			
		
	
		
		
			
				
					
					|  |  |  |     } |  |  |  |     } | 
			
		
	
	
		
		
			
				
					|  |  | 
 |