|  |  |  | @ -118,11 +118,19 @@ | 
			
		
	
		
			
				
					|  |  |  |  |           <el-button | 
			
		
	
		
			
				
					|  |  |  |  |             type="text" | 
			
		
	
		
			
				
					|  |  |  |  |             size="small" | 
			
		
	
		
			
				
					|  |  |  |  |             :disabled="scope.row.drugLink == 1" | 
			
		
	
		
			
				
					|  |  |  |  |             v-if="scope.row.drugLink == 0" | 
			
		
	
		
			
				
					|  |  |  |  |             @click.native.stop="association(scope.row)" | 
			
		
	
		
			
				
					|  |  |  |  |           >关联 | 
			
		
	
		
			
				
					|  |  |  |  |           </el-button | 
			
		
	
		
			
				
					|  |  |  |  |           > | 
			
		
	
		
			
				
					|  |  |  |  |           <el-button | 
			
		
	
		
			
				
					|  |  |  |  |             type="text" | 
			
		
	
		
			
				
					|  |  |  |  |             size="small" | 
			
		
	
		
			
				
					|  |  |  |  |             v-if="scope.row.drugLink == 1" | 
			
		
	
		
			
				
					|  |  |  |  |             @click.native.stop="newDistributionForm(scope.row)" | 
			
		
	
		
			
				
					|  |  |  |  |           >查看 | 
			
		
	
		
			
				
					|  |  |  |  |           </el-button | 
			
		
	
		
			
				
					|  |  |  |  |           > | 
			
		
	
		
			
				
					|  |  |  |  |         </template> | 
			
		
	
		
			
				
					|  |  |  |  |       </el-table-column> | 
			
		
	
		
			
				
					|  |  |  |  |     </el-table> | 
			
		
	
	
		
			
				
					|  |  |  | @ -203,11 +211,32 @@ | 
			
		
	
		
			
				
					|  |  |  |  |       </editCodeDialog> | 
			
		
	
		
			
				
					|  |  |  |  |     </el-dialog> | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |     <el-dialog | 
			
		
	
		
			
				
					|  |  |  |  |       title="关联明细" | 
			
		
	
		
			
				
					|  |  |  |  |       :visible.sync="newSpDistributionVisible" | 
			
		
	
		
			
				
					|  |  |  |  |       width="45%" | 
			
		
	
		
			
				
					|  |  |  |  |       append-to-body | 
			
		
	
		
			
				
					|  |  |  |  |       :close-on-click-modal="false" | 
			
		
	
		
			
				
					|  |  |  |  |       :close-on-press-escape="false" | 
			
		
	
		
			
				
					|  |  |  |  |       v-if="newSpDistributionVisible" | 
			
		
	
		
			
				
					|  |  |  |  |     > | 
			
		
	
		
			
				
					|  |  |  |  |       <el-table v-loading="loading" :data="parentCodeArray" style="width: 100%;" max-height="800" height="500" | 
			
		
	
		
			
				
					|  |  |  |  |                 border | 
			
		
	
		
			
				
					|  |  |  |  |                 ref="multipleTable"> | 
			
		
	
		
			
				
					|  |  |  |  |         <el-table-column label="序号" type="index" width="55"></el-table-column> | 
			
		
	
		
			
				
					|  |  |  |  |         <el-table-column | 
			
		
	
		
			
				
					|  |  |  |  |           label="追溯码" | 
			
		
	
		
			
				
					|  |  |  |  |           prop="curCode" | 
			
		
	
		
			
				
					|  |  |  |  |           width="280" | 
			
		
	
		
			
				
					|  |  |  |  |           show-overflow-tooltip | 
			
		
	
		
			
				
					|  |  |  |  |         ></el-table-column> | 
			
		
	
		
			
				
					|  |  |  |  |       </el-table> | 
			
		
	
		
			
				
					|  |  |  |  |     </el-dialog> | 
			
		
	
		
			
				
					|  |  |  |  |   </div> | 
			
		
	
		
			
				
					|  |  |  |  | </template> | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | <script> | 
			
		
	
		
			
				
					|  |  |  |  | import {getDetailList} from "@/api/collect/relCode"; | 
			
		
	
		
			
				
					|  |  |  |  | import {deleteCodesTempById, errorCodeList, updateCodeBindSup} from "@/api/inout/order"; | 
			
		
	
		
			
				
					|  |  |  |  | import selectRlDialog from "./DialogSelectRl"; | 
			
		
	
		
			
				
					|  |  |  |  | import DialogSelectUnit from "./DialogSelectUnit"; | 
			
		
	
	
		
			
				
					|  |  |  | @ -253,16 +282,37 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |  |       }, | 
			
		
	
		
			
				
					|  |  |  |  |       codeDetail: null, | 
			
		
	
		
			
				
					|  |  |  |  |       codeArray: [], | 
			
		
	
		
			
				
					|  |  |  |  |       parentCodeArray: [], | 
			
		
	
		
			
				
					|  |  |  |  |       total: 0, | 
			
		
	
		
			
				
					|  |  |  |  |       curRow: null, | 
			
		
	
		
			
				
					|  |  |  |  |       selectRlVisible: false, | 
			
		
	
		
			
				
					|  |  |  |  |       dialogTableVisible: false, | 
			
		
	
		
			
				
					|  |  |  |  |       editCodeVisible: false, | 
			
		
	
		
			
				
					|  |  |  |  |       editOriginCodeVisible: false, | 
			
		
	
		
			
				
					|  |  |  |  |       newSpDistributionVisible: false, | 
			
		
	
		
			
				
					|  |  |  |  |       fromCorp: null, | 
			
		
	
		
			
				
					|  |  |  |  |     } | 
			
		
	
		
			
				
					|  |  |  |  |   }, | 
			
		
	
		
			
				
					|  |  |  |  |   methods: { | 
			
		
	
		
			
				
					|  |  |  |  |     newDistributionForm(row) { | 
			
		
	
		
			
				
					|  |  |  |  |       //获取码明细 | 
			
		
	
		
			
				
					|  |  |  |  |       let post = { | 
			
		
	
		
			
				
					|  |  |  |  |         // batchIdFk: row.id, | 
			
		
	
		
			
				
					|  |  |  |  |         parentCode: row.code, | 
			
		
	
		
			
				
					|  |  |  |  |         page: 1, | 
			
		
	
		
			
				
					|  |  |  |  |         limit: 500 | 
			
		
	
		
			
				
					|  |  |  |  |       } | 
			
		
	
		
			
				
					|  |  |  |  |       getDetailList(post).then((response) => { | 
			
		
	
		
			
				
					|  |  |  |  |         if (response.code == 20000) { | 
			
		
	
		
			
				
					|  |  |  |  |           this.parentCodeArray = response.data.list | 
			
		
	
		
			
				
					|  |  |  |  |           this.newSpDistributionVisible = true; | 
			
		
	
		
			
				
					|  |  |  |  |         } else { | 
			
		
	
		
			
				
					|  |  |  |  |           this.$message.error(response.message); | 
			
		
	
		
			
				
					|  |  |  |  |         } | 
			
		
	
		
			
				
					|  |  |  |  |       }).catch(() => { | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |       }); | 
			
		
	
		
			
				
					|  |  |  |  |     }, | 
			
		
	
		
			
				
					|  |  |  |  |     getCodeList() { | 
			
		
	
		
			
				
					|  |  |  |  |       this.loading = true; | 
			
		
	
		
			
				
					|  |  |  |  |       this.query.orderId = this.idQuery.billNo; | 
			
		
	
	
		
			
				
					|  |  |  | 
 |