view_progress.ftl 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. <!DOCTYPE HTML>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="renderer" content="webkit|ie-comp|ie-stand">
  6. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  7. <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
  8. <meta http-equiv="Cache-Control" content="no-siteapp" />
  9. <#include "/base/add_base.ftl">
  10. <title>仓储进度</title>
  11. <style>
  12. .my-title{font-weight: 500;padding-left: 15px;position: relative;}
  13. .my-title:after{content: '';position: absolute;left: 0;top:12%;width: 3px;height: 80%;background: #32a3d8;}
  14. .my-input{padding: 8px 5px;width: 80%;border:1px solid rgba(0,0,0,.1);}
  15. .my-input-date{padding: 8px 10px;border:1px solid rgba(0,0,0,.1);width: 80%;background: url(http://s.iamberry.com/images/rili-1.png) 98.5% center no-repeat; background-size:auto 50%;}
  16. .input-box{margin: 18px 0;}
  17. .input-dic{float: left;margin:5px 10px 0 0;font-size: 12px;}
  18. .add-list{list-style-type: none;padding: 10px;background-color: #f5f5f5;width: 60%;float: left;margin: 0;}
  19. .add-list>li{margin: 10px 0;}
  20. .my-textarea{padding: 5px 10px;width: 80%;border:1px solid rgba(0,0,0,.1);}
  21. .my-btn-reset{padding: 10px 20px;width: 150px; background-color: #fff;color: #32a3d8;border: 1px solid #32a3d8;cursor:pointer;margin: 10px 10px 0 10px;}
  22. .my-btn-submit{padding: 10px 20px;width: 150px; background-color: #32a3d8;color: #fff;border: 1px solid #32a3d8;cursor:pointer;margin: 10px 10px 0 10px;}
  23. .my-select{border: 1px solid rgba(0,0,0,.1);padding:6px 50px 6px 15px;width: 60%; height: 34px;margin: 0 10px; -webkit-appearance:none;appearance:none;background: url(http://s.iamberry.com/images/select-1.png) right center no-repeat #fff;background-size:auto 100%;}
  24. input[type=radio]{-webkit-appearance:none;appearance:none;background: url(/common/images/pts/radio-1.png) center center no-repeat;background-size:auto 100%;width: 20px;height: 20px;margin-right: 10px;}
  25. input[type=radio]:checked{-webkit-appearance:none;appearance:none;background: url(/common/images/pts/radio-2.png) center center no-repeat;background-size:auto 100%;width: 20px;height: 20px;margin-right: 10px;}
  26. .update-parts>span{margin-right: 10px;padding: 3px 4px;background-color: #44C861;border: 1px solid #44C861;border-radius: 5px;color: #E5EAEA;font-weight:bold;}
  27. </style>
  28. <meta name="keywords" content="${path}">
  29. <meta name="description" content="H-ui.admin v3.0,是一款由国人开发的轻量级扁平化网站后台模板,完全免费开源的网站后台管理系统模版,适合中小型CMS后台系统。">
  30. </head>
  31. <body>
  32. <article class="page-container">
  33. <form class="form form-horizontal" id="form-admin-add">
  34. <div class="input-box">
  35. <span style="display: block;float: left;width: 18%;text-align: right;">签收日期:</span>
  36. <div style="display: block;float:left;width: 80%">
  37. <#if signclosedInfo??>
  38. ${(signclosedInfo.signclosedDate?string("yyyy-MM-dd"))!'暂无签收日期'}
  39. <#else >
  40. 暂无签收日期
  41. </#if>
  42. </div>
  43. </div>
  44. <div class="input-box">
  45. <span style="display: block;float: left;width: 18%;text-align: right;">签收产品:</span>
  46. <div style="display: block;float:left;width: 80%">
  47. <#if signclosedProductInfo??>
  48. <#if (signclosedProductInfo?size > 0)>
  49. <#list signclosedProductInfo as info>
  50. <#if info.signclosedProductType == 1 >
  51. <span class="label label-success radius">${info.productName!''}-${info.productNumber!''}(${info.colorName!''})x ${info.productNum!''}台</span><br>
  52. <#else >
  53. <span class="label label-success radius">${info.productName!''} x ${info.productNum!''}件</span><br>
  54. </#if>
  55. </#list>
  56. <#else >
  57. 暂无数据!
  58. </#if>
  59. <#else >
  60. 暂无数据!
  61. </#if>
  62. </div>
  63. </div>
  64. <div style="text-align:center;">
  65. <#if signclosedId??>
  66. <input type="hidden" value="${signclosedId!''}" id="signclosedId" name="signclosedId">
  67. <#if signclosedInfo.signclosedState == 1>
  68. <button type="button" class="my-btn-submit" onclick="add();">催促仓库转入QC</button>
  69. </#if>
  70. <#if signclosedInfo.signclosedState == 2>
  71. <#--<div class="input-box">
  72. <span style="display: block;float: left;width: 18%;text-align: right;">签收日期:</span>
  73. <div style="display: block;float:left;width: 80%"></div>
  74. </div>-->
  75. <button type="button" class="my-btn-submit" onclick="openLogistics('物流信息','${path}/admin/detect/to_view_logistics?billCode=${signclosedInfo.signclosedLogisticsNumber!''}&billName=${signclosedInfo.signclosedLogistics!''}',500,400);">查看物流</button>
  76. </#if>
  77. <#else >
  78. <button type="button" class="my-btn-submit" onclick="add();">催促仓库转入QC</button>
  79. </#if>
  80. </div>
  81. </form>
  82. </article>
  83. <script type="text/javascript" src="${path}/common/lib/My97DatePicker/4.8/WdatePicker.js"></script>
  84. <script type="text/javascript">
  85. function add() {
  86. $.ajax({
  87. cache: true,
  88. type: "POST",
  89. url: "${path}/admin/detect/add_reminding",
  90. data:$('#form-admin-add').serialize(),// 你的formid
  91. async: false,
  92. success: function(data){
  93. if (data.returnCode == 200) {
  94. layer.msg('催促成功',{icon: 1,time:1000},function () {
  95. window.parent.location.reload();
  96. var index = parent.layer.getFrameIndex(window.name);
  97. parent.layer.close(index)
  98. });
  99. } else {
  100. layer.msg('催促失败,请检查是否是仓储转入',{icon: 5,time:1000});
  101. }
  102. },
  103. error: function(XmlHttpRequest, textStatus, errorThrown){
  104. layer.msg('催促失败',{icon: 5,time:1000});
  105. }
  106. });
  107. }
  108. function openLogistics(title, url, w, h) {
  109. layer_show(title,url,w,h);
  110. }
  111. </script>
  112. </body>
  113. </html>