cy
2022-06-28 2ba5c891b24d4d0cd6ce7ef833592e4f576ee5e8
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
[#if info?? && info.datas?? && info.datas?size>0]
<table class="display_form common_list_table">
    <tr class="title">
        <td width="7%">序号</td>
        <td width="15%">备件分类</td>
        <td width="12%">实物编码</td>
        <td width="11%">备件名称</td>
        <td width="11%">资产编码</td>
        <td width="11%">型号</td>
        <td width="8%">货位名称</td>
        <td width="8%">状态</td>
        <td width="8%">可用状态</td>
        <td width="8%">操作</td>
    </tr>
    [#list info.datas as item]
        <tr>
            <td>${info.rowNum+item_index+1}</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>${Constants.getSPARE_PART_STATE(item.state)}</td>
            <td>
                [#if item.ky_state==1]
                    可用
                [#else]
                    损坏
                [/#if]
            </td>
            <td class="list_btnmore_wrap">
                [#if item.ky_state==1]
                <a class="blue_txt lb_button" href="javascript:updateSpare('${item.id}',0)"><span>损坏</span></a>
                [#else]
                <a class="blue_txt lb_button" href="javascript:updateSpare('${item.id}',1)"><span>可用</span></a>
                [/#if]
                <a class="blue_txt" href="javascript:detail('${item.id}')">详情</a>
            </td>
        </tr>
    [/#list]
</table>
[#else]
<div class="loadpos"><span class="nodata"></span></div>
[/#if]