productConvertAdd.zml 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. ${request.getValidateScript()}
  2. ${zhiqim_manager_history("productConvert.htm")}
  3. ${zhiqim_manager_breadcrumb_parent("productConvert.htm", "产品单价" , "增加产品单价")}
  4. ${zhiqim_manager_content()}
  5. <form name="theForm" action="productConvertInsert.htm" method="post" onSubmit="return validateForm(this);" data-role="z-call-frame">
  6. <table class="z-table z-bordered z-h50-tr z-pd10 z-bg-white">
  7. <tr class="zi-h40 z-bg-gray z-bold">
  8. <td colspan="2">增加产品单价</td>
  9. </tr>
  10. <tr>
  11. <td width="40%" align="center">产品</td>
  12. <td width="*">
  13. <select name="prdTypeId" class="z-float-left z-select z-w150" data-role="z-select-search" data-class="${zmr_color_class}" onchange="doQueryPrdAttr(this.value)">
  14. <#for item : DesignTypeDao.list()>
  15. <option value="${item.getTypeId()}" <#if item.getTypeId() == convert.getPrdTypeId()>selected</#if>>${item.getTypeName()}</option>
  16. </#for>
  17. </select>
  18. <span class="z-color-red">&nbsp;*</span>
  19. </td>
  20. </tr>
  21. <tr>
  22. <td align="center">尺寸</td>
  23. <td>
  24. <div style="display:flex;align-items:center;">
  25. 长:小于&nbsp;<input type="text" name="prdSizeWidth" id="prdSizeWidth" data-options="type:Integer;paste:true;" maxlength="8" class="z-input z-w150" value="" placeholder="填写尺寸时需包含出血">&emsp;宽:小于&nbsp;<input type="text" name="prdSizeHeight" id="prdSizeHeight" data-options="type:Integer;paste:true;" maxlength="8" class="z-input z-w150" value="" placeholder="填写尺寸时需包含出血">&nbsp;
  26. <span class="z-pointer" data-role="z-tooltip" data-options="placement:top;align:left;width:420px;" data-text="1.若有多个尺寸配置适用,则使用最小适用尺寸范围配置<br>2.配置尺寸需考虑产品出血值<br>3.不支持长宽交叉配置(小于90*小于56和小于92*小于54不允许同时存在)"><svg t="1618819497927" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="4064" width="28" height="28"><path d="M512 127.9c51.9 0 102.2 10.1 149.5 30.2 45.7 19.3 86.8 47 122.1 82.3s63 76.4 82.3 122.1c20 47.3 30.2 97.6 30.2 149.5S886 614.2 865.9 661.5c-19.3 45.7-47 86.8-82.3 122.1s-76.4 63-122.1 82.3c-47.3 20-97.6 30.2-149.5 30.2S409.8 886 362.5 865.9c-45.7-19.3-86.8-47-122.1-82.3s-63-76.4-82.3-122.1c-20-47.3-30.2-97.6-30.2-149.5s10.1-102.2 30.2-149.5c19.3-45.7 47-86.8 82.3-122.1s76.4-63 122.1-82.3c47.3-20 97.6-30.2 149.5-30.2m0-64C264.5 63.9 63.9 264.5 63.9 512S264.5 960.1 512 960.1 960.1 759.5 960.1 512 759.5 63.9 512 63.9z" fill="#1296db" p-id="4065"></path><path d="M480 736h64v64h-64zM476.9 686.3c-0.3-9.3-0.4-42.2-0.4-46.8 0-27.3 3.9-50.8 11.6-70.6 5.7-14.9 14.8-30 27.4-45.1 9.3-11.1 25.9-27.2 50-48.4 24-21.2 39.7-38.1 46.9-50.7s10.8-26.4 10.8-41.3c0-27-10.5-50.7-31.6-71.2-21.1-20.4-46.9-30.7-77.5-30.7-29.6 0-54.3 9.3-74.1 27.8-19.8 18.5-32.8 47.4-39 86.8l-71.4-8.5c6.4-52.7 25.5-93.1 57.3-121.1s73.7-42 125.9-42c55.3 0 99.4 15 132.3 45.1 32.9 30.1 49.4 66.5 49.4 109.2 0 24.7-5.8 47.4-17.4 68.3s-34.2 46.2-67.9 76c-22.6 20.1-37.4 34.8-44.4 44.4-6.9 9.5-12.1 20.4-15.4 32.8-3.3 12.3-5.3 58.4-5.8 86.2h-66.7v-0.2z" fill="#1296db" p-id="4066"></path></svg></span>
  27. &nbsp;&nbsp;&nbsp;
  28. <div style="display:flex;align-items:center;">
  29. 别名:<input type="text" name="alias" id="alias" data-options="type:String;paste:true;" maxlength="8" class="z-input z-w150" value="${convert.getAlias()}" placeholder="该尺寸产品别名">&nbsp;
  30. </div>
  31. </td>
  32. </tr>
  33. <tr>
  34. <td align="center">面数</td>
  35. <td>
  36. <select name="prdPageName" id="prdPageName" class="z-float-left z-select z-w150" data-role="z-select-search" data-class="${zmr_color_class}">
  37. </select>
  38. </td>
  39. </tr>
  40. <tr>
  41. <td align="center">普通设计单价</td>
  42. <td>
  43. <input type="text" name="prdPrice" id="prdPrice" class="z-input z-w180" value="" placeholder="请输入普通设计单价">&nbsp;<input type="date" name="prdPriceDate" id="prdPriceDate" class="z-input z-w180" value="" placeholder="生效时间">
  44. </td>
  45. </tr>
  46. <tr>
  47. <td align="center">资深设计单价</td>
  48. <td>
  49. <input type="text" name="srPrice" id="srPrice" class="z-input z-w180" value="" placeholder="请输入资深设计单价">&nbsp;<input type="date" name="srPriceDate" id="srPriceDate" class="z-input z-w180" value="" placeholder="生效时间">
  50. </td>
  51. </tr>
  52. <tr>
  53. <td align="center">改稿单价</td>
  54. <td>
  55. <input type="text" name="templateDraftPrice" id="templateDraftPrice" class="z-input z-w180" value="" placeholder="请输入改稿价格">&nbsp;<input type="date" name="rewritePriceDate" id="rewritePriceDate" class="z-input z-w180" value="${rewritePriceDate}" placeholder="生效时间">
  56. </td>
  57. </tr>
  58. </table>
  59. ${zhiqim_manager_submit()}
  60. </form>
  61. ${zhiqim_manager_content_end()}
  62. <style>
  63. .rankUl>li{
  64. padding-bottom: 10px;
  65. }
  66. .rankUl>li>input{
  67. margin-left: 10px;
  68. }
  69. </style>
  70. <script>
  71. Z.onload(function(){
  72. doQueryPrdAttr(1);
  73. });
  74. function doQueryPrdAttr(prdTypeId){
  75. /**if(prdTypeId == ''){
  76. Z("#prdSizeStd").htmlc('<option value="">尺寸</option>');
  77. Z("#prdPageName").htmlc('<option value="">面数</option>');
  78. return;
  79. }
  80. var ajax = new Z.Ajax();
  81. ajax.setClassName("BasePresenter");
  82. ajax.setMethodName("doQueryPrdSizeByTypeId");
  83. ajax.addParam("prdTypeId", prdTypeId);
  84. ajax.setFailureAlert();
  85. ajax.setSuccess(function(){
  86. var obj = Z.J.toObject(this.responseText);
  87. var html = '<option value="">尺寸</option>';
  88. obj.forEach(function(value, key, arr){
  89. html += '<option value="'+value+'">'+value+'</option>';
  90. });
  91. Z("#prdSizeStd").htmlc(html);
  92. });
  93. ajax.execute();*/
  94. var ajax = new Z.Ajax();
  95. ajax.setClassName("BasePresenter");
  96. ajax.setMethodName("doQueryPrdPageByTypeId");
  97. ajax.addParam("prdTypeId", prdTypeId);
  98. ajax.setFailureAlert();
  99. ajax.setSuccess(function(){
  100. var obj = Z.J.toObject(this.responseText);
  101. var html = '<option value="">面数</option>';
  102. obj.forEach(function(value, key, arr){
  103. html += '<option value="'+value+'">'+value+'</option>';
  104. });
  105. Z("#prdPageName").htmlc(html);
  106. });
  107. ajax.execute();
  108. }
  109. </script>