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.
139 lines
4.6 KiB
139 lines
4.6 KiB
|
|
@{
|
|
ViewBag.Title = "Index";
|
|
Layout = "~/Views/Shared/_Form.cshtml";
|
|
}
|
|
|
|
<script>
|
|
var LotNO = $.request("LotNO");
|
|
var Quantity = $.request("Quantity");
|
|
var InvName = decodeURI($.request("InvName"));
|
|
|
|
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 = "";
|
|
if (!!LotNO) {
|
|
$.ajax({
|
|
url: "/WMS/Deciliter/GetNewLotNo?LotNO=" + LotNO,
|
|
//data: { keyValue: keyValue },
|
|
dataType: "json",
|
|
async: false,
|
|
success: function (data) {
|
|
debugger;
|
|
$("#txtLotNO").val(LotNO);
|
|
$("#txtQuantity").val(Quantity);
|
|
$("#txtInvName").val(InvName);
|
|
$("#txtNewLotNo").val(data.rows);
|
|
if (!!LotNO) {
|
|
$("#txtLotNO").attr("disabled", "disabled");
|
|
$("#txtQuantity").attr("disabled", "disabled");
|
|
$("#txtInvName").attr("disabled", "disabled");
|
|
$("#txtNewLotNo").attr("disabled", "disabled");
|
|
}
|
|
}
|
|
});
|
|
|
|
}
|
|
});
|
|
|
|
|
|
function submitForm() {
|
|
debugger;
|
|
if (!$('#form1').formValid()) {
|
|
return false;
|
|
}
|
|
var RoleEnCode = '@NFine.Code.OperatorProvider.Provider.GetCurrent().UserCode'
|
|
var WorkPoint = '@NFine.Code.OperatorProvider.Provider.GetCurrent().Location'
|
|
var date = new Date();
|
|
var Details = [];
|
|
var obj = {
|
|
CurrentLotNo: $("#txtNewLotNo").val(),
|
|
CurrentQuantity: $("#txtCount").val(),
|
|
|
|
};
|
|
Details.push(obj);
|
|
|
|
var Header = {
|
|
LotNo: $("#txtLotNO").val(),
|
|
User: RoleEnCode,
|
|
MTIME: date,
|
|
WorkPoint: WorkPoint,
|
|
Detail: Details,
|
|
}
|
|
var Parameter = [];
|
|
Parameter.push(Header);
|
|
|
|
$.submitForm({
|
|
url: "/WMS/Deciliter/Split?" + Math.random(),
|
|
param: { Parameter: JSON.stringify(Parameter) },
|
|
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="txtLotNO" name="txtLotNO" type="text" class="form-control " />
|
|
</td>
|
|
|
|
</tr>
|
|
<tr>
|
|
<th class="formTitle">料品在库数量</th>
|
|
<td class="formValue">
|
|
<input id="txtQuantity" name="Quantity" type="text" class="form-control " />
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th class="formTitle">料品名称</th>
|
|
<td class="formValue">
|
|
<input id="txtInvName" name="txtInvName" type="text" class="form-control " />
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th class="formTitle">新条码</th>
|
|
<td class="formValue">
|
|
<input id="txtNewLotNo" name="txtNewLotNo" type="text" class="form-control " />
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th class="formTitle"><span style="color: red;">*</span>分批数量</th>
|
|
<td class="formValue">
|
|
<input id="txtCount" name="txtCount" type="text" class="form-control required" placeholder="请输入分批数量" />
|
|
</td>
|
|
</tr>
|
|
|
|
</table>
|
|
</div>
|
|
</form>
|
|
|