inMMOperation.html 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  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,.col-xs-4,.col-xs-6,.col-xs-8{
  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. width:91px;
  44. word-break:keep-all;/* 不换行 */
  45. white-space:nowrap;/* 不换行 */
  46. overflow:hidden;/* 内容超出宽度时隐藏超出部分的内容 */
  47. text-overflow:ellipsis; /* 当对象内文本溢出时显示省略标记(...) ;需与overflow:hidden;一起使用。*/
  48. }
  49. .text-overflow1 {
  50. word-break:keep-all;/* 不换行 */
  51. white-space:nowrap;/* 不换行 */
  52. overflow:hidden;/* 内容超出宽度时隐藏超出部分的内容 */
  53. text-overflow:ellipsis; /* 当对象内文本溢出时显示省略标记(...) ;需与overflow:hidden;一起使用。*/
  54. }
  55. .ng-table-counts{
  56. display: none;
  57. }
  58. tr strong,tr td {WORD-WRAP:break-word;overflow:hidden;}
  59. .messsage{
  60. color:blue;
  61. }
  62. .modal-header{
  63. padding:5px;
  64. }
  65. }
  66. </style>
  67. <div ng-controller="InMMOperationCtrl" style="min-height: 400px;">
  68. <script type="text/ng-template" id="prodModalContent.html">
  69. <div class="modal-header">
  70. <p>搜索物料:<input type="text" ng-model="search"></p>
  71. </div>
  72. <div class="modal-body">
  73. <table id='tableResult' cellspacing='0' cellpadding='3' class="">
  74. <thead>
  75. <tr style='background-color : #eee;'>
  76. <td style='width : 40px; '> 行号 </td>
  77. <td style='width : 104px;'> 单号 </td>
  78. <td style='width : 97px;'> 料号 </td>
  79. </tr>
  80. </thead>
  81. <tr ng-repeat='item in items | filter:{PD_PRODCODE:search}' ng-show="search" ng-click="selectPrCode(item)">
  82. <td style='width : 40px;' > {{item.PD_PDNO}} </td>
  83. <td>{{item.PD_ORDERCODE }} </td>
  84. <td>{{item.PD_PRODCODE}}</td>
  85. </tr>
  86. </table>
  87. </div>
  88. <div class="modal-footer">
  89. <button class="btn-xs btn-warning" ng-click="cancel()">取消</button>
  90. </div>
  91. </script>
  92. <div class="row ">
  93. <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="
  94. margin-left: 5px;">返回</button>
  95. <button type="button" ng-show="order" class="btn btn-success btn-sm col-xs-offset-2" ng-click="getList(order.PI_INOUTNO)">已采集列表 </button>
  96. <button type="button" ng-show="order" class="btn btn-success btn-sm col-xs-offset-2" ng-click='submitGet()' >提交采集</button>
  97. </div>
  98. <div ng-show="order" class="row m-b-6 m-t-6 ">
  99. <span class="f-16 col-md-2 col-xs-1 red" ><b>{{detno}}</b></span>
  100. <span class="f-16 col-md-2 col-xs-5" ng-show="ordercode">{{ordercode}}</span>
  101. <span class="f-16 col-md-2 col-xs-5" ng-bind="bi_prodcode"><b></b></span>
  102. <button class="btn btn-xs btn-success glyphicon glyphicon-search" ng-click="findProdcode()"></button>
  103. </div>
  104. <div ng-show="order">
  105. <form class="form-horizontal col-xs-offset-1 col-sm-offset-1 " name="scanProductForm" id="form1">
  106. <div class="form-group">
  107. <label for="bi_barcode" class="col-sm-1 col-xs-2 control-label" name="required-label">条码</label>
  108. <div class='col-sm-4 col-xs-5 '>
  109. <input type="text" class="form-control" id="bi_barcode" ng-model='bi_barcode' placeholder="条码" ng-keyup="enter($event)" required enter-As-Tab autofocus="autofocus">
  110. </div>
  111. <!-- <label for="bi_location" class="col-sm-1 col-xs-2 m-l-10 control-label nec" >储位</label>
  112. <div class='col-sm-3 col-xs-2'>
  113. <input type="text" class="form-control" id="bi_location" ng-model='bi_location' ng-keyup="enter($event,bi_barcode)" placeholder="扫描储位标签" required>
  114. </div> -->
  115. </div>
  116. <div class="form-group">
  117. <label for="bi_inqty" class="col-sm-1 col-xs-2 control-label " name="required-label">数量</label>
  118. <div class='col-sm-3 col-xs-3 '>
  119. <input type="text" class="form-control" id="bi_inqty" ng-model='bi_inqty' ng-pattern="/^\+?[1-9][0-9]*$/" placeholder="最小包装数" required>
  120. </div>
  121. <label for="pr_fbzs" class="col-sm-1 col-xs-2 m-l-10 control-label"> 剩余数: </label>
  122. <div class='col-sm-3 col-xs-2'>
  123. {{pr_fbzs}}
  124. </div>
  125. <button class="btn btn-success btn-sm col-sm-1 m-l-10" ng-click="scan()" ng-disabled="scanProductForm.$invalid" >确认</button>
  126. </div>
  127. </form>
  128. </div>
  129. <div ng-show="barcodes" class="messsage" class="col-xs-12">
  130. <div class="col-xs-8 m-l-10 ">{{barcodes.bi_barcode}}</div>
  131. <div class="col-xs-2 m-l-10 ">{{barcodes.bi_inqty}} </div>
  132. <div class="col-xs-6 text-overflow1 m-l-10 ">{{barcodes.bi_prodcode}}</div>
  133. <div class="col-xs-5 text-overflow1 m-l-10 ">{{barcodes.bi_prodname}}</div>
  134. </div>
  135. <div ng-show ="order" class="col-xs-12 col-sm-11 col-sm-offset-1 m-t-6">
  136. <table ng-table="tableParams"
  137. class="table table-bordered table-striped ng-table-rowselected " >
  138. <tr >
  139. <th width="10%">行</th>
  140. <th width="35%">料号</th>
  141. <th width="30%">名称规格</th>
  142. <th width="15%">剩余数</th>
  143. </tr>
  144. <tr ng-repeat="item in $data"
  145. ng-click="item.$selected = !item.$selected; changeSelection(item)"
  146. ng-class="{'active': item.$selected} " ng-show="item.PD_INQTY != 0">
  147. <td >{{item.PD_PDNO}}</td>
  148. <td >{{item.PD_PRODCODE}}</td>
  149. <td ><div class="text-overflow ">{{item.PR_DETAIL}}{{item.PR_SPEC}}</div></td>
  150. <td >{{item.PD_INQTY}}</td>
  151. </tr>
  152. </table>
  153. </div>
  154. </div>