container_edit.html 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. {Template header}
  2. <body>
  3. <div class="warp">
  4. <div class="title winnone">货柜物品 - 修改</div>
  5. <ul class="setting-UMeditor">
  6. <li>
  7. <em>货物名称:</em>
  8. <input class="must" value="{$container['title']}" name="title" type="text" >
  9. </li>
  10. <li>
  11. <em>数量:</em>
  12. <input class="must" value="{$container['num']}" name="num" type="text" >
  13. </li>
  14. <li>
  15. <em>单位重量:</em>
  16. <input value="{$container['weight']}" name="weight" type="text" > 千克
  17. </li>
  18. <li>
  19. <em>总重量:</em>
  20. <input value="{$container['zweight']}" name="zweight" type="text" readonly style="background-color: #ebebe4;"> 千克
  21. </li>
  22. <li>
  23. <em>预估体积:</em>
  24. <input value="{$container['volume']}" name="volume" type="text" > 立方米
  25. </li>
  26. <li>
  27. <em>优先级:</em><select name="type" class="select">
  28. <option value="1" {if $container['type'] == '1'}selected="selected"{/if}>A-必须发</option>
  29. <option value="2" {if $container['type'] == '2'}selected="selected"{/if}>B-如果发不完可先发走一部分</option>
  30. <option value="3" {if $container['type'] == '3'}selected="selected"{/if}>C-拼箱用,可发可不发</option>
  31. </select>
  32. </li>
  33. <li>
  34. <em>用途:</em>
  35. <input value="{$container['yt']}" name="yt" type="text" >
  36. </li>
  37. <li>
  38. <em>提交人:</em>
  39. <input class="must" value="{$container['name']}" name="name" type="text" >
  40. </li>
  41. </ul>
  42. <input type="hidden" name="id" value="{$container['id']}" />
  43. <div class="button"><font class="datasave">提 交</font> <font class="fh">关 闭</font></div>
  44. </div>
  45. <script>var addedit="/container/edit/";var rowsurl="/container/rows/";var scwd = "/fullorderexcel/scwd";
  46. $("input[name=num]").bind("input propertychange",function(event){
  47. var num = $("input[name=num]").val()*1;
  48. var weight = $("input[name=weight]").val()*1;
  49. var zweight = num*weight;
  50. console.log($("input[name=zweight]").val(zweight.toFixed(2)))
  51. });
  52. $("input[name=weight]").bind("input propertychange",function(event){
  53. var num = $("input[name=num]").val()*1;
  54. var weight = $("input[name=weight]").val()*1;
  55. var zweight = num*weight;
  56. console.log($("input[name=zweight]").val(zweight.toFixed(2)))
  57. });
  58. </script>
  59. {Template footer}