designerGroupAdd.zml 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228
  1. ${zhiqim_manager_history("designerGroup.htm")}
  2. ${request.getValidateScript()}
  3. ${Scripts.src("/zinc/layui/layui.js")}
  4. <link rel="stylesheet" href="../zinc/layui/css/layui.css"/>
  5. <style>
  6. xm-select div:not(span) {
  7. line-height: inherit;
  8. }
  9. </style>
  10. <script type="text/javascript">
  11. layui.config({
  12. base: '../zinc/module/'
  13. }).extend({
  14. xmSelect: 'xmSelect/xm-select',
  15. }).use(['jquery','xmSelect'], function () {
  16. var $ = layui.$;
  17. var xmSelect = layui.xmSelect;
  18. var typeList = ${typeList};
  19. var industryList = ${industryList};
  20. var relatedType0 = xmSelect.render({
  21. el: '#relatedType0',
  22. toolbar: {show: true},
  23. theme: {color: '#28a3ef'},
  24. filterable: true,
  25. autoRow: true,
  26. prop: {
  27. name: 'typeName',
  28. value: 'typeId',
  29. },
  30. data: typeList
  31. });
  32. var relatedType4 = xmSelect.render({
  33. el: '#relatedType4',
  34. toolbar: {show: true},
  35. theme: {color: '#28a3ef'},
  36. filterable: true,
  37. autoRow: true,
  38. prop: {
  39. name: 'typeName',
  40. value: 'typeId',
  41. },
  42. data: typeList
  43. });
  44. var relatedType1 = xmSelect.render({
  45. el: '#relatedType1',
  46. toolbar: {show: true},
  47. theme: {color: '#28a3ef'},
  48. filterable: true,
  49. autoRow: true,
  50. prop: {
  51. name: 'typeName',
  52. value: 'typeId',
  53. },
  54. data: typeList
  55. });
  56. var relatedType2 = xmSelect.render({
  57. el: '#relatedType2',
  58. toolbar: {show: true},
  59. theme: {color: '#28a3ef'},
  60. filterable: true,
  61. autoRow: true,
  62. prop: {
  63. name: 'typeName',
  64. value: 'typeId',
  65. },
  66. data: typeList
  67. });
  68. var relatedType3 = xmSelect.render({
  69. el: '#relatedType3',
  70. toolbar: {show: true},
  71. theme: {color: '#28a3ef'},
  72. filterable: true,
  73. autoRow: true,
  74. prop: {
  75. name: 'industryName',
  76. value: 'industryId',
  77. },
  78. data: industryList
  79. });
  80. $("#designerGroupInsertForm").submit(function(){
  81. doSubmit(this);
  82. });
  83. function doSubmit(form){
  84. var type0 = relatedType0.getValue("value");
  85. $("#type0").val(JSON.stringify(type0));
  86. var type1 = relatedType1.getValue("value");
  87. $("#type1").val(JSON.stringify(type1));
  88. var type2 = relatedType2.getValue("value");
  89. $("#type2").val(JSON.stringify(type2));
  90. var type3 = relatedType3.getValue("value");
  91. $("#type3").val(JSON.stringify(type3));
  92. var type4 = relatedType4.getValue("value");
  93. $("#type4").val(JSON.stringify(type4));
  94. return;
  95. }
  96. });
  97. </script>
  98. ${zhiqim_manager_breadcrumb_parent("designerGroup.htm" "接单条件组管理" "增加接单条件组")}
  99. ${zhiqim_manager_content()}
  100. <form id="designerGroupInsertForm" name="theForm" method="post" action="designerGroupInsert.htm" data-role="z-call-frame">
  101. <input id="type0" name="type0" type="hidden" />
  102. <input id="type1" name="type1" type="hidden" />
  103. <input id="type2" name="type2" type="hidden" />
  104. <input id="type3" name="type3" type="hidden" />
  105. <input id="type4" name="type4" type="hidden" />
  106. <table class="z-table z-bordered z-h50-tr z-pd10 z-lh150p z-bg-white">
  107. <tr class="zi-h40 z-bg-gray z-bold">
  108. <td colspan="2">增加接单条件组</td>
  109. </tr>
  110. <tr>
  111. <td width="15%">接单条件组名:<span class="z-color-999"></span></td>
  112. <td>
  113. <input name="designerGroupName" class="z-input z-w300 ${zmr_color_class}" maxlength="16"><span class="z-color-red z-mg-r40">&nbsp;*</span>
  114. 备注:
  115. <input name="remark" class="z-input z-w300 ${zmr_color_class}" maxlength="16">
  116. </td>
  117. </tr>
  118. <tr>
  119. <td>关联渠道:</td>
  120. <td>
  121. <div class="z-pd3 z-bold z-pointer">
  122. <input type="checkbox" id="selectAllChannel" data-role="z-checkbox" onclick="Z.FM.doSelectCheckBox('merchantIds', this.checked ? 1 : 2);" data-class="z-blue"/><span class="z-mg-l5" onclick="Z(this).parent().find('zcover>i.z-checkbox').click();">全选</span>
  123. </div>
  124. <div class="z-float-left z-pd6">
  125. <#for item : merchantList>
  126. <div class="z-float-left z-pd6 z-mg-l20 z-text-ellipsis z-pointer " style="width:110px" title="${item}">
  127. <input type="checkbox" name="merchantIds" onclick="" class="z-checkbox" value="${item.getMerchantId()}" data-role="z-checkbox" data-class="${zmr_color_class}">
  128. <span onclick="Z(this).parent().find('zcover>i.z-checkbox').click()" class="z-pointer">${item.getMerchantName()}</span>
  129. </div>
  130. </#for>
  131. </div>
  132. </td>
  133. </tr>
  134. <tr>
  135. <td>特殊标识:<span class="z-color-999"></span></td>
  136. <td>
  137. <div class="z-float-left z-pd6 z-text-ellipsis z-pointer " title="优质订单">
  138. <input type="checkbox" name="isHighQualityOrder" onclick="" class="z-checkbox" value="1" data-role="z-checkbox" data-class="${zmr_color_class}">
  139. <span onclick="Z(this).parent().find('zcover>i.z-checkbox').click()" class="z-pointer">优质订单</span>
  140. </div>
  141. <div class="z-float-left z-pd6 z-text-ellipsis z-pointer " title="大金额订单">
  142. <input type="checkbox" name="isLargeAmount" onclick="" class="z-checkbox" value="1" data-role="z-checkbox" data-class="${zmr_color_class}">
  143. <span onclick="Z(this).parent().find('zcover>i.z-checkbox').click()" class="z-pointer">大金额订单</span>
  144. </div>
  145. <div class="z-float-left z-pd6 z-text-ellipsis z-pointer " title="加急订单">
  146. <input type="checkbox" name="isUrgent" onclick="" class="z-checkbox" value="1" data-role="z-checkbox" data-class="${zmr_color_class}">
  147. <span onclick="Z(this).parent().find('zcover>i.z-checkbox').click()" class="z-pointer">加急订单</span>
  148. </div>
  149. <div class="z-float-left z-pd6 z-text-ellipsis z-pointer " title="仅设计不印刷">
  150. <input type="checkbox" name="isDesign" onclick="" class="z-checkbox" value="1" data-role="z-checkbox" data-class="${zmr_color_class}">
  151. <span onclick="Z(this).parent().find('zcover>i.z-checkbox').click()" class="z-pointer">仅设计不印刷</span>
  152. </div>
  153. <div class="z-float-left z-pd6 z-text-ellipsis z-pointer " title="异形订单">
  154. <input type="checkbox" name="isSpecial" onclick="" class="z-checkbox" value="1" data-role="z-checkbox" data-class="${zmr_color_class}">
  155. <span onclick="Z(this).parent().find('zcover>i.z-checkbox').click()" class="z-pointer">异形订单</span>
  156. </div>
  157. <div class="z-float-left z-mg-l20 z-text-ellipsis" title="异形订单">
  158. 订单金额范围:
  159. <input id="merMinOrderAmount" name="minOrderAmount" value="" class="z-input z-w90 z-ime-disabled" data-options="type:Amount2R;paste:true;" maxlength="6" placeholder="最小金额">
  160. &nbsp;-&nbsp;
  161. <input id="merMaxOrderAmount" name="maxOrderAmount" value="" class="z-input z-w90 z-ime-disabled" data-options="type:Amount2R;paste:true;" maxlength="6" placeholder="最大金额">
  162. </div>
  163. <div class="z-float-left z-mg-l20 z-text-ellipsis" title="设计师表里未完成订单数量>=该值,系统派单/人工指单将会失败">
  164. 最大接单数量:
  165. <input id="maxOrderNum" name="maxOrderNum" value="" class="z-input z-w90 z-ime-disabled" data-options="type:Integer;" maxlength="2" /><span class="z-color-red z-mg-r40">&nbsp;*</span>
  166. </div>
  167. <div>
  168. 最大可放弃次数:
  169. <input id="maxWaiveNum" name="maxWaiveNum" value="" class="z-input z-w90 z-ime-disabled" data-options="type:Integer;" maxlength="2" /><span class="z-color-red z-mg-r40">&nbsp;*</span>
  170. </div>
  171. </td>
  172. </tr>
  173. <tr>
  174. <td>关联产品:<span class="z-color-999"></span></td>
  175. <td style="display: flex;justify-content: space-between;">
  176. <div style="display: flex;align-items: center;">
  177. <label>标准自来稿:</label>
  178. <div id="relatedType0" style="width: 250px;"></div>
  179. </div>
  180. <div style="display: flex;align-items: center;">
  181. <label>改稿自来稿:</label>
  182. <div id="relatedType4" style="width: 250px;"></div>
  183. </div>
  184. <div style="display: flex;align-items: center;">
  185. <label>普通设计:</label>
  186. <div id="relatedType1" style="width: 250px;"></div>
  187. </div>
  188. <div style="display: flex;align-items: center;">
  189. <label>资深设计:</label>
  190. <div id="relatedType2" style="width: 250px;"></div>
  191. </div>
  192. </td>
  193. </tr>
  194. <tr style="display:none;">
  195. <td>关联行业:<span class="z-color-999"></span></td>
  196. <td style="display: flex;justify-content: space-between;">
  197. <div style="display: flex;align-items: center;">
  198. <div id="relatedType3" style="width: 600px;"></div>
  199. </div>
  200. </td>
  201. </tr>
  202. <tr>
  203. <td>支持后加工:</td>
  204. <td>
  205. <div class="z-pd3 z-bold z-pointer">
  206. <input type="checkbox" id="selectAllAfter" data-role="z-checkbox" onclick="Z.FM.doSelectCheckBox('afterNames', this.checked ? 1 : 2);" <#if Lists.toStringList(orgMer.getAfterNames()).size()==afterList.size()> checked </#if> data-class="z-blue"/><span class="z-mg-l5" onclick="Z(this).parent().find('zcover>i.z-checkbox').click();">全选</span>
  207. </div>
  208. <div class="z-float-left z-pd6">
  209. <#for item : afterList>
  210. <div class="z-float-left z-pd6 z-mg-l20 z-text-ellipsis z-pointer " style="width:110px" title="${item}">
  211. <input type="checkbox" name="afterNames" onclick="" class="z-checkbox" value="${item}" data-role="z-checkbox" data-class="${zmr_color_class}">
  212. <span onclick="Z(this).parent().find('zcover>i.z-checkbox').click()" class="z-pointer">${item}</span>
  213. </div>
  214. </#for>
  215. </div>
  216. </td>
  217. </tr>
  218. </table>
  219. ${zhiqim_manager_submit()}
  220. </form>
  221. ${zhiqim_manager_content_end()}