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
112 lines
4.2 KiB
|
|
@{
|
|
ViewBag.Title = "EditInstructionBill";
|
|
Layout = "~/Views/Shared/_Form.cshtml";
|
|
}
|
|
<script src="~/Content/js/datepicker/WdatePicker.js"></script>
|
|
<script>
|
|
//const { Console } = require("node:console");
|
|
|
|
//var keyValue = $.request("keyValue");
|
|
$(function () {
|
|
initControl();
|
|
//if (!!keyValue) {
|
|
// $.ajax({
|
|
// url: "/SystemManage/Customer/GetFormJson",
|
|
// data: { keyValue: keyValue },
|
|
// dataType: "json",
|
|
// async: false,
|
|
// success: function (data) {
|
|
// $("#form1").formSerialize(data);
|
|
// }
|
|
// });
|
|
//}
|
|
});
|
|
function initControl() {
|
|
$("#F_EnabledMark").bindSelect();
|
|
|
|
console.log('@ViewData["ids"]');
|
|
console.log('@ViewData["line"]');
|
|
$("#ids").val('@ViewData["ids"]' );
|
|
$("#F_SSCode").val('@ViewData["line"]' );
|
|
}
|
|
function submitForm() {
|
|
if (!$('#form1').formValid()) {
|
|
return false;
|
|
}
|
|
|
|
let obj = {
|
|
isCanUpdateStatus: true,
|
|
ids: $("#ids").val(),
|
|
line: $("#F_SSCode").val(),
|
|
planStartDate: $("#F_PlanStartDate").val(),
|
|
planEndDate: $("#F_PlanEndDate").val(),
|
|
orderDate: '',
|
|
};
|
|
if (!obj.line) {
|
|
return false;
|
|
}
|
|
|
|
|
|
$.submitForm({
|
|
url: "/OMAY/Aps/UpdateMoPlan",
|
|
param: { keyValue: JSON.stringify(obj) },
|
|
success: function () {
|
|
$.currentWindow().$("#gridList").trigger("reloadGrid");
|
|
}
|
|
})
|
|
}
|
|
</script>
|
|
<form id="form1">
|
|
<div style="margin-top: 10px; margin-left: 10px; margin-right: 10px;">
|
|
|
|
<div>
|
|
<input id="ids" name="ids" type="text" class="form-control required" style="display:none;" />
|
|
</div>
|
|
<div style="padding-top: 20px; margin-right: 30px;">
|
|
<table class="form">
|
|
<tr>
|
|
<th class="formTitle">产线</th>
|
|
<td class="formValue">
|
|
@*<input id="F_SSCode" name="F_SSCode" type="text" class="form-control required" placeholder="请输入编码" />*@
|
|
<select id="F_SSCode" name="F_SSCode" class="form-control select2 required" style="width: 135px; height: 20px;">
|
|
@*<option value=""></option>*@
|
|
<option value="L1" selected>L1</option>
|
|
<option value="L2">L2</option>
|
|
<option value="L3">L3</option>
|
|
<option value="L4">L4</option>
|
|
<option value="L5">L5</option>
|
|
<option value="L6">L6</option>
|
|
<option value="L7">L7</option>
|
|
<option value="C1">C1</option>
|
|
</select>
|
|
</td>
|
|
|
|
</tr>
|
|
<tr>
|
|
<th class="formTitle">计划开工时间</th>
|
|
<td class="formValue">
|
|
<input id="F_PlanStartDate" name="F_PlanStartDate" type="text" class="form-control " onclick="WdatePicker({ dateFmt: 'yyyy-MM-dd' })" style="width:50%;" maxlength="10" placeholder="计划开工时间" />
|
|
</td>
|
|
|
|
</tr>
|
|
<tr>
|
|
<th class="formTitle">计划完工时间</th>
|
|
<td class="formValue">
|
|
<input id="F_PlanEndDate" name="F_PlanEndDate" type="text" class="form-control " onclick="WdatePicker({ dateFmt: 'yyyy-MM-dd' })" style="width: 50%;" maxlength="10" placeholder="计划完工时间" />
|
|
</td>
|
|
|
|
</tr>
|
|
@*<tr>
|
|
<th class="formTitle">排序时间</th>
|
|
<td class="formValue">
|
|
<input id="F_OrderDate" name="F_OrderDate" type="text" class="form-control" onclick="WdatePicker({ dateFmt: 'yyyy-MM-dd' })" style="width: 50%;" maxlength="10" placeholder="排序时间" />
|
|
</td>
|
|
|
|
</tr>*@
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
|
|
|