diff --git a/AMESCoreStudio.Web/Views/PCS/PCS031.cshtml b/AMESCoreStudio.Web/Views/PCS/PCS031.cshtml index 069af51e..7d4f8709 100644 --- a/AMESCoreStudio.Web/Views/PCS/PCS031.cshtml +++ b/AMESCoreStudio.Web/Views/PCS/PCS031.cshtml @@ -162,7 +162,7 @@ } else { - $('#recordNumber ').each(function () { + $('#recordNumber2 ').each(function () { $(this).val(data); }); } @@ -179,7 +179,7 @@ alert("請輸入recordNumber") } else { - $('#recordNumber ').each(function () { + $('#recordNumber2 ').each(function () { $(this).val(data); }); } @@ -189,7 +189,7 @@ - // alert('測試文字1'); + //监听表单提交事件 hg.form.onsubmit('querysubmit', function (data) { @@ -197,7 +197,7 @@ table && table.reload(data); }); - // alert('測試文字2'); + var tableCols = [[ @@ -281,7 +281,8 @@ return txt; } - }, + } + @*, { field: 'recordNumber', width: 150, @@ -295,8 +296,9 @@ return txt; } + - }, + }*@, { field: 'right', width: 150, @@ -338,7 +340,7 @@ }); }); }; - // alert('測試文字4'); + function detail(obj) { @@ -346,13 +348,14 @@ hg.open('箱號資料查詢', '/PCS/PCS031V?InhouseNo=' + obj.data.inhouseNo + '&SeqID=' + obj.data.seqID, '', '', true); // } } - // alert('測試文字5'); + function edit(obj) { + var recordmumber = $("#inhouseNo1").val(); // if (obj.data.materialSopID) { - hg.confirm("送驗單號_箱號:【" + obj.data.inhouseNo + "_" + obj.data.serialNo+ "】,確定要入庫嗎?", function () { + hg.confirm("送驗單號_箱號:【" + obj.data.inhouseNo + "_" + obj.data.serialNo + "】,確定要入庫嗎?", function () { $.ajax({ url: '/PCS/PCS031inhouse', - data: { InhouseNo: obj.data.inhouseNo, boxNo: obj.data.serialNo, seq: obj.data.seqID, recordNumber: obj.data.recordNumber, locationNo: obj.data.locationNo }, + data: { InhouseNo: obj.data.inhouseNo, boxNo: obj.data.serialNo, seq: obj.data.seqID, recordNumber: recordmumber, locationNo: obj.data.locationNo }, type: 'POST', success: function (data) { if (data.success) { @@ -378,11 +381,11 @@ handler: function (obj, row) { if (obj.checkstatus && obj.checkstatus.data.length > 0) { console.log(obj.checkstatus.data.map(function (x) { return x.serialNo }).join(',')) - + var recordmumber = $("#inhouseNo1").val(); hg.confirm("批量入庫所有选中的数据,確定要入庫吗?", function () { $.ajax({ url: '/PCS/PCS031inhouse_all', - data: { ids: obj.checkstatus.data.map(function (x) { return x.inhouseNo + "," + x.serialNo + "," + x.seqID + "," + x.recordNumber + "," + x.locationNO }) }, + data: { ids: obj.checkstatus.data.map(function (x) { return x.inhouseNo + "," + x.serialNo + "," + x.seqID + "," + recordmumber + "," + x.locationNO }) }, type: 'POST', success: function (data) { if (data.success) { @@ -407,12 +410,12 @@ } } ]; - // alert('測試文字6'); + //基本数据表格 var table = hg.table.datatable('query', 'FQC查詢', '/PCS/PCS031Query', {}, tableCols, toolbar, true, 'full-100', ['filter', 'print', 'exports'],true); - // alert('測試文字7'); +