first commit
This commit is contained in:
86
WebRoot/jsp/equipment/equipmentFittingsAddSelect.jsp
Normal file
86
WebRoot/jsp/equipment/equipmentFittingsAddSelect.jsp
Normal file
@ -0,0 +1,86 @@
|
||||
<%@ page language="java" pageEncoding="UTF-8"%>
|
||||
<%@page import="com.sipai.tools.CommString"%>
|
||||
<%@page import="com.sipai.entity.sparepart.SparePartCommString"%>
|
||||
<%request.setAttribute("AUDIT", SparePartCommString.STATUS_STOCK_AUDIT); %>
|
||||
<%request.setAttribute("START", SparePartCommString.STATUS_STOCK_START); %>
|
||||
<%request.setAttribute("FINSH", SparePartCommString.STATUS_STOCK_FINISH); %>
|
||||
|
||||
<style type="text/css">
|
||||
.select2-container .select2-selection--single{
|
||||
height:34px;
|
||||
line-height: 34px;
|
||||
|
||||
}
|
||||
.select2-selection__arrow{
|
||||
margin-top:3px;
|
||||
|
||||
}
|
||||
</style>
|
||||
<script type="text/javascript">
|
||||
|
||||
function doSave(){
|
||||
var eqid=$('#equipmentId').val();
|
||||
var goodsId=$('#goodsId').val();
|
||||
$.post(ext.contextPath + '/equipment/equipmentFittings/doSave.do', {eqid:eqid,goodsId:goodsId} , function(data) {
|
||||
if(data.code==1){
|
||||
closeModal("4SelectModal");
|
||||
}else{
|
||||
showAlert('d',data.msg);
|
||||
}
|
||||
},'json');
|
||||
}
|
||||
|
||||
var showEquipmentSelectsFun = function() {
|
||||
$.post(ext.contextPath + '/equipment/getOneEquSelect.do', {formId:"subForm",hiddenId:"equipmentId",textId:"equipmentName",unitId:unitId} , function(data) {
|
||||
$("#eq4SelectDiv").html(data);
|
||||
openModal("eq4SelectModal");
|
||||
});
|
||||
};
|
||||
|
||||
var showGoodsSelectsFun = function() {
|
||||
$.post(ext.contextPath + '/sparepart/subscribe/getOneGoodsSelect.do', {formId:"subForm",hiddenId:"goodsId",textId:"goodsName"} , function(data) {
|
||||
$("#goods4SelectDiv").html(data);
|
||||
openModal("goods4SelectModal");
|
||||
});
|
||||
};
|
||||
|
||||
</script>
|
||||
<div class="modal fade" id="4SelectModal">
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span></button>
|
||||
<h4 class="modal-title">新增专用备件</h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<!-- 新增界面formid强制为subForm -->
|
||||
<form class="form-horizontal" id="subForm">
|
||||
<!-- 界面提醒div强制id为alertDiv -->
|
||||
<div id="alertDiv"></div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="col-sm-2 control-label">*设备</label>
|
||||
<div class="col-sm-6">
|
||||
<input type="text" class="form-control" id="equipmentName" name="equipmentName" placeholder="点击选择" onclick="showEquipmentSelectsFun();" value="">
|
||||
<input id="equipmentId" name="equipmentId" type="hidden" value="" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-2 control-label">*备件</label>
|
||||
<div class="col-sm-6">
|
||||
<input type="text" class="form-control" id="goodsName" name="goodsName" placeholder="点击选择" onclick="showGoodsSelectsFun();" value="">
|
||||
<input id="goodsId" name="goodsId" type="hidden" value="" />
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-primary" onclick="doSave()" id="btn_save">保存</button>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.modal-content -->
|
||||
</div>
|
||||
<!-- /.modal-dialog -->
|
||||
</div>
|
||||
Reference in New Issue
Block a user