_searchInfoByProductNo.cshtml 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. @using ShwasherSys.Views.Shared.New.Table
  2. @{
  3. List<SelectListItem> storeHouses = ViewBag.StoreHouses;
  4. var tableProductionOrder = new TableViewModel("/api/services/app/Query/QueryProductionOrderDtoByProNo", null, null, "tableProductionOrder")
  5. .SetFields(new List<FieldItem>()
  6. {
  7. new FieldItem("productionOrderNo", "排产单号"),
  8. new FieldItem("partNo", "零件号"),
  9. new FieldItem("semiProductName", "名称"),
  10. new FieldItem("model", "规格"),
  11. new FieldItem("quantity", "排产数量(千件)"),
  12. new FieldItem("productionOrderStatus","生产状态",formatter:"ProductionOrderStatusFormatter"),
  13. new FieldItem("material", "材质"),
  14. new FieldItem("surfaceColor", "表色"),
  15. new FieldItem("rigidity", "硬度"),
  16. new FieldItem("semiProductNo", "半成品编码"),
  17. }).SetPageArray(10);
  18. var tableProductStore = new TableViewModel("/api/services/app/Query/QueryViewCurrentProductStoreHouseByProNo", null, null, "tableProductStore")
  19. .SetFields(new List<FieldItem>()
  20. {
  21. new FieldItem("productionOrderNo", "排产单号"),
  22. new FieldItem("productNo", "成品编码"),
  23. new FieldItem("productName", "名称"),
  24. new FieldItem("model", "规格"),
  25. new FieldItem("quantity", "当前库存数量(千件)"),
  26. new FieldItem("freezeQuantity", "被冻结数量"),
  27. new FieldItem("actualQuantity", "可用数量"),
  28. new FieldItem("storeLocationNo","库位"),
  29. new FieldItem("material", "材质"),
  30. new FieldItem("surfaceColor", "表色"),
  31. new FieldItem("rigidity", "硬度"),
  32. }).SetPageArray(10);
  33. var tableSemiStore = new TableViewModel("/api/services/app/Query/QueryViewCurrentSemiStoreHouseByProNo", null, null, "tableSemiStore")
  34. .SetFields(new List<FieldItem>()
  35. {
  36. new FieldItem("productionOrderNo", "排产单号"),
  37. new FieldItem("semiProductNo", "半成品编码"),
  38. new FieldItem("semiProductName", "半成品名称"),
  39. new FieldItem("model", "规格"),
  40. new FieldItem("actualQuantity", "当前库存数量(千件)"),
  41. new FieldItem("storeHouseId", "仓库",formatter:"StoreHouseIdFormatter"),
  42. new FieldItem("freezeQuantity", "被冻结数量"),
  43. new FieldItem("storeLocationNo","库位"),
  44. new FieldItem("material", "材质"),
  45. new FieldItem("surfaceColor", "表色"),
  46. new FieldItem("rigidity", "硬度"),
  47. new FieldItem("partNo", "零件号"),
  48. }).SetPageArray(10);
  49. }
  50. <section>
  51. <div class="modal fade" id="modal_queryProductionStore" role="dialog" tabindex="-1" aria-labelledby="ModalLabel" aria-hidden="true">
  52. <div class="modal-dialog modal-dialog-centered" role="document">
  53. <div class="modal-content" style="width: 880px;">
  54. @Html.Partial("Modals/_ModalHeader", new ShwasherSys.Models.Modal.ModalHeaderViewModel("产品生产库存查询", ""))
  55. <div class="modal-body container-fluid" style="padding: 0; padding-top: 15px; min-height: 600px;">
  56. <form class="pr-3 pl-3 form-horizontal" style="padding: 0 10px">
  57. <div class="form-group-sm row">
  58. <div class="col-md-12">
  59. <div class="tool-rc-group">
  60. </div>
  61. </div>
  62. </div>
  63. <div class="form-group-sm row">
  64. <div class="col-xs-12" style="padding: 0 5px;">
  65. <div class="nav-tabs-custom" style="margin-bottom: 5px;">
  66. <ul class="nav nav-tabs">
  67. <li class="active"><a href="#productionOrder_tab" data-toggle="tab">排产单</a></li>
  68. <li><a href="#finishStore_tab" data-toggle="tab">成品库存</a></li>
  69. <li><a href="#semiStore_tab" data-toggle="tab">半成品库存</a></li>
  70. </ul>
  71. <div class="tab-content form-box">
  72. <div class="tab-pane active" id="productionOrder_tab" style="width: 100%;">
  73. @Html.Partial("New/Table/_Table", tableProductionOrder)
  74. </div>
  75. <div class="tab-pane" id="finishStore_tab" style="width: 100%; height: 70px;">
  76. @Html.Partial("New/Table/_Table", tableProductStore)
  77. </div>
  78. <div class="tab-pane" id="semiStore_tab" style="width: 100%; height: 70px;">
  79. @Html.Partial("New/Table/_Table", tableSemiStore)
  80. </div>
  81. </div>
  82. </div>
  83. </div>
  84. </div>
  85. </form>
  86. </div>
  87. @*@Html.Partial("Modals/_ModalFooter", "0")*@
  88. </div>
  89. </div>
  90. </div>
  91. </section>
  92. <script src="~/Views/OrderInfo/js/OrderMg.js"></script>
  93. <script>
  94. function StoreHouseIdFormatter(v,r) {
  95. var name = $("#hide-StoreHouses option[value='" + v + "']").text();
  96. return '<span class="label label-primary">' + name + '</span>';
  97. }
  98. </script>
  99. <section style="display: none">
  100. @Html.DropDownList("hide-StoreHouses", storeHouses)
  101. </section>