[STYLE] 優化機台補貨語意,將「一鍵補貨」修正為「自動補貨單」
1. 修改 lang/zh_TW.json 的翻譯鍵 "Auto Replenishment" 對照值為「自動補貨單」,使其與手動「新增補貨單」在視覺與語意上形成直覺的對比,實事求是,消除「一鍵」但仍需彈窗選倉庫的 UX 誤導。 2. 同步將 app/Http/Controllers/Admin/WarehouseController.php 中的 autoReplenishment PHPDoc 註解替換為「自動補貨單」。 3. 同步修改 resources/views/admin/warehouses/replenishments.blade.php 中的 JS 代碼註解,將「一鍵補貨」修正為「自動補貨單」。 4. 同步更新 resources/views/admin/warehouses/partials/modal-replenishment-auto.blade.php 模板首行的 Blade 註解。
This commit is contained in:
parent
7bf8dc173d
commit
e29826a0a6
@ -821,7 +821,7 @@ class WarehouseController extends Controller
|
||||
}
|
||||
|
||||
/**
|
||||
* 一鍵補貨 — 自動讀取機台所有貨道,計算 max_stock - stock
|
||||
* 自動補貨單 — 自動讀取機台所有貨道,計算 max_stock - stock
|
||||
*/
|
||||
public function autoReplenishment(Request $request)
|
||||
{
|
||||
|
||||
@ -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": "可供分配的機台",
|
||||
|
||||
@ -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>
|
||||
|
||||
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user