<label for="worker_id">工號:</label> <input type="text" id="worker_id" name="worker_id" required maxlength="6" placeholder="例:001030"><br> <label for="worker_name">工人姓名:</label> <input type="text" id="worker_name" name="worker_name" required maxlength="10" placeholder="不超過10個漢字"><br> <label for="total_output">轉出總數:</label> <input type="number" id="total_output" name="total_output" required min="0><br> <label for="qualified_output">轉出合格數:</label> <input type="number" id="qualified_output" name="qualified_output" required min="0"><br> <label for="defective_output">次品數:</label> <input type="number" id="defective_output" name="defective_output" required min="0"><br> <label for="lost_output">丟失數:</label> <input type="number" id="lost_output" name="lost_output" required min="0"><br> <label for="report_date">上報日期:</label> <input type="date" id="report_date" name="report_date" required><br> <input type="submit" value="提交"> <div id="message" class="error"></div>
<div id="details" class="hidden"> <label for="production_batch">生產批次:</label> <input type="text" id="production_batch" name="production_batch" readonly><br> <label for="worker_id">工號:</label> <input type="text" id="worker_id" name="worker_id" readonly><br> <label for="worker_name">工人姓名:</label> <input type="text" id="worker_name" name="worker_name" readonly><br> <input type="button" value="刪除" onclick="confirmDelete()"> </div> <div id="message" class="error"></div>
<label for="production_batch">生產批次:</label> <input type="text" id="production_batch" name="production_batch" placeholder="模糊查詢批次"><br> <label for="worker_id">工號:</label> <input type="text" id="worker_id" name="worker_id" placeholder="模糊查詢工號"><br> <label for="worker_name">工人姓名:</label> <input type="text" id="worker_name" name="worker_name" placeholder="模糊查詢姓名"><br> <input type="button" value="查詢" onclick="performQuery()">
<div id="details" class="hidden"> <label for="production_batch">生產批次:</label> <input type="text" id="production_batch" name="production_batch" required readonly><br> <label for="worker_id">工號:</label> <input type="text" id="worker_id" name="worker_id" required readonly><br> <label for="worker_name">工人姓名:</label> <input type="text" id="worker_name" name="worker_name" required readonly><br> <label for="total_output">轉出總數:</label> <input type="number" id="total_output" name="total_output" required min="0"><br> <label for="qualified_output">轉出合格數:</label> <input type="number" id="qualified_output" name="qualified_output" required min="0"><br> <label for="defective_output">次品數:</label> <input type="number" id="defective_output" name="defective_output" required min="0"><br> <label for="lost_output">丟失數:</label> <input type="number" id="lost_output" name="lost_output" required min="0"><br> </div> <input type="submit" value="提交"> <div id="message" class="error"></div>