|
@ -359,7 +359,9 @@ |
|
|
<h2 class="layui-colla-title">細項資料</h2> |
|
|
<h2 class="layui-colla-title">細項資料</h2> |
|
|
<div class="layui-colla-content layui-show"> |
|
|
<div class="layui-colla-content layui-show"> |
|
|
<table id="MydataTable" class="layui-table"> |
|
|
<table id="MydataTable" class="layui-table"> |
|
|
@{ int i = 0;} |
|
|
@{ |
|
|
|
|
|
int i = 0; |
|
|
|
|
|
} |
|
|
<thead> |
|
|
<thead> |
|
|
<tr> |
|
|
<tr> |
|
|
<th>箱號</th> |
|
|
<th>箱號</th> |
|
@ -508,8 +510,10 @@ |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
@section Scripts{ |
|
|
@section Scripts{ |
|
|
@{ await Html.RenderPartialAsync("_ValidationScriptsPartial"); |
|
|
@{ |
|
|
await Html.RenderPartialAsync("_FileinputScriptsPartial"); } |
|
|
await Html.RenderPartialAsync("_ValidationScriptsPartial"); |
|
|
|
|
|
await Html.RenderPartialAsync("_FileinputScriptsPartial"); |
|
|
|
|
|
} |
|
|
<script type="text/javascript" src="~/js/grids.min.js"></script> |
|
|
<script type="text/javascript" src="~/js/grids.min.js"></script> |
|
|
<script type="text/javascript"> |
|
|
<script type="text/javascript"> |
|
|
layui.use(['form', 'layer', 'laydate'], function () { |
|
|
layui.use(['form', 'layer', 'laydate'], function () { |
|
@ -532,12 +536,10 @@ |
|
|
dataType: 'json', |
|
|
dataType: 'json', |
|
|
data: { "userNo": val.value }, |
|
|
data: { "userNo": val.value }, |
|
|
type: 'post', |
|
|
type: 'post', |
|
|
success: function (result) |
|
|
success: function (result) { |
|
|
{ |
|
|
|
|
|
$(val).closest('div.layui-col-xs2').find('label[id*=' + val.id + '_Name]').text(result.data); |
|
|
$(val).closest('div.layui-col-xs2').find('label[id*=' + val.id + '_Name]').text(result.data); |
|
|
}, |
|
|
}, |
|
|
error: function (result) |
|
|
error: function (result) { |
|
|
{ |
|
|
|
|
|
alert(result); |
|
|
alert(result); |
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |
|
@ -545,6 +547,12 @@ |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
function edit() { |
|
|
function edit() { |
|
|
|
|
|
var data = $("#FQC007Form").serialize(); |
|
|
|
|
|
$.ajax({ |
|
|
|
|
|
url: "@Url.Action("FQC007AjaxJson", "FQC")", |
|
|
|
|
|
type: "POST", |
|
|
|
|
|
data: data, |
|
|
|
|
|
success: function (result) { |
|
|
layui.use('layer', function () { |
|
|
layui.use('layer', function () { |
|
|
var layer = layui.layer; |
|
|
var layer = layui.layer; |
|
|
layer.open({ |
|
|
layer.open({ |
|
@ -561,12 +569,24 @@ |
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |
|
|
}); |
|
|
}); |
|
|
|
|
|
}, |
|
|
|
|
|
error: function (result) { |
|
|
|
|
|
alert(`呼叫API失敗`); |
|
|
|
|
|
} |
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
//hg.open('抽驗', '/FQC/FQC007C?inhouseNo=@Model.h_InhouseNo&seq=@Model.h_SeqID', 600, 600); |
|
|
//hg.open('抽驗', '/FQC/FQC007C?inhouseNo=@Model.h_InhouseNo&seq=@Model.h_SeqID', 600, 600); |
|
|
|
|
|
|
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
function result() { |
|
|
function result() { |
|
|
//hg.open('判定結果', '/FQC/FQC007B/', 600, 400); |
|
|
//hg.open('判定結果', '/FQC/FQC007B/', 600, 400); |
|
|
|
|
|
var data = $("#FQC007Form").serialize(); |
|
|
|
|
|
$.ajax({ |
|
|
|
|
|
url: "@Url.Action("FQC007AjaxJson", "FQC")", |
|
|
|
|
|
type: "POST", |
|
|
|
|
|
data: data, |
|
|
|
|
|
success: function (result) { |
|
|
layui.use('layer', function () { |
|
|
layui.use('layer', function () { |
|
|
var layer = layui.layer; |
|
|
var layer = layui.layer; |
|
|
layer.open({ |
|
|
layer.open({ |
|
@ -578,11 +598,18 @@ |
|
|
content: '/FQC/FQC007B?inhouseNo=@Model.h_InhouseNo&seq=@Model.h_SeqID&fqc=@Model.FqcID' |
|
|
content: '/FQC/FQC007B?inhouseNo=@Model.h_InhouseNo&seq=@Model.h_SeqID&fqc=@Model.FqcID' |
|
|
}); |
|
|
}); |
|
|
}); |
|
|
}); |
|
|
|
|
|
}, |
|
|
|
|
|
error: function (result) { |
|
|
|
|
|
alert(`呼叫API失敗`); |
|
|
|
|
|
} |
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
// 文件上傳 |
|
|
// 文件上傳 |
|
|
function upload() { |
|
|
function upload() { |
|
|
if (@Model.FqcID == 0) {parent.hg.msg('請先抽驗一筆紀錄!'); |
|
|
if (@Model.FqcID == 0) { |
|
|
|
|
|
parent.hg.msg('請先抽驗一筆紀錄!'); |
|
|
return; |
|
|
return; |
|
|
}; |
|
|
}; |
|
|
layui.use('layer', function () { |
|
|
layui.use('layer', function () { |
|
@ -600,7 +627,8 @@ |
|
|
|
|
|
|
|
|
// QCITEM |
|
|
// QCITEM |
|
|
function addQcItem() { |
|
|
function addQcItem() { |
|
|
if ('@Model.WipNo' == '' ) {parent.hg.msg('請搜尋入庫單號!'); |
|
|
if ('@Model.WipNo' == '') { |
|
|
|
|
|
parent.hg.msg('請搜尋入庫單號!'); |
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
|
layui.use('layer', function () { |
|
|
layui.use('layer', function () { |
|
|