qcApplyDetail.zml 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. <style>
  2. body{ text-align:center}
  3. .div{ margin:0 auto; width:600px; height:300px; border:5px solid #F00}
  4. </style>
  5. <script>
  6. function doPassCheck()
  7. {//申请通过
  8. var applyId = ${apply.getApplyId()};
  9. Z.confirm("确认审核通过吗?", function(){
  10. var qcTypeId = Z.FM.getChecked("qcTypeId");
  11. var ajax = new Z.Ajax();
  12. ajax.setClassName("QcOrderPresenter");
  13. ajax.setMethodName("doApplyPass");
  14. ajax.addParam("applyId", applyId);
  15. ajax.addParam("qcTypeId", qcTypeId);
  16. ajax.setFailureAlert();
  17. ajax.setSuccess(function(){
  18. parent.location.reload();
  19. parent.Z.Dialog.close();
  20. });
  21. ajax.execute();
  22. })
  23. }
  24. function showBackDialog()
  25. {//审核退回窗口
  26. var applyId = ${apply.getApplyId()};
  27. Z.prompt("审核退回(请填写审核退回原因)", "", function(value)
  28. {
  29. if (Z.V.isEmpty(value))
  30. {
  31. Z.alert("请输入退回原因");
  32. return;
  33. }
  34. var ajax = new Z.Ajax();
  35. ajax.setClassName("QcOrderPresenter");
  36. ajax.setMethodName("doApplyBack");
  37. ajax.addParam("applyId", applyId);
  38. ajax.addParam("desc", value);
  39. ajax.setFailureAlert();
  40. ajax.setSuccess(function(){
  41. parent.location.reload();
  42. parent.Z.Dialog.close();
  43. });
  44. ajax.execute();
  45. }, {type: 'textarea'});
  46. }
  47. function cancelQcAwarded(){
  48. //取消加分申请
  49. var applyId = ${apply.getApplyId()};
  50. var applyFlag = ${apply.getApplyFlag()};
  51. Z.confirm("确认取消申请加分吗?", function(){
  52. if(applyFlag != 0){
  53. Z.alert("该状态不能取消申请!");
  54. return;
  55. }
  56. var ajax = new Z.Ajax();
  57. ajax.setClassName("QcOrderPresenter");
  58. ajax.setMethodName("docancelAwarded");
  59. ajax.addParam("applyId", applyId);
  60. ajax.setFailureAlert();
  61. ajax.setSuccess(function(){
  62. Z.success('取消成功!', function(){
  63. parent.location.reload();
  64. parent.Z.Dialog.close();});
  65. });
  66. ajax.execute();
  67. })
  68. }
  69. //图片放大
  70. function showLargeImg(thisImg)
  71. {
  72. var dialog = new parent.Z.Dialog();
  73. dialog.shadow = true;
  74. dialog.title = "图片";
  75. dialog.fixed = true;
  76. dialog.url = "showLargeImg.htm?imgpath="+thisImg.src;
  77. dialog.width = parent.Z.D.clientWidth()-200;
  78. dialog.height = parent.Z.D.clientHeight()-200;
  79. dialog.execute();
  80. dialog.$background.remove();
  81. }
  82. </script>
  83. ${zhiqim_manager_content()}
  84. <div style="position: relative;bottom: 10px;">
  85. <label style="float: left;font-size: 18px;padding: 25px 0px 0px 10px;">加分类型 : </label>
  86. <div style="width: 700px;height: 41px;position: relative;top: 25px;">
  87. <ul>
  88. <#for item : awardedTypeList>
  89. <li style="display: inline;float: left;padding-left:15px;"><label><input name="qcTypeId" type="radio" data-role="z-radio" data-class="${zmr_color_class}" value="${item.getQcTypeId()}" <#if qcTypeIdChecked == item.getQcTypeId()>checked</#if>>&nbsp;&nbsp;${item.getQcAwardedName()}</label></li>
  90. </#for>
  91. </ul>
  92. </div>
  93. </div>
  94. <div class="z-mg5">
  95. <textarea id="applyReason" name="applyReason" class="z-textarea z-w100p z-h100" style="vertical-align: middle;" maxlength="200" >${apply.getApplyReason()}</textarea>
  96. </div>
  97. <div class="z-pd5">
  98. <img alt="凭证" src="/${apply.getApplyId()}-0-qcImg" onclick="showLargeImg(this)">
  99. </div>
  100. <br><br>
  101. <div style="position:fixed;bottom:0px;height:50px;width:100%;background-color:#EFEFEF;border-top: solid 1px #ededed">
  102. <div style="margin-top:10px">
  103. <#if !readonly>
  104. <button class="z-button z-blue z-w100" onclick="doPassCheck()">审核通过</button>
  105. <button class="z-button z-w100 ${zmr_color_class}" onclick="showBackDialog()">审核退回</button>&nbsp;&nbsp;&nbsp;
  106. <#else>
  107. <button class="z-button z-blue z-w100" onclick="cancelQcAwarded()">取消加分申请</button>
  108. </#if>
  109. </div>
  110. </div>
  111. ${zhiqim_manager_content_end()}