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
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
<!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/DatePicker.html" /]
[#include "/component/cfgcateSelector.html" /]
[#include "/component/propTemplate.html"/]
[#include "/component/DatePicker.html" /]
[#include "/component/newsel.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;
    }});
    $("#order_name").formValidator({empty:false,onFocus:"请输入工单名称"}).inputValidator({min:2,max:32,onError:"工单名称为1-16个汉字!"});
    $("#order_num").formValidator({empty:false,onFocus:"请输入入库数量"})
                .inputValidator({min:1,max:5,onError:"入库数量必须为1到5位"})
                .regexValidator({regExp:"intege1", dataType:"enum", onError:"入库数量必须为正整数"});
    $("#full_cate_id").formValidator({empty:false,onFocus:"请选择配置分类"}).inputValidator({min:1,onError:"配置分类不能为空!"});
})
</script>
    <form action="editCfgPl.html" method="post"  id="myform" name="myform">
         <table class="edit_layout2">
                 <tr>
                    <th><label class="required" >工单名称:</label></th>
                    <td >
                    <input class="general" type="text" id="order_name" name="order_name" style="width:265px"/>
                    <div id="order_nameTip" style="display:inline-block;"></div>
                    </td>
                </tr>
                <tr>
                    <th><label class="required" >入库数量:</label></th>
                    <td >
                    <input class="general" type="text" id="order_num" name="order_num" />
                    <div id="order_numTip" style="display:inline-block;"></div>
                    </td>
                </tr>
                <tr>
                    <th><label >入库原因:</label></th>
                     <td colspan="3"><textarea class="general" name="storage_reason" id="storage_reason"></textarea></td>
                </tr>
                 <tr>
                    <th ><label class="required">备件分类:</label></th>
                    <td colspan="3">
                    [@cfgcate id="full_cate_id" name="full_cate_name" call="showTemplate" catetype="2"/]
                    <div id="full_cate_idTip" style="display:inline-block;"></div>
                    </td>
                </tr>
           </table>
           <div id="template">
           </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/editSparePartPl.html",{"linkId":arr[2]});
    }
}
 
function onDialogBtnClick(btnID, dialogID, config){
    if(btnID == "btnSure"){
        $("#myform").submit();
    }
}
</script>
 
</body>
</html>