' +
+ '| ' + (index + 1) + ' | ' +
+ '' + item.customerCode + ' | ' +
+ '' + item.devCode + ' | ' +
+ '' + item.manufacturer + ' | ' +
+ '' + item.manufactureDate + ' | ' +
+ '' + item.devModule + ' | ' +
+ setItemData(JSON.parse(item.devData));
+ })
return html;
}
-function initTable(dataList,configList) {
- let handleDataList = handleData(dataList);
- // dataList = [{"username":"12"},{"username":"12"},{"username":"12"}];
- // let loadingMsg = layer.msg("数据加载中,请稍候...", { icon: 16, scrollbar: false, time: 0, });
- table.render({
- elem: '#testTable',
- id: 'testTable',
- data: handleDataList,
- cols:setTableData(configList),
- });
-}
-function setTableData(configList){
- let tableTitle = [[
- {field: 'number',type: 'numbers',title: '序号',width: 60,rowspan: 2,fixed: 'left',align: 'center',unresize: true,},
- {field: 'customerCode',title: '样品编号',width: 120,fixed: 'left',rowspan: 2,align: 'center',unresize: true,},
- {title: '样品信息',fixed: 'left', align: 'center', colspan: 4, unresize: true},
- ],[
- {field: 'devCode',title: '客户自编号',width: 120,fixed: 'left',align: 'center',unresize: true,},
- {field: 'manufacturer',fixed: 'left', title: '生产厂家', width: 120, align: 'center', unresize: true},
- {field: 'manufactureDate',fixed: 'left', title: '生产日期', width: 120, align: 'center', unresize: true},
- {field: 'devModule',fixed: 'left', title: '规格型号', width: 100, align: 'center', unresize: true},
- ]];
- setFirstTitle();
- setTwoTitle();
- function setFirstTitle(){
- $.each(configList,function (index,item){
- tableTitle[0].push({title: item.experTypeName,colspan: item.experNum, width: 180 * (item.experNum), align: 'center', unresize: true})
- })
- }
- function setTwoTitle(){
- let indexNum = 0;
- $.each(configList,function (index,item){
- let itemList = item.itemList;
- let length = itemList.length;
- $.each(itemList,function (index2,item2){
- indexNum = index * length + index2;
- tableTitle[1].push({field: 'val' + indexNum ,title: item2.itemName, width: 180, align: 'center', unresize: true});
- })
- })
- }
- return tableTitle;
+/*赋值试验子项数据*/
+function setItemData(list) {
+ let html = '';
+ $.each(list, function (index, item) {
+ html += '' + item + ' | ';
+ })
+ return html;
}
-/**处理数据*/
-function handleData(dataList){
- $.each(dataList,function (index,item){
- let arr = JSON.parse(item.devData);
- $.each(arr,function (index2,item2){
- item['val' + index2] = item2;
- })
- })
- return dataList;
+function closePage(type) {
+ let index = parent.layer.getFrameIndex(window.name); //先得到当前 iframe层的索引
+ parent.layer.close(index); //再执行关闭
}
\ No newline at end of file
diff --git a/src/main/resources/static/pages/testReport/child/testReportForm.html b/src/main/resources/static/pages/testReport/child/testReportForm.html
index a462cdc..057a56b 100644
--- a/src/main/resources/static/pages/testReport/child/testReportForm.html
+++ b/src/main/resources/static/pages/testReport/child/testReportForm.html
@@ -58,6 +58,7 @@
+
diff --git a/src/main/resources/static/pages/testReport/child/testReportView.html b/src/main/resources/static/pages/testReport/child/testReportView.html
index 6255f14..3d34ea9 100644
--- a/src/main/resources/static/pages/testReport/child/testReportView.html
+++ b/src/main/resources/static/pages/testReport/child/testReportView.html
@@ -4,7 +4,7 @@
-
+
@@ -14,32 +14,73 @@
检测报告
-
-
-
-
+
+
安全帽检测报告附页
+
+
+
+
+
+
+
+
+
+
+
+ | 报告编号 |
+ |
+ 收样日期 |
+ |
+ 样品数量 |
+ |
+
+
+ | 检测设备 |
+ |
+
+
+ | 检测依据 |
+ |
+
+
+ | 序号 |
+ 样品编号 |
+ 样品信息 |
+
+
+ | 客户自编号 |
+ 生产厂家 |
+ 生产日期 |
+ 规格型号 |
+
+
+
+ | 技术要求 |
+ |
+
+
+ | 检测结论 |
+ |
+
+
+ | 备注 |
+
+
+
+ | 检测日期 |
+ |
+ 下次检测日期 |
+ |
+
+
+
+
+
-