receiveMerModifyInfo.zml 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <script>
  2. function doModify()
  3. {
  4. var ajax = new Z.Ajax();
  5. ajax.setClassName("com.zhiqim.yangcai.design.action.sys.ReceiveMerModifyAction");
  6. ajax.setMethodName("update");
  7. ajax.addParam("orgId", document.modifyForm.orgId.value);
  8. ajax.addParam("merStatus", document.modifyForm.merStatus.value);
  9. ajax.addParam("isPauseRecieive", document.modifyForm.isPauseRecieive.value);
  10. ajax.addParam("merLevel", document.modifyForm.merLevel.value);
  11. ajax.setFailureAlert();
  12. ajax.setSuccess(function(){
  13. parent.location.reload();
  14. });
  15. ajax.setLoading("doModifyBtn", '保存', {disabled:true});
  16. ajax.execute();
  17. }
  18. </script>
  19. <form name="modifyForm" action="" method="post" onSubmit="void(0)" data-role="z-call-frame">
  20. <table class="z-table z-bordered z-h50-tr z-pd10 z-bg-white">
  21. <tr>
  22. <td width="160">选择接单商户:</td>
  23. <td width="*">
  24. <select id="orgId" name="orgId" class="z-select z-w200" data-role="z-select" data-class="${zmr_color_class}">
  25. <option value="${orgMer.getOrgId()}">${ZmrOrgDao.getOrgName(request, orgMer.getOrgId())}</option>
  26. </select>
  27. </td>
  28. <td>组织状态:</td>
  29. <td>
  30. <select id="merStatus" name="merStatus" class="z-select z-w200" data-role="z-select" data-class="${zmr_color_class}">
  31. <option value="0" <#if orgMer.getMerStatus() == 0>selected</#if>>正常</option>
  32. <option value="1" <#if orgMer.getMerStatus() == 1>selected</#if>>停用</option>
  33. </select>
  34. </td>
  35. </tr>
  36. <tr>
  37. <td>接单状态:</td>
  38. <td>
  39. <select id="isPauseRecieive" name="isPauseRecieive" class="z-select z-w200" data-role="z-select" data-class="${zmr_color_class}">
  40. <option value="false" <#if orgMer.isPauseRecieive() == false>selected</#if>>开启</option>
  41. <option value="true" <#if orgMer.isPauseRecieive()>selected</#if>>暂停</option>
  42. </select>
  43. </td>
  44. <td>接单优先级:</td>
  45. <td>
  46. <input id="merLevel" name="merLevel" value="${orgMer.getMerLevel()}" class="z-input z-w200" maxlength="6" data-options="type:Decimal;paste:true;" placeholder="排序优先级(填写数字)">
  47. </td>
  48. </tr>
  49. </table>
  50. <#-- 操作 -->
  51. <div class="z-absolute z-w100p z-h60 z-text-center z-bg-gray z-pd10" style="bottom:0;left:0">
  52. <button type="button" id="doModifyBtn" class="z-button z-large z-w120 z-blue" onclick="doModify();">保存</button>
  53. <button type="button" class="z-button z-large z-w100 z-mg-l10" onclick="parent.Z.Dialog.close();">取消</button>
  54. </div>
  55. </form>