inFinishOperation.html 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. <style>
  2. .col-xs-1,.col-xs-2,.col-xs-3,.col-xs-5 ,.col-xs-6,.col-xs-8,.col-xs-12{
  3. padding-left : 1px;
  4. padding-right: 1px;
  5. }
  6. .form-control{
  7. padding:1px 1px;
  8. }
  9. .form-group{
  10. margin-bottom:5px;
  11. }
  12. .btn-sm, .btn-group-sm>.btn {
  13. padding: 2px 3px;
  14. }
  15. .m-tb-6 {
  16. margin-top:6px;
  17. margin-bottom:6px;
  18. }
  19. .m-l-10 {
  20. margin-left:10px;
  21. }
  22. .text-overflow {
  23. width:91px;
  24. word-break:keep-all;/* 不换行 */
  25. white-space:nowrap;/* 不换行 */
  26. overflow:hidden;/* 内容超出宽度时隐藏超出部分的内容 */
  27. text-overflow:ellipsis; /* 当对象内文本溢出时显示省略标记(...) ;需与overflow:hidden;一起使用。*/
  28. }
  29. .text-overflow1 {
  30. word-break:keep-all;/* 不换行 */
  31. white-space:nowrap;/* 不换行 */
  32. overflow:hidden;/* 内容超出宽度时隐藏超出部分的内容 */
  33. text-overflow:ellipsis; /* 当对象内文本溢出时显示省略标记(...) ;需与overflow:hidden;一起使用。*/
  34. }
  35. tr strong,tr td {WORD-WRAP:break-word;overflow:hidden;}
  36. .messsage{
  37. color:blue;
  38. }
  39. .modal-header{
  40. padding:5px;
  41. }
  42. </style>
  43. <div ng-controller="InFinishOprCtrl" style="min-height: 400px;">
  44. <script type="text/ng-template" id="prodModalContent.html">
  45. <div class="modal-header">
  46. <p>搜索物料:<input type="text" ng-model="search"></p>
  47. </div>
  48. <div class="modal-body">
  49. <table id='tableResult' cellspacing='0' cellpadding='3' class="">
  50. <thead>
  51. <tr style='background-color : #eee;'>
  52. <td style='width : 40px; '> 行号 </td>
  53. <td style='width : 104px;'> 单号 </td>
  54. <td style='width : 97px;'> 料号 </td>
  55. </tr>
  56. </thead>
  57. <tr ng-repeat='item in items | filter:{PD_PRODCODE:search}' ng-show="search" ng-click="selectPrCode(item)">
  58. <td style='width : 40px;' > {{item.PD_PDNO}} </td>
  59. <td>{{item.PD_ORDERCODE }} </td>
  60. <td>{{item.PD_PRODCODE}}</td>
  61. </tr>
  62. </table>
  63. </div>
  64. <div class="modal-footer">
  65. <button class="btn-xs btn-warning" ng-click="cancel()">取消</button>
  66. </div>
  67. </script>
  68. <div >
  69. <button type="button" class="btn btn-success btn-sm col-md-2 col-xs-2 col-sm-offset-1 col-xs-offset-1" ng-click="returnInput()" style="
  70. margin-left: 5px;">返回</button>
  71. <div ng-show="order">
  72. <button type="button" class="btn btn-success btn-sm col-xs-offset-1" ng-click="getList(order.PI_INOUTNO)">已采集列表 </button>
  73. <button type="button" class="btn btn-success btn-sm col-xs-offset-1" ng-click='submitGet()' >提交采集</button>
  74. <button type="button" class="btn btn-success glyphicon glyphicon-print btn-sm m-l-10" ng-click='print()' >打印</button>
  75. </div>
  76. </div>
  77. <div ng-show="order" class="m-tb-6 " >
  78. <span class="f-16 col-md-2 col-xs-1 red"><b>{{detno}}</b></span></span>
  79. <span class="f-16 col-md-2 col-xs-5" ng-show="ordercode">{{ordercode}}</span></span>
  80. <span class="f-16 col-md-2 col-xs-5" ng-bind="bi_prodcode"></span>
  81. <button class="btn btn-xs btn-success glyphicon glyphicon-search" ng-click="findProdcode()"></button>
  82. </div>
  83. <div ng-show="order">
  84. <form class="form-horizontal col-xs-offset-1" name="form">
  85. <div class="form-group">
  86. <label for=bi_location class="col-xs-2">储位</label>
  87. <div class="col-xs-2">
  88. <input type="text" id="bi_location" ng-model="bi_location" class="form-control " ng-keyup="enter($event)">
  89. </div>
  90. <label for="makeSerial" class="col-xs-3 m-l-10">归属工单</label>
  91. <div class="col-xs-3">
  92. <input type="text" id="makeSerial" ng-model="makeSerial" class="form-control" ng-keyup="enter($event)">
  93. </div>
  94. </div>
  95. <div class="form-group">
  96. <label for="bi_barcode" class="col-xs-2">序列号</label>
  97. <div class="col-xs-3">
  98. <input type="text" id="bi_barcode" ng-model="bi_barcode" class="form-control" ng-keyup="enter($event)">
  99. </div>
  100. <label for="bi_outboxcode" class="col-xs-3">包装箱号</label>
  101. <div class="col-xs-3">
  102. <input type="text" id="bi_outboxcode" ng-model="bi_outboxcode" class="form-control" ng-keyup="enter($event)">
  103. </div>
  104. </div>
  105. <div class="form-group">
  106. <label for="bi_inqty" class="col-xs-3 " name="required-label">箱内总数</label>
  107. <div class="col-xs-2">
  108. <input type="text" id="bi_inqty" ng-model="bi_inqty" class="form-control" required>
  109. </div>
  110. <label for="pr_fbzs" class="col-xs-2">剩余数:</label>
  111. <div class="col-xs-2">
  112. {{pr_fbzs}}
  113. </div>
  114. <button ng-click="scan()" class="btn btn-sm col-xs-2 btn-success m-l-10" ng-disabled="form.$invalid">确认 </button>
  115. </div>
  116. </form>
  117. </div>
  118. <div ng-show="barcodes" class="messsage" class="col-xs-12">
  119. <div class="col-xs-8 m-l-10 ">{{barcodes.bi_barcode}}</div>
  120. <div class="col-xs-2 m-l-10 ">{{barcodes.bi_inqty}} </div>
  121. <div class="col-xs-6 m-l-10 ">{{barcodes.bi_prodcode}}</div>
  122. <div class="col-xs-5 text-overflow1 m-l-10 ">{{barcodes.bi_prodname}}</div>
  123. </div>
  124. <div ng-show ="order" class="col-xs-12 col-sm-11 col-sm-offset-1 m-t-6">
  125. <table ng-table="tableParams"
  126. class="table table-bordered table-striped ng-table-rowselected " style="table-layout:fixed;" >
  127. <tr >
  128. <th width="10%">行</th>
  129. <th width="35%">料号</th>
  130. <th width="30%">名称规格</th>
  131. <th width="15%">剩余数</th>
  132. </tr>
  133. <tr ng-repeat="item in $data"
  134. ng-click="item.$selected = !item.$selected; changeSelection(item)"
  135. ng-class="{'active': item.$selected} " ng-show="item.PD_INQTY != 0">
  136. <td >{{item.PD_PDNO}}</td>
  137. <td >{{item.PD_PRODCODE}}</td>
  138. <td ><div class="text-overflow">{{item.PR_DETAIL}}{{item.PR_SPEC}}</div></td>
  139. <td >{{item.PD_INQTY}}</td>
  140. </tr>
  141. </table>
  142. </div>
  143. </div>