combineBatch.html 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  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. .row {
  12. margin-left: 0px;
  13. margin-right: 0px;
  14. }
  15. .border {
  16. border: solid 1px #DDDDDD;
  17. border-radius: 4px;
  18. }
  19. .selected {
  20. border: solid 2px #0099CC;
  21. }
  22. .order {
  23. border-bottom: solid 1px #0066CC;
  24. }
  25. .error {
  26. border: solid 1px #FF6666;
  27. border-radius: 4px;
  28. }
  29. .form-control{
  30. padding:1px 1px;
  31. }
  32. .form-group{
  33. margin-bottom:5px;
  34. }
  35. .col-xs-1,.col-xs-2,.col-xs-5 ,.col-xs-3,.col-xs-12{
  36. padding-left : 1px;
  37. padding-right: 1px;
  38. }
  39. .btn-sm, .btn-group-sm>.btn {
  40. padding: 2px 3px;
  41. }
  42. .text-overflow {
  43. word-break:keep-all;/* 不换行 */
  44. white-space:nowrap;/* 不换行 */
  45. overflow:hidden;/* 内容超出宽度时隐藏超出部分的内容 */
  46. text-overflow:ellipsis; /* 当对象内文本溢出时显示省略标记(...) ;需与overflow:hidden;一起使用。*/
  47. }
  48. </style>
  49. <script type="text/ng-template" id="myModalContent.html">
  50. <div class="modal-body row">
  51. <div>新条码号:{{items.bar_code}}</div>
  52. <div>数量:{{items.bar_remain}}</div>
  53. </div>
  54. <div class="modal-footer">
  55. <button class="btn-xs btn-success" ng-click="print()">打印</button>
  56. <button class="btn-xs btn-warning" ng-click="cancel()">关闭</button>
  57. </div>
  58. </script>
  59. <div ng-controller="BreakingBatchCtrl" style="min-height: 360px;">
  60. <div class="row m-b-6 m-t-6">
  61. <a href= "#/batchContents" class="btn btn-success btn-sm col-md-2 col-xs-2 col-sm-offset-1 col-xs-offset-1" style="
  62. margin-left: 5px;">返回</a>
  63. </div>
  64. <div>
  65. <form class="form-horizontal col-xs-offset-1 col-sm-offset-1 " name="scanProductForm">
  66. <div class="form-group">
  67. <label for="or_barcode" class="col-sm-1 col-xs-2 control-label">条码</label>
  68. <div class='col-sm-4 col-xs-5 '>
  69. <input type="text" class="form-control" id="or_barcode" ng-model='barcode.or_barcode' placeholder="条码" required>
  70. </div>
  71. <button class="btn btn-success btn-sm col-sm-1 col-xs-2" ng-click="confirm(barcode.or_barcode)" ng-disabled="scanProductForm.$invalid" >确认</button>
  72. </div>
  73. </form>
  74. </div>
  75. <div class="col-sm-11 col-sm-offset-1 m-t-6">
  76. <div class="col-xs-12">
  77. <button class="btn btn-success btn-sm col-sm-1 col-xs-2" ng-click="combine()" >合并</button>
  78. <div class='col-sm-3 col-xs-5 col-xs-offset-2'>
  79. 总数量 : {{GetTotalRemain()}}
  80. </div>
  81. </div>
  82. <table ng-table="tableParams"
  83. class="table table-bordered table-striped ng-table-rowselected col-xs-12 m-t-6 " style="font-size:10px;" >
  84. <tr>
  85. <th width="15%">料号</th>
  86. <th width="14%">名称</th>
  87. <th width="30%">条码</th>
  88. <th width="15%">数量</th>
  89. <th width="">仓库</th>
  90. <th width="">储位</th>
  91. </tr>
  92. <tr ng-repeat="item in $data"
  93. ng-click="item.$selected = !item.$selected; changeSelection(item)"
  94. ng-class="{'active': item.$selected} " >
  95. <td >{{item.bar_prodcode}}</td>
  96. <td ><div style=" width: 42px;" class="text-overflow1">{{item.pr_detail}}</div></td>
  97. <td >{{item.bar_code}}</td>
  98. <td >{{item.bar_remain}}</td>
  99. <td >{{item.bar_whcode}}</td>
  100. <td >{{item.bar_location}}</td>
  101. </tr>
  102. </table>
  103. </div>
  104. </div>