纽威
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

97 lines
3.2 KiB

3 years ago
  1. 
  2. @{
  3. ViewBag.Title = "SeachInventory";
  4. Layout = "~/Views/Shared/_Index.cshtml";
  5. }
  6. <link href="~/Content/js/select2/select2.min.css" rel="stylesheet" />
  7. <link href="~/Content/js/dialog/dialog.css" rel="stylesheet" />
  8. <script src="~/Content/js/datepicker/WdatePicker.js"></script>
  9. <script src="~/Content/js/select2/select2.min.js"></script>
  10. <script>
  11. var WorkPoint = $.request("workpoint");
  12. var InvCode = $.request("InvCode");
  13. $(function(){
  14. Init();
  15. })
  16. function Init() {
  17. document.getElementById("gridPanel").innerHTML = ' <span><strong>详细信息</strong></span> <table id="gridList"></table> ';//重置grid
  18. var invcode = $("#txt_Invcode").val();
  19. $("#gridList").dataGrid({
  20. url: "/WMS/ProductionIssue/GetICSMOPickLog" + "?invcode=" + InvCode + "&workpoint=" + WorkPoint + "&" + Math.random(),
  21. height: $(window).height() -20,
  22. width: $(window).width() - 300,
  23. colModel: [
  24. { label: 'ID', name: 'ID', width: 100, align: 'left' },
  25. { label: '仓库', name: 'WHCode', width: 100, align: 'left' },
  26. { label: '工单号', name: 'MOCode', width: 100, align: 'left' },
  27. { label: '行号', name: 'Sequence', width: 100, align: 'left' },
  28. { label: '子件行', name: 'ZJHH', width: 100, align: 'left' },
  29. { label: '批次', name: 'BatchCode', width: 100, align: 'left' },
  30. { label: '数量', name: 'Quantity', hidden: true },
  31. { label: '辅计量数量', name: 'Amount', hidden: true },
  32. ],
  33. pager: "#gridPager",
  34. sortorder: "desc",
  35. sortname: 'InvCode',
  36. viewrecords: true,
  37. multiselect: true,
  38. gridComplete: function () {
  39. }
  40. })
  41. }
  42. function submitForm() {
  43. var rows = $("#gridList").jqGrid('getGridParam', 'selarrrow');
  44. if (rows.length != 1) {
  45. $.modalAlert("只能选择一条数据!");
  46. return;
  47. }
  48. var rowdata = $("#gridList").jqGrid("getRowData", rows[0]);
  49. var obj = {
  50. ID: rowdata.ID,
  51. MOCode: rowdata.MOCode,
  52. Sequence: rowdata.Sequence,
  53. ZJHH: rowdata.ZJHH,
  54. BatchCode: rowdata.BatchCode,
  55. Quantity: rowdata.Quantity,
  56. Amount: rowdata.Amount,
  57. }
  58. return obj;
  59. }
  60. function Close() {
  61. $.modalClose();
  62. }
  63. function reloadData() {
  64. }
  65. </script>
  66. <div class="topPanel" style="height:50px">
  67. @*<div class="search">
  68. <table>
  69. <tr>
  70. <td>
  71. <label>物料编码:</label>
  72. </td>
  73. <td>
  74. <div class="input-group">
  75. <input id="txt_Invcode" type="text" class="form-control" placeholder="物料编码" style="width: 120px;">
  76. </div>
  77. </td>
  78. <td>
  79. <a id="Search" authorize="yes" style="margin-left:3px;" class="btn btn-primary" onclick="Init()"><i class="fa fa-pencil-square-o"></i>查询</a>
  80. </td>
  81. </tr>
  82. <tr></tr>
  83. </table>
  84. </div>*@
  85. </div>
  86. <div class="gridPanel" id="gridPanel">
  87. <table id="gridList"></table>
  88. <div id="gridPager"></div>
  89. </div>