feat(機台設定): 金流配置防呆確認
機台編輯頁「金流與發票」區塊,若金流配置維持「不使用」(未選), 按「儲存變更」時跳出原生 confirm 提示,確認才送出。純前端提醒, 後端 payment_config_id 仍為 nullable。 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
be73e7c7a0
commit
d8f549d390
@ -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