doEditDesignPrice.zml 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. ${request.getValidateScript()}
  2. <script>
  3. function editDesignPrice()
  4. {
  5. var designId = ${designId};
  6. var designPrice = document.getElementById("designPrice").value;
  7. var ajax = new Z.Ajax();
  8. ajax.setClassName("ProductConvertAction");
  9. ajax.setMethodName("editDesignPrice");
  10. ajax.addParam(designId);
  11. ajax.addParam(designPrice);
  12. ajax.setFailureAlert();
  13. ajax.setSuccess(function(){
  14. Z.success("操作成功",function(){parent.location.reload();parent.Z.Dialog.close();});
  15. });
  16. ajax.setLoading("editDesignPrice", '正在提交', {disabled:true});
  17. ajax.execute();
  18. window.top.location.reload();
  19. }
  20. </script>
  21. <table class="z-table z-bordered z-pd6">
  22. <tr class="z-h50" bgcolor="${oddColor}">
  23. <td width="25%">订单号:</td>
  24. <td width="*">${designId}</td>
  25. </tr>
  26. <tr class="z-h60" bgcolor="${trColor}">
  27. <td>产品描述:</td>
  28. <td>${orderText}</td>
  29. </tr>
  30. <tr class="z-h70" bgcolor="${zmr_thead_bgcolor}">
  31. <td>设计佣金:</td>
  32. <td>
  33. <input id="designPrice" name="designPrice" <#if designPrice lt 0>value="${Amounts.toYuanMustRadix(designPrice)}"<#else>value="${designPrice}"</#if> step="1" min="0" onkeyup="this.value= this.value.match(/\d+(\.\d{0,2})?/) ? this.value.match(/\d+(\.\d{0,2})?/)[0] : ''">
  34. </td>
  35. </tr>
  36. </table>
  37. <#-- 操作 -->
  38. <div class="z-absolute z-w100p z-h60 z-text-center z-bg-gray z-pd10" style="bottom:0;left:0">
  39. <button id="editDesignPrice" class="z-button z-large z-w120 ${zmr_color_class}" type="button" onclick="editDesignPrice();">提交</button>&nbsp;
  40. <button type="button" class="z-button z-large z-mg-l10" onclick="parent.Z.Dialog.close(location.hash);">关闭</button>
  41. </div>