factors.html 618 B

1234567891011121314151617181920212223242526272829303132333435
  1. <h2>扣减系数管理</h2>
  2. <form method="post" action="/admin/factors/save">
  3. 检测项:
  4. <select name="option_id">
  5. {% for o in options %}
  6. <option value="{{ o.option_id }}">{{ o.option_name }}</option>
  7. {% endfor %}
  8. </select><br/>
  9. 比例系数:
  10. <input name="factor" value="1.0"><br/>
  11. 固定扣减:
  12. <input name="absolute_deduct" value="0"><br/>
  13. <button>保存</button>
  14. </form>
  15. <hr/>
  16. <table border="1">
  17. <tr>
  18. <th>检测项</th>
  19. <th>比例</th>
  20. <th>固定扣减</th>
  21. </tr>
  22. {% for r in rows %}
  23. <tr>
  24. <td>{{ r.option_name }}</td>
  25. <td>{{ r.factor }}</td>
  26. <td>{{ r.absolute_deduct }}</td>
  27. </tr>
  28. {% endfor %}
  29. </table>