Browse Source

增加齐套开关

master
Juj 11 months ago
parent
commit
9528e79a80
  1. 109
      WMS-BS/NFine.Web/Areas/OMAY/Views/ICSMoCreateLot/From.cshtml

109
WMS-BS/NFine.Web/Areas/OMAY/Views/ICSMoCreateLot/From.cshtml

@ -829,48 +829,39 @@
}
if (Type == '3') {
//var Flag = GetGetGeneratedNum(MOCode, Sequence, thisCreateQty);
//if (Flag == false) {
// $.modalAlert("该单据生成数量异常,请重新确认单据信息!");
// return;
//}
var AvailQty = '';
var AllQty = '';
var Msg = '';
var Qty= $("#thisCreateQty").val()
//var Header = {
// WorkPoint: WorkPoints,
// DetailID: MODetailID,
// Type: '生产订单',
// InQty: $("#CreatedQty").val(),
// Qty: $("#thisCreateQty").val(),
// Prorate: Prorate,
//}
//var keyValue = [];
//keyValue.push(Header);
var Complete = '';
$.ajax({
url: "/OMAY/ICSMoCreateLot/GetAbsolveQty?MOCode=" + MOCode + "&Sequence=" + Sequence + "&Qty=" + Qty,
//data: { keyValue: JSON.stringify(keyValue) },
url: "/WMS/WMSCreateItemLot/GetComplete" + "?" + Math.random(),
dataType: "json",
async: false,
success: function (data) {
Msg = data.msg;
AvailQty = data.AvailQty;
AllQty = data.AllQty;
if (data != null && data.length > 0) {
Complete = data[0].Enable;
}
}
});
if (Msg != '') {
$.modalAlert("ERP:"+Msg);
return;
}
//if (thisCreateQty > (QiSetNum - CreatedQty)) {
// $.modalAlert("该订单未发料,请发料后生成条码!");
// $("#thisCreateQty").val("");
// return;
//}
if (Complete == true) {
var AvailQty = '';
var AllQty = '';
var Msg = '';
var Qty= $("#thisCreateQty").val()
$.ajax({
url: "/OMAY/ICSMoCreateLot/GetAbsolveQty?MOCode=" + MOCode + "&Sequence=" + Sequence + "&Qty=" + Qty,
dataType: "json",
async: false,
success: function (data) {
Msg = data.msg;
AvailQty = data.AvailQty;
AllQty = data.AllQty;
}
});
if (Msg != '') {
$.modalAlert("ERP:"+Msg);
return;
}
}
$.submitForm({
url: "/OMAY/ICSMoCreateLot/SubmitFormChengPing?MOCode=" + MOCode + "&Sequence=" + Sequence + "&WorkPoint=" + WorkPoints + "&AMEnable=" + AMEnable,
@ -884,33 +875,45 @@
}
if (Type == '18') {
//var Flag = GetGetGeneratedNum(FCPMOCode, Sequence, thisCreateQty);
//if (Flag==false) {
// $.modalAlert("该单据生成数量异常,请重新确认单据信息!");
// return;
//}
var AvailQty = '';
var AllQty = '';
var Msg = '';
var Qty = $("#thisCreateQty").val()
var Complete = '';
$.ajax({
url: "/OMAY/ICSMoCreateLot/GetFCPAbsolveQty?MOCode=" + FCPMOCode + "&Sequence=" + Sequence + "&Qty=" + Qty,
// data: { keyValue: JSON.stringify(keyValue) },
url: "/WMS/WMSCreateItemLot/GetComplete" + "?" + Math.random(),
dataType: "json",
async: false,
success: function (data) {
Msg = data.msg;
AvailQty = data.AvailQty;
AllQty = data.AllQty;
if (data != null && data.length > 0) {
Complete = data[0].Enable;
}
}
});
if (Msg != '') {
$.modalAlert(Msg);
return;
if (Complete == true) {
var AvailQty = '';
var AllQty = '';
var Msg = '';
var Qty = $("#thisCreateQty").val();
$.ajax({
url: "/OMAY/ICSMoCreateLot/GetFCPAbsolveQty?MOCode=" + FCPMOCode + "&Sequence=" + Sequence + "&Qty=" + Qty,
dataType: "json",
async: false,
success: function (data) {
Msg = data.msg;
AvailQty = data.AvailQty;
AllQty = data.AllQty;
}
});
if (Msg != '') {
$.modalAlert("ERP:" + Msg);
return;
}
}
$.submitForm({
url: "/OMAY/ICSMoCreateLot/SubmitFormFCP?FCPMOCode=" + FCPMOCode + "&Sequence=" + Sequence + "&WorkPoint=" + WorkPoints + "&AMEnable=" + AMEnable,
param: {

Loading…
Cancel
Save