diff --git a/AMESCoreStudio.Web/Views/PCS/PCS031.cshtml b/AMESCoreStudio.Web/Views/PCS/PCS031.cshtml
index 7b0aae5a..f0fb508f 100644
--- a/AMESCoreStudio.Web/Views/PCS/PCS031.cshtml
+++ b/AMESCoreStudio.Web/Views/PCS/PCS031.cshtml
@@ -96,16 +96,16 @@
+
-
+
@@ -161,6 +169,12 @@
, format: 'yyyy/MM/dd'
, theme: 'grid'
});
+ laydate.render({
+ elem: '#recordDate'
+ , trigger: 'click'
+ , format: 'yyyy-MM-dd'
+ , theme: 'grid'
+ });
});
$('#inhouseNo1').on('keypress', function (event) {
@@ -341,6 +355,7 @@
function edit(obj) {
var recordmumber = $("#inhouseNo1").val();
+ var recordDate = $("#recordDate").val();
if (recordmumber == '') {
hg.msg('請輸入recordmumber!');
}
@@ -348,7 +363,7 @@
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: recordmumber, locationNo: obj.data.locationNo },
+ data: { InhouseNo: obj.data.inhouseNo, boxNo: obj.data.serialNo, seq: obj.data.seqID, recordNumber: recordmumber, locationNo: obj.data.locationNo, recordDate: recordDate },
type: 'POST',
success: function (data) {
if (data.success) {
@@ -374,7 +389,8 @@
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();
+ var recordmumber = $("#inhouseNo1").val();
+ var recorddate = $("#recordDate").val();
if (recordmumber == '') {
hg.msg('請輸入recordmumber!');
@@ -383,7 +399,7 @@
hg.confirm("批量入庫所有选中的数据,確定要入庫吗?", function () {
$.ajax({
url: '/PCS/PCS031inhouse_all',
- data: { ids: obj.checkstatus.data.map(function (x) { return x.inhouseNo + "," + x.serialNo + "," + x.seqID + "," + recordmumber + "," + x.locationNo }) },
+ data: { ids: obj.checkstatus.data.map(function (x) { return x.inhouseNo + "," + x.serialNo + "," + x.seqID + "," + recordmumber + "," + x.locationNo + "," + recorddate }) },
type: 'POST',
success: function (data) {
if (data.success) {
diff --git a/AMESCoreStudio.Web/Views/SPC/SPC004V.cshtml b/AMESCoreStudio.Web/Views/SPC/SPC004V.cshtml
index 515f3364..938c93d5 100644
--- a/AMESCoreStudio.Web/Views/SPC/SPC004V.cshtml
+++ b/AMESCoreStudio.Web/Views/SPC/SPC004V.cshtml
@@ -2,6 +2,21 @@
ViewData["Title"] = "巡檢結果回覆";
Layout = "~/Views/Shared/_AMESLayout.cshtml";
}
+