cy
2022-06-21 129904537f66509f97b285e7eb4f42b3dc349dd0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<table class="display_form common_list_table leftTable">
    <tr class="title">
        <td width="10%"><input type="checkbox" id="selAll"></td>
        <td width="10%">备件分类</td>
        <td width="10%">实物编码</td>
        <td width="10%">备件名称</td>
        <td width="10%">资产编码</td>
        <td width="10%">型号</td>
        <td width="10%">货位</td>    
        <td width="10%">报损原因</td>    
        <td width="20%">操作</td>
    </tr>
    [#if spaer_lose?? && spaer_lose?size>0]
    [#list spaer_lose as item]
    <tr>
        <td><input type="checkbox" name="ids" class="ids" value="${item.id}"><input type="hidden" name="spareId" class="spareId"" value="${item.spare_id}"></td>
        <td>${item.lv1_name}-${item.lv2_name}-${item.lv3_name}</td>
        <td>${item.ENTITY_NO}</td>
        <td>${item.NAME}</td>
        <td>${item.ASSET_NO}</td>
        <td>${item.MODEL_NO}</td>
        <td>${item.LOCATION}</td>
        <td name="reason">${item.REASON}</td>
        <td class="list_btnmore_wrap" nowrap>
             <a class="blue_txt lb_button" href="javascript:sparePartDetail('${item.id}','${item.spare_id}');"><span>修改</span></a>
             <a class="blue_txt " href="javascript:delBj('${item.id}');"><span>删除</span></a> 
        </td>
    </tr>
    [/#list]
    [#else]
        <tr><td colspan="8"><div class="loadpos"><span class="nodata"></span></div></td></tr>
    [/#if]
</table>
 
<script type="text/javascript">
 
    $(function (){
         $("#selAll").click(function () {
                if($(this).prop("checked")==true){
                    $(".ids:checkbox").prop("checked",true);
                }else{
                    $(".ids:checkbox").prop("checked",false);
                }
            });
        
    })
 
    
 
 
</script>