[PROMOTE] dev -> demo: 機台設定金流配置防呆
1. feat(機台設定): 金流配置未選(維持「不使用」)時,機台編輯頁按「儲存變更」跳原生 confirm 二次確認;純前端提醒,後端 payment_config_id 仍 nullable
This commit is contained in:
commit
cb8a805a21
@ -1584,6 +1584,7 @@
|
||||
"Payment Amount": "Payment Amount",
|
||||
"Payment Buffer Seconds": "Payment Buffer Seconds",
|
||||
"Payment Config": "Payment Config",
|
||||
"No payment config is selected (Not Used). Save this machine without any payment config?": "No payment config is selected (Not Used). Save this machine without any payment config?",
|
||||
"Payment Configuration": "Payment Configuration",
|
||||
"Payment Configuration created successfully.": "Payment Configuration created successfully.",
|
||||
"Payment Configuration deleted successfully.": "Payment Configuration deleted successfully.",
|
||||
|
||||
@ -1585,6 +1585,7 @@
|
||||
"Payment Amount": "支付金額",
|
||||
"Payment Buffer Seconds": "金流緩衝時間(s)",
|
||||
"Payment Config": "金流配置",
|
||||
"No payment config is selected (Not Used). Save this machine without any payment config?": "尚未選擇金流配置(目前為「不使用」)。確定要在沒有金流配置的情況下儲存嗎?",
|
||||
"Payment Configuration": "客戶金流設定",
|
||||
"Payment Configuration created successfully.": "金流設定已成功建立。",
|
||||
"Payment Configuration deleted successfully.": "金流設定已成功刪除。",
|
||||
|
||||
@ -75,6 +75,11 @@
|
||||
}));
|
||||
return;
|
||||
}
|
||||
if (!this.$el.payment_config_id.value.trim()) {
|
||||
if (!confirm('{{ __("No payment config is selected (Not Used). Save this machine without any payment config?") }}')) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
this.$el.submit();
|
||||
}
|
||||
}" @submit.prevent="submitForm" action="{{ route('admin.basic-settings.machines.update', $machine) }}" method="POST" enctype="multipart/form-data" class="space-y-6">
|
||||
|
||||
Loading…
Reference in New Issue
Block a user