freezeSalary.zml 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <script>
  2. function freezeSalary(){
  3. var modifyMoney = Z("#modifyMoney").val();
  4. var remark = Z("#remark").val();
  5. var ajax = new Z.Ajax();
  6. ajax.setClassName("VirtualAccountAction");
  7. ajax.setMethodName("freezeSalary");
  8. ajax.addParam("operatorCode",'${operatorCode}');
  9. ajax.addParam("modifyMoney",modifyMoney);
  10. ajax.addParam("remark",remark);
  11. ajax.setFailureAlert();
  12. ajax.setSuccess(function(){
  13. Z.success("操作成功",function(){parent.location.reload();parent.Z.Dialog.close();});
  14. });
  15. ajax.setLoading("freezeSalary", '正在提交', {disabled:true});
  16. ajax.execute();
  17. }
  18. </script>
  19. <style>
  20. .container{ min-height:395px; background:#fff;}
  21. .order-no td{ padding:0 0 0 30px;}
  22. .order-title{ color:#0089e1;font-weight:bold; font-size:26px; padding:10px 0 0 30px; line-height:60px;}
  23. .order-p{ font-size:16px; padding:0 0 0 30px; line-height:60px; border-bottom:1px solid #f2f2f2;}
  24. .order-info{ background:#0089e1;border-radius:8px;width:520px;height:130px; margin:10px 0 0 30px;text-align:center; color:#fff; font-size:22px; padding:16px 66px; line-height:36px;}
  25. .order-info span{ color:#fffc00; font-weight:bold;}
  26. </style>
  27. <div class='order-box'>
  28. <div class="order-title">冻结资金</div>
  29. <div class='order-p'>设计师账户:${operatorCode}</div>
  30. <div class='order-p'>当前可用金额: ${usableMoney}&nbsp;元</div>
  31. <div class='order-p' style="line-height:30px">冻结金额:<input id="modifyMoney" data-options="type:Integer;paste:true;" name="modifyMoney" value="${modifyMoney}">&nbsp;元</div>
  32. <div class='order-p' style="line-height:30px; display: flex; margin: 10px 0 0 0;">操作备注:<textarea id="remark" name="remark" value="${remark}" cols="50"></textarea></div>
  33. </div>
  34. <#-- 操作 -->
  35. <div class="z-absolute z-w100p z-h60 z-text-center z-bg-gray z-pd10" style="bottom:0;left:0">
  36. <button id="sendSalary" style="border-radius:8px; background:#0089e1;" class="z-button ${zmr_color_class} z-large z-w100" onclick="freezeSalary();">确认</button>
  37. <button type="button" style="border-radius:8px; background:#949393; color:#fff; border:none;" class="z-button z-large z-mg-l10 z-w100" onclick="parent.Z.Dialog.close(location.hash);">关闭</button>
  38. </div>
  39. </div>