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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
<!doctype html>
<html class="no-js">
<head>
    <meta charset="utf-8">
    <title>盘点审核</title>
[#include "/business/pages/include/static.html" /]
[#include "/component/newsel.html" /]
</head>
<body>
<div class=" clearfix">
    <div class="nopadding" id="fsmCenter">
        <div class="deal_switch">
            <div class="dls_btn" id="dlsBtn">
                <a class="basicinfo focus"><span><em>基本信息</em></span></a>
                <a class="basicinfo"><span><em>盘点备件</em></span></a>
                <a class="basicinfo"><span><em>处理记录</em></span></a>
            </div>
        </div>
 
        <div>
            <div class="deal_switch_con iframecon" style="display:block;">
                <div>
                    <form id="myform" action="" method="post">
                        <input type="hidden" id="flowId" name="flowId" value="${detail.flow_id}"/>
                        <input type="hidden" id="orderId" name="orderId" value="${detail.id}"/>
                        <table class="edit_layout2">
                            <tr>
                                <th style="width:120px;"><label>申请人:</label></th>
                                <td>${detail.create_name}</td>
                                <th style="width:120px;"><label>申请时间:</label></th>
                                <td>${DateUtil.format("yyyy-MM-dd HH:mm",detail.gmt_create)}</td>
                            </tr>
                            <tr>
                                <th style="width:120px;"><label>工单名称:</label></th>
                                <td>${detail.order_name}</td>
                                <th style="width:120px;"><label>盘点单号:</label></th>
                                <td>${detail.order_code}</td>
                            </tr>
                            <tr>
                                <th style="width:120px;"><label>开始日期:</label></th>
                                <td>${DateUtil.format("yyyy-MM-dd",detail.gmt_start)}</td>
                                <th style="width:120px;"><label>结束日期:</label></th>
                                <td>${DateUtil.format("yyyy-MM-dd",detail.gmt_end)}</td>
                            </tr>
 
                            <tr>
                                <th class="postop"><label>盘点周期:</label></th>
                                <td colspan="3"><span class="infotxt">${detail.cycle}天</span></td>
                            </tr>
 
                            <tr>
                                <th class="postop"><label>备注:</label></th>
                                <td colspan="3"><span class="infotxt">${detail.note}</span></td>
                            </tr>
                        </table>
 
                        [#if RequestParameters.flowIdentify=='approve']
                        
                            <div class="edit_title"><h3>审核信息</h3></div>
                            <table class="edit_layout2">
                                <tr><th><label class="required">审核结果:</label></th>
                                    <td >
                                        <input class="audit" type="radio" name="state" value="3" checked />通过
                                        <input class="audit" type="radio" name="state" value="4" />不通过
                                    </td>
                                    <td id="sh_div" style="display:none;" width=70%>
                                         [@sel id="note_key"  labelName="note_val" source=noteKeyList textField="id" valueField="name"  /]
                                    </td>
                                </tr>
                               <tr>
                                    <th ><label>备注:</label></th>
                                    <td colspan="4">
                                         <textarea rows="10" cols="100" name="note" id="note" class="general"></textarea>
                                    </td>
                               </tr>
                            </table>
                        
                        [/#if]
                    </form>
                </div>
            </div>
            <div class="deal_switch_con iframecon" style="display:none;">
                <div>
                    <div class="fs_main clearfix">
                    [#if detail.list?? && detail.list?size>0]
                        <table class="display_form common_list_table">
                            <tr>
                                <td colspan="7">账面总数:${detail.book_num}&nbsp;&nbsp;&nbsp;&nbsp;
                                    盘点总数:${detail.inventory_num}&nbsp;&nbsp;&nbsp;&nbsp;
                                    盘盈:${detail.overage_num}&nbsp;&nbsp;&nbsp;&nbsp;
                                    盘亏:-${detail.loss_num}</td>
                            </tr>
 
                            <tr class="title">
                                <td width="5%">序号</td>
                                <td width="20%">备件分类</td>
                                <td width="20%">账面库存</td>
                                <td width="15%">盘点库存</td>
                                <td width="15%">盈亏</td>
                                <td width="15%">备注</td>
                            </tr>
                            [#list detail.list as item]
 
                                <tr>
                                    <td>${item_index+1}</td>
                                    <td>${item.lv1_name}-${item.lv2_name}-${item.name}</td>
                                    <td>${item.book_num}</td>
                                    <td>${item.inventory_num}</td>
                                    <td>${item.overage_num-item.loss_num}</td>
                                  [#if item.note? length gt 20]
                                   <td  title="${item.note}">${item.note?substring(0,20)}-&nbsp;-&nbsp;-</td>
                                [#else]
                                   <td><span >${item.note}</span></td>
                                [/#if]
                                </tr>
 
                            [/#list]
                        </table>
                    [/#if]
                    </div>
                </div>
            </div>
            <div class="deal_switch_con iframecon" style="display:none;">
                <div>
                    <div class="fs_main clearfix">
                        <div id="mainlc"></div>
                        <div class="paging clearfix" id="pagination"></div>
                    </div>
                </div>
            </div>
        </div>
 
    </div>
</div>
 
 
<script type="text/javascript">
 
    var flowId = '${detail.flow_id}';
 
    $(function () {
        $("#myform").attr("action", "${base}/business/pages/stockTaking/doApprove.html");
 
        $("#dlsBtn>a").click(function () {
 
            var index = $("#dlsBtn>a").index(this);
            $("#dlsBtn>a").removeClass("focus");
            $(this).addClass("focus");
 
            var $dom = $("div.deal_switch_con:eq(" + index + ")");
            $("div.deal_switch_con").hide();
            $dom.show();
 
            if (index == 2) {
                var params = {"flowId": flowId};
                $.post("${base}/business/pages/bpbj/spareParts/lcRecord.html", params, function (data, page) {
                    $("#mainlc").html(data);
                });
            }
        })
       $('input[name="state"]').change(function(){
                $("#sh_div").toggle();
        });
        })
 
 
    function onDialogBtnClick(btnID, dialogID, config) {
        if (btnID == "btnSure") {
            $("#myform").submit();
        }
    }
</script>
</body>
</html>