configQuestionsAdd.zml 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. ${request.getValidateScript()}
  2. <script>
  3. function doOrderQuestionsAdd(){
  4. var product = Z("#product").val();
  5. var materials = Z("#materials").val();
  6. var sizeLength = Z("#sizeLength").val();
  7. var sizeWidth = Z("#sizeWidth").val();
  8. var faceCount = Z("#faceCount").val();
  9. var styleCount = Z("#styleCount").val();
  10. var others = Z("#others").val();
  11. var ajax = new Z.Ajax();
  12. ajax.setClassName("ConfigQuestionsAction");
  13. ajax.setMethodName("orderQuestionsAdd");
  14. ajax.addParam("product",product);
  15. ajax.addParam("materials",materials);
  16. ajax.addParam("sizeLength",sizeLength);
  17. ajax.addParam("sizeWidth",sizeWidth);
  18. ajax.addParam("faceCount",faceCount);
  19. ajax.addParam("styleCount",styleCount);
  20. ajax.addParam("others",others);
  21. ajax.setFailureAlert();
  22. ajax.setSuccess(function()
  23. {
  24. Z.success("添加成功", function(){parent.location.reload();parent.Z.Dialog.close();});
  25. });
  26. ajax.execute();
  27. }
  28. </script>
  29. <style>
  30. .container{ min-height:200px;}
  31. </style>
  32. <table class="z-table z-bordered z-pd6 z-bg-white" style="height:240px;">
  33. <tr>
  34. <td>
  35. 产品类型:<input id="product" type="text" name="product" class="z-input z-w200" value="" placeholder="如:名片">&nbsp;&nbsp;&nbsp;
  36. 材质描述:<input id="materials" type="text" name="materials" class="z-input z-w200" value="" placeholder="如:铜版纸覆膜">
  37. </td>
  38. </tr>
  39. <tr>
  40. <td>
  41. 尺寸长(mm):<input id="sizeLength" type="text" name="sizeLength" class="z-input z-w180" value="" placeholder="如:90" data-options="type:Integer;">&nbsp;&nbsp;&nbsp;
  42. 尺寸宽(mm):<input id="sizeWidth" type="text" name="sizeWidth" class="z-input z-w180" value="" placeholder="如:54" data-options="type:Integer;">
  43. </td>
  44. </tr>
  45. <tr>
  46. <td>
  47. 单双面:&nbsp;&nbsp;&nbsp;&nbsp;<input id="faceCount" type="text" name="faceCount" class="z-input z-w200" value="" placeholder="如:双面">&nbsp;&nbsp;&nbsp;
  48. 款数:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input id="styleCount" type="text" name="styleCount" class="z-input z-w200" value="" placeholder="如:1款1模">
  49. </td>
  50. </tr>
  51. <tr>
  52. <td>
  53. 其他需求:<input id="others" type="text" name="others" class="z-input z-w500" value="" >
  54. </td>
  55. </tr>
  56. </table>
  57. <#-- 操作 -->
  58. <div class=" z-w100p z-text-center z-bg-gray z-pd10" style="bottom:0;left:0">
  59. <button class="z-button z-large z-w120 ${zmr_color_class}" onclick="doOrderQuestionsAdd();" >提交</button>&nbsp;
  60. <button type="button" class="z-button z-large z-w100 z-mg-l10" onclick="parent.Z.Dialog.close(location.hash);">关闭</button>
  61. </div>