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
<!doctype html>
<html class="no-js">
<head>
<meta charset="utf-8">
<title>模板预览</title>
[#include "/business/pages/include/static.html" /]
[#include "/component/propTemplateRead.html" /]
[#include "/component/newsel.html" /]
</head>
<body class="end_task_body widthauto">
 
<div class="edit_title"><h3>基本信息</h3></div>
 <form action="${base}/business/pages/overageLoss/modifyLossEditSubmit.html" method="post" id="myform" name="myform">
 
<table class="edit_layout2">
  <tr>
    <th><label>备件分类:</label></th>
     <td colspan="3"><span class="infotxt">${info.lv1_name}-${info.lv2_name}-${info.lv3_name}</span></td>
    </tr>
    [#if RequestParameters.type=='bpbj']
    <tr>
        <th><label>备件名称:</label></th>
        <td class="general" >${info.name}<span class="infotxt"></span></td>
        <th><label>实物编码:</label></th>
        <td><span class="infotxt">[#if info.ENTITY_NO?? && info.ENTITY_NO!=""]${info.ENTITY_NO}[#else]-&nbsp;-&nbsp;-[/#if]</span></td>
    </tr>
    <tr>
        <th><label>资产编码:</label></th>
        <td><span class="infotxt">${info.asset_no}</span></td>
        <th><label>型号:</label></th>
        <td ><span class="infotxt">${info.model_no}</span></td>
        
    </tr>
    <tr>
         <th><label>货位:</label></th>
         <td><span class="infotxt">${info.location}</span></td>
    </tr>
    [#else]
    
    <tr>
        <th><label>备件名称:</label></th>
        <td class="general" >${info.name}<span class="infotxt"></span></td>
        <th><label>资产编码:</label></th>
        <td><span class="infotxt">${info.asset_no}</span></td>
    </tr>
    <tr>
        <th><label>型号:</label></th>
         <td ><span class="infotxt">${info.model_no}</span></td>
         <th><label>货位:</label></th>
         <td><span class="infotxt">${info.location}</span></td>
    </tr>
     [/#if]
    <tr>
      <th><label>成本价:</label></th>
      <td><span class="infotxt">${info.cost_price}</span></td>
      <th><label>销售价:</label></th>
      <td><span class="infotxt">${info.sale_price}</span></td>
    </tr>
    <tr>
        <th><label>供应商:</label></th>
         <td><span class="infotxt">${info.supplier_name}</span></td>
         <th><label>起保日期:</label></th>
         <td><span class="infotxt">${DateUtil.format("yyyy-MM-dd",info.warranty_start)}</span></td>
        </td>
    </tr>
    <tr>
        <th><label>保质周期:</label></th>
         <td><span class="infotxt">${info.warranty_cycle}</span></td>
         <th><label>出保日期:</label></th>
        <td><span class="infotxt">${DateUtil.format("yyyy-MM-dd",info.warranty_end)}</span></td>
    </tr>
    </table>
   <table class="edit_layout2">
        [#if groupProps?? && groupProps?size>0]
            [#list groupProps as group]
                [#if group.props?? && group.props?size>0]
                    <div class="edit_title"><h3>${group.GROUP_NAME}</h3></div>
                    <table class="edit_layout2">
                    [@prop source=group.props groupid=group.gid /]
                    </table>
                [/#if]
            [/#list]
        [/#if]
    </table>
            
   [#if RequestParameters.type=='bpbj']
   <div class="edit_title"><h3></h3></div>
   <table class="edit_layout2">
      <tr>
        <th><label>报损类型:</label></th>
         <td><span class="infotxt">${info.REASON}</span></td>
      </tr>
     <tr>
         <th><label>原因说明:</label></th>
        <td><span class="infotxt">[#if info.NOTE?? && info.NOTE!=""]${info.NOTE}[#else]-&nbsp;-&nbsp;-[/#if]</span></td>
      </tr>
     </table>
 [/#if]
            
   [#if RequestParameters.type=='bsxg']
     <div class="edit_title"><h3></h3></div>
     <input type="hidden" name="id" id="id" value="${detail_id}"/>
         <table class="edit_layout2">
                <tr>
                    <th><label class="required">报损类型:</label></th>
                    <td>
                         [@sel id="reason_key"  value="${reason_key}" text="${reason}" labelName="reason" source=codeList textField="id" valueField="name"  /]
                    </td>
                </tr>
                <tr>
                    <th><label>原因说明:</label></th>
                    <td colspan="3"><textarea class="general" style="width:360px;" id="note" name="note"/>${note}</textarea>
                              <div id="noteTip" style="display:inline-block;"></div>
                
                </tr>
        </table>
 [/#if]
  [#if RequestParameters.type=='byxg']
     <div class="edit_title"><h3></h3></div>
     <input type="hidden" name="id" id="id" value="${detail_id}"/>
         <table class="edit_layout2">
                <tr>
                    <th><label class="required">报溢类型:</label></th>
                    <td>
                         [@sel id="reason_key"  labelName="reason" value="${reason_key}" text="${reason}"  source=codeList  textField="id" valueField="name"  /]
                    </td>
                </tr>
                <tr>
                    <th><label>原因说明:</label></th>
                    <td colspan="3"><textarea class="general" style="width:360px;" id="note" name="note"/>${note}</textarea>
                              <div id="noteTip" style="display:inline-block;"></div>
                
                </tr>
        </table>
 [/#if]
 
 
 </form>
 <script type="text/javascript">
   function onDialogBtnClick(btnID, dialogID, config) {
        if (btnID == "btnSure") {
            var reason_key=$("#reason_key").val();
             if ($.util.isEmpty(reason_key)) {
                popupTips("请选择报损报溢类型!");
                return;
            }
        
        
            $("#myform").submit();
        }
      }
      
      $(function(){
     /*   $("#reason_key").attr("id",'${reason_key}');
       $("#reason_key").attr("labelName",'${reason}'); */
       
     });
 </script>
</body>
</html>