<!DOCTYPE html>
|
<html>
|
<head>
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
<title>编辑PDA设备点检</title>
|
<meta name="renderer" content="webkit">
|
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
|
<!--引用layui样式文件-->
|
<link rel="stylesheet" href="../../layuiadmin/layui/css/layui.css" media="all">
|
<link rel="stylesheet" href="../../layuiadmin/style/admin.css" media="all">
|
<!--引用layui js文件-->
|
<script src="../../layuiadmin/layui/layui.js"></script>
|
<script src="../../layuiadmin/Scripts/json2.js"></script>
|
<script src="../../layuiadmin/Scripts/jquery-1.4.1.js"></script>
|
<script src="../../layuiadmin/Scripts/webConfig.js"></script>
|
<script src="../../layuiadmin/zgqCustom/zgqCustom.js"></script>
|
<!--自定义样式-->
|
<style>
|
.maintitle {
|
background-color: #1492ff;
|
color: #fff;
|
padding: 5px 10px;
|
border: none;
|
border-radius: 4px;
|
}
|
|
.title {
|
border-left: 4px solid #1492ff;
|
padding-left: 6px;
|
margin: 20px 10px 4px;
|
font-size: 16px;
|
color: #333;
|
}
|
|
.buttom_box_little {
|
width: 60px;
|
height: 36px;
|
color: #fff;
|
background-color: #1492ff;
|
border-radius: 4px;
|
border: none;
|
margin: 10px;
|
}
|
|
.layui-input {
|
width: 93%;
|
}
|
|
.layui-inline, img {
|
display: block;
|
vertical-align: middle
|
}
|
|
.layui-input, .layui-textarea {
|
display: inline-block;
|
width: 100%;
|
padding-left: 10px;
|
}
|
|
.laydate-time-list ol {
|
overflow-x: hidden !important;
|
overflow-y: auto !important;
|
}
|
|
.layui-form-label {
|
padding: 9px 5px;
|
width: 85px;
|
}
|
|
.layui-input-block {
|
margin-left: 85px;
|
min-height: 36px;
|
}
|
</style>
|
</head>
|
<body>
|
<div class="layui-fluid" style="padding: 0;">
|
<div class="layui-card" style="padding: 15px;background-color: #efefef;">
|
<div class="layui-card-body" style="padding: 1px;">
|
<form class="layui-form" action="" lay-filter="formData" id="formData" style="background-color:white;">
|
<div class="maintitle">编辑PDA设备点检</div>
|
<div class="layui-tab layui-tab-card" lay-filter="TabTest">
|
<div class="layui-tab-content">
|
<div class="layui-tab-item layui-show">
|
<div class="layui-form-item" style="padding-top: 10px;">
|
<div class="layui-row">
|
<div class="layui-inline">
|
<label class="layui-form-label" style="width: 75px;padding: 9px 5px;">点检项目:</label>
|
<div class="layui-input-block">
|
<input type="text" name="HDotCheckItem" id="HDotCheckItem" class="layui-input" style="width:80%;">
|
<input type="hidden" name="HDotCheckItemID" id="HDotCheckItemID" class="layui-input">
|
<input type="hidden" name="HDotCheckCode" id="HDotCheckCode" class="layui-input">
|
<button type="button" lay-submit="" class="layui-btn layui-btn-primary" lay-filter="HDotCheckItemList" style="width:40px;">
|
<i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></i>
|
</button>
|
</div>
|
</div>
|
</div>
|
<div class="layui-row">
|
<div class="layui-inline">
|
<label class="layui-form-label" style="width: 75px;padding: 9px 5px;">点检部位:</label>
|
<div class="layui-input-inline">
|
<input type="text" name="HDotCheckPart" id="HDotCheckPart" class="layui-input">
|
</div>
|
</div>
|
</div>
|
<div class="layui-row">
|
<div class="layui-inline">
|
<label class="layui-form-label" style="width: 75px;padding: 9px 5px;">具体要求:</label>
|
<div class="layui-input-inline">
|
<textarea placeholder="请输入保养具体要求" class="layui-textarea" name="HClaim" id="HClaim"></textarea>
|
</div>
|
</div>
|
</div>
|
<div class="layui-row">
|
<div class="layui-inline">
|
<label class="layui-form-label" style="width: 75px;padding: 9px 5px;">负责人:</label>
|
<div class="layui-input-block">
|
<input type="text" name="HManagerName" id="HManagerName" class="layui-input" style="width:80%;">
|
<input type="hidden" name="HManagerID" id="HManagerID" class="layui-input">
|
<input type="hidden" name="HManagerCode" id="HManagerCode" class="layui-input">
|
<button type="button" lay-submit="" class="layui-btn layui-btn-primary" lay-filter="HManagerList" style="width:40px;">
|
<i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></i>
|
</button>
|
</div>
|
</div>
|
</div>
|
</div>
|
</div>
|
</div>
|
</div>
|
|
</form>
|
</div>
|
</div>
|
</div>
|
|
<script src="../../layuiadmin/layui/layui.js"></script>
|
<script src="../../layuiadmin/Scripts/json2.js"></script>
|
<script src="../../layuiadmin/Scripts/jquery-1.4.1.js"></script>
|
<script src="../../layuiadmin/Scripts/webConfig.js"></script>
|
<script src="../../layuiadmin/PubCustom.js"></script>
|
<script>
|
//获取参数
|
var params = get_UrlVars();
|
if (typeof (params[params[0]]) == "undefined") {
|
var OperationType = 1;//操作类型
|
} else {
|
var OperationType = params[params[0]];//操作类型
|
var linterid = params[params[1]];//源单id
|
var HSouceBillType = params[params[2]];//源单类型
|
}
|
|
layui.config({
|
base: '../../layuiadmin/' //静态资源所在路径
|
}).extend({
|
index: 'lib/index' //主入口模块
|
}).use(['index', 'form', 'laydate', 'table', 'element'], function () {
|
//#region 公共变量
|
var $ = layui.$
|
, admin = layui.admin
|
, layer = layui.layer
|
, table = layui.table
|
, form = layui.form
|
, laydate = layui.laydate
|
, element = layui.element;
|
//查询条件
|
//#endregion
|
|
//#region 触发事件:包括form.on(){}格式的所有点击事件、选择事件等
|
|
//表头信息点检项目
|
form.on('submit(HDotCheckItemList)', function () {
|
//页面层-自定义
|
layer.open({
|
type: 2,
|
skin: 'layui-layer-rim', //加上边框
|
title: '点检项目列表',
|
closeBtn: 1,
|
shift: 2,
|
area: ['90%', '90%'],
|
maxmin: true,
|
content: ['../PublicPage/CheckItemInformation.html', 'yes'],
|
btn: ['确定', '取消']
|
, btn1: function (index, layero) {
|
//按钮【按钮一】的回调
|
var iframeWindow = window['layui-layer-iframe' + index] //获取弹框页面
|
var checkStatus = iframeWindow.layui.table.checkStatus('mainTable');//获取table的elem:"#test"
|
if (checkStatus.data.length === 0) {
|
return layer.msg('请选择数据');
|
}
|
$("#HDotCheckItem").val(checkStatus.data[0].HName);
|
$("#HDotCheckItemID").val(checkStatus.data[0].HItemID);
|
$("#HDotCheckCode").val(checkStatus.data[0].HNumber);
|
layer.close(layer.index); //它获取的始终是最新弹出的某个层,值是由layer内部动态递增计算的
|
}
|
, btn2: function (index, layero) {
|
//按钮【按钮二】的回调
|
//return false 开启该代码可禁止点击该按钮关闭
|
},
|
end: function () {
|
}
|
});
|
});
|
//表头信息责任人
|
form.on('submit(HManagerList)', function () {
|
//页面层-自定义
|
layer.open({
|
type: 2,
|
skin: 'layui-layer-rim', //加上边框
|
title: '责任人列表',
|
closeBtn: 1,
|
shift: 2,
|
area: ['90%', '90%'],
|
maxmin: true,
|
content: ['../PublicPage/UserInformation.html', 'yes'],
|
btn: ['确定', '取消']
|
, btn1: function (index, layero) {
|
|
//按钮【按钮一】的回调
|
var iframeWindow = window['layui-layer-iframe' + index] //获取弹框页面
|
var checkStatus = iframeWindow.layui.table.checkStatus('mainTable');//获取table的elem:"#test"
|
if (checkStatus.data.length === 0) {
|
return layer.msg('请选择数据');
|
}
|
$("#HManagerName").val(checkStatus.data[0].HName);
|
$("#HManagerID").val(checkStatus.data[0].HItemID);
|
$("#HManagerCode").val(checkStatus.data[0].HNumber);
|
|
layer.close(layer.index); //它获取的始终是最新弹出的某个层,值是由layer内部动态递增计算的
|
}
|
, btn2: function (index, layero) {
|
//按钮【按钮二】的回调
|
//return false 开启该代码可禁止点击该按钮关闭
|
},
|
end: function () {
|
|
}
|
});
|
});
|
//#endregion
|
|
});
|
</script>
|
</body>
|
</html>
|