|
@@ -48,17 +48,17 @@
|
|
|
<#list productList as product>
|
|
|
<tr>
|
|
|
<td>
|
|
|
- <input type="radio" id="radio-${product.productId!''}" name="productId" value="${product.productId!''}" <#if product.productId == maintenanceInfo.productId>checked</#if>/>${product.productName!''}
|
|
|
+ <input type="radio" onclick="emptyingNumber();" id="radio-${product.productId!''}" name="productId" value="${product.productId!''}" <#if product.productId == maintenanceInfo.productId>checked</#if>/>${product.productName!''}
|
|
|
</td>
|
|
|
<td>
|
|
|
<select name="colorId${product.productId!''}" id="colorId${product.productId!''}" style="width:90%;" class="my-select">
|
|
|
<#if (product.colorList?size > 0)>
|
|
|
- <#list product.colorList as colorList>
|
|
|
- <option value ="${colorList.colorId!''}">${colorList.colorName!''}</option>
|
|
|
- </#list>
|
|
|
- <#else>
|
|
|
- <option value ="">暂无颜色</option>
|
|
|
- </#if>
|
|
|
+ <#list product.colorList as colorList>
|
|
|
+ <option value ="${colorList.colorId!''}">${colorList.colorName!''}</option>
|
|
|
+ </#list>
|
|
|
+ <#else>
|
|
|
+ <option value ="">暂无颜色</option>
|
|
|
+ </#if>
|
|
|
</select>
|
|
|
</td>
|
|
|
<td>
|
|
@@ -154,6 +154,11 @@
|
|
|
</article>
|
|
|
<script type="text/javascript" src="${path}/common/lib/My97DatePicker/4.8/WdatePicker.js"></script>
|
|
|
<script type="text/javascript">
|
|
|
+ function emptyingNumber() {
|
|
|
+ $("input[name='productId']").each(function () {
|
|
|
+ $("#maintenanceEquipmentNumber"+$(this).val()).val("");
|
|
|
+ });
|
|
|
+ }
|
|
|
|
|
|
|
|
|
function add() {
|