<!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>
|