receiveOrder.zml 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. ${Styles.htmlOverflowHidden()}
  2. ${Scripts.src("/zinc/js/global_2019010801.js")}
  3. ${yangcai_calc_Left_width_height(400, 70)}
  4. <script>
  5. function doContendOrder(designId,orderText,status)
  6. {//抢单
  7. if (status == 10){
  8. var dialog = new Z.Dialog();
  9. dialog.title = "接受订单";
  10. dialog.url = "/contendOrder.htm?designId="+designId+"&orderText="+orderText;
  11. dialog.width = 600;
  12. dialog.height = 460;
  13. dialog.execute();
  14. } else {
  15. Z.alert('该订单已被领取!',
  16. function(){
  17. parent.location.reload();
  18. parent.Z.Dialog.close();
  19. });
  20. };
  21. }
  22. </script>
  23. <style>
  24. body{height:100%;}
  25. .receive-box{ background:#fff; padding:20px;}
  26. .z-table.z-bordered { border:none;}
  27. .z-table.z-bordered>thead>tr>th,.z-table.z-bordered>thead>tr>td,.z-table.z-bordered>tbody>tr>th,.z-table.z-bordered>tbody>tr>td{
  28. border:none; border-bottom: 1px solid #e4e4e4; font-size:13px; color:#999; height:52px;
  29. }
  30. .z-h40{ border-bottom:1px solid #000;}
  31. .search-box{ border:1px solid #d3d3d3; width:230px; float:left; border-radius:20px; padding:0 14px; margin:0 10px 0 0;}
  32. .search-box span{ float:left; line-height:32px; color:#282c2f;}
  33. .search-box select{ float:right; width:130px;}
  34. .z-select{ height:32px; padding:0;}
  35. .z-dropdown>.z-default{ color:#999;}
  36. .z-dropdown{ border:none; }
  37. .z-dropdown>i{ padding:4px 0 0 0;}
  38. .z-dropdown.z-blue.z-active, .z-dropdown.z-blue>.z-list{ border:none;}
  39. .mainbody{ height:calc(100% - 66px);; min-height:500px; overflow-y: scroll;}
  40. .mainbody .content{ float:none;}
  41. .z-text-left td{ color:#363940!important; font-weight: bold;}
  42. .z-h50 td{
  43. border-bottom: none!important;
  44. }
  45. .z-button.z-red{ background:#1681f5; border: 1px solid #1681f5;}
  46. .z-text-red{ color:#1681f5;}
  47. .btn-search{ height:34px; border-radius: 16px; padding:0 16px; min-width:80px;}
  48. .z-button .z-font{ font-size:13px;}
  49. .z-button.z-red:hover,.z-button.z-red:focus{background-color:#328dfc;}
  50. .z-readonly{ border:none!important; background: #edeeef!important;}
  51. .z-mg-r3{ margin-right:10px;}
  52. .receive-search{ padding:16px 0;}
  53. </style>
  54. ${zhiqim_manager_content()}
  55. <div class="receive-box">
  56. <div class=""><img src="/zinc/images/attention.jpg"></div>
  57. <#-- 查询条件 -->
  58. <form name="theForm" action="receiveOrder.htm" method="post">
  59. <div class="receive-search">
  60. <div class="search-box">
  61. <span>产品类型</span>
  62. <select name="typeId" class="z-select z-w180" data-role="z-select" data-class="${zmr_color_class}">
  63. <option value="">全部</option>
  64. <#for item : typeList>
  65. <option value="${item.getTypeId()}" <#if typeId == item.getTypeId()>selected</#if>>${item.getTypeName()}</option>
  66. </#for>
  67. </select>
  68. </div>
  69. <button class="z-button z-blue btn-search"><i class="z-font z-query"></i>查询</button>
  70. </div>
  71. </form>
  72. <div class="z-table z-bordered z-h70-tr z-pd5 z-bg-white z-text-center" style="width:100%" >
  73. <#-- 分页列表-->
  74. <div class="z-overflow-auto" style=" padding:0 0 4px 0;">
  75. <table class="z-table z-bordered zi-bd-r-none z-bg-white z-pd6" >
  76. <tr class="z-text-left z-h40" bgcolor="#f0f1f5" data-layoutCode="receiveOrder">
  77. <td width="50" style="padding:0 0 0 10px;">产品类型</td>
  78. <td width="60">订单号</td>
  79. <td width="200">产品信息</td>
  80. <td width="100">设计要求</td>
  81. <#if isShowCost == 1>
  82. <td width="50">设计佣金</td>
  83. </#if>
  84. <td width="60">设计等级</td>
  85. <td width="70">下单时间</td>
  86. <td align="center" width="60">操作</td>
  87. </tr>
  88. <#if pageResult.size() == 0>
  89. ${zhiqim_manager_no_record(8,"暂不存在抢单信息,或者当积分少于0的时候不允许抢单,请联系客服")}
  90. </#if>
  91. <#for item : pageResult.list()>
  92. <tr align="left" class="z-h40 ">
  93. <td style="padding:0 0 0 10px;">${Global.get(DesignTypeCache.class).getName(item.getTypeId())}</td>
  94. <td>${item.getDesignId()}</td>
  95. <td>${item.getOrderText()}</td>
  96. <td>${item.getUserNotice()}</td>
  97. <#if isShowCost == 1>
  98. <td>${Amounts.toYuanMustRadix(item.getDesignPrice())}</td>
  99. </#if>
  100. <td>${DraftConstants.get(item.getDraftType())}</td>
  101. <td>${Sqls.toDateTimeString(item.getCreateTime())}</td>
  102. <td align="center"><button type="button" class="z-button z-green z-w100" onclick="doContendOrder('${item.getDesignId()}','${item.getOrderText()}','${item.getStatus()}')">抢单</button></td>
  103. </tr>
  104. </#for>
  105. </table>
  106. </div>
  107. ${zhiqim_manager_paging(pageResult, "/receiveOrder.htm")}
  108. </div>
  109. </div>
  110. ${zhiqim_manager_content_end()}