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
<!doctype html>
<html class="no-js">
<head>
<meta charset="utf-8">
<title>新增备件表</title>
[#include "/business/pages/include/static.html" /]
</head>
<body class="end_task_body widthauto">
[#include "/component/newsel.html"/]
[#include "/component/DatePicker.html" /]
[#include "/component/cfgcateSelector.html" /]
<script type="text/javascript">
$(function() {
    $.formValidator.initConfig({formID:"myform",onError:function(msg){popupTips(msg)},onSuccess:function(){
                        document.getElementById("myform").target = window.top.openDialog("1","操作",
                         {},
                         {"width":40,"height":40},[{btnId:"tipBtnSure", btnName:"确定", btnStyle:"bluebtn"}]);
                         return true;
    }});
})
</script>
    <form action="editBjAjax.html" method="post"  id="myform" name="myform">
         <input type="hidden" name="id" id="id" value="${id}" />
         <input type="hidden" name="partId" id="partId" value="${overageId}" />
         <input type="hidden" name="storage_id" value="${RequestParameters.storage_id}" />
         <input type="hidden" id="bus_id" name="bus_id" value="${info.bus_id}" />
         <input type="hidden" id="flow_flag" name="flow_flag" value="${RequestParameters.flow_flag}" />
         <input type="hidden" id="cate_id" name="cate_id" value="${info.cate_id}" />
         <input type="hidden" id="create_name" name="create_name" value="${info.create_name}" />
          <input type="hidden" id="code" name="code" value="${info.code}" />
         <table class="edit_layout2">
                 [#if info.lv1_id??&&info.lv1_id!=""]
                 <tr>
                     <th><label class="required">备件分类:</label></th>
                     <td colspan="3">
                         ${info.lv1_name}-${info.lv2_name}-${info.lv3_name}
                         <input type="hidden" name="lv2_id" value="${info.lv2_id}"/>
                         <input type="hidden" name="lv3_id" value="${info.lv3_id}"/>
                     </td>
                 </tr>
                 [#else]
                 <tr>
                    <th ><label class="required">备件分类:</label></th>
                    <td colspan="3">
                    [@cfgcate id="full_cate_id" name="full_cate_name" call="showTemplate" catetype="2"/]
                    </td>
                </tr>
                 [/#if]
           </table>
           <div id="template">
           [#if info.id??]
           [#include "/business/pages/bpbj/stockApply/editSparePartOverage.html" /]
           [/#if]
           </div> 
         
     </form>
 
<script type="text/javascript">
function showTemplate(full_id){
    if(full_id!=''){
        var arr = full_id.split("-");
        $("#template").load("${base}/business/pages/bpbj/stockApply/editSparePartOverage.html",{"linkId":arr[2]});
    }
}
 
function onDialogBtnClick(btnID, dialogID, config){
    if(btnID == "btnSure"){
         var reason_key=$("#reason_key").val();
             if ($.util.isEmpty(reason_key)) {
                popupTips("请选择报损报溢类型!");
                return;
            }
         
        if($("#full_cate_id").val()==""){
            window.top.popupTips("请选择配置分类");
            return;
        } 
        $("#myform").submit();
    }
}
 
 
 
 
</script>
 
</body>
</html>