diff --git a/AMESCoreStudio.Web/Views/PTD/PTD002.cshtml b/AMESCoreStudio.Web/Views/PTD/PTD002.cshtml
index a42dc808..fa3368ff 100644
--- a/AMESCoreStudio.Web/Views/PTD/PTD002.cshtml
+++ b/AMESCoreStudio.Web/Views/PTD/PTD002.cshtml
@@ -192,7 +192,6 @@
var elem = data.elem; // 获得 radio 原始 DOM 对象
var checked = elem.checked; // 获得 radio 选中状态
var value = elem.value; // 获得 radio 值
- var othis = data.othis; // 获得 radio 元素被替换后的 jQuery 对象
var checkboxElem = layui.$('input[lay-filter="check-filter"]');
if (value == 0 && checked) {
checkboxElem.prop('disabled', false);
@@ -372,9 +371,21 @@
var recordDate = document.getElementById('recordDate').value;
var location = document.getElementById('Location').value;
var customer = document.getElementById('Customer').value;
+ var material = document.getElementById('PartNumber').value;
var tableData = layui.table.cache['query'];
+
+ if (customer === "") {
+ hg.msg('Customer不得為空!');
+ return; // Do not add the row
+ }
+ if (material === "") {
+ hg.msg('料號不得為空!');
+ return; // Do not add the row
+ }
+
+
var postData = {
recordType: recordType,
workCenter: workCenter,
@@ -470,7 +481,6 @@
hg.table.addRow = function (tableId, rowData) {
// Get the table instance
var table = layui.table;
- console.log(table);
if (isSNAlreadyExist(tableId, rowData.sn)) {
// Handle the case where SN already exists
layer.msg('SN 已存在!', { icon: 2 });
diff --git a/AMESCoreStudio.Web/Views/PTD/PTD006.cshtml b/AMESCoreStudio.Web/Views/PTD/PTD006.cshtml
index 5a25b3ac..cc792b47 100644
--- a/AMESCoreStudio.Web/Views/PTD/PTD006.cshtml
+++ b/AMESCoreStudio.Web/Views/PTD/PTD006.cshtml
@@ -167,13 +167,6 @@