refactor: 統一設備維修查詢的欄位名稱

- 前端表格標題「工單 ID」改為「JOBID」避免與 LOT ID 混淆
- CSV 匯出欄位改用原始資料庫欄位名稱,與 SQL 查詢結果一致

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
beabigegg
2026-02-04 19:47:20 +08:00
parent 1d798a290c
commit dd520641d1
2 changed files with 7 additions and 7 deletions

View File

@@ -282,13 +282,13 @@ def export_jobs_with_history(
output = io.StringIO()
output.write('\ufeff') # UTF-8 BOM
# Define column headers (Chinese labels)
# Define column headers (use original column names)
headers = [
'設備名稱', '工單ID', '工單最終狀態', '工單類型', '工單名稱',
'工單建立時間', '工單完成時間', '工單故障碼', '工單維修碼', '工單症狀碼',
'交易時間', '原狀態', '新狀態', '階段',
'交易故障碼', '交易維修碼', '交易症狀碼',
'操作者', '員工', '備註'
'RESOURCENAME', 'JOBID', 'JOB_FINAL_STATUS', 'JOBMODELNAME', 'JOBORDERNAME',
'JOB_CREATEDATE', 'JOB_COMPLETEDATE', 'JOB_CAUSECODE', 'JOB_REPAIRCODE', 'JOB_SYMPTOMCODE',
'TXNDATE', 'FROMJOBSTATUS', 'TXN_TO_STATUS', 'STAGENAME',
'TXN_CAUSECODE', 'TXN_REPAIRCODE', 'TXN_SYMPTOMCODE',
'USER_NAME', 'EMP_NAME', 'COMMENTS'
]
writer = csv.writer(output)

View File

@@ -716,7 +716,7 @@
<tr>
<th style="width: 40px;"></th>
<th>設備名稱</th>
<th>工單 ID</th>
<th>JOBID</th>
<th>狀態</th>
<th>類型</th>
<th>建立時間</th>