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.
626 lines
28 KiB
626 lines
28 KiB
|
|
@{
|
|
ViewBag.Title = "Index";
|
|
Layout = "~/Views/Shared/_Form.cshtml";
|
|
}
|
|
<script>
|
|
var Type = $.request("Type");
|
|
var ApplyNegCode = $.request("ApplyNegCode");
|
|
var OApplyNegCode = $.request("OApplyNegCode");
|
|
var SDNCode = $.request("SDNCode");
|
|
var InCode = $.request("InCode");
|
|
var Sequence = $.request("Sequence");
|
|
var MOCode = $.request("MOCode");
|
|
var ReturnCode = $.request("ReturnCode");
|
|
var DNCode = $.request("DNCode");
|
|
var ODNCode = $.request("ODNCode");
|
|
var RCVCode = $.request("RCVCode");
|
|
var LLApplyNegCode = $.request("LLApplyNegCode");
|
|
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 (Type=='1') {
|
|
if (!!ApplyNegCode && !!Sequence) {
|
|
$.ajax({
|
|
url: "/WMS/WMSCreateItemLot/GetSubGridJsonByCreate?ApplyNegCode=" + ApplyNegCode + "&Sequence=" + Sequence + "&WorkPoint=" + WorkPoints,
|
|
//data: { keyValue: keyValue },
|
|
dataType: "json",
|
|
async: false,
|
|
success: function (data) {
|
|
debugger;
|
|
$("#InvCode").val(data.rows[0].InvCode);
|
|
$("#INVNAME").val(data.rows[0].InvName);
|
|
$("#INVSTD").val(data.rows[0].InvStd);
|
|
$("#Quantity").val(data.rows[0].Quantity);
|
|
$("#CreatedQty").val(data.rows[0].CreatedQty);
|
|
$("#thisCreateQty").val(data.rows[0].thisCreateQty);
|
|
VenCode = data.rows[0].VenCode;
|
|
WorkPoint = data.rows[0].WorkPoint;
|
|
if (data.rows[0].Quantity == data.rows[0].CreatedQty) {
|
|
$("#thisCreateQty").attr("disabled", "disabled");
|
|
$("#minPackQty").attr("disabled", "disabled");
|
|
$("#VendorLotNo").attr("disabled", "disabled");
|
|
}
|
|
}
|
|
});
|
|
$.ajax({
|
|
url: "/WMS/WMSCreateItemLot/GetVendorLotNo?VenCode=" + VenCode + "&WorkPoint=" + WorkPoint,
|
|
//data: { keyValue: keyValue },
|
|
dataType: "json",
|
|
async: false,
|
|
success: function (data) {
|
|
$("#VendorLotNo").val(data.VendorLotNo);
|
|
}
|
|
});
|
|
}
|
|
}
|
|
if (Type=='2') {
|
|
if (!!OApplyNegCode && !!Sequence) {
|
|
$.ajax({
|
|
url: "/WMS/WMSCreateItemLot/GetSubGridJsonWeiWaiByCreate?OApplyNegCode=" + OApplyNegCode + "&Sequence=" + Sequence + "&WorkPoint=" + WorkPoints,
|
|
|
|
dataType: "json",
|
|
async: false,
|
|
success: function (data) {
|
|
debugger;
|
|
$("#InvCode").val(data.rows[0].InvCode);
|
|
$("#INVNAME").val(data.rows[0].InvName);
|
|
$("#INVSTD").val(data.rows[0].InvStd);
|
|
$("#Quantity").val(data.rows[0].Quantity);
|
|
$("#CreatedQty").val(data.rows[0].CreatedQty);
|
|
$("#thisCreateQty").val(data.rows[0].thisCreateQty);
|
|
VenCode = data.rows[0].VenCode;
|
|
WorkPoint = data.rows[0].WorkPoint;
|
|
if (data.rows[0].Quantity == data.rows[0].CreatedQty) {
|
|
$("#thisCreateQty").attr("disabled", "disabled");
|
|
$("#minPackQty").attr("disabled", "disabled");
|
|
$("#VendorLotNo").attr("disabled", "disabled");
|
|
}
|
|
}
|
|
});
|
|
$.ajax({
|
|
url: "/WMS/WMSCreateItemLot/GetVendorLotNo?VenCode=" + VenCode + "&WorkPoint=" + WorkPoint,
|
|
|
|
dataType: "json",
|
|
async: false,
|
|
success: function (data) {
|
|
$("#VendorLotNo").val(data.VendorLotNo);
|
|
}
|
|
});
|
|
}
|
|
}
|
|
if (Type == '3') {
|
|
if (!!MOCode && !!Sequence) {
|
|
$.ajax({
|
|
url: "/WMS/WMSCreateItemLot/GetSubGridJsonChengPingByCreate?MOCode=" + MOCode + "&Sequence=" + Sequence + "&WorkPoint=" + WorkPoints,
|
|
|
|
dataType: "json",
|
|
async: false,
|
|
success: function (data) {
|
|
debugger;
|
|
$("#InvCode").val(data.rows[0].InvCode);
|
|
$("#INVNAME").val(data.rows[0].InvName);
|
|
$("#INVSTD").val(data.rows[0].InvStd);
|
|
$("#Quantity").val(data.rows[0].Quantity);
|
|
$("#CreatedQty").val(data.rows[0].CreatedQty);
|
|
$("#thisCreateQty").val(data.rows[0].thisCreateQty);
|
|
VenCode = data.rows[0].VenCode;
|
|
WorkPoint = data.rows[0].WorkPoint;
|
|
if (data.rows[0].Quantity == data.rows[0].CreatedQty) {
|
|
$("#thisCreateQty").attr("disabled", "disabled");
|
|
$("#minPackQty").attr("disabled", "disabled");
|
|
$("#VendorLotNo").attr("disabled", "disabled");
|
|
}
|
|
}
|
|
});
|
|
$.ajax({
|
|
url: "/WMS/WMSCreateItemLot/GetVendorLotNo?VenCode=" + VenCode + "&WorkPoint=" + WorkPoint,
|
|
|
|
dataType: "json",
|
|
async: false,
|
|
success: function (data) {
|
|
$("#VendorLotNo").val(data.VendorLotNo);
|
|
}
|
|
});
|
|
}
|
|
}
|
|
if (Type == '4') {
|
|
if (!!SDNCode && !!Sequence) {
|
|
$.ajax({
|
|
url: "/WMS/WMSCreateItemLot/GetSubGridJsonXiaoShouByCreate?SDNCode=" + SDNCode + "&Sequence=" + Sequence + "&WorkPoint=" + WorkPoints,
|
|
|
|
dataType: "json",
|
|
async: false,
|
|
success: function (data) {
|
|
debugger;
|
|
$("#InvCode").val(data.rows[0].InvCode);
|
|
$("#INVNAME").val(data.rows[0].InvName);
|
|
$("#INVSTD").val(data.rows[0].InvStd);
|
|
$("#Quantity").val(data.rows[0].Quantity);
|
|
$("#CreatedQty").val(data.rows[0].CreatedQty);
|
|
$("#thisCreateQty").val(data.rows[0].thisCreateQty);
|
|
VenCode = data.rows[0].VenCode;
|
|
WorkPoint = data.rows[0].WorkPoint;
|
|
if (data.rows[0].Quantity == data.rows[0].CreatedQty) {
|
|
$("#thisCreateQty").attr("disabled", "disabled");
|
|
$("#minPackQty").attr("disabled", "disabled");
|
|
$("#VendorLotNo").attr("disabled", "disabled");
|
|
}
|
|
}
|
|
});
|
|
$.ajax({
|
|
url: "/WMS/WMSCreateItemLot/GetVendorLotNo?VenCode=" + VenCode + "&WorkPoint=" + WorkPoint,
|
|
|
|
dataType: "json",
|
|
async: false,
|
|
success: function (data) {
|
|
$("#VendorLotNo").val(data.VendorLotNo);
|
|
}
|
|
});
|
|
}
|
|
}
|
|
if (Type == '5') {
|
|
if (!!InCode && !!Sequence) {
|
|
$.ajax({
|
|
url: "/WMS/WMSCreateItemLot/GetSubGridJsonQiTaByCreate?InCode=" + InCode + "&Sequence=" + Sequence + "&WorkPoint=" + WorkPoints,
|
|
|
|
dataType: "json",
|
|
async: false,
|
|
success: function (data) {
|
|
debugger;
|
|
$("#InvCode").val(data.rows[0].InvCode);
|
|
$("#INVNAME").val(data.rows[0].InvName);
|
|
$("#INVSTD").val(data.rows[0].InvStd);
|
|
$("#Quantity").val(data.rows[0].Quantity);
|
|
$("#CreatedQty").val(data.rows[0].CreatedQty);
|
|
$("#thisCreateQty").val(data.rows[0].thisCreateQty);
|
|
VenCode = data.rows[0].VenCode;
|
|
WorkPoint = data.rows[0].WorkPoint;
|
|
if (data.rows[0].Quantity == data.rows[0].CreatedQty) {
|
|
$("#thisCreateQty").attr("disabled", "disabled");
|
|
$("#minPackQty").attr("disabled", "disabled");
|
|
$("#VendorLotNo").attr("disabled", "disabled");
|
|
}
|
|
}
|
|
});
|
|
$.ajax({
|
|
url: "/WMS/WMSCreateItemLot/GetVendorLotNo?VenCode=" + VenCode + "&WorkPoint=" + WorkPoint,
|
|
//data: { keyValue: keyValue },
|
|
dataType: "json",
|
|
async: false,
|
|
success: function (data) {
|
|
$("#VendorLotNo").val(data.VendorLotNo);
|
|
}
|
|
});
|
|
}
|
|
}
|
|
if (Type == '6') {
|
|
if (!!ReturnCode && !!Sequence) {
|
|
$.ajax({
|
|
url: "/WMS/WMSCreateItemLot/GetSubGridJsonGuiHuanByCreate?ReturnCode=" + ReturnCode + "&Sequence=" + Sequence + "&WorkPoint=" + WorkPoints,
|
|
|
|
dataType: "json",
|
|
async: false,
|
|
success: function (data) {
|
|
debugger;
|
|
$("#InvCode").val(data.rows[0].InvCode);
|
|
$("#INVNAME").val(data.rows[0].InvName);
|
|
$("#INVSTD").val(data.rows[0].InvStd);
|
|
$("#Quantity").val(data.rows[0].Quantity);
|
|
$("#CreatedQty").val(data.rows[0].CreatedQty);
|
|
$("#thisCreateQty").val(data.rows[0].thisCreateQty);
|
|
VenCode = data.rows[0].VenCode;
|
|
WorkPoint = data.rows[0].WorkPoint;
|
|
if (data.rows[0].Quantity == data.rows[0].CreatedQty) {
|
|
$("#thisCreateQty").attr("disabled", "disabled");
|
|
$("#minPackQty").attr("disabled", "disabled");
|
|
$("#VendorLotNo").attr("disabled", "disabled");
|
|
}
|
|
}
|
|
});
|
|
$.ajax({
|
|
url: "/WMS/WMSCreateItemLot/GetVendorLotNo?VenCode=" + VenCode + "&WorkPoint=" + WorkPoint,
|
|
//data: { keyValue: keyValue },
|
|
dataType: "json",
|
|
async: false,
|
|
success: function (data) {
|
|
$("#VendorLotNo").val(data.VendorLotNo);
|
|
}
|
|
});
|
|
}
|
|
}
|
|
if (Type == '7') {
|
|
if (!!DNCode && !!Sequence) {
|
|
$.ajax({
|
|
url: "/WMS/WMSCreateItemLot/GetSubGridJsonSHDHByCreate?DNCode=" + DNCode + "&Sequence=" + Sequence + "&WorkPoint=" + WorkPoints,
|
|
dataType: "json",
|
|
async: false,
|
|
success: function (data) {
|
|
debugger;
|
|
$("#InvCode").val(data.rows[0].InvCode);
|
|
$("#INVNAME").val(data.rows[0].InvName);
|
|
$("#INVSTD").val(data.rows[0].InvStd);
|
|
$("#Quantity").val(data.rows[0].Quantity);
|
|
$("#CreatedQty").val(data.rows[0].CreatedQty);
|
|
$("#thisCreateQty").val(data.rows[0].thisCreateQty);
|
|
VenCode = data.rows[0].VenCode;
|
|
WorkPoint = data.rows[0].WorkPoint;
|
|
if (data.rows[0].Quantity == data.rows[0].CreatedQty) {
|
|
$("#thisCreateQty").attr("disabled", "disabled");
|
|
$("#minPackQty").attr("disabled", "disabled");
|
|
$("#VendorLotNo").attr("disabled", "disabled");
|
|
}
|
|
}
|
|
});
|
|
$.ajax({
|
|
url: "/WMS/WMSCreateItemLot/GetVendorLotNo?VenCode=" + VenCode + "&WorkPoint=" + WorkPoint,
|
|
//data: { keyValue: keyValue },
|
|
dataType: "json",
|
|
async: false,
|
|
success: function (data) {
|
|
$("#VendorLotNo").val(data.VendorLotNo);
|
|
}
|
|
});
|
|
}
|
|
}
|
|
if (Type == '8') {
|
|
debugger;
|
|
if (!!ODNCode && !!Sequence) {
|
|
$.ajax({
|
|
url: "/WMS/WMSCreateItemLot/GetSubGridJsonWWSHDHByCreate?ODNCode=" + ODNCode + "&Sequence=" + Sequence + "&WorkPoint=" + WorkPoints,
|
|
dataType: "json",
|
|
async: false,
|
|
success: function (data) {
|
|
debugger;
|
|
$("#InvCode").val(data.rows[0].InvCode);
|
|
$("#INVNAME").val(data.rows[0].InvName);
|
|
$("#INVSTD").val(data.rows[0].InvStd);
|
|
$("#Quantity").val(data.rows[0].Quantity);
|
|
$("#CreatedQty").val(data.rows[0].CreatedQty);
|
|
$("#thisCreateQty").val(data.rows[0].thisCreateQty);
|
|
VenCode = data.rows[0].VenCode;
|
|
WorkPoint = data.rows[0].WorkPoint;
|
|
if (data.rows[0].Quantity == data.rows[0].CreatedQty) {
|
|
$("#thisCreateQty").attr("disabled", "disabled");
|
|
$("#minPackQty").attr("disabled", "disabled");
|
|
$("#VendorLotNo").attr("disabled", "disabled");
|
|
}
|
|
}
|
|
});
|
|
$.ajax({
|
|
url: "/WMS/WMSCreateItemLot/GetVendorLotNo?VenCode=" + VenCode + "&WorkPoint=" + WorkPoint,
|
|
//data: { keyValue: keyValue },
|
|
dataType: "json",
|
|
async: false,
|
|
success: function (data) {
|
|
$("#VendorLotNo").val(data.VendorLotNo);
|
|
}
|
|
});
|
|
}
|
|
}
|
|
if (Type == '9') {
|
|
debugger;
|
|
if (!!RCVCode && !!Sequence) {
|
|
$.ajax({
|
|
url: "/WMS/WMSCreateItemLot/GetSubGridJsonKLCPRKByCreate?RCVCode=" + RCVCode + "&Sequence=" + Sequence + "&WorkPoint=" + WorkPoints,
|
|
dataType: "json",
|
|
async: false,
|
|
success: function (data) {
|
|
debugger;
|
|
$("#InvCode").val(data.rows[0].InvCode);
|
|
$("#INVNAME").val(data.rows[0].InvName);
|
|
$("#INVSTD").val(data.rows[0].InvStd);
|
|
$("#Quantity").val(data.rows[0].Quantity);
|
|
$("#CreatedQty").val(data.rows[0].CreatedQty);
|
|
$("#thisCreateQty").val(data.rows[0].thisCreateQty);
|
|
VenCode = data.rows[0].VenCode;
|
|
WorkPoint = data.rows[0].WorkPoint;
|
|
if (data.rows[0].Quantity == data.rows[0].CreatedQty) {
|
|
$("#thisCreateQty").attr("disabled", "disabled");
|
|
$("#minPackQty").attr("disabled", "disabled");
|
|
$("#VendorLotNo").attr("disabled", "disabled");
|
|
}
|
|
}
|
|
});
|
|
$.ajax({
|
|
url: "/WMS/WMSCreateItemLot/GetVendorLotNo?VenCode=" + VenCode + "&WorkPoint=" + WorkPoint,
|
|
//data: { keyValue: keyValue },
|
|
dataType: "json",
|
|
async: false,
|
|
success: function (data) {
|
|
$("#VendorLotNo").val(data.VendorLotNo);
|
|
}
|
|
});
|
|
}
|
|
}
|
|
|
|
$("#minPackQty").change(minPackQty_Change);
|
|
$("#thisCreateQty").change(thisCreateQty_Change);
|
|
$("#cretePageCount").change(function () {
|
|
var createPageCount = $("#cretePageCount").val() * 1;//本次生成张数
|
|
createPageCount = createPageCount.toFixed(0);
|
|
if (createPageCount <= 0) {
|
|
$.modalAlert("请输入大于0的数!");
|
|
return false;
|
|
}
|
|
});
|
|
});
|
|
|
|
//最小包装量值改变事件
|
|
function minPackQty_Change() {
|
|
var thisCreateQty = $("#thisCreateQty").val() * 1;//本次生成数量
|
|
thisCreateQty = thisCreateQty.toFixed(2);
|
|
var minPackQty = $("#minPackQty").val() * 1;//最小包装量
|
|
minPackQty = minPackQty.toFixed(2);
|
|
var createPageCount = $("#cretePageCount").val() * 1;//本次生成张数
|
|
createPageCount = createPageCount.toFixed(0);
|
|
if (minPackQty <= 0) {
|
|
$.modalAlert("请输入大于0的数!");
|
|
return false;
|
|
}
|
|
//不可以整除,生成张数+1;
|
|
if (thisCreateQty % minPackQty != 0) {
|
|
createPageCount = parseInt(thisCreateQty / minPackQty) + 1;
|
|
$("#cretePageCount").val(createPageCount);
|
|
}
|
|
else {
|
|
createPageCount = parseInt(thisCreateQty / minPackQty);
|
|
$("#cretePageCount").val(createPageCount);
|
|
}
|
|
}
|
|
//本次生成数量值改变事件
|
|
function thisCreateQty_Change() {
|
|
debugger;
|
|
var Quantity_str = $("#Quantity").val() * 1;//采购订单总数
|
|
|
|
var CreatedQty_str = $("#CreatedQty").val() * 1;//已生成数量
|
|
|
|
var thisCreateQty_str = $("#thisCreateQty").val() * 1;//本次生成数量
|
|
|
|
|
|
var Quantity = Number(Quantity_str);
|
|
var CreatedQty = Number(CreatedQty_str);
|
|
var thisCreateQty = Number(thisCreateQty_str);
|
|
|
|
if (thisCreateQty <= 0) {
|
|
$.modalAlert("请输入大于0的数!");
|
|
return false;
|
|
}
|
|
if (thisCreateQty <= 0 || thisCreateQty > (Quantity - CreatedQty)) {
|
|
var maxQty = Quantity - CreatedQty;
|
|
$.modalAlert("请输入0到" + maxQty + "范围内的数!");
|
|
$("#thisCreateQty").val("");
|
|
return false;
|
|
} else {
|
|
minPackQty_Change();
|
|
return true;
|
|
}
|
|
var minPackQty = $("#minPackQty").val() * 1;//最小包装量
|
|
minPackQty_Change();
|
|
}
|
|
|
|
|
|
function submitForm() {
|
|
debugger;
|
|
if (!$('#form1').formValid()) {
|
|
return false;
|
|
}
|
|
var thisCreateQty = $("#thisCreateQty").val() * 1;//本次生成数量
|
|
thisCreateQty = thisCreateQty.toFixed(2);
|
|
var minPackQty = $("#minPackQty").val() * 1;//最小包装量
|
|
minPackQty = minPackQty.toFixed(2);
|
|
var createPageCount = $("#cretePageCount").val() * 1;//本次生成张数
|
|
createPageCount = createPageCount.toFixed(0);
|
|
//校验
|
|
var flag1 = thisCreateQty_Change();
|
|
//var flag2 = CheckNum();
|
|
var VendorLot = $("#VendorLotNo").val();
|
|
if (flag1) { }
|
|
else {
|
|
return false;
|
|
}
|
|
var Quantity = $("#Quantity").val() * 1;//采购订单总数
|
|
Quantity = Quantity.toFixed(2);
|
|
var CreatedQty = $("#CreatedQty").val() * 1;//已生成数量
|
|
CreatedQty = CreatedQty.toFixed(2);
|
|
if (Quantity == CreatedQty ) {
|
|
return false;
|
|
}
|
|
var obj = {
|
|
thisCreateQty: thisCreateQty,
|
|
minPackQty: minPackQty,
|
|
createPageCount: createPageCount,
|
|
VendorLot: VendorLot,
|
|
PRODUCTDATE: $("#PRODUCTDATE").val()
|
|
}
|
|
if (Type=='1') {
|
|
$.submitForm({
|
|
url: "/WMS/WMSCreateItemLot/SubmitForm?ApplyNegCode=" + ApplyNegCode + "&Sequence=" + Sequence + "&WorkPoint=" + WorkPoints,
|
|
param: {
|
|
keyValue: JSON.stringify(obj)
|
|
},
|
|
success: function () {
|
|
$.currentWindow().$("#gridList").trigger("reloadGrid");
|
|
}
|
|
})
|
|
}
|
|
if (Type=='2') {
|
|
$.submitForm({
|
|
url: "/WMS/WMSCreateItemLot/SubmitFormWeiWai?OApplyNegCode=" + OApplyNegCode + "&Sequence=" + Sequence + "&WorkPoint=" + WorkPoints,
|
|
param: {
|
|
keyValue: JSON.stringify(obj)
|
|
},
|
|
success: function () {
|
|
$.currentWindow().$("#gridList").trigger("reloadGrid");
|
|
}
|
|
})
|
|
}
|
|
if (Type == '3') {
|
|
$.submitForm({
|
|
url: "/WMS/WMSCreateItemLot/SubmitFormChengPing?MOCode=" + MOCode + "&Sequence=" + Sequence + "&WorkPoint=" + WorkPoints,
|
|
param: {
|
|
keyValue: JSON.stringify(obj)
|
|
},
|
|
success: function () {
|
|
$.currentWindow().$("#gridList").trigger("reloadGrid");
|
|
}
|
|
})
|
|
}
|
|
if (Type == '4') {
|
|
$.submitForm({
|
|
url: "/WMS/WMSCreateItemLot/SubmitFormXiaoShou?SDNCode=" + SDNCode + "&Sequence=" + Sequence + "&WorkPoint=" + WorkPoints,
|
|
param: {
|
|
keyValue: JSON.stringify(obj)
|
|
},
|
|
success: function () {
|
|
$.currentWindow().$("#gridList").trigger("reloadGrid");
|
|
}
|
|
})
|
|
}
|
|
if (Type == '5') {
|
|
$.submitForm({
|
|
url: "/WMS/WMSCreateItemLot/SubmitFormQiTa?InCode=" + InCode + "&Sequence=" + Sequence + "&WorkPoint=" + WorkPoints,
|
|
param: {
|
|
keyValue: JSON.stringify(obj)
|
|
},
|
|
success: function () {
|
|
$.currentWindow().$("#gridList").trigger("reloadGrid");
|
|
}
|
|
})
|
|
}
|
|
if (Type == '6') {
|
|
$.submitForm({
|
|
url: "/WMS/WMSCreateItemLot/SubmitFormGuiHuan?ReturnCode=" + ReturnCode + "&Sequence=" + Sequence + "&WorkPoint=" + WorkPoints,
|
|
param: {
|
|
keyValue: JSON.stringify(obj)
|
|
},
|
|
success: function () {
|
|
$.currentWindow().$("#gridList").trigger("reloadGrid");
|
|
}
|
|
})
|
|
}
|
|
if (Type == '7') {
|
|
$.submitForm({
|
|
url: "/WMS/WMSCreateItemLot/SubmitFormSHDH?DNCode=" + DNCode + "&Sequence=" + Sequence + "&WorkPoint=" + WorkPoints,
|
|
param: {
|
|
keyValue: JSON.stringify(obj)
|
|
},
|
|
success: function () {
|
|
$.currentWindow().$("#gridList").trigger("reloadGrid");
|
|
}
|
|
})
|
|
}
|
|
if (Type == '8') {
|
|
$.submitForm({
|
|
url: "/WMS/WMSCreateItemLot/SubmitFormWWSHDH?ODNCode=" + ODNCode + "&Sequence=" + Sequence + "&WorkPoint=" + WorkPoints,
|
|
param: {
|
|
keyValue: JSON.stringify(obj)
|
|
},
|
|
success: function () {
|
|
$.currentWindow().$("#gridList").trigger("reloadGrid");
|
|
}
|
|
})
|
|
}
|
|
if (Type == '9') {
|
|
$.submitForm({
|
|
url: "/WMS/WMSCreateItemLot/SubmitFormKLCPRK?RCVCode=" + RCVCode + "&Sequence=" + Sequence + "&WorkPoint=" + WorkPoints,
|
|
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="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="INVSTD" name="INVSTD" type="text" class="form-control " />
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th class="formTitle">计量单位</th>
|
|
<td class="formValue">
|
|
<input id="INVUOM" name="INVUOM" 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 " />
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th class="formTitle">已生成条码数量</th>
|
|
<td class="formValue">
|
|
<input id="CreatedQty" name="CreatedQty" type="text" class="form-control " />
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th class="formTitle"><span style="color: red;">*</span>本次生成数量</th>
|
|
<td class="formValue">
|
|
<input id="thisCreateQty" name="thisCreateQty" type="text" class="form-control required" placeholder="请输入本次生成数量" />
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th class="formTitle"><span style="color: red;">*</span>最小包装量</th>
|
|
<td class="formValue">
|
|
<input id="minPackQty" name="minPackQty" type="text" class="form-control required" placeholder="请输入最小包装量" />
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th class="formTitle"><span style="color: red;">*</span>生产日期</th>
|
|
<td class="formValue">
|
|
<input type="text" name="PRODUCTDATE" id="PRODUCTDATE" class="form-control required" onclick="WdatePicker({ dateFmt: 'yyyy-MM-dd' })" placeholder="生产日期" />
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th class="formTitle"><span style="color: red;">*</span>生成张数</th>
|
|
<td class="formValue">
|
|
<input id="cretePageCount" disabled="disabled" name="cretePageCount" type="text" class="form-control required" placeholder="请输入生成张数" />
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
</form>
|