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.

110 lines
4.1 KiB

1 year ago
1 year ago
1 year ago
1 year ago
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. isCanUpdateStatus: true,
  35. ids: $("#ids").val(),
  36. line: $("#F_SSCode").val(),
  37. planStartDate: $("#F_PlanStartDate").val(),
  38. planEndDate: $("#F_PlanEndDate").val(),
  39. orderDate: '',
  40. };
  41. if (!obj.line) {
  42. return false;
  43. }
  44. $.submitForm({
  45. url: "/OMAY/Aps/UpdateMoPlan",
  46. param: { keyValue: JSON.stringify(obj) },
  47. success: function () {
  48. $.currentWindow().$("#gridList").trigger("reloadGrid");
  49. }
  50. })
  51. }
  52. </script>
  53. <form id="form1">
  54. <div style="margin-top: 10px; margin-left: 10px; margin-right: 10px;">
  55. <div>
  56. <input id="ids" name="ids" type="text" class="form-control required" style="display:none;" />
  57. </div>
  58. <div style="padding-top: 20px; margin-right: 30px;">
  59. <table class="form">
  60. <tr>
  61. <th class="formTitle">产线</th>
  62. <td class="formValue">
  63. @*<input id="F_SSCode" name="F_SSCode" type="text" class="form-control required" placeholder="请输入编码" />*@
  64. <select id="F_SSCode" name="F_SSCode" class="form-control select2 required" style="width: 135px; height: 20px;">
  65. @*<option value=""></option>*@
  66. <option value="L1" selected>L1</option>
  67. <option value="L2">L2</option>
  68. <option value="L3">L3</option>
  69. <option value="L4">L4</option>
  70. <option value="L5">L5</option>
  71. <option value="L6">L6</option>
  72. <option value="L7">L7</option>
  73. <option value="C1">C1</option>
  74. </select>
  75. </td>
  76. </tr>
  77. <tr>
  78. <th class="formTitle">计划开工时间</th>
  79. <td class="formValue">
  80. <input id="F_PlanStartDate" name="F_PlanStartDate" type="text" class="form-control " onclick="WdatePicker({ dateFmt: 'yyyy-MM-dd' })" style="width:50%;" maxlength="10" placeholder="计划开工时间" />
  81. </td>
  82. </tr>
  83. <tr>
  84. <th class="formTitle">计划完工时间</th>
  85. <td class="formValue">
  86. <input id="F_PlanEndDate" name="F_PlanEndDate" type="text" class="form-control " onclick="WdatePicker({ dateFmt: 'yyyy-MM-dd' })" style="width: 50%;" maxlength="10" placeholder="计划完工时间" />
  87. </td>
  88. </tr>
  89. @*<tr>
  90. <th class="formTitle">排序时间</th>
  91. <td class="formValue">
  92. <input id="F_OrderDate" name="F_OrderDate" type="text" class="form-control" onclick="WdatePicker({ dateFmt: 'yyyy-MM-dd' })" style="width: 50%;" maxlength="10" placeholder="排序时间" />
  93. </td>
  94. </tr>*@
  95. </table>
  96. </div>
  97. </div>
  98. </form>