|
|
@@ -41,6 +41,7 @@ String scarNo = request.getParameter("carNo");
|
|
|
}
|
|
|
</style>
|
|
|
<script type="text/javascript">
|
|
|
+ var hiddenP='<%=(String)session.getAttribute("hiddenphone") %>';
|
|
|
var i = 1;//第几页
|
|
|
var sum;//总条数
|
|
|
var totalpage;//总页数
|
|
|
@@ -51,6 +52,10 @@ String scarNo = request.getParameter("carNo");
|
|
|
fLoadTable();
|
|
|
pageSize = $('#pageSize').val();
|
|
|
fLoadData(1,10);
|
|
|
+ if(hiddenP!="0"){
|
|
|
+ document.getElementById("phone1").value="";
|
|
|
+ document.getElementById("phone2").value="";
|
|
|
+ }
|
|
|
});
|
|
|
function fLoadTable(){
|
|
|
var st = $('#st').val();
|
|
|
@@ -80,17 +85,17 @@ String scarNo = request.getParameter("carNo");
|
|
|
pagination:true,//分页控件
|
|
|
columns:[[
|
|
|
|
|
|
- {field:'cylindercarNo',align:'center',title:'操作',width:'120px',formatter: function(value, row, index){
|
|
|
+ {field:'cylindercarNo',align:'center',title:'操作',width:'60px',formatter: function(value, row, index){
|
|
|
return '<a href="jsp/rzx/dataQuery/CylinderFollow?cylinderguid='+row.cylinderGuid+'" target="_blank">'+"追踪气瓶"+'</a>';
|
|
|
}},
|
|
|
- {field:'carNo',align:'center',title:'所属车辆',width:'120px'},
|
|
|
- {field:'cylinderNo',align:'center',title:'气瓶使用编号',width:'120px'},
|
|
|
- {field:'productNo',align:'center',title:'生产厂家',width:'120px'},
|
|
|
- {field:'cylinderNo',align:'center',title:'气瓶出厂编号',width:'120px'},
|
|
|
- {field:'cylinderTypeName',align:'center',title:'气瓶类型',width:'180px'},
|
|
|
- {field:'productDate1',align:'center',title:'生产年月',width:'120px'},
|
|
|
- {field:'productType',align:'center',title:'型号',width:'120px'},
|
|
|
- {field:'cylinderState',align:'center',title:'使用状态',width:'120px',formatter: function(value, row, index){
|
|
|
+ {field:'carNo',align:'center',title:'所属车辆',width:'70px'},
|
|
|
+ {field:'cylinderNo',align:'center',title:'气瓶使用编号',width:'80px'},
|
|
|
+ {field:'productNo',align:'center',title:'生产厂家',width:'55px'},
|
|
|
+ {field:'cylinderNo',align:'center',title:'气瓶出厂编号',width:'60px'},
|
|
|
+ {field:'cylinderTypeName',align:'center',title:'气瓶类型',width:'60px'},
|
|
|
+ {field:'productDate1',align:'center',title:'生产年月',width:'82px'},
|
|
|
+ {field:'productType',align:'center',title:'型号',width:'30px'},
|
|
|
+ {field:'cylinderState',align:'center',title:'使用状态',width:'55px',formatter: function(value, row, index){
|
|
|
if (value == "0") {
|
|
|
return '<font style="color:green;font-weight: bold;">'+"在用"+'</font>';
|
|
|
}
|
|
|
@@ -101,54 +106,62 @@ String scarNo = request.getParameter("carNo");
|
|
|
}else if(value == "3") {
|
|
|
return '<font style="color:red;font-weight: bold;">'+"周转"+'</font>';
|
|
|
}}},
|
|
|
- {field:'nextCheckDate1',align:'center',title:'下次检验日期',width:'120px'},
|
|
|
- {field:'checkDate1',align:'center',title:'最后检验日期',width:'120px'},
|
|
|
- {field:'startUseDate1',align:'center',title:'开始投用日期',width:'120px'},
|
|
|
- {field:'installDate1',align:'center',title:'安装日期',width:'120px'},
|
|
|
- {field:'yearLimit',align:'center',title:'使用年限',width:'120px'},
|
|
|
- {field:'timesAvailable',align:'center',title:'可充装次数',width:'120px'},
|
|
|
- {field:'fillTimes',align:'center',title:'已充装次数',width:'120px'},
|
|
|
- {field:'checkStation',align:'center',title:'检验单位',width:'120px'},
|
|
|
- {field:'checkState',align:'center',title:'检验状态',width:'120px',formatter: function(value, row, index){
|
|
|
+ {field:'nextCheckDate1',align:'center',title:'下次检验日期',width:'82px'},
|
|
|
+ {field:'checkDate1',align:'center',title:'最后检验日期',width:'82px'},
|
|
|
+ {field:'startUseDate1',align:'center',title:'开始投用日期',width:'82px'},
|
|
|
+ {field:'installDate1',align:'center',title:'安装日期',width:'82px'},
|
|
|
+ {field:'yearLimit',align:'center',title:'使用年限',width:'55px'},
|
|
|
+ {field:'timesAvailable',align:'center',title:'可充装次数',width:'60px'},
|
|
|
+ {field:'fillTimes',align:'center',title:'已充装次数',width:'60px'},
|
|
|
+ {field:'checkStation',align:'center',title:'检验单位',width:'55px'},
|
|
|
+ {field:'checkState',align:'center',title:'检验状态',width:'55px',formatter: function(value, row, index){
|
|
|
if (value == "0") {
|
|
|
return '<font style="color:green;font-weight: bold;">'+"合格"+'</font>';
|
|
|
}
|
|
|
else if(value == "1") {
|
|
|
return '<font style="color:red;font-weight: bold;">'+"不合格"+'</font>';
|
|
|
}}},
|
|
|
- {field:'installStation',align:'center',title:'安装单位',width:'200px'},
|
|
|
- {field:'installLicence',align:'center',title:'安装许可',width:'120px'},
|
|
|
- {field:'monitorStation',align:'center',title:'安装监检单位',width:'200px'},
|
|
|
- {field:'weight',align:'center',title:'重量',width:'120px',formatter: function(value, row, index){
|
|
|
+ {field:'installStation',align:'center',title:'安装单位',width:'55px'},
|
|
|
+ {field:'installLicence',align:'center',title:'安装许可',width:'20px'},
|
|
|
+ {field:'monitorStation',align:'center',title:'安装监检单位',width:'20px'},
|
|
|
+ {field:'weight',align:'center',title:'重量',width:'40px',formatter: function(value, row, index){
|
|
|
if(value){
|
|
|
return value.toFixed(1);
|
|
|
}
|
|
|
return value;
|
|
|
}},
|
|
|
- {field:'vol',align:'center',title:'容积',width:'120px',formatter: function(value, row, index){
|
|
|
+ {field:'vol',align:'center',title:'容积',width:'40px',formatter: function(value, row, index){
|
|
|
if(value){
|
|
|
return value.toFixed(1);
|
|
|
}
|
|
|
return value;
|
|
|
}},
|
|
|
- {field:'thickness',align:'center',title:'壁厚',width:'120px',formatter: function(value, row, index){
|
|
|
+ {field:'thickness',align:'center',title:'壁厚',width:'40px',formatter: function(value, row, index){
|
|
|
if(value){
|
|
|
return value.toFixed(1);
|
|
|
}
|
|
|
return value;
|
|
|
}},
|
|
|
- {field:'press',align:'center',title:'压力',width:'120px',formatter: function(value, row, index){
|
|
|
+ {field:'press',align:'center',title:'压力',width:'40px',formatter: function(value, row, index){
|
|
|
if(value){
|
|
|
return value.toFixed(1);
|
|
|
}
|
|
|
return value;
|
|
|
}},
|
|
|
- {field:'material',align:'center',title:'材质',width:'120px'},
|
|
|
- {field:'installLoc',align:'center',title:'安装位置',width:'120px'}
|
|
|
+ {field:'material',align:'center',title:'材质',width:'30px'},
|
|
|
+ {field:'installLoc',align:'center',title:'安装位置',width:'55px'}
|
|
|
|
|
|
|
|
|
]]
|
|
|
});
|
|
|
+ $('#tt').datagrid('hideColumn','productType');
|
|
|
+ $('#tt').datagrid('hideColumn','installLicence');
|
|
|
+ $('#tt').datagrid('hideColumn','monitorStation');
|
|
|
+ $('#tt').datagrid('hideColumn','material');
|
|
|
+
|
|
|
+ $('#tt').datagrid('hideColumn','weight');
|
|
|
+ $('#tt').datagrid('hideColumn','thickness');
|
|
|
+ $('#tt').datagrid('hideColumn','press');
|
|
|
}
|
|
|
function show(message) {
|
|
|
$.messager.show({
|
|
|
@@ -223,12 +236,13 @@ String scarNo = request.getParameter("carNo");
|
|
|
<br/>
|
|
|
应用类型:<input type="text" style="width: 200px;height: 26px;border: none;line-height:33px;background:none;" value="<%=Util.removeNull(carlist.get(0).getAppTypeName()) %>" readonly="readonly">
|
|
|
车主姓名:<input type="text" style="width: 200px;height: 26px;border: none;line-height:33px;background:none;" value="<%=Util.removeNull(carlist.get(0).getCarOwnerName()) %>" readonly="readonly">
|
|
|
- 联系电话:<input type="text" style="width: 200px;height: 26px;border: none;line-height:33px;background:none;" value="<%=Util.removeNull(carlist.get(0).getPhone()) %>" readonly="readonly">
|
|
|
+
|
|
|
+ 联系电话:<input id="phone1" type="text" style="width: 200px;height: 26px;border: none;line-height:33px;background:none;" value="<%=Util.removeNull(carlist.get(0).getPhone()) %>" readonly="readonly">
|
|
|
操作状态:<input type="text" style="width: 200px;height: 26px;border: none;line-height:33px;background:none;" value="<%=Util.removeNull(carlist.get(0).getOperStateName()) %>" readonly="readonly">
|
|
|
<br/>
|
|
|
发动机号:<input type="text" style="width: 200px;height: 26px;border: none;line-height:33px;background:none;" value="<%=Util.removeNull(carlist.get(0).getEngineNo()) %>" readonly="readonly">
|
|
|
发证时间:<input type="text" style="width: 200px;height: 26px;border: none;line-height:33px;background:none;" value="<%=Util.removeNull(carlist.get(0).getRegTime1()) %>" readonly="readonly">
|
|
|
- 单位电话:<input type="text" style="width: 200px;height: 26px;border: none;line-height:33px;background:none;" value="<%=Util.removeNull(carlist.get(0).getCarUnitPhone()) %>" readonly="readonly">
|
|
|
+ 单位电话:<input id="phone2" type="text" style="width: 200px;height: 26px;border: none;line-height:33px;background:none;" value="<%=Util.removeNull(carlist.get(0).getCarUnitPhone()) %>" readonly="readonly">
|
|
|
安装单位:<input type="text" style="width: 200px;height: 26px;border: none;line-height:33px;background:none;" value="<%=Util.removeNull(carlist.get(0).getInstallStation()) %>" readonly="readonly">
|
|
|
<br/>
|
|
|
车 架 号:<input type="text" style="width: 200px;height: 26px;border: none;line-height:33px;background:none;" value="<%=Util.removeNull(carlist.get(0).getVin()) %>" readonly="readonly">
|