checkMM.html 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. <style>
  2. .m-b-6 {
  3. margin-bottom: 6px;
  4. }
  5. .m-t-6 {
  6. margin-top: 6px;
  7. }
  8. .m-l-10 {
  9. margin-left: 10px;
  10. }
  11. .m-l-15 {
  12. margin-left: 15px;
  13. }
  14. .row {
  15. margin-left: 0px;
  16. margin-right: 0px;
  17. }
  18. .border {
  19. border: solid 1px #DDDDDD;
  20. border-radius: 4px;
  21. }
  22. .col-xs-4 {
  23. padding-left:2px;
  24. padding-right:2px;
  25. }
  26. input{
  27. line-height:28px;
  28. }
  29. .text-overflow {
  30. display:block;
  31. word-break:keep-all;/* 不换行 */
  32. white-space:nowrap;/* 不换行 */
  33. overflow:hidden;/* 内容超出宽度时隐藏超出部分的内容 */
  34. text-overflow:ellipsis; /* 当对象内文本溢出时显示省略标记(...) ;需与overflow:hidden;一起使用。*/
  35. }
  36. .text-break {
  37. display:block;
  38. word-wrap: break-word;
  39. word-break: break-all;
  40. }
  41. .modal-body{
  42. padding:5px;
  43. }
  44. </style>
  45. <script type="text/ng-template" id="detailModalMM.html">
  46. <div class="modal-body">
  47. <div class="row">
  48. 料号:{{items.pr_code}}
  49. 仓库:{{items.wh_code}}
  50. 储位:{{items.location}}
  51. </div>
  52. <table id='tableResult' cellspacing='0' cellpadding='3' class="" style="font-size:7px!important;" >
  53. <thead>
  54. <tr style='background-color : #eee;'>
  55. <td style='width : 100px;' > 条码 </td>
  56. <td style='width : 45px;'> 数量 </td>
  57. <td style='width : 60px;'> 供应商 </td>
  58. <td style='width : 60px;'>入库日期 </td>
  59. </tr>
  60. </thead>
  61. <tr ng-repeat='item in items' >
  62. <td style='width : 100px;' class="text-break" > {{item.bar_code}} </td>
  63. <td>{{item.bar_remain}} </td>
  64. <td style='width : 60px;'>{{item.ve_shortname}}</td>
  65. <td >{{item.bar_indate|date:'yy-MM-dd'}} </td>
  66. </tr>
  67. </table>
  68. </div>
  69. <div class="modal-footer">
  70. <button class="btn-xs btn-warning" ng-click="cancel()">关闭</button>
  71. </div>
  72. </script>
  73. <div ng-controller="CheckCtrl" style="min-height: 400px;">
  74. <div><a ng-href="#/checkContents" class="m-l-15 btn btn-success btn-sm m-t-6 m-b-6" > 返回 </a></div>
  75. <div style="margin-bottom:12px">
  76. <input type="text" class="col-xs-4 m-l-15 " id="prodcode" ng-model="prodcode" placeholder="物料编号" ng-keyup="search($event)" required>
  77. <input type="text" class="col-xs-4 m-l-10" id="whcode" ng-model="whcode" placeholder="仓库" ng-keyup="search($event)" >
  78. <button class="btn btn-success btn-sm m-l-10 " ng-click="checkMM(prodcode,whcode)" >查找</button>
  79. </div>
  80. <div class="m-b-6 col-xs-12">
  81. <div class="col-xs-4 " >{{pr_detail}}</div>
  82. <div class="col-xs-8 text-overflow">{{pr_spec}}</div>
  83. </div>
  84. <div class="col-xs-12 col-sm-11 col-sm-offset-1">
  85. <table ng-table="tableParams"
  86. class="table table-bordered table-striped ng-table-rowselected" >
  87. <tr >
  88. <th width="20%">仓库</th>
  89. <th width="20%">储位</th>
  90. <th width="20%">数量</th>
  91. </tr>
  92. <tr ng-repeat="item in $data"
  93. ng-class="{'active': item.$selected}" ng-click="item.$selected = !item.$selected; showMMDetail(item)">
  94. <td >{{item.bar_whcode}}</td>
  95. <td >{{item.bar_location}}</td>
  96. <td >{{item.bar_remain}}</td>
  97. </tr>
  98. </table>
  99. </div>
  100. </div>