| 12345678910111213141516171819202122232425262728293031 |
- <h2>设备估价</h2>
- <form method="post">
- 机型:
- <select name="machine_id">
- {% for m in machines %}
- <option value="{{ m.machine_id }}">{{ m.name }}</option>
- {% endfor %}
- </select>
- <hr/>
- {% for step in template %}
- <h4>{{ step.stepName }}</h4>
- {% for prop in step.properties %}
- <b>{{ prop.name }}</b><br/>
- {% for v in prop.values %}
- <label>
- <input type="checkbox" name="option_ids" value="{{ v.valueId }}">
- {{ v.valueText }}
- </label><br/>
- {% endfor %}
- {% endfor %}
- {% endfor %}
- <button>计算价格</button>
- </form>
- {% if price %}
- <h3>估价结果:¥ {{ price }}</h3>
- {% endif %}
|