2.10-基因返还

基因返还

此脚本不应直接安装,它是一个供其他脚本使用的外部库。如果您需要使用该库,请在脚本元属性加入:// @require https://update.gf.qytechs.cn/scripts/470972/1220923/210-%E5%9F%BA%E5%9B%A0%E8%BF%94%E8%BF%98.js

  1. function 基因返还(){
  2. console.log('新的基因返还界面')
  3. var local_查询返还单生成=localStorage.getItem('查询返还单生成');
  4. var html=$('iframe[src="/geneNew/GeneReturnList.aspx"]')//测序样品页面
  5. html=html.contents().find('body').eq(0)
  6. var toolbar=html.find('.toolbar').eq(0) // 找到了toolbar工具栏
  7. //添加toolbar工具栏按钮
  8. 添加toolbar按钮(html)
  9. //添加toolbar工具栏按钮
  10. function 添加toolbar按钮(html){
  11. if (toolbar.find('.weiyiyici').length==0){
  12. //添加标记
  13. toolbar.addClass('weiyiyici')
  14. //添加 查询返还单生成 按钮
  15. if (local_查询返还单生成=='true'){
  16. toolbar.append('<button id="button_fanhuandan_shengcheng" onclick="return false">查询返还单生成</button>') //添加按钮
  17. //点击按钮执行如下函数
  18. toolbar.find('#button_fanhuandan_shengcheng').click(function(){
  19. toolbar.find('#a_search').eq(0).find('.l-btn-left').eq(0).click();
  20. //点击 qc已排版
  21. $('#w').find('#return_not_ids').click()
  22. setTimeout('$("#AB").click()', 100)
  23. })
  24. }
  25. }
  26. }
  27. }
  28.  

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址