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.
 
 
 
 
 

99 lines
3.3 KiB

@{
ViewBag.Title = "Index";
Layout = "~/Views/Shared/_Form.cshtml";
}
<script>
debugger;
var Type = $.request("OpraterType");
var LotNOList = decodeURI($.request("LotNOList"));
var Mtime = new Date().getFullYear() + "-" + (new Date().getMonth() + 1) + "-" + new Date().getDate();
var WorkPoints = '@NFine.Code.OperatorProvider.Provider.GetCurrent().Location'
$(function () {
if (Type == "1") {
$("#reason").html("冻结原因");
//$(".batchCode").css('display', 'none');
//$(".batchCode1").css('display', 'none');
}
else {
debugger;
$("#reason").html("解冻原因");
$("#batchCode").css('display', 'none');
$("#batchCode1").css('display', 'none');
}
});
//提交
function submitForm() {
var Memo = $("#Memo").val();
if (Memo == "") {
$.modalAlertNew("WMS00122");
return;
}
if (Type == "1") {
var batchCode = $("#text_batchCode").val();
var str = '';
if (batchCode == "") {
$.modalAlertNew("WMS00125");
return;
}
$.ajax({
url: "/KBSWMS/ICSLotFreezeDH/GetBathCode?BatchCode=" + batchCode + "&"+ Math.random(),
dataType: "json",
async: false,
success: function (data) {
debugger;
str = data.message;
}
});
$.modalConfirm(str+"确定冻结选中条码吗?", function (r) { //GetBathCode
if (r) {
$.submitForm({
url: "/KBSWMS/ICSLotFreezeDH/Freeze?LotNOList=" + LotNOList + "&Memo=" + Memo + "&BatchCode=" + batchCode + "&" + Math.random(),
success: function () {
$.currentWindow().$("#gridList").trigger("reloadGrid");
}
})
}
});
}
else {
$.modalConfirm("确定对选中条码做解除冻结操作吗?", function (r) {
if (r) {
$.submitForm({
url: "/KBSWMS/ICSLotFreezeDH/UnFreeze?LotNOList=" + LotNOList + "&Memo=" + Memo + "&" + Math.random(),
success: function () {
$.currentWindow().$("#gridList").trigger("reloadGrid");
}
})
}
});
}
}
</script>
<form id="form1">
<div style="padding-top: 20px; margin-right: 20px;">
<table class="form">
<tr>
<th id="reason" class="formTitle">原因</th>
<td class="formValue">
<textarea id="Memo" name="Memo" class="form-control" placeholder="请输入原因"></textarea>
</td>
</tr>
<tr>
<th id="batchCode" class="formTitle">批次</th>
<td id ="batchCode1"class="formValue">
<textarea id="text_batchCode" name="text_batchCode" class="form-control" placeholder="请输入批次"></textarea>
</td>
</tr>
</table>
</div>
</form>