order_pickpoint.js 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. function show(o,sid){
  2. var pid = document.getElementById('point'+sid).value;
  3. Ajax.call('flow.php?step=select_pickinfo', 'sid=' + sid + '&pid='+pid, pickinfo, 'POST', 'JSON');
  4. $("#pop").animate({height:'80%'},[10000]);
  5. var total=0,h=$(window).height(),
  6. top =$('.f_title').height()||0,
  7. con = $('.f_content');
  8. total = 0.8*h;
  9. con.height(total-top+'px');
  10. $(".f_mask").show();
  11. }
  12. function close_pop(){
  13. $(".f_mask").hide();
  14. $('#pop').animate({height:'0'},[10000]);
  15. }
  16. function pickinfo(result){
  17. document.getElementById('pickcontent').innerHTML = result.content;
  18. }
  19. function showztd(did){
  20. var num = $("table[class='ztd']").length;
  21. if(num>0){
  22. $("table[class='ztd']").each(function(){
  23. $(this).hide();
  24. })
  25. }
  26. $('#txt'+did).show();
  27. }
  28. function select_point(value){
  29. $('#s_pid').val(value);
  30. }
  31. function save_point(suppid){
  32. var value = $('#s_pid').val();
  33. Ajax.call('flow.php?step=save_point', 'sid=' + suppid + '&pid='+value, selectpickinfo, 'GET', 'JSON');
  34. close_pop();
  35. }
  36. function selectpickinfo(result){
  37. if(document.getElementById('picktxt'+result.suppid)){
  38. document.getElementById('picktxt'+result.suppid).innerHTML = result.picktxt;
  39. }
  40. }