diff --git a/wms/mkt/pricereview-create.php b/wms/mkt/pricereview-create.php
index 369cb1fa..b353ad87 100644
--- a/wms/mkt/pricereview-create.php
+++ b/wms/mkt/pricereview-create.php
@@ -832,7 +832,7 @@ $option_str .= "";
jobj.closest('td').parent().find('td[name=Exclusions]').html(str);
});
} else {
- alert("請先新增OPTION");
+ alert("請先新增除外項目");
return false;
}
});
@@ -2061,7 +2061,7 @@ if($_SERVER["REQUEST_METHOD"] == "POST"){
|
- 電梯
+ 電梯
X
|
diff --git a/wms/mkt/pricereview-edit.php b/wms/mkt/pricereview-edit.php
index 206cfa2a..61cee874 100644
--- a/wms/mkt/pricereview-edit.php
+++ b/wms/mkt/pricereview-edit.php
@@ -734,6 +734,37 @@ foreach ($res as $data) {
return false;
}
});
+ $('#tb3').on('click', 'a[name=btnfaci]', function() {
+ var jobj = $(this); // 父視窗
+ if (jobj.closest('td').parent().find('a[name=option_href]').html() != '點選') {
+ var k = 1;
+ $("input[name=item_spec]").each(function() {
+ if ($(this).val() == '') return;
+ var objInput = document.createElement("input");
+ objInput.setAttribute("type", "checkbox");
+ objInput.setAttribute("name", "sub_faci");
+ objInput.setAttribute("value", k + '.' + $(this).val());
+ $("#optionFaciModal .modal-body").append(objInput);
+ $("#optionFaciModal .modal-body").append(k + '.' + $(this).val());
+ $("#optionFaciModal .modal-body").append("
");
+ k++;
+ });
+ $("#optionFaciModal .modal-body").append("");
+ $("#optionFaciModal").modal('show');
+ var str = "";
+ $("button[name=btnpost]").click(function() {
+ $('input[name=sub_faci]').each(function() {
+ if ($(this).prop('checked')) {
+ str += $(this).val() + "
";
+ }
+ });
+ jobj.closest('td').parent().find('td[name=Exclusions]').html(str);
+ });
+ } else {
+ alert("請先新增除外項目");
+ return false;
+ }
+ });
$('#tb4').on('click', 'a[name=btnfaci]', function() {
var jobj = $(this); // 父視窗
if (jobj.closest('td').parent().find('select[name=mn_kind]').val() != '') {
@@ -1438,6 +1469,15 @@ foreach ($res as $data) {
單價 |
數量 |
複價 |
+
+
+ |
+ 功能 |
@@ -1451,9 +1491,16 @@ foreach ($res as $data) {
"> |
">"> |
" readonly>
-
+
+
+ |
+ |
+
+
+
+ 電梯
X
|
@@ -1469,6 +1516,12 @@ foreach ($res as $data) {
+
+ |
+ |
+
+
+ 電梯
X
|