|  |  |  | @ -65,7 +65,7 @@ | 
			
		
	
		
			
				
					|  |  |  |  |       <!--        show-overflow-tooltip--> | 
			
		
	
		
			
				
					|  |  |  |  |       <!--      ></el-table-column>--> | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |       <el-table-column label="操作" width="220" fixed="right"> | 
			
		
	
		
			
				
					|  |  |  |  |       <el-table-column label="操作" width="280" fixed="right"> | 
			
		
	
		
			
				
					|  |  |  |  |         <template slot-scope="scope"> | 
			
		
	
		
			
				
					|  |  |  |  |           <el-button | 
			
		
	
		
			
				
					|  |  |  |  |             type="text" | 
			
		
	
	
		
			
				
					|  |  |  | @ -96,6 +96,14 @@ | 
			
		
	
		
			
				
					|  |  |  |  |             @click.native.stop="editCode(scope.row)" | 
			
		
	
		
			
				
					|  |  |  |  |           >编辑 | 
			
		
	
		
			
				
					|  |  |  |  |           </el-button | 
			
		
	
		
			
				
					|  |  |  |  |           > | 
			
		
	
		
			
				
					|  |  |  |  |             <el-button | 
			
		
	
		
			
				
					|  |  |  |  |               type="text" | 
			
		
	
		
			
				
					|  |  |  |  |               size="small" | 
			
		
	
		
			
				
					|  |  |  |  |               :disabled="scope.row.drugLink == 1" | 
			
		
	
		
			
				
					|  |  |  |  |               @click.native.stop="association(scope.row)" | 
			
		
	
		
			
				
					|  |  |  |  |             >关联 | 
			
		
	
		
			
				
					|  |  |  |  |             </el-button | 
			
		
	
		
			
				
					|  |  |  |  |             > | 
			
		
	
		
			
				
					|  |  |  |  |           </template> | 
			
		
	
		
			
				
					|  |  |  |  |       </el-table-column> | 
			
		
	
	
		
			
				
					|  |  |  | @ -110,6 +118,22 @@ | 
			
		
	
		
			
				
					|  |  |  |  |       /> | 
			
		
	
		
			
				
					|  |  |  |  |     </div> | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |     <el-dialog | 
			
		
	
		
			
				
					|  |  |  |  |       :title="editTitle" | 
			
		
	
		
			
				
					|  |  |  |  |       :visible.sync="associationCodeVisible" | 
			
		
	
		
			
				
					|  |  |  |  |       append-to-body width="70%" | 
			
		
	
		
			
				
					|  |  |  |  |       :close-on-click-modal="false" | 
			
		
	
		
			
				
					|  |  |  |  |       :close-on-press-escape="false" | 
			
		
	
		
			
				
					|  |  |  |  |       v-if="associationCodeVisible" | 
			
		
	
		
			
				
					|  |  |  |  |     > | 
			
		
	
		
			
				
					|  |  |  |  |       <operateRelCodeSpell | 
			
		
	
		
			
				
					|  |  |  |  |         :closeCodeDialog="closeCodeDialog" | 
			
		
	
		
			
				
					|  |  |  |  |         :orderQuery="orderQuery"> | 
			
		
	
		
			
				
					|  |  |  |  |       </operateRelCodeSpell> | 
			
		
	
		
			
				
					|  |  |  |  |     </el-dialog> | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |     <!--    绑定产品--> | 
			
		
	
		
			
				
					|  |  |  |  |     <el-dialog | 
			
		
	
		
			
				
					|  |  |  |  |       :title="selectRlTitle" | 
			
		
	
	
		
			
				
					|  |  |  | @ -172,6 +196,8 @@ import selectRlDialog from "./DialogSelectRl"; | 
			
		
	
		
			
				
					|  |  |  |  | import DialogSelectUnit from "./DialogSelectUnit"; | 
			
		
	
		
			
				
					|  |  |  |  | import editCodeDialog from "./DialogEditCode"; | 
			
		
	
		
			
				
					|  |  |  |  | import {parseTime} from "@/utils/coTools"; | 
			
		
	
		
			
				
					|  |  |  |  | import operateRelCodeSpell from "@/views/collect/relCode/operateRelCodeSpell"; | 
			
		
	
		
			
				
					|  |  |  |  | import {updateIoCodeTempEntity} from "@/api/collect/relCode"; | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | export default { | 
			
		
	
		
			
				
					|  |  |  |  |   name: "IoAddCodeDetail", | 
			
		
	
	
		
			
				
					|  |  |  | @ -200,6 +226,9 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |  |   }, | 
			
		
	
		
			
				
					|  |  |  |  |   data() { | 
			
		
	
		
			
				
					|  |  |  |  |     return { | 
			
		
	
		
			
				
					|  |  |  |  |       orderQuery: null, | 
			
		
	
		
			
				
					|  |  |  |  |       editTitle: "", | 
			
		
	
		
			
				
					|  |  |  |  |       associationCodeVisible: false, | 
			
		
	
		
			
				
					|  |  |  |  |       loading: false, | 
			
		
	
		
			
				
					|  |  |  |  |       query: { | 
			
		
	
		
			
				
					|  |  |  |  |         code: "", | 
			
		
	
	
		
			
				
					|  |  |  | @ -332,8 +361,11 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |  |       }).catch(() => { | 
			
		
	
		
			
				
					|  |  |  |  |       }); | 
			
		
	
		
			
				
					|  |  |  |  |     }, | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |     association(row) { | 
			
		
	
		
			
				
					|  |  |  |  |       this.editTitle = "关联条码"; | 
			
		
	
		
			
				
					|  |  |  |  |       this.orderQuery = row; | 
			
		
	
		
			
				
					|  |  |  |  |       this.associationCodeVisible = true; | 
			
		
	
		
			
				
					|  |  |  |  |     }, | 
			
		
	
		
			
				
					|  |  |  |  |     closeBindDialog() { | 
			
		
	
		
			
				
					|  |  |  |  |       this.selectRlVisible = false; | 
			
		
	
		
			
				
					|  |  |  |  |       this.dialogTableVisible = false; | 
			
		
	
	
		
			
				
					|  |  |  | @ -343,6 +375,11 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |  |     closeCodeDialog() { | 
			
		
	
		
			
				
					|  |  |  |  |       this.editCodeVisible = false; | 
			
		
	
		
			
				
					|  |  |  |  |       this.editOriginCodeVisible = false; | 
			
		
	
		
			
				
					|  |  |  |  |       this.associationCodeVisible = false; | 
			
		
	
		
			
				
					|  |  |  |  |       //前往更新码明细 | 
			
		
	
		
			
				
					|  |  |  |  |       updateIoCodeTempEntity({parentCode:this.orderQuery.code}).then((response) => { | 
			
		
	
		
			
				
					|  |  |  |  |       }).catch(() => { | 
			
		
	
		
			
				
					|  |  |  |  |       }); | 
			
		
	
		
			
				
					|  |  |  |  |       this.refreshPanel(); | 
			
		
	
		
			
				
					|  |  |  |  |     }, | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
	
		
			
				
					|  |  |  | @ -362,7 +399,7 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |  |   }, | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |   components: { | 
			
		
	
		
			
				
					|  |  |  |  |     selectRlDialog, DialogSelectUnit, editCodeDialog | 
			
		
	
		
			
				
					|  |  |  |  |     selectRlDialog, DialogSelectUnit, editCodeDialog,operateRelCodeSpell | 
			
		
	
		
			
				
					|  |  |  |  |   }, | 
			
		
	
		
			
				
					|  |  |  |  | } | 
			
		
	
		
			
				
					|  |  |  |  | </script> | 
			
		
	
	
		
			
				
					|  |  |  | 
 |