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.

112 lines
4.2 KiB

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