[PROMOTE] 晉升 demo 變更至 main 生產環境

1. [STYLE] 優化機台補貨語意,將「一鍵補貨」修正為「自動補貨單」。
This commit is contained in:
sky121113 2026-05-18 13:16:28 +08:00
commit f374f4a6d6
4 changed files with 5 additions and 5 deletions

View File

@ -821,7 +821,7 @@ class WarehouseController extends Controller
}
/**
* 一鍵補貨 自動讀取機台所有貨道,計算 max_stock - stock
* 自動補貨單 自動讀取機台所有貨道,計算 max_stock - stock
*/
public function autoReplenishment(Request $request)
{

View File

@ -175,7 +175,7 @@
"Authorized Machines Management": "授權機台管理",
"Authorized Status": "已授權",
"Auto Refresh": "自動更新",
"Auto Replenishment": "一鍵補貨",
"Auto Replenishment": "自動補貨單",
"Automatically calculate replenishment needs based on machine capacity": "根據機台容量自動計算補貨需求",
"Availability": "可用性 (Availability)",
"Available Machines": "可供分配的機台",

View File

@ -1,4 +1,4 @@
{{-- 一鍵補貨 Modal --}}
{{-- 自動補貨單 Modal --}}
<div x-show="showAutoModal" class="fixed inset-0 z-[110] overflow-y-auto" style="display: none;" x-cloak>
<div class="flex items-center justify-center min-h-screen px-4 pt-4 pb-20 text-center sm:block sm:p-0">
<div x-show="showAutoModal" x-transition:enter="ease-out duration-300" x-transition:enter-start="opacity-0" x-transition:enter-end="opacity-100" x-transition:leave="ease-in duration-200" class="fixed inset-0 bg-slate-900/60 backdrop-blur-sm" @click="showAutoModal = false"></div>

View File

@ -47,7 +47,7 @@
modalOpenCount: 0,
init() {
// 偵測 URL 參數自動開啟一鍵補貨 Modal
// 偵測 URL 參數自動開啟自動補貨單 Modal
const params = new URLSearchParams(window.location.search);
const autoMachineId = params.get('auto_machine_id');
if (autoMachineId) {
@ -290,7 +290,7 @@
form.submit();
},
// 一鍵補貨預覽
// 自動補貨單預覽
async loadAutoPreview() {
if (!this.autoWarehouseId || this.autoWarehouseId === ' ' || !this.autoMachineId || this.autoMachineId === ' ') {
window.showToast?.('{{ __("Please select warehouse and machine") }}', 'error'); return;