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.

105 lines
4.0 KiB

1 year ago
  1. 
  2. @{
  3. ViewBag.Title = "EditInstructionBill";
  4. Layout = "~/Views/Shared/_Form.cshtml";
  5. }
  6. <script src="~/Content/js/datepicker/WdatePicker.js"></script>
  7. <script>
  8. //const { Console } = require("node:console");
  9. //var keyValue = $.request("keyValue");
  10. $(function () {
  11. initControl();
  12. //if (!!keyValue) {
  13. // $.ajax({
  14. // url: "/SystemManage/Customer/GetFormJson",
  15. // data: { keyValue: keyValue },
  16. // dataType: "json",
  17. // async: false,
  18. // success: function (data) {
  19. // $("#form1").formSerialize(data);
  20. // }
  21. // });
  22. //}
  23. });
  24. function initControl() {
  25. $("#F_EnabledMark").bindSelect();
  26. console.log('@ViewData["ids"]');
  27. $("#ids").val('@ViewData["ids"]' );
  28. }
  29. function submitForm() {
  30. if (!$('#form1').formValid()) {
  31. return false;
  32. }
  33. let obj = {
  34. ids: $("#ids").val(),
  35. line: $("#F_SSCode").val(),
  36. planStartDate: $("#F_PlanStartDate").val(),
  37. planEndDate: $("#F_PlanEndDate").val(),
  38. orderDate: new Date().toLocaleDateString(),
  39. };
  40. if (!obj.line) {
  41. return false;
  42. }
  43. $.submitForm({
  44. url: "/OMAY/Aps/UpdateMoPlan",
  45. param: { keyValue: JSON.stringify(obj) },
  46. success: function () {
  47. $.currentWindow().$("#gridList").trigger("reloadGrid");
  48. }
  49. })
  50. }
  51. </script>
  52. <form id="form1">
  53. <div style="margin-top: 10px; margin-left: 10px; margin-right: 10px;">
  54. <div>
  55. <input id="ids" name="ids" type="text" class="form-control required" style="display:none;" />
  56. </div>
  57. <div style="padding-top: 20px; margin-right: 30px;">
  58. <table class="form">
  59. <tr>
  60. <th class="formTitle">产线</th>
  61. <td class="formValue">
  62. @*<input id="F_SSCode" name="F_SSCode" type="text" class="form-control required" placeholder="请输入编码" />*@
  63. <select id="F_SSCode" name="F_SSCode" class="form-control select2 required" style="width: 135px; height: 20px;">
  64. @*<option value=""></option>*@
  65. <option value="L1" selected>L1</option>
  66. <option value="L2">L2</option>
  67. <option value="L3">L3</option>
  68. <option value="L4">L4</option>
  69. <option value="L5">L5</option>
  70. <option value="C1">C1</option>
  71. </select>
  72. </td>
  73. </tr>
  74. <tr>
  75. <th class="formTitle">计划开工时间</th>
  76. <td class="formValue">
  77. <input id="F_PlanStartDate" name="F_PlanStartDate" type="text" class="form-control " onclick="WdatePicker({ dateFmt: 'yyyy-MM-dd' })" style="width:50%;" maxlength="10" placeholder="计划开工时间" />
  78. </td>
  79. </tr>
  80. <tr>
  81. <th class="formTitle">计划完工时间</th>
  82. <td class="formValue">
  83. <input id="F_PlanEndDate" name="F_PlanEndDate" type="text" class="form-control " onclick="WdatePicker({ dateFmt: 'yyyy-MM-dd' })" style="width: 50%;" maxlength="10" placeholder="计划完工时间" />
  84. </td>
  85. </tr>
  86. @*<tr>
  87. <th class="formTitle">排序时间</th>
  88. <td class="formValue">
  89. <input id="F_OrderDate" name="F_OrderDate" type="text" class="form-control" onclick="WdatePicker({ dateFmt: 'yyyy-MM-dd' })" style="width: 50%;" maxlength="10" placeholder="排序时间" />
  90. </td>
  91. </tr>*@
  92. </table>
  93. </div>
  94. </div>
  95. </form>