receiveMerAdd.zml 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. <#def designatedPath="/receiveMerManage.htm"/>
  2. ${request.getValidateScript()}
  3. ${zhiqim_manager_history("/receiveMerManage.htm")}
  4. ${zhiqim_manager_breadcrumb_parent("/receiveMerManage.htm", "接单商户管理", "添加接单商户")}
  5. ${zhiqim_manager_content()}
  6. <script>
  7. var prdtypeArr = [];
  8. Z.onload(function(){
  9. });
  10. function doSelectDesignType(v)
  11. {
  12. if (Z.AR.contains(prdtypeArr, v))
  13. Z.AR.remove(prdtypeArr, v);
  14. else
  15. prdtypeArr.push(v);
  16. if (Z("input[name=typeIds]").length == prdtypeArr.length)
  17. {
  18. Z.D.id("selectAllType").checked=true;
  19. Z("i[data-id=selectAllType]").addClass("z-active");
  20. }
  21. else
  22. {
  23. Z.D.id("selectAllType").checked=false;
  24. Z("i[data-id=selectAllType]").removeClass("z-active");
  25. }
  26. doBiuldPolicy(prdtypeArr);
  27. }
  28. function doselctbox(box, type)
  29. {
  30. var _div = Z(box).parent().parent().siblings("div");
  31. Z.each(_div.find('i.z-checkbox'), function(item, i)
  32. {
  33. if (Z(item).hasClass("z-active"))
  34. {
  35. if (!box.checked)
  36. {
  37. Z(item).click();
  38. }
  39. }
  40. else
  41. {
  42. if (box.checked)
  43. {
  44. Z(item).click();
  45. }
  46. }
  47. });
  48. if (type == 1)
  49. {
  50. doBiuldPolicy(prdtypeArr)
  51. }
  52. }
  53. function doSelectAllDesignType(box)
  54. {
  55. var type = Z.V.isEmptyBlank(Z.FM.getCheckBoxValue("typeIds")) ? 1 : (Z("input[name=typeIds]").length != prdtypeArr.length ? 1 : 2);
  56. if (box.checked && type == 2)
  57. type = 1;
  58. Z.FM.doSelectCheckBox('typeIds', type)
  59. prdtypeArr = Z.AR.toArray(Z.FM.getCheckBoxValue("typeIds"), ",");
  60. doBiuldPolicy(prdtypeArr);
  61. }
  62. </script>
  63. <form name="theForm" action="receiveMerInsert.htm" method="post" onSubmit="return validateForm(this);" data-role="z-call-frame">
  64. <table class="z-table z-bordered z-h50-tr z-pd10 z-bg-white">
  65. <tr class="zi-h40 z-bg-gray z-bold">
  66. <td colspan="20">添加接单组织</td>
  67. </tr>
  68. <tr>
  69. <td width="25%">选择接组织:</td>
  70. <td width="25%">
  71. <select id="orgId" name="orgId" class="z-select z-w200" data-role="z-select" data-class="${zmr_color_class}">
  72. <#for item : orgList>
  73. <option value="${item.getOrgId()}">${item.getOrgName()}</option>
  74. </#for>
  75. </select>
  76. </td>
  77. <td width="25%">组织接单优先级:<span class="z-text-red" style="color:#D0CECE;">数字越小派单越前</span></td>
  78. <td width="25%">
  79. <input id="merLevel" name="merLevel" value="${orgMer.getMerLevel()}" class="z-input z-w200" maxlength="6" data-options="type:Decimal;paste:true;" placeholder="排序优先级(填写数字)">
  80. <span class="z-text-red">*</span>
  81. </td>
  82. </tr>
  83. <tr>
  84. <td>接单状态:</td>
  85. <td>
  86. <select id="isPauseRecieive" name="isPauseRecieive" class="z-select z-w200" data-role="z-select" data-class="${zmr_color_class}">
  87. <option value="false" <#if orgMer.isPauseRecieive() == false>selected</#if>>开启</option>
  88. <option value="true" <#if orgMer.isPauseRecieive()>selected</#if>>暂停</option>
  89. </select>
  90. </td>
  91. <td>组织状态:</td>
  92. <td>
  93. <select id="merStatus" name="merStatus" class="z-select z-w200" data-role="z-select" data-class="${zmr_color_class}">
  94. <option value="false" <#if orgMer.getMerStatus() == 0>selected</#if>>正常</option>
  95. <option value="true" <#if orgMer.getMerStatus() == 1>selected</#if>>停用</option>
  96. </select>
  97. </td>
  98. </tr>
  99. </table>
  100. ${zhiqim_manager_submit()}
  101. </form>
  102. ${zhiqim_manager_content_end()}