|
|
|
@ -16,16 +16,17 @@
|
|
|
|
|
</li>
|
|
|
|
|
<li>
|
|
|
|
|
<a class="btn btn-primary btn-rounded btn-sm" onclick="searc()"><i class="fa fa-search"></i> 搜索</a>
|
|
|
|
|
<!-- <a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i> 查询全部</a>-->
|
|
|
|
|
<!-- <a class="btn btn-info btn-rounded btn-sm" onclick="celexport()" shiro:hasPermission="nanjing:ParaAllShow:export"><i class="fa fa-download"></i> 导出</a>-->
|
|
|
|
|
<!-- <a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i> 查询全部</a>-->
|
|
|
|
|
<!-- <a class="btn btn-info btn-rounded btn-sm" onclick="celexport()" shiro:hasPermission="nanjing:ParaAllShow:export"><i class="fa fa-download"></i> 导出</a>-->
|
|
|
|
|
</li>
|
|
|
|
|
</ul>
|
|
|
|
|
</div>
|
|
|
|
|
</form>
|
|
|
|
|
</div>
|
|
|
|
|
<!-- <div class="col-sm-12 select-table table-striped">-->
|
|
|
|
|
<!-- <table id="bootstrap-table1"></table>-->
|
|
|
|
|
<!-- </div>-->
|
|
|
|
|
<div class="col-sm-12 select-table table-striped">
|
|
|
|
|
<table id="bootstrap-table1"></table>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
<div class="col-sm-12 select-table table-striped">
|
|
|
|
|
<table id="bootstrap-table2"></table>
|
|
|
|
|
</div>
|
|
|
|
@ -48,53 +49,55 @@
|
|
|
|
|
contentType: false,
|
|
|
|
|
modalName: "产品码查询",
|
|
|
|
|
success: function (json) {
|
|
|
|
|
console.log(json);
|
|
|
|
|
|
|
|
|
|
var columnsArray2 = [];
|
|
|
|
|
columnsArray2.push({field : "semiBarcode",title : "产品码",colspan: 1,rowspan: 1});
|
|
|
|
|
columnsArray2.push({field : "proBarcode",title : "部件码",colspan: 1,rowspan: 1});
|
|
|
|
|
columnsArray2.push({field : "stationCode",title : "工位代码",colspan: 1,rowspan: 1});
|
|
|
|
|
columnsArray2.push({field : "insertTime",title : "记录时间",colspan: 1,rowspan: 1});
|
|
|
|
|
columnsArray2.push({field : "paraName",title : "参数名称",colspan: 1,rowspan: 1});
|
|
|
|
|
columnsArray2.push({field : "realVal",title : "实测值",colspan: 1,rowspan: 1});
|
|
|
|
|
columnsArray2.push({field : "minVal",title : "最小值",colspan: 1,rowspan: 1});
|
|
|
|
|
columnsArray2.push({field : "maxVal",title : "最大值",colspan: 1,rowspan: 1});
|
|
|
|
|
columnsArray2.push({field : "paraState",title : "参数状态",colspan: 1,rowspan: 1});
|
|
|
|
|
columnsArray2.push({field : "部件码",title : "部件码",colspan: 1,rowspan: 1});
|
|
|
|
|
columnsArray2.push({field : "工位代码",title : "工位代码",colspan: 1,rowspan: 1});
|
|
|
|
|
columnsArray2.push({field : "记录时间",title : "记录时间",colspan: 1,rowspan: 1});
|
|
|
|
|
columnsArray2.push({field : "参数名称",title : "参数名称",colspan: 1,rowspan: 1});
|
|
|
|
|
columnsArray2.push({field : "实测值",title : "实测值",colspan: 1,rowspan: 1});
|
|
|
|
|
columnsArray2.push({field : "最小值",title : "最小值",colspan: 1,rowspan: 1});
|
|
|
|
|
columnsArray2.push({field : "最大值",title : "最大值",colspan: 1,rowspan: 1});
|
|
|
|
|
columnsArray2.push({field : "参数状态",title : "参数状态",colspan: 1,rowspan: 1});
|
|
|
|
|
|
|
|
|
|
var columnsArray1 = [];
|
|
|
|
|
columnsArray1.push({field : "系统条码",title : "系统条码",colspan: 1,rowspan: 1});
|
|
|
|
|
columnsArray1.push({field : "semiBarcode" ,title : "产品码",colspan: 1,rowspan: 1});
|
|
|
|
|
columnsArray1.push({field : "机种类型",title : "机种类型",colspan: 1,rowspan: 1});
|
|
|
|
|
columnsArray1.push({field : "返修Y/N",title : "返修Y/N",colspan: 1,rowspan: 1});
|
|
|
|
|
columnsArray1.push({field : "合格状态",title : "合格状态",colspan: 1,rowspan: 1});
|
|
|
|
|
columnsArray1.push({field : "完成状态",title : "完成状态",colspan: 1,rowspan: 1});
|
|
|
|
|
columnsArray1.push({field : "当前工位",title : "当前工位",colspan: 1,rowspan: 1});
|
|
|
|
|
columnsArray1.push({field : "NG工位",title : "NG工位",colspan: 1,rowspan: 1});
|
|
|
|
|
columnsArray1.push({field : "标签Y/N",title : "标签Y/N",colspan: 1,rowspan: 1});
|
|
|
|
|
columnsArray1.push({field : "开始时间",title : "开始时间",colspan: 1,rowspan: 1});
|
|
|
|
|
columnsArray1.push({field : "结束时间",title : "结束时间",colspan: 1,rowspan: 1});
|
|
|
|
|
|
|
|
|
|
// var columnsArray1 = [];
|
|
|
|
|
// columnsArray1.push({field : "barcode",title : "系统条码",colspan: 1,rowspan: 1});
|
|
|
|
|
// columnsArray1.push({field : "semiBarcode",title : "产品码",colspan: 1,rowspan: 1});
|
|
|
|
|
// columnsArray1.push({field : "productName",title : "机种类型",colspan: 1,rowspan: 1});
|
|
|
|
|
// columnsArray1.push({field : "isDis",title : "返修Y/N",colspan: 1,rowspan: 1});
|
|
|
|
|
// columnsArray1.push({field : "state",title : "合格状态",colspan: 1,rowspan: 1});
|
|
|
|
|
// columnsArray1.push({field : "finishFlag",title : "完成状态",colspan: 1,rowspan: 1});
|
|
|
|
|
// columnsArray1.push({field : "currentStation",title : "当前工位",colspan: 1,rowspan: 1});
|
|
|
|
|
// columnsArray1.push({field : "NGStation",title : "NG工位",colspan: 1,rowspan: 1});
|
|
|
|
|
// columnsArray1.push({field : "namePlateInfo",title : "标签Y/N",colspan: 1,rowspan: 1});
|
|
|
|
|
// columnsArray1.push({field : "beginTime",title : "开始时间",colspan: 1,rowspan: 1});
|
|
|
|
|
// columnsArray1.push({field : "endTime",title : "结束时间",colspan: 1,rowspan: 1});
|
|
|
|
|
//
|
|
|
|
|
// $('#bootstrap-table1').bootstrapTable('destroy').bootstrapTable({
|
|
|
|
|
// id: "bootstrap-table1",
|
|
|
|
|
// data:json,
|
|
|
|
|
// toolbar: "#toolbar",
|
|
|
|
|
// singleSelect: false,
|
|
|
|
|
// clickToSelect: true,
|
|
|
|
|
// sortName: "recordTime",
|
|
|
|
|
// sortOrder: "desc",
|
|
|
|
|
// pageSize: 50,
|
|
|
|
|
// pageNumber: 1,
|
|
|
|
|
// pageList: "[10, 15,25, 50, All]",
|
|
|
|
|
// showToggle: true,
|
|
|
|
|
// showRefresh: true,
|
|
|
|
|
// showColumns: true,
|
|
|
|
|
// search: false,
|
|
|
|
|
// pagination: true,
|
|
|
|
|
// showExport: false,//工具栏上显示导出按钮
|
|
|
|
|
// columns: columnsArray1
|
|
|
|
|
// });
|
|
|
|
|
$('#bootstrap-table1').bootstrapTable('destroy').bootstrapTable({
|
|
|
|
|
id: "bootstrap-table1",
|
|
|
|
|
data:json.rows[1],
|
|
|
|
|
toolbar: "#toolbar",
|
|
|
|
|
singleSelect: false,
|
|
|
|
|
clickToSelect: true,
|
|
|
|
|
sortName: "recordTime",
|
|
|
|
|
sortOrder: "desc",
|
|
|
|
|
pageSize: 50,
|
|
|
|
|
pageNumber: 1,
|
|
|
|
|
pageList: "[10, 15,25, 50, All]",
|
|
|
|
|
showToggle: true,
|
|
|
|
|
showRefresh: true,
|
|
|
|
|
showColumns: true,
|
|
|
|
|
search: false,
|
|
|
|
|
pagination: true,
|
|
|
|
|
showExport: false,//工具栏上显示导出按钮
|
|
|
|
|
columns: columnsArray1
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
$('#bootstrap-table2').bootstrapTable('destroy').bootstrapTable({
|
|
|
|
|
id: "bootstrap-table2",
|
|
|
|
|
data:json,
|
|
|
|
|
data:json.rows[0],
|
|
|
|
|
toolbar: "#toolbar",
|
|
|
|
|
singleSelect: false,
|
|
|
|
|
clickToSelect: true,
|
|
|
|
|