This commit is contained in:
parent
7c435d0cdc
commit
7a9eff274d
|
|
@ -0,0 +1,87 @@
|
|||
/*表格/查询条件公共样式*/
|
||||
html,
|
||||
body {
|
||||
width: 99.5%;
|
||||
/*height: calc(100% - 5px);*/
|
||||
height: 99%;
|
||||
margin: 0.15% 0 0 0.25%;
|
||||
padding: 0;
|
||||
font-family: 'Alibaba PuHuiTi R';
|
||||
letter-spacing: 1px;
|
||||
}
|
||||
|
||||
.layout {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: start;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
#content {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
padding: 1% 2% 1% 2%;
|
||||
box-sizing: border-box;
|
||||
background-color: #fff;
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
.layui-form p {
|
||||
font-size: 18px;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.layui-form-item .layui-input-inline {
|
||||
width: 350px;
|
||||
}
|
||||
|
||||
.yj{
|
||||
width: 725px !important;
|
||||
}
|
||||
|
||||
.layui-form-label {
|
||||
padding: 9px 0;
|
||||
width: 150px;
|
||||
font-size: 16px;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.layui-input {
|
||||
border-color: #c7c5c5 !important;
|
||||
}
|
||||
|
||||
.layui-input:hover, .layui-textarea:hover {
|
||||
border-color: #8b8989 !important;
|
||||
}
|
||||
|
||||
hr {
|
||||
border-bottom: 1px solid #c7c5c5;
|
||||
}
|
||||
|
||||
/*滚动条样式start*/
|
||||
::-webkit-scrollbar {
|
||||
width: 5px;
|
||||
height: 10px;
|
||||
}
|
||||
|
||||
::-webkit-scrollbar-track {
|
||||
background: #e7e7f1 !important;
|
||||
border-radius: 0px;
|
||||
}
|
||||
|
||||
::-webkit-scrollbar-thumb {
|
||||
background: rgba(94, 96, 97, 0.43) !important;
|
||||
border-radius: 0px;
|
||||
}
|
||||
|
||||
::-webkit-scrollbar-thumb:hover {
|
||||
background: rgba(94, 96, 97, 0.43) !important;
|
||||
border-radius: 0px;
|
||||
}
|
||||
|
||||
::-webkit-scrollbar-thumb:active {
|
||||
background: rgba(94, 96, 97, 0.43) !important;
|
||||
border-radius: 0px;
|
||||
}
|
||||
|
||||
/*滚动条样式end*/
|
||||
|
|
@ -96,15 +96,16 @@ function initTable(dataList, limit, page) {
|
|||
{ title: "原始记录", unresize: true, align: "center",
|
||||
templet: function (d) {
|
||||
let html = '';
|
||||
html += "<a title='查看' onclick=\"addData('" + d.id + "')\">查看</a>";
|
||||
html += "<a title='查看' onclick=\"viewData('" + d.experId + "','"+d.devTypeCode+"')\">查看</a>";
|
||||
return html;
|
||||
}},
|
||||
{
|
||||
title: "操作", unresize: true, width: 180, align: "center",
|
||||
templet: function (d) {
|
||||
let html = '';
|
||||
// html += "<a class='layui-icon layui-icon-edit' title='详情' onclick=\"addData('" + d.id + "')\"></a>";
|
||||
html += setButtonName(d.id, d.roleCode, d.status);
|
||||
html += "<a title='通过' onclick=\"passData('" + d.id + "',1)\">通过</a>";
|
||||
html += "<a style='margin: 0 0 0 10px' title='不通过' onclick=\"passData('" + d.id + "',2)\">不通过</a>";
|
||||
// html += setButtonName(d.id, d.roleCode, d.status);
|
||||
return html;
|
||||
}
|
||||
},
|
||||
|
|
@ -169,39 +170,12 @@ function reloadData() {
|
|||
pages(pageNum, limitSize);
|
||||
}
|
||||
|
||||
// 审核数据
|
||||
function auditData(id, status, btnName) {
|
||||
let title = btnName
|
||||
// 原始数据查看
|
||||
function viewData(experId,devTypeCode) {
|
||||
let title = '原始记录';
|
||||
let param = {
|
||||
'id': id,
|
||||
'status': status
|
||||
'experId': experId,
|
||||
'devTypeCode': devTypeCode
|
||||
}
|
||||
openIframe3("auditData", title, "child/auditData.html", '1500px', '800px', param);
|
||||
}
|
||||
|
||||
const data = {
|
||||
administrators1: '审阅',
|
||||
administrators2: '审核',
|
||||
administrators3: '审批',
|
||||
experimentalTeamLeader1: '审阅',
|
||||
technicalDirector2: '审核',
|
||||
centerManager3: '审批'
|
||||
};
|
||||
|
||||
function getValueByKey(obj, key) {
|
||||
return obj[key];
|
||||
}
|
||||
|
||||
/**设置审核类型*/
|
||||
function setButtonName(id, value, status) {
|
||||
let cent = "";
|
||||
const btnName = getValueByKey(data, value + status)
|
||||
if (btnName) {
|
||||
cent += "<a title='" + btnName + "' onclick=\"auditData('" + id + "','" + status + "','" + btnName + "')\">" + btnName + "</a>";
|
||||
}
|
||||
return cent;
|
||||
}
|
||||
|
||||
function seta() {
|
||||
alert('12')
|
||||
openIframe7("viewData", title, "child/viewExperData.html", '1500px', '800px', param);
|
||||
}
|
||||
|
|
@ -0,0 +1,10 @@
|
|||
let form, layer;
|
||||
let experIdParam = null,devTypeCodeParam = null;
|
||||
function setParams(params) {
|
||||
experIdParam = JSON.parse(params).experId;
|
||||
devTypeCodeParam = JSON.parse(params).devTypeCode;
|
||||
layui.use(['form', 'layer'], function () {
|
||||
form = layui.form;
|
||||
layer = layui.layer;
|
||||
})
|
||||
}
|
||||
|
|
@ -90,7 +90,7 @@ function initTable(dataList, limit, page) {
|
|||
{field: "teamName", title: "试验班组", unresize: true, align: "center"},
|
||||
{field: "audtiStatus", title: "状态", unresize: true, align: "center"},
|
||||
{
|
||||
title: "操作", unresize: true, width: 180, align: "center",
|
||||
title: "审查", unresize: true, width: 180, align: "center",
|
||||
templet: function (d) {
|
||||
let html = '';
|
||||
// html += "<a class='layui-icon layui-icon-edit' title='详情' onclick=\"addData('" + d.id + "')\"></a>";
|
||||
|
|
|
|||
|
|
@ -65,6 +65,24 @@ function openIframe3(id, title, content, width, height, params) {
|
|||
});
|
||||
}
|
||||
|
||||
function openIframe7(id, title, content, width, height, params) {
|
||||
let layerIndex = parent.layer.open({
|
||||
id: id,
|
||||
type: 2,
|
||||
title: ['<div style="border-left: 3px solid #00377A;color:#00377A;font-size:18px;display: flex;letter-spacing:1px;align-items: center;height: 20px;padding: 0 10px;font-weight: bold;">' + title + '</div>', 'font-size:16px;background-color:#f0f0f0;display: flex;align-items: center;'],
|
||||
content: content,
|
||||
shade: 0.3,
|
||||
closeBtn: true,
|
||||
shadeClose: false,
|
||||
area: [width, height],
|
||||
move: false,
|
||||
success: function () {
|
||||
let iframeWin = parent.window["layui-layer-iframe" + layerIndex];
|
||||
iframeWin.setParams(JSON.stringify(params));
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
// 楼宇管理区域 新增/修改页面
|
||||
function openIframe4(id, title, content, width, height, params,$div) {
|
||||
let layerIndex = layer.open({
|
||||
|
|
|
|||
|
|
@ -0,0 +1,148 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<link rel="stylesheet" href="../../../js/layui-v2.9.14/layui/css/layui.css">
|
||||
<link rel="stylesheet" href="../../../css/font.css">
|
||||
<link rel="stylesheet" href="../../../css/basis/originalRecord.css">
|
||||
<script src="../../../js/libs/jquery-2.1.1.min.js" charset="UTF-8" type="text/javascript"></script>
|
||||
<script src="../../../js/layui-v2.9.14/layui/layui.js" charset="UTF-8" type="text/javascript"></script>
|
||||
<script src="../../../js/publicJs.js"></script>
|
||||
<script src="../../../js/commonUtils.js"></script>
|
||||
<script src="../../../js/openIframe.js"></script>
|
||||
<script src="../../../js/my/aes.js"></script>
|
||||
<script src="../../../js/ajaxRequest.js"></script>
|
||||
<script src="../../../js/select.js"></script>
|
||||
<title>原始记录</title>
|
||||
</head>
|
||||
<body>
|
||||
<div id="content">
|
||||
<!--基本信息-->
|
||||
<div class="basic-box">
|
||||
<form class="layui-form" onsubmit="return false;">
|
||||
<p>基本信息</p>
|
||||
<div class="layui-form-item">
|
||||
<div class="layui-inline">
|
||||
<label class="layui-form-label">设备类别</label>
|
||||
<br>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" name="username" readonly autocomplete="off" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-inline">
|
||||
<label class="layui-form-label">规格型号</label>
|
||||
<br>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" name="username" readonly autocomplete="off" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-inline">
|
||||
<label class="layui-form-label">样品数量</label>
|
||||
<br>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" name="username" readonly autocomplete="off" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<div class="layui-inline">
|
||||
<label class="layui-form-label">收样日期</label>
|
||||
<br>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" name="username" readonly autocomplete="off" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-inline">
|
||||
<label class="layui-form-label">试验日期</label>
|
||||
<br>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" name="username" readonly autocomplete="off" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-inline">
|
||||
<label class="layui-form-label">下次试验日期</label>
|
||||
<br>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" name="username" readonly autocomplete="off" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<div class="layui-inline">
|
||||
<label class="layui-form-label">送检单位</label>
|
||||
<br>
|
||||
<div class="layui-input-inline" style="width: 725px;">
|
||||
<input type="text" name="username" readonly autocomplete="off" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-inline">
|
||||
<label class="layui-form-label">试验地点</label>
|
||||
<br>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" name="username" readonly autocomplete="off" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<hr>
|
||||
<p>试验主要设备</p>
|
||||
<div class="layui-form-item">
|
||||
<div class="layui-inline">
|
||||
<label class="layui-form-label">名称</label>
|
||||
<br>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" name="username" readonly autocomplete="off" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-inline">
|
||||
<label class="layui-form-label">型号</label>
|
||||
<br>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" name="username" readonly autocomplete="off" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-inline">
|
||||
<label class="layui-form-label">编号</label>
|
||||
<br>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" name="username" readonly autocomplete="off" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<div class="layui-inline">
|
||||
<label class="layui-form-label">检定/校准有效期</label>
|
||||
<br>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" name="username" readonly autocomplete="off" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<hr>
|
||||
<p style="margin-bottom: 1%">试验依据</p>
|
||||
<div class="layui-form-item">
|
||||
<div class="layui-inline">
|
||||
<div class="layui-input-inline yj">
|
||||
<input type="text" name="username" readonly autocomplete="off" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<div class="layui-inline">
|
||||
<div class="layui-input-inline yj">
|
||||
<input type="text" name="username" readonly autocomplete="off" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<div class="layui-inline">
|
||||
<div class="layui-input-inline yj">
|
||||
<input type="text" name="username" readonly autocomplete="off" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
<script src="../../../js/basis/child/viewExperData.js" charset="UTF-8" type="text/javascript"></script>
|
||||
</html>
|
||||
Loading…
Reference in New Issue