doEditUrgentPrice.zml 1.6 KB

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