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.
149 lines
5.8 KiB
149 lines
5.8 KiB
|
|
@{
|
|
ViewBag.Title = "Index";
|
|
Layout = "~/Views/Shared/_Form.cshtml";
|
|
}
|
|
<script>
|
|
var ID = $.request("ID");
|
|
|
|
debugger;
|
|
var WorkPoints = '@NFine.Code.OperatorProvider.Provider.GetCurrent().Location'
|
|
$(function () {
|
|
$("#minPackQty").keyup(function () {
|
|
$(this).val($(this).val().replace(/[^0-9.]/g, ''));
|
|
}).bind("paste", function () { //CTR+V事件处理
|
|
$(this).val($(this).val().replace(/[^0-9.]/g, ''));
|
|
}).css("ime-mode", "disabled"); //CSS设置输入法不可用
|
|
$("#thisCreateQty").keyup(function () {
|
|
$(this).val($(this).val().replace(/[^0-9.]/g, ''));
|
|
}).bind("paste", function () { //CTR+V事件处理
|
|
$(this).val($(this).val().replace(/[^0-9.]/g, ''));
|
|
}).css("ime-mode", "disabled"); //CSS设置输入法不可用
|
|
$("#cretePageCount").keyup(function () {
|
|
$(this).val($(this).val().replace(/[^0-9.]/g, ''));
|
|
}).bind("paste", function () { //CTR+V事件处理
|
|
$(this).val($(this).val().replace(/[^0-9.]/g, ''));
|
|
}).css("ime-mode", "disabled"); //CSS设置输入法不可用
|
|
|
|
var VenCode = "";
|
|
var WorkPoint = "";
|
|
debugger;
|
|
//initControl();
|
|
if (!!ID) {
|
|
$.ajax({
|
|
url: "/WMS/BasicSettings/GetICSInventoryLotInfo?ID=" + ID ,
|
|
//data: { keyValue: keyValue },
|
|
dataType: "json",
|
|
async: false,
|
|
success: function (data) {
|
|
debugger;
|
|
$("#LotNo").val(data.rows[0].LotNo);
|
|
$("#InvCode").val(data.rows[0].InvCode);
|
|
$("#INVNAME").val(data.rows[0].InvName);
|
|
$("#ProductDate").val(data.rows[0].ProductDate);
|
|
$("#ExpirationDate").val(data.rows[0].ExpirationDate);
|
|
$("#Quantity").val(data.rows[0].Quantity);
|
|
$("#LotNo").attr("disabled", "disabled");
|
|
$("#InvCode").attr("disabled", "disabled");
|
|
$("#INVNAME").attr("disabled", "disabled");
|
|
$("#ProductDate").attr("disabled", "disabled");
|
|
$("#Quantity").attr("disabled", "disabled");
|
|
|
|
}
|
|
});
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
|
function submitForm() {
|
|
debugger;
|
|
if (!$('#form1').formValid()) {
|
|
return false;
|
|
}
|
|
var LotNo = $("#LotNo").val();//条码
|
|
var Inv = $('input[name="Inv"]:checked').val();//是否IQC检验
|
|
var ExpirationDate = $("#ExpirationDate").val();//条码失效日期
|
|
var InvCode = $("#InvCode").val();
|
|
var Quantity = $("#Quantity").val();
|
|
|
|
if (Inv == "" || Inv == undefined) {
|
|
$.modalAlertNew("WMS00104");
|
|
return;
|
|
}
|
|
$.submitForm({
|
|
url: "/WMS/BasicSettings/UpdateExpirationDate?ID=" + ID + "&ExpirationDate=" + ExpirationDate + "&Inv=" + Inv + "&LotNo=" + LotNo + "&InvCode=" + InvCode + "&Quantity=" + Quantity,
|
|
param: {
|
|
keyValue: JSON.stringify(obj)
|
|
},
|
|
success: function () {
|
|
$.currentWindow().$("#gridList").trigger("reloadGrid");
|
|
}
|
|
})
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
</script>
|
|
|
|
<form id="form1">
|
|
<div style="padding-top: 20px; margin-right: 20px;">
|
|
<table class="form">
|
|
<tr>
|
|
<th class="formTitle">条码</th>
|
|
<td class="formValue">
|
|
<input id="LotNo" name="LotNo" type="text" class="form-control " />
|
|
</td>
|
|
|
|
</tr>
|
|
<tr>
|
|
<th class="formTitle">料品编码</th>
|
|
<td class="formValue">
|
|
<input id="InvCode" name="InvCode" type="text" class="form-control " />
|
|
</td>
|
|
|
|
</tr>
|
|
<tr>
|
|
<th class="formTitle">物料描述</th>
|
|
<td class="formValue">
|
|
<input id="INVNAME" name="INVNAME" type="text" class="form-control " />
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th class="formTitle">数量</th>
|
|
<td class="formValue">
|
|
<input id="Quantity" name="Quantity" type="text" class="form-control " />
|
|
<input id="YAmount" name="YAmount" type="text" style="display:none" />
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th class="formTitle">生产日期</th>
|
|
<td class="formValue">
|
|
<input type="text" name="ProductDate" id="ProductDate" class="form-control " onclick="WdatePicker({ dateFmt: 'yyyy-MM-dd' })" placeholder="生产日期" />
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th class="formTitle"> 检验结果:</th>
|
|
<td class="formValue">
|
|
<div class="input-group" id="Invchaeckbox">
|
|
<input type="radio" name="Inv" value="1" id="InvYes" style="width:60px" /><label for="InvYes">合格</label>
|
|
<input type="radio" name="Inv" value="0" id="InvNo" style="width:60px" /><label for="InvNo">不合格</label>
|
|
</div>
|
|
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th class="formTitle"><span style="color: red;">*</span>失效日期</th>
|
|
<td class="formValue">
|
|
<input type="text" name="ExpirationDate" id="ExpirationDate" class="form-control required" onclick="WdatePicker({ dateFmt: 'yyyy-MM-dd' })" placeholder="失效日期" />
|
|
</td>
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
</form>
|
|
|