<!DOCTYPE html>
|
<html>
|
<head>
|
<meta charset="utf-8" />
|
<title>新增/编辑设备维修单</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.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
|
<link rel="stylesheet" href="../../layuiadmin/layui/css/layui.css" media="all">
|
<link rel="stylesheet" href="../../layuiadmin/style/admin.css" media="all">
|
<style type="text/css">
|
.layui-form-label {
|
width: 85px;
|
}
|
</style>
|
</head>
|
<body>
|
|
<div id="layout1" class="layui-fluid">
|
<div class="layui-row layui-col-space15">
|
<div class="layui-col-md12">
|
<div class="layui-card">
|
<form id="form0" class="layui-form" lay-filter="component-form-group" action="">
|
<div class="layui-card-header">
|
<div class="layui-btn-group">
|
|
<button type="button" id="add-btn" class="layui-btn layui-btn-normal layui-btn-radius" lay-submit="" lay-filter="Saver">保存</button>
|
<button type="button" class="layui-btn layui-btn-normal layui-btn-radius" lay-submit="" lay-filter="Exit">退出</button>
|
|
|
</div>
|
|
</div>
|
<div class="layui-card-body">
|
<div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief">
|
<!--<ul class="layui-tab-title">
|
<li class="layui-this">基本信息</li>-->
|
<!--<li>其他信息</li>-->
|
<!--</ul>-->
|
<h1 style="text-align:center;"><b>设备维修单</b></h1>
|
<div class="layui-tab-content">
|
<div class="layui-tab-item layui-show">
|
<div class="layui-form-item">
|
<div class="layui-inline">
|
<label class="layui-form-label">单据号</label>
|
<div class="layui-input-inline">
|
<input class="layui-input" name="HBillNo" lay-verify="HBillNo" id="HBillNo" readonly="readonly" autocomplete="off">
|
<input id="HInterID" name="HInterID" type="hidden" />
|
<input id="HMaker" name="HMaker" type="hidden" /><!--制单人-->
|
</div>
|
</div>
|
<div class="layui-inline">
|
<label class="layui-form-label">日期</label>
|
<div class="layui-input-inline">
|
<input class="layui-input" name="HDate" id="HDate" autocomplete="off" model="datetime" dateFormat="yyyy-MM-dd" placeholder="yyyy-MM-dd">
|
</div>
|
</div>
|
<div class="layui-inline">
|
<label class="layui-form-label">内部单据号</label>
|
<div class="layui-input-inline">
|
<input type="text" name="HInnerBillNo" id="HInnerBillNo" class="layui-input">
|
</div>
|
</div>
|
<div class="layui-inline">
|
<label class="layui-form-label">维修人</label>
|
<div class="layui-input-inline">
|
<input type="text" name="HEmpID" id="HEmpID" class="layui-input" value="0" style="float:left;width:150px;">
|
<button type="button" lay-submit="" class="layui-btn layui-btn-primary" lay-filter="ProductModulList" 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-form-item">
|
<div class="layui-inline">
|
<label class="layui-form-label">维修开始</label>
|
<div class="layui-input-inline">
|
<input class="layui-input" name="HRepairBeginDate" id="HRepairBeginDate" autocomplete="off" timeFormat="yyyy-MM-dd">
|
</div>
|
</div>
|
<div class="layui-inline">
|
<label class="layui-form-label">设备</label>
|
<div class="layui-input-inline">
|
<input type="text" name="HEquipID" id="HEquipID" class="layui-input" value="0" style="float:left;width:150px;">
|
<button type="button" lay-submit="" class="layui-btn layui-btn-primary" lay-filter="ProductModulList" style="width:40px;">
|
<i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></i>
|
</button>
|
</div>
|
</div>
|
<div class="layui-inline">
|
<label class="layui-form-label">负责人</label>
|
<div class="layui-input-inline">
|
<input type="text" name="HManagerID" id="HManagerID" class="layui-input" value="0" style="float:left;width:150px;">
|
<button type="button" lay-submit="" class="layui-btn layui-btn-primary" lay-filter="ProductModulList" style="width:40px;">
|
<i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></i>
|
</button>
|
</div>
|
</div>
|
<div class="layui-inline">
|
<label class="layui-form-label">维修结束</label>
|
<div class="layui-input-inline">
|
<input class="layui-input" name="HRepairEndDate" id="HRepairEndDate" autocomplete="off" timeFormat="yyyy-MM-dd">
|
</div>
|
</div>
|
</div>
|
<div class="layui-form-item">
|
<div class="layui-inline">
|
<label class="layui-form-label">维修项目</label>
|
<div class="layui-input-inline">
|
<input type="text" name="HRepairID" id="HRepairID" class="layui-input" value="0" style="float:left;width:150px;">
|
<button type="button" lay-submit="" class="layui-btn layui-btn-primary" lay-filter="ProductModulList" style="width:40px;">
|
<i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></i>
|
</button>
|
</div>
|
</div>
|
<div class="layui-inline">
|
<label class="layui-form-label">维修部门</label>
|
<div class="layui-input-inline">
|
<input type="text" name="HDeptID" id="HDeptID" class="layui-input" value="0" style="float:left;width:150px;">
|
<button type="button" lay-submit="" class="layui-btn layui-btn-primary" lay-filter="ProductModulList" style="width:40px;">
|
<i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></i>
|
</button>
|
</div>
|
</div>
|
<div class="layui-inline">
|
<label class="layui-form-label">计划维修工时</label>
|
<div class="layui-input-inline">
|
<input type="text" name="HPlanTimes" id="HPlanTimes" class="layui-input" value="0">
|
</div>
|
</div>
|
<div class="layui-inline">
|
<label class="layui-form-label">实际维修工时</label>
|
<div class="layui-input-inline">
|
<input type="text" name="HTimes" id="HTimes" class="layui-input" value="0">
|
</div>
|
</div>
|
</div>
|
<div class="layui-form-item">
|
<div class="layui-inline">
|
<label class="layui-form-label">时间单位</label>
|
<div class="layui-input-inline">
|
<select name="HCycleUnit" lay-filter="aihao" id="HCycleUnit">
|
<option value="小时">小时</option>
|
<option value="天">天</option>
|
</select>
|
</div>
|
</div>
|
<div class="layui-inline">
|
<label class="layui-form-label">维修内容</label>
|
<div class="layui-input-inline">
|
<textarea placeholder="请输入维修内容" class="layui-textarea" name="HRepairContent" id="HRepairContent"></textarea>
|
</div>
|
</div>
|
<div class="layui-inline">
|
<label class="layui-form-label">维修要求</label>
|
<div class="layui-input-inline">
|
<textarea placeholder="请输入维修要求" class="layui-textarea" name="HExplanation" id="HExplanation"></textarea>
|
</div>
|
</div>
|
<div class="layui-inline">
|
<label class="layui-form-label">备注</label>
|
<div class="layui-input-inline">
|
<textarea placeholder="请输入维备注" class="layui-textarea" name="HRemark" id="HRemark"></textarea>
|
</div>
|
</div>
|
</div>
|
</div>
|
</div>
|
</div>
|
</div>
|
|
<table class="layui-hide" id="mainTable" lay-filter="mainTable"></table>
|
<script type="text/html" id="toolbarDemo">
|
<div class="layui-btn-container">
|
|
<button type="button" class="layui-btn layui-btn-sm" lay-event="btn-AddLine"><i class="layui-icon layui-icon-form"></i>增加一行</button>
|
<button type="button" class="layui-btn layui-btn-sm" lay-event="btn-CopyLine"><i class="layui-icon layui-icon-form"></i>复制一行</button>
|
|
</div>
|
</script>
|
<script type="text/html" id="xuhao">
|
{{d.LAY_TABLE_INDEX+1}}
|
</script>
|
</form>
|
</div>
|
</div>
|
</div>
|
</div>
|
<script type="text/html" id="barDemo">
|
<!--<a class="layui-btn layui-btn-xs" lay-event="edit">编辑</a>-->
|
<a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">删除</a>
|
</script>
|
<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>//获取参数
|
function getUrlVars() {
|
var vars = [], hash;
|
var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&');
|
for (var i = 0; i < hashes.length; i++) {
|
hash = hashes[i].split('=');
|
vars.push(hash[0]);
|
vars[hash[0]] = hash[1];
|
}
|
return vars;
|
}
|
|
|
|
var params = getUrlVars();
|
var hID = params[params[0]];//编辑查看
|
|
|
layui.config({
|
base: '../../layuiadmin/' //静态资源所在路径
|
}).extend({
|
index: 'lib/index' //主入口模块
|
}).use(['index', 'form', 'laydate', 'table', 'element'], function () {
|
var $ = layui.$
|
, admin = layui.admin
|
, layer = layui.layer
|
, table = layui.table
|
, form = layui.form
|
, laydate = layui.laydate
|
, element = layui.element;
|
|
//常规用法
|
laydate.render({
|
elem: '#HDate'
|
|
});
|
laydate.render({
|
elem: '#HRepairBeginDate'
|
});
|
laydate.render({
|
elem: '#HRepairEndDate'
|
});
|
//判断是否登录 未登录则跳到登录页
|
//if (sessionStorage.login != "login") {
|
// layer.confirm("登录失效,请重新登录!", {
|
// icon: 4, skin: 'layui-layer-lan', title: "温馨提示", closeBtn: 0, btn: ['重新登录']
|
// }, function () { window.location.href = "../../user/login.html"; });
|
//}
|
var tableReload = table.reload;
|
var option = {
|
elem: '#mainTable'
|
, toolbar: '#toolbarDemo'
|
, height: 500
|
//,url: '/demo/table/user/' //数据接口
|
, page: true //开启分页
|
, cols: [[ //表头
|
{ type: 'checkbox', fixed: 'left' }
|
, { templet: '#xuhao', title: '序号', sort: true, fixed: 'left', event: "qwe" }
|
, { field: 'HManagerID1', title: '负责人代码', edit: 'text' }
|
, { field: 'HManagerName', title: '负责人', edit: 'text' }
|
, { field: 'HRepairID1', title: '维修项目代码', edit: 'text', event: "" }
|
, { field: 'HRepairName', title: '维修项目', edit: 'text', event: "" }
|
, { field: 'HRepairExplanation', title: '维修要求', edit: 'text' }
|
, { field: 'HRemark', title: '备注', event: "", edit: 'text' }
|
, { fixed: 'right', title: '操作', toolbar: '#barDemo', width: 150 }
|
]]
|
, limit: 500 //每页默认显示的数量
|
};
|
//判断是否新增
|
if (hID == null || hID == 0) {
|
//初始加载表格{ "ID": 0, "HWasterReasonName": " ","HBadReasonID":0,"HEmpName": " ", "HSQProcName": " ","HProcID":0, "HZRProcName": " ", "HMRBChecker": " ", "HRemark": " ", "HPSProcName": " ", "HCloseMan": " " }
|
option.data = [{ "HManagerID1": 0, "HManagerName": " ","HRepairID1": 0, "HRepairName": " ", "HRepairExplanation": " ", "HRemark": " " }];
|
table.render(option);
|
}
|
else {
|
$("#HInterID").val(hID);//修改时主表ID
|
//编辑加载数据
|
$.ajax({
|
url: GetWEBURL() + 'Sb_EqpRepairWorkBill/Sb_EqpRepairWorkBillListProjectDetai',
|
type: "GET",
|
data: { "sqlWhere": "and hmainid=" + hID },
|
success: function (result) {
|
console.log(result);
|
//console.log('gouba' + result);
|
if (result.count == 1) {
|
option.data = result.data;
|
table.render(option);
|
|
} else {
|
layer.alert(result.code + result.Message, { icon: 5 });
|
}
|
}, error: function () {
|
layer.close(index0);
|
layer.alert("接口请求失败!", { icon: 5 });
|
}
|
});
|
|
}
|
|
|
//头工具栏事件
|
var rowid = 0;
|
var rows = 0;
|
table.on('toolbar(mainTable)', function (obj) {
|
var checkStatus = table.checkStatus('mainTable')
|
, data = checkStatus.data;;
|
var AddRow = table.cache['mainTable'];
|
var NewRow = { "HManagerID1": 0, "HManagerName": " ", "HRepairID1": 0, "HRepairName": " ", "HRepairExplanation": " ", "HRemark": " " };
|
switch (obj.event) {
|
case 'btn-AddLine':
|
//table.cache["mainTable"].push(AddRow[rows]);
|
table.cache["mainTable"].push(NewRow);
|
option.data = table.cache["mainTable"];
|
table.render(option);
|
rows++;
|
layer.msg('增加一行按钮!')
|
break;
|
case 'btn-CopyLine':
|
var copydata = JSON.stringify(data);
|
if (data.length <= 0) {
|
layer.alert("请选择需要复制的一行!");
|
}
|
else if (data.length > 1) {
|
layer.alert("只能选择复制一行!");
|
}
|
else {
|
var copydata2 = copydata.substring(1, copydata.length);//去除首行字符'['
|
var copyrow = copydata2.substring(0, copydata2.length - 1);//去除末尾字符']'
|
table.cache["mainTable"].push(JSON.parse(copyrow));//将复制的行强转成json追加到表格上
|
option.data = table.cache["mainTable"];//将数据绑定到data上
|
table.render(option);//将数据渲染到表格上
|
//layer.alert(copyrow);
|
}
|
break;
|
}
|
});
|
//行内事件
|
table.on('tool(mainTable)', function (obj) {
|
var data = obj.data;
|
var rowIndex = $(obj.tr).attr("data-index");
|
if (obj.event === 'del') {
|
layer.confirm('真的删除行么', function (index) {
|
console.log("索引为:" + rowIndex);
|
if (rowIndex === '0') {
|
layer.msg('首行无法删除!!!');
|
} else {
|
//obj.del();
|
//layer.close(index);
|
var oldData = table.cache["mainTable"];
|
oldData.splice(obj.tr.data('index'), 1);
|
table.reload('mainTable', { data: oldData });
|
layer.close(index);
|
}
|
});
|
}
|
if (obj.event === 'ReasonNameEvent') {
|
var _obj = obj;
|
switch (rowIndex) {
|
case "0":
|
//弹出框选择不良原因
|
layer.open({
|
type: 2
|
, area: ['80%', '80%']
|
, title: '不良原因列表'
|
, shade: 0.6 //遮罩透明度
|
, maxmin: true //允许全屏最小化
|
, anim: 0 //0-6的动画形式,-1不开启
|
, content: ['../../../views/Baseset/基础资料/Gy_BadReasonList.html', 'yes']
|
, resize: false
|
, end: function () {
|
_obj.update({
|
HWasterReasonName: HReasonName
|
, HBadReasonID: ReasonID
|
});
|
}
|
})
|
console.log("字段赋值" + data.HWasterReasonName);
|
console.log("行号:" + rowIndex);
|
break;
|
case "1":
|
//弹出框选择不良原因
|
layer.open({
|
type: 2
|
, area: ['80%', '80%']
|
, title: '不良原因列表'
|
, shade: 0.6 //遮罩透明度
|
, maxmin: true //允许全屏最小化
|
, anim: 0 //0-6的动画形式,-1不开启
|
, content: ['../../../views/Baseset/基础资料/Gy_BadReasonList.html', 'yes']
|
, resize: false
|
, end: function () {
|
_obj.update({
|
HWasterReasonName: HReasonName
|
, HBadReasonID: ReasonID
|
});
|
}
|
})
|
console.log("字段赋值" + data.HWasterReasonName);
|
console.log("行号:" + rowIndex);
|
break;
|
case "2":
|
//弹出框选择不良原因
|
layer.open({
|
type: 2
|
, area: ['80%', '80%']
|
, title: '不良原因列表'
|
, shade: 0.6 //遮罩透明度
|
, maxmin: true //允许全屏最小化
|
, anim: 0 //0-6的动画形式,-1不开启
|
, content: ['../../../views/Baseset/基础资料/Gy_BadReasonList.html', 'yes']
|
, resize: false
|
, end: function () {
|
_obj.update({
|
HWasterReasonName: HReasonName
|
, HBadReasonID: ReasonID
|
});
|
}
|
})
|
console.log("字段赋值" + data.HWasterReasonName);
|
console.log("行号:" + rowIndex);
|
break;
|
case "3":
|
//弹出框选择不良原因
|
layer.open({
|
type: 2
|
, area: ['80%', '80%']
|
, title: '不良原因列表'
|
, shade: 0.6 //遮罩透明度
|
, maxmin: true //允许全屏最小化
|
, anim: 0 //0-6的动画形式,-1不开启
|
, content: ['../../../views/Baseset/基础资料/Gy_BadReasonList.html', 'yes']
|
, resize: false
|
, end: function () {
|
_obj.update({
|
HWasterReasonName: HReasonName
|
, HBadReasonID: ReasonID
|
});
|
}
|
})
|
console.log("字段赋值" + data.HWasterReasonName);
|
console.log("行号:" + rowIndex);
|
break;
|
case "4":
|
//弹出框选择不良原因
|
layer.open({
|
type: 2
|
, area: ['80%', '80%']
|
, title: '不良原因列表'
|
, shade: 0.6 //遮罩透明度
|
, maxmin: true //允许全屏最小化
|
, anim: 0 //0-6的动画形式,-1不开启
|
, content: ['../../../views/Baseset/基础资料/Gy_BadReasonList.html', 'yes']
|
, resize: false
|
, end: function () {
|
_obj.update({
|
HWasterReasonName: HReasonName
|
, HBadReasonID: ReasonID
|
});
|
}
|
})
|
console.log("字段赋值" + data.HWasterReasonName);
|
console.log("行号:" + rowIndex);
|
break;
|
case "5":
|
//弹出框选择不良原因
|
layer.open({
|
type: 2
|
, area: ['80%', '80%']
|
, title: '不良原因列表'
|
, shade: 0.6 //遮罩透明度
|
, maxmin: true //允许全屏最小化
|
, anim: 0 //0-6的动画形式,-1不开启
|
, content: ['../../../views/Baseset/基础资料/Gy_BadReasonList.html', 'yes']
|
, resize: false
|
, end: function () {
|
_obj.update({
|
HWasterReasonName: HReasonName
|
, HBadReasonID: ReasonID
|
});
|
}
|
})
|
console.log("字段赋值" + data.HWasterReasonName);
|
console.log("行号:" + rowIndex);
|
break;
|
case "6":
|
//弹出框选择不良原因
|
layer.open({
|
type: 2
|
, area: ['80%', '80%']
|
, title: '不良原因列表'
|
, shade: 0.6 //遮罩透明度
|
, maxmin: true //允许全屏最小化
|
, anim: 0 //0-6的动画形式,-1不开启
|
, content: ['../../../views/Baseset/基础资料/Gy_BadReasonList.html', 'yes']
|
, resize: false
|
, end: function () {
|
_obj.update({
|
HWasterReasonName: HReasonName
|
, HBadReasonID: ReasonID
|
});
|
}
|
})
|
console.log("字段赋值" + data.HWasterReasonName);
|
console.log("行号:" + rowIndex);
|
break;
|
case "7":
|
//弹出框选择不良原因
|
layer.open({
|
type: 2
|
, area: ['80%', '80%']
|
, title: '不良原因列表'
|
, shade: 0.6 //遮罩透明度
|
, maxmin: true //允许全屏最小化
|
, anim: 0 //0-6的动画形式,-1不开启
|
, content: ['../../../views/Baseset/基础资料/Gy_BadReasonList.html', 'yes']
|
, resize: false
|
, end: function () {
|
_obj.update({
|
HWasterReasonName: HReasonName
|
, HBadReasonID: ReasonID
|
});
|
}
|
})
|
console.log("字段赋值" + data.HWasterReasonName);
|
console.log("行号:" + rowIndex);
|
break;
|
case "8":
|
//弹出框选择不良原因
|
layer.open({
|
type: 2
|
, area: ['80%', '80%']
|
, title: '不良原因列表'
|
, shade: 0.6 //遮罩透明度
|
, maxmin: true //允许全屏最小化
|
, anim: 0 //0-6的动画形式,-1不开启
|
, content: ['../../../views/Baseset/基础资料/Gy_BadReasonList.html', 'yes']
|
, resize: false
|
, end: function () {
|
_obj.update({
|
HWasterReasonName: HReasonName
|
, HBadReasonID: ReasonID
|
});
|
}
|
})
|
console.log("字段赋值" + data.HWasterReasonName);
|
console.log("行号:" + rowIndex);
|
break;
|
case "9":
|
//弹出框选择不良原因
|
layer.open({
|
type: 2
|
, area: ['80%', '80%']
|
, title: '不良原因列表'
|
, shade: 0.6 //遮罩透明度
|
, maxmin: true //允许全屏最小化
|
, anim: 0 //0-6的动画形式,-1不开启
|
, content: ['../../../views/Baseset/基础资料/Gy_BadReasonList.html', 'yes']
|
, resize: false
|
, end: function () {
|
_obj.update({
|
HWasterReasonName: HReasonName
|
, HBadReasonID: ReasonID
|
});
|
}
|
})
|
console.log("字段赋值" + data.HWasterReasonName);
|
console.log("行号:" + rowIndex);
|
break;
|
case "10":
|
//弹出框选择不良原因
|
layer.open({
|
type: 2
|
, area: ['80%', '80%']
|
, title: '不良原因列表'
|
, shade: 0.6 //遮罩透明度
|
, maxmin: true //允许全屏最小化
|
, anim: 0 //0-6的动画形式,-1不开启
|
, content: ['../../../views/Baseset/基础资料/Gy_BadReasonList.html', 'yes']
|
, resize: false
|
, end: function () {
|
_obj.update({
|
HWasterReasonName: HReasonName
|
, HBadReasonID: ReasonID
|
});
|
}
|
})
|
console.log("字段赋值" + data.HWasterReasonName);
|
console.log("行号:" + rowIndex);
|
break;
|
case "11":
|
//弹出框选择不良原因
|
layer.open({
|
type: 2
|
, area: ['80%', '80%']
|
, title: '不良原因列表'
|
, shade: 0.6 //遮罩透明度
|
, maxmin: true //允许全屏最小化
|
, anim: 0 //0-6的动画形式,-1不开启
|
, content: ['../../../views/Baseset/基础资料/Gy_BadReasonList.html', 'yes']
|
, resize: false
|
, end: function () {
|
_obj.update({
|
HWasterReasonName: HReasonName
|
, HBadReasonID: ReasonID
|
});
|
}
|
})
|
console.log("字段赋值" + data.HWasterReasonName);
|
console.log("行号:" + rowIndex);
|
break;
|
case "12":
|
//弹出框选择不良原因
|
layer.open({
|
type: 2
|
, area: ['80%', '80%']
|
, title: '不良原因列表'
|
, shade: 0.6 //遮罩透明度
|
, maxmin: true //允许全屏最小化
|
, anim: 0 //0-6的动画形式,-1不开启
|
, content: ['../../../views/Baseset/基础资料/Gy_BadReasonList.html', 'yes']
|
, resize: false
|
, end: function () {
|
_obj.update({
|
HWasterReasonName: HReasonName
|
, HBadReasonID: ReasonID
|
});
|
}
|
})
|
console.log("字段赋值" + data.HWasterReasonName);
|
console.log("行号:" + rowIndex);
|
break;
|
case "13":
|
//弹出框选择不良原因
|
layer.open({
|
type: 2
|
, area: ['80%', '80%']
|
, title: '不良原因列表'
|
, shade: 0.6 //遮罩透明度
|
, maxmin: true //允许全屏最小化
|
, anim: 0 //0-6的动画形式,-1不开启
|
, content: ['../../../views/Baseset/基础资料/Gy_BadReasonList.html', 'yes']
|
, resize: false
|
, end: function () {
|
_obj.update({
|
HWasterReasonName: HReasonName
|
, HBadReasonID: ReasonID
|
});
|
}
|
})
|
console.log("字段赋值" + data.HWasterReasonName);
|
console.log("行号:" + rowIndex);
|
break;
|
case "14":
|
//弹出框选择不良原因
|
layer.open({
|
type: 2
|
, area: ['80%', '80%']
|
, title: '不良原因列表'
|
, shade: 0.6 //遮罩透明度
|
, maxmin: true //允许全屏最小化
|
, anim: 0 //0-6的动画形式,-1不开启
|
, content: ['../../../views/Baseset/基础资料/Gy_BadReasonList.html', 'yes']
|
, resize: false
|
, end: function () {
|
_obj.update({
|
HWasterReasonName: HReasonName
|
, HBadReasonID: ReasonID
|
});
|
}
|
})
|
console.log("字段赋值" + data.HWasterReasonName);
|
console.log("行号:" + rowIndex);
|
break;
|
case "15":
|
//弹出框选择不良原因
|
layer.open({
|
type: 2
|
, area: ['80%', '80%']
|
, title: '不良原因列表'
|
, shade: 0.6 //遮罩透明度
|
, maxmin: true //允许全屏最小化
|
, anim: 0 //0-6的动画形式,-1不开启
|
, content: ['../../../views/Baseset/基础资料/Gy_BadReasonList.html', 'yes']
|
, resize: false
|
, end: function () {
|
_obj.update({
|
HWasterReasonName: HReasonName
|
, HBadReasonID: ReasonID
|
});
|
}
|
})
|
console.log("字段赋值" + data.HWasterReasonName);
|
console.log("行号:" + rowIndex);
|
break;
|
case "16":
|
//弹出框选择不良原因
|
layer.open({
|
type: 2
|
, area: ['80%', '80%']
|
, title: '不良原因列表'
|
, shade: 0.6 //遮罩透明度
|
, maxmin: true //允许全屏最小化
|
, anim: 0 //0-6的动画形式,-1不开启
|
, content: ['../../../views/Baseset/基础资料/Gy_BadReasonList.html', 'yes']
|
, resize: false
|
, end: function () {
|
_obj.update({
|
HWasterReasonName: HReasonName
|
, HBadReasonID: ReasonID
|
});
|
}
|
})
|
console.log("字段赋值" + data.HWasterReasonName);
|
console.log("行号:" + rowIndex);
|
break;
|
|
}
|
}
|
else if (obj.event === 'EmpNameEvent') {
|
var _obj = obj;
|
switch (rowIndex) {
|
case "0":
|
//弹出框选择责任人
|
layer.open({
|
type: 2
|
, area: ['80%', '80%']
|
, title: '职员列表'
|
, shade: 0.6 //遮罩透明度
|
, maxmin: true //允许全屏最小化
|
, anim: 0 //0-6的动画形式,-1不开启
|
, content: ['../../../views/Baseset/基础资料/Gy_EmployeeList.html?Type=HKeeper', 'yes']
|
, resize: false
|
, end: function () {
|
_obj.update({
|
HEmpName: EmpName
|
});
|
}
|
})
|
console.log("字段赋值" + data.HEmpName);
|
console.log("行号:" + rowIndex);
|
break;
|
case "1":
|
//弹出框选择责任人
|
layer.open({
|
type: 2
|
, area: ['80%', '80%']
|
, title: '职员列表'
|
, shade: 0.6 //遮罩透明度
|
, maxmin: true //允许全屏最小化
|
, anim: 0 //0-6的动画形式,-1不开启
|
, content: ['../../../views/Baseset/基础资料/Gy_EmployeeList.html?Type=HKeeper', 'yes']
|
, resize: false
|
, end: function () {
|
_obj.update({
|
HEmpName: EmpName
|
});
|
}
|
})
|
console.log("字段赋值" + data.HEmpName);
|
console.log("行号:" + rowIndex);
|
break;
|
case "2":
|
//弹出框选择责任人
|
layer.open({
|
type: 2
|
, area: ['80%', '80%']
|
, title: '职员列表'
|
, shade: 0.6 //遮罩透明度
|
, maxmin: true //允许全屏最小化
|
, anim: 0 //0-6的动画形式,-1不开启
|
, content: ['../../../views/Baseset/基础资料/Gy_EmployeeList.html?Type=HKeeper', 'yes']
|
, resize: false
|
, end: function () {
|
_obj.update({
|
HEmpName: EmpName
|
});
|
}
|
})
|
console.log("字段赋值" + data.HEmpName);
|
console.log("行号:" + rowIndex);
|
break;
|
case "3":
|
//弹出框选择责任人
|
layer.open({
|
type: 2
|
, area: ['80%', '80%']
|
, title: '职员列表'
|
, shade: 0.6 //遮罩透明度
|
, maxmin: true //允许全屏最小化
|
, anim: 0 //0-6的动画形式,-1不开启
|
, content: ['../../../views/Baseset/基础资料/Gy_EmployeeList.html?Type=HKeeper', 'yes']
|
, resize: false
|
, end: function () {
|
_obj.update({
|
HEmpName: EmpName
|
});
|
}
|
})
|
console.log("字段赋值" + data.HEmpName);
|
console.log("行号:" + rowIndex);
|
break;
|
case "4":
|
//弹出框选择责任人
|
layer.open({
|
type: 2
|
, area: ['80%', '80%']
|
, title: '职员列表'
|
, shade: 0.6 //遮罩透明度
|
, maxmin: true //允许全屏最小化
|
, anim: 0 //0-6的动画形式,-1不开启
|
, content: ['../../../views/Baseset/基础资料/Gy_EmployeeList.html?Type=HKeeper', 'yes']
|
, resize: false
|
, end: function () {
|
_obj.update({
|
HEmpName: EmpName
|
});
|
}
|
})
|
console.log("字段赋值" + data.HEmpName);
|
console.log("行号:" + rowIndex);
|
break;
|
case "5":
|
//弹出框选择责任人
|
layer.open({
|
type: 2
|
, area: ['80%', '80%']
|
, title: '职员列表'
|
, shade: 0.6 //遮罩透明度
|
, maxmin: true //允许全屏最小化
|
, anim: 0 //0-6的动画形式,-1不开启
|
, content: ['../../../views/Baseset/基础资料/Gy_EmployeeList.html?Type=HKeeper', 'yes']
|
, resize: false
|
, end: function () {
|
_obj.update({
|
HEmpName: EmpName
|
});
|
}
|
})
|
console.log("字段赋值" + data.HEmpName);
|
console.log("行号:" + rowIndex);
|
break;
|
case "6":
|
//弹出框选择责任人
|
layer.open({
|
type: 2
|
, area: ['80%', '80%']
|
, title: '职员列表'
|
, shade: 0.6 //遮罩透明度
|
, maxmin: true //允许全屏最小化
|
, anim: 0 //0-6的动画形式,-1不开启
|
, content: ['../../../views/Baseset/基础资料/Gy_EmployeeList.html?Type=HKeeper', 'yes']
|
, resize: false
|
, end: function () {
|
_obj.update({
|
HEmpName: EmpName
|
});
|
}
|
})
|
console.log("字段赋值" + data.HEmpName);
|
console.log("行号:" + rowIndex);
|
break;
|
case "7":
|
//弹出框选择责任人
|
layer.open({
|
type: 2
|
, area: ['80%', '80%']
|
, title: '职员列表'
|
, shade: 0.6 //遮罩透明度
|
, maxmin: true //允许全屏最小化
|
, anim: 0 //0-6的动画形式,-1不开启
|
, content: ['../../../views/Baseset/基础资料/Gy_EmployeeList.html?Type=HKeeper', 'yes']
|
, resize: false
|
, end: function () {
|
_obj.update({
|
HEmpName: EmpName
|
});
|
}
|
})
|
console.log("字段赋值" + data.HEmpName);
|
console.log("行号:" + rowIndex);
|
break;
|
case "8":
|
//弹出框选择责任人
|
layer.open({
|
type: 2
|
, area: ['80%', '80%']
|
, title: '职员列表'
|
, shade: 0.6 //遮罩透明度
|
, maxmin: true //允许全屏最小化
|
, anim: 0 //0-6的动画形式,-1不开启
|
, content: ['../../../views/Baseset/基础资料/Gy_EmployeeList.html?Type=HKeeper', 'yes']
|
, resize: false
|
, end: function () {
|
_obj.update({
|
HEmpName: EmpName
|
});
|
}
|
})
|
console.log("字段赋值" + data.HEmpName);
|
console.log("行号:" + rowIndex);
|
break;
|
case "9":
|
//弹出框选择责任人
|
layer.open({
|
type: 2
|
, area: ['80%', '80%']
|
, title: '职员列表'
|
, shade: 0.6 //遮罩透明度
|
, maxmin: true //允许全屏最小化
|
, anim: 0 //0-6的动画形式,-1不开启
|
, content: ['../../../views/Baseset/基础资料/Gy_EmployeeList.html?Type=HKeeper', 'yes']
|
, resize: false
|
, end: function () {
|
_obj.update({
|
HEmpName: EmpName
|
});
|
}
|
})
|
console.log("字段赋值" + data.HEmpName);
|
console.log("行号:" + rowIndex);
|
break;
|
case "10":
|
//弹出框选择责任人
|
layer.open({
|
type: 2
|
, area: ['80%', '80%']
|
, title: '职员列表'
|
, shade: 0.6 //遮罩透明度
|
, maxmin: true //允许全屏最小化
|
, anim: 0 //0-6的动画形式,-1不开启
|
, content: ['../../../views/Baseset/基础资料/Gy_EmployeeList.html?Type=HKeeper', 'yes']
|
, resize: false
|
, end: function () {
|
_obj.update({
|
HEmpName: EmpName
|
});
|
}
|
})
|
console.log("字段赋值" + data.HEmpName);
|
console.log("行号:" + rowIndex);
|
break;
|
case "11":
|
//弹出框选择责任人
|
layer.open({
|
type: 2
|
, area: ['80%', '80%']
|
, title: '职员列表'
|
, shade: 0.6 //遮罩透明度
|
, maxmin: true //允许全屏最小化
|
, anim: 0 //0-6的动画形式,-1不开启
|
, content: ['../../../views/Baseset/基础资料/Gy_EmployeeList.html?Type=HKeeper', 'yes']
|
, resize: false
|
, end: function () {
|
_obj.update({
|
HEmpName: EmpName
|
});
|
}
|
})
|
console.log("字段赋值" + data.HEmpName);
|
console.log("行号:" + rowIndex);
|
break;
|
case "12":
|
//弹出框选择责任人
|
layer.open({
|
type: 2
|
, area: ['80%', '80%']
|
, title: '职员列表'
|
, shade: 0.6 //遮罩透明度
|
, maxmin: true //允许全屏最小化
|
, anim: 0 //0-6的动画形式,-1不开启
|
, content: ['../../../views/Baseset/基础资料/Gy_EmployeeList.html?Type=HKeeper', 'yes']
|
, resize: false
|
, end: function () {
|
_obj.update({
|
HEmpName: EmpName
|
});
|
}
|
})
|
console.log("字段赋值" + data.HEmpName);
|
console.log("行号:" + rowIndex);
|
break;
|
case "13":
|
//弹出框选择责任人
|
layer.open({
|
type: 2
|
, area: ['80%', '80%']
|
, title: '职员列表'
|
, shade: 0.6 //遮罩透明度
|
, maxmin: true //允许全屏最小化
|
, anim: 0 //0-6的动画形式,-1不开启
|
, content: ['../../../views/Baseset/基础资料/Gy_EmployeeList.html?Type=HKeeper', 'yes']
|
, resize: false
|
, end: function () {
|
_obj.update({
|
HEmpName: EmpName
|
});
|
}
|
})
|
console.log("字段赋值" + data.HEmpName);
|
console.log("行号:" + rowIndex);
|
break;
|
case "14":
|
//弹出框选择责任人
|
layer.open({
|
type: 2
|
, area: ['80%', '80%']
|
, title: '职员列表'
|
, shade: 0.6 //遮罩透明度
|
, maxmin: true //允许全屏最小化
|
, anim: 0 //0-6的动画形式,-1不开启
|
, content: ['../../../views/Baseset/基础资料/Gy_EmployeeList.html?Type=HKeeper', 'yes']
|
, resize: false
|
, end: function () {
|
_obj.update({
|
HEmpName: EmpName
|
});
|
}
|
})
|
console.log("字段赋值" + data.HEmpName);
|
console.log("行号:" + rowIndex);
|
break;
|
case "15":
|
//弹出框选择责任人
|
layer.open({
|
type: 2
|
, area: ['80%', '80%']
|
, title: '职员列表'
|
, shade: 0.6 //遮罩透明度
|
, maxmin: true //允许全屏最小化
|
, anim: 0 //0-6的动画形式,-1不开启
|
, content: ['../../../views/Baseset/基础资料/Gy_EmployeeList.html?Type=HKeeper', 'yes']
|
, resize: false
|
, end: function () {
|
_obj.update({
|
HEmpName: EmpName
|
});
|
}
|
})
|
console.log("字段赋值" + data.HEmpName);
|
console.log("行号:" + rowIndex);
|
break;
|
case "16":
|
//弹出框选择责任人
|
layer.open({
|
type: 2
|
, area: ['80%', '80%']
|
, title: '职员列表'
|
, shade: 0.6 //遮罩透明度
|
, maxmin: true //允许全屏最小化
|
, anim: 0 //0-6的动画形式,-1不开启
|
, content: ['../../../views/Baseset/基础资料/Gy_EmployeeList.html?Type=HKeeper', 'yes']
|
, resize: false
|
, end: function () {
|
_obj.update({
|
HEmpName: EmpName
|
});
|
}
|
})
|
console.log("字段赋值" + data.HEmpName);
|
console.log("行号:" + rowIndex);
|
break;
|
|
}
|
}
|
else if (obj.event === 'SQProcNameEvent') {
|
var _obj = obj;
|
switch (rowIndex) {
|
case "0":
|
//弹出框选择申请工序
|
layer.open({
|
type: 2
|
, area: ['80%', '80%']
|
, title: '申请工序列表'
|
, shade: 0.6 //遮罩透明度
|
, maxmin: true //允许全屏最小化
|
, anim: 0 //0-6的动画形式,-1不开启
|
, content: ['../../../views/Baseset/基础资料/Gy_ProcList.html', 'yes']
|
, resize: false
|
, end: function () {
|
_obj.update({
|
HSQProcName: SQProcName
|
, HProcID: ProcID
|
});
|
}
|
})
|
console.log("字段赋值" + data.HSQProcName);
|
console.log("行号:" + rowIndex);
|
break;
|
case "1":
|
//弹出框选择申请工序
|
layer.open({
|
type: 2
|
, area: ['80%', '80%']
|
, title: '申请工序列表'
|
, shade: 0.6 //遮罩透明度
|
, maxmin: true //允许全屏最小化
|
, anim: 0 //0-6的动画形式,-1不开启
|
, content: ['../../../views/Baseset/基础资料/Gy_ProcList.html', 'yes']
|
, resize: false
|
, end: function () {
|
_obj.update({
|
HSQProcName: SQProcName
|
, HProcID: ProcID
|
});
|
}
|
})
|
console.log("字段赋值" + data.HSQProcName);
|
console.log("行号:" + rowIndex);
|
break;
|
case "2":
|
//弹出框选择申请工序
|
layer.open({
|
type: 2
|
, area: ['80%', '80%']
|
, title: '申请工序列表'
|
, shade: 0.6 //遮罩透明度
|
, maxmin: true //允许全屏最小化
|
, anim: 0 //0-6的动画形式,-1不开启
|
, content: ['../../../views/Baseset/基础资料/Gy_ProcList.html', 'yes']
|
, resize: false
|
, end: function () {
|
_obj.update({
|
HSQProcName: SQProcName
|
, HProcID: ProcID
|
});
|
}
|
})
|
console.log("字段赋值" + data.HSQProcName);
|
console.log("行号:" + rowIndex);
|
break;
|
case "3":
|
//弹出框选择申请工序
|
layer.open({
|
type: 2
|
, area: ['80%', '80%']
|
, title: '申请工序列表'
|
, shade: 0.6 //遮罩透明度
|
, maxmin: true //允许全屏最小化
|
, anim: 0 //0-6的动画形式,-1不开启
|
, content: ['../../../views/Baseset/基础资料/Gy_ProcList.html', 'yes']
|
, resize: false
|
, end: function () {
|
_obj.update({
|
HSQProcName: SQProcName
|
, HProcID: ProcID
|
});
|
}
|
})
|
console.log("字段赋值" + data.HSQProcName);
|
console.log("行号:" + rowIndex);
|
break;
|
case "4":
|
//弹出框选择申请工序
|
layer.open({
|
type: 2
|
, area: ['80%', '80%']
|
, title: '申请工序列表'
|
, shade: 0.6 //遮罩透明度
|
, maxmin: true //允许全屏最小化
|
, anim: 0 //0-6的动画形式,-1不开启
|
, content: ['../../../views/Baseset/基础资料/Gy_ProcList.html', 'yes']
|
, resize: false
|
, end: function () {
|
_obj.update({
|
HSQProcName: SQProcName
|
, HProcID: ProcID
|
});
|
}
|
})
|
console.log("字段赋值" + data.HSQProcName);
|
console.log("行号:" + rowIndex);
|
break;
|
case "5":
|
//弹出框选择申请工序
|
layer.open({
|
type: 2
|
, area: ['80%', '80%']
|
, title: '申请工序列表'
|
, shade: 0.6 //遮罩透明度
|
, maxmin: true //允许全屏最小化
|
, anim: 0 //0-6的动画形式,-1不开启
|
, content: ['../../../views/Baseset/基础资料/Gy_ProcList.html', 'yes']
|
, resize: false
|
, end: function () {
|
_obj.update({
|
HSQProcName: SQProcName
|
, HProcID: ProcID
|
});
|
}
|
})
|
console.log("字段赋值" + data.HSQProcName);
|
console.log("行号:" + rowIndex);
|
break;
|
case "6":
|
//弹出框选择申请工序
|
layer.open({
|
type: 2
|
, area: ['80%', '80%']
|
, title: '申请工序列表'
|
, shade: 0.6 //遮罩透明度
|
, maxmin: true //允许全屏最小化
|
, anim: 0 //0-6的动画形式,-1不开启
|
, content: ['../../../views/Baseset/基础资料/Gy_ProcList.html', 'yes']
|
, resize: false
|
, end: function () {
|
_obj.update({
|
HSQProcName: SQProcName
|
, HProcID: ProcID
|
});
|
}
|
})
|
console.log("字段赋值" + data.HSQProcName);
|
console.log("行号:" + rowIndex);
|
break;
|
case "7":
|
//弹出框选择申请工序
|
layer.open({
|
type: 2
|
, area: ['80%', '80%']
|
, title: '申请工序列表'
|
, shade: 0.6 //遮罩透明度
|
, maxmin: true //允许全屏最小化
|
, anim: 0 //0-6的动画形式,-1不开启
|
, content: ['../../../views/Baseset/基础资料/Gy_ProcList.html', 'yes']
|
, resize: false
|
, end: function () {
|
_obj.update({
|
HSQProcName: SQProcName
|
, HProcID: ProcID
|
});
|
}
|
})
|
console.log("字段赋值" + data.HSQProcName);
|
console.log("行号:" + rowIndex);
|
break;
|
case "8":
|
//弹出框选择申请工序
|
layer.open({
|
type: 2
|
, area: ['80%', '80%']
|
, title: '申请工序列表'
|
, shade: 0.6 //遮罩透明度
|
, maxmin: true //允许全屏最小化
|
, anim: 0 //0-6的动画形式,-1不开启
|
, content: ['../../../views/Baseset/基础资料/Gy_ProcList.html', 'yes']
|
, resize: false
|
, end: function () {
|
_obj.update({
|
HSQProcName: SQProcName
|
, HProcID: ProcID
|
});
|
}
|
})
|
console.log("字段赋值" + data.HSQProcName);
|
console.log("行号:" + rowIndex);
|
break;
|
case "9":
|
//弹出框选择申请工序
|
layer.open({
|
type: 2
|
, area: ['80%', '80%']
|
, title: '申请工序列表'
|
, shade: 0.6 //遮罩透明度
|
, maxmin: true //允许全屏最小化
|
, anim: 0 //0-6的动画形式,-1不开启
|
, content: ['../../../views/Baseset/基础资料/Gy_ProcList.html', 'yes']
|
, resize: false
|
, end: function () {
|
_obj.update({
|
HSQProcName: SQProcName
|
, HProcID: ProcID
|
});
|
}
|
})
|
console.log("字段赋值" + data.HSQProcName);
|
console.log("行号:" + rowIndex);
|
break;
|
case "10":
|
//弹出框选择申请工序
|
layer.open({
|
type: 2
|
, area: ['80%', '80%']
|
, title: '申请工序列表'
|
, shade: 0.6 //遮罩透明度
|
, maxmin: true //允许全屏最小化
|
, anim: 0 //0-6的动画形式,-1不开启
|
, content: ['../../../views/Baseset/基础资料/Gy_ProcList.html', 'yes']
|
, resize: false
|
, end: function () {
|
_obj.update({
|
HSQProcName: SQProcName
|
, HProcID: ProcID
|
});
|
}
|
})
|
console.log("字段赋值" + data.HSQProcName);
|
console.log("行号:" + rowIndex);
|
break;
|
case "11":
|
//弹出框选择申请工序
|
layer.open({
|
type: 2
|
, area: ['80%', '80%']
|
, title: '申请工序列表'
|
, shade: 0.6 //遮罩透明度
|
, maxmin: true //允许全屏最小化
|
, anim: 0 //0-6的动画形式,-1不开启
|
, content: ['../../../views/Baseset/基础资料/Gy_ProcList.html', 'yes']
|
, resize: false
|
, end: function () {
|
_obj.update({
|
HSQProcName: SQProcName
|
, HProcID: ProcID
|
});
|
}
|
})
|
console.log("字段赋值" + data.HSQProcName);
|
console.log("行号:" + rowIndex);
|
break;
|
case "12":
|
//弹出框选择申请工序
|
layer.open({
|
type: 2
|
, area: ['80%', '80%']
|
, title: '申请工序列表'
|
, shade: 0.6 //遮罩透明度
|
, maxmin: true //允许全屏最小化
|
, anim: 0 //0-6的动画形式,-1不开启
|
, content: ['../../../views/Baseset/基础资料/Gy_ProcList.html', 'yes']
|
, resize: false
|
, end: function () {
|
_obj.update({
|
HSQProcName: SQProcName
|
, HProcID: ProcID
|
});
|
}
|
})
|
console.log("字段赋值" + data.HSQProcName);
|
console.log("行号:" + rowIndex);
|
break;
|
case "13":
|
//弹出框选择申请工序
|
layer.open({
|
type: 2
|
, area: ['80%', '80%']
|
, title: '申请工序列表'
|
, shade: 0.6 //遮罩透明度
|
, maxmin: true //允许全屏最小化
|
, anim: 0 //0-6的动画形式,-1不开启
|
, content: ['../../../views/Baseset/基础资料/Gy_ProcList.html', 'yes']
|
, resize: false
|
, end: function () {
|
_obj.update({
|
HSQProcName: SQProcName
|
, HProcID: ProcID
|
});
|
}
|
})
|
console.log("字段赋值" + data.HSQProcName);
|
console.log("行号:" + rowIndex);
|
break;
|
case "14":
|
//弹出框选择申请工序
|
layer.open({
|
type: 2
|
, area: ['80%', '80%']
|
, title: '申请工序列表'
|
, shade: 0.6 //遮罩透明度
|
, maxmin: true //允许全屏最小化
|
, anim: 0 //0-6的动画形式,-1不开启
|
, content: ['../../../views/Baseset/基础资料/Gy_ProcList.html', 'yes']
|
, resize: false
|
, end: function () {
|
_obj.update({
|
HSQProcName: SQProcName
|
, HProcID: ProcID
|
});
|
}
|
})
|
console.log("字段赋值" + data.HSQProcName);
|
console.log("行号:" + rowIndex);
|
break;
|
case "15":
|
//弹出框选择申请工序
|
layer.open({
|
type: 2
|
, area: ['80%', '80%']
|
, title: '申请工序列表'
|
, shade: 0.6 //遮罩透明度
|
, maxmin: true //允许全屏最小化
|
, anim: 0 //0-6的动画形式,-1不开启
|
, content: ['../../../views/Baseset/基础资料/Gy_ProcList.html', 'yes']
|
, resize: false
|
, end: function () {
|
_obj.update({
|
HSQProcName: SQProcName
|
, HProcID: ProcID
|
});
|
}
|
})
|
console.log("字段赋值" + data.HSQProcName);
|
console.log("行号:" + rowIndex);
|
break;
|
case "16":
|
//弹出框选择申请工序
|
layer.open({
|
type: 2
|
, area: ['80%', '80%']
|
, title: '申请工序列表'
|
, shade: 0.6 //遮罩透明度
|
, maxmin: true //允许全屏最小化
|
, anim: 0 //0-6的动画形式,-1不开启
|
, content: ['../../../views/Baseset/基础资料/Gy_ProcList.html', 'yes']
|
, resize: false
|
, end: function () {
|
_obj.update({
|
HSQProcName: SQProcName
|
, HProcID: ProcID
|
});
|
}
|
})
|
console.log("字段赋值" + data.HSQProcName);
|
console.log("行号:" + rowIndex);
|
break;
|
|
}
|
}
|
else if (obj.event === 'ZRProcNameEvent') {
|
var _obj = obj;
|
switch (rowIndex) {
|
case "0":
|
//弹出框选择责任工序
|
layer.open({
|
type: 2
|
, area: ['80%', '80%']
|
, title: '责任工序列表'
|
, shade: 0.6 //遮罩透明度
|
, maxmin: true //允许全屏最小化
|
, anim: 0 //0-6的动画形式,-1不开启
|
, content: ['../../../views/Baseset/基础资料/Gy_ProcList.html?Type=HZR', 'yes']
|
, resize: false
|
, end: function () {
|
_obj.update({
|
HZRProcName: ZRProcName
|
});
|
}
|
})
|
console.log("字段赋值" + data.HZRProcName);
|
console.log("行号:" + rowIndex);
|
break;
|
case "1":
|
//弹出框选择责任工序
|
layer.open({
|
type: 2
|
, area: ['80%', '80%']
|
, title: '责任工序列表'
|
, shade: 0.6 //遮罩透明度
|
, maxmin: true //允许全屏最小化
|
, anim: 0 //0-6的动画形式,-1不开启
|
, content: ['../../../views/Baseset/基础资料/Gy_ProcList.html?Type=HZR', 'yes']
|
, resize: false
|
, end: function () {
|
_obj.update({
|
HZRProcName: ZRProcName
|
});
|
}
|
})
|
console.log("字段赋值" + data.HZRProcName);
|
console.log("行号:" + rowIndex);
|
break;
|
case "2":
|
//弹出框选择责任工序
|
layer.open({
|
type: 2
|
, area: ['80%', '80%']
|
, title: '责任工序列表'
|
, shade: 0.6 //遮罩透明度
|
, maxmin: true //允许全屏最小化
|
, anim: 0 //0-6的动画形式,-1不开启
|
, content: ['../../../views/Baseset/基础资料/Gy_ProcList.html?Type=HZR', 'yes']
|
, resize: false
|
, end: function () {
|
_obj.update({
|
HZRProcName: ZRProcName
|
});
|
}
|
})
|
console.log("字段赋值" + data.HZRProcName);
|
console.log("行号:" + rowIndex);
|
break;
|
case "3":
|
//弹出框选择责任工序
|
layer.open({
|
type: 2
|
, area: ['80%', '80%']
|
, title: '责任工序列表'
|
, shade: 0.6 //遮罩透明度
|
, maxmin: true //允许全屏最小化
|
, anim: 0 //0-6的动画形式,-1不开启
|
, content: ['../../../views/Baseset/基础资料/Gy_ProcList.html?Type=HZR', 'yes']
|
, resize: false
|
, end: function () {
|
_obj.update({
|
HZRProcName: ZRProcName
|
});
|
}
|
})
|
console.log("字段赋值" + data.HZRProcName);
|
console.log("行号:" + rowIndex);
|
break;
|
case "4":
|
//弹出框选择责任工序
|
layer.open({
|
type: 2
|
, area: ['80%', '80%']
|
, title: '责任工序列表'
|
, shade: 0.6 //遮罩透明度
|
, maxmin: true //允许全屏最小化
|
, anim: 0 //0-6的动画形式,-1不开启
|
, content: ['../../../views/Baseset/基础资料/Gy_ProcList.html?Type=HZR', 'yes']
|
, resize: false
|
, end: function () {
|
_obj.update({
|
HZRProcName: ZRProcName
|
});
|
}
|
})
|
console.log("字段赋值" + data.HZRProcName);
|
console.log("行号:" + rowIndex);
|
break;
|
case "5":
|
//弹出框选择责任工序
|
layer.open({
|
type: 2
|
, area: ['80%', '80%']
|
, title: '责任工序列表'
|
, shade: 0.6 //遮罩透明度
|
, maxmin: true //允许全屏最小化
|
, anim: 0 //0-6的动画形式,-1不开启
|
, content: ['../../../views/Baseset/基础资料/Gy_ProcList.html?Type=HZR', 'yes']
|
, resize: false
|
, end: function () {
|
_obj.update({
|
HZRProcName: ZRProcName
|
});
|
}
|
})
|
console.log("字段赋值" + data.HZRProcName);
|
console.log("行号:" + rowIndex);
|
break;
|
case "6":
|
//弹出框选择责任工序
|
layer.open({
|
type: 2
|
, area: ['80%', '80%']
|
, title: '责任工序列表'
|
, shade: 0.6 //遮罩透明度
|
, maxmin: true //允许全屏最小化
|
, anim: 0 //0-6的动画形式,-1不开启
|
, content: ['../../../views/Baseset/基础资料/Gy_ProcList.html?Type=HZR', 'yes']
|
, resize: false
|
, end: function () {
|
_obj.update({
|
HZRProcName: ZRProcName
|
});
|
}
|
})
|
console.log("字段赋值" + data.HZRProcName);
|
console.log("行号:" + rowIndex);
|
break;
|
case "7":
|
//弹出框选择责任工序
|
layer.open({
|
type: 2
|
, area: ['80%', '80%']
|
, title: '责任工序列表'
|
, shade: 0.6 //遮罩透明度
|
, maxmin: true //允许全屏最小化
|
, anim: 0 //0-6的动画形式,-1不开启
|
, content: ['../../../views/Baseset/基础资料/Gy_ProcList.html?Type=HZR', 'yes']
|
, resize: false
|
, end: function () {
|
_obj.update({
|
HZRProcName: ZRProcName
|
});
|
}
|
})
|
console.log("字段赋值" + data.HZRProcName);
|
console.log("行号:" + rowIndex);
|
break;
|
case "8":
|
//弹出框选择责任工序
|
layer.open({
|
type: 2
|
, area: ['80%', '80%']
|
, title: '责任工序列表'
|
, shade: 0.6 //遮罩透明度
|
, maxmin: true //允许全屏最小化
|
, anim: 0 //0-6的动画形式,-1不开启
|
, content: ['../../../views/Baseset/基础资料/Gy_ProcList.html?Type=HZR', 'yes']
|
, resize: false
|
, end: function () {
|
_obj.update({
|
HZRProcName: ZRProcName
|
});
|
}
|
})
|
console.log("字段赋值" + data.HZRProcName);
|
console.log("行号:" + rowIndex);
|
break;
|
case "9":
|
//弹出框选择责任工序
|
layer.open({
|
type: 2
|
, area: ['80%', '80%']
|
, title: '责任工序列表'
|
, shade: 0.6 //遮罩透明度
|
, maxmin: true //允许全屏最小化
|
, anim: 0 //0-6的动画形式,-1不开启
|
, content: ['../../../views/Baseset/基础资料/Gy_ProcList.html?Type=HZR', 'yes']
|
, resize: false
|
, end: function () {
|
_obj.update({
|
HZRProcName: ZRProcName
|
});
|
}
|
})
|
console.log("字段赋值" + data.HZRProcName);
|
console.log("行号:" + rowIndex);
|
break;
|
case "10":
|
//弹出框选择责任工序
|
layer.open({
|
type: 2
|
, area: ['80%', '80%']
|
, title: '责任工序列表'
|
, shade: 0.6 //遮罩透明度
|
, maxmin: true //允许全屏最小化
|
, anim: 0 //0-6的动画形式,-1不开启
|
, content: ['../../../views/Baseset/基础资料/Gy_ProcList.html?Type=HZR', 'yes']
|
, resize: false
|
, end: function () {
|
_obj.update({
|
HZRProcName: ZRProcName
|
});
|
}
|
})
|
console.log("字段赋值" + data.HZRProcName);
|
console.log("行号:" + rowIndex);
|
break;
|
case "11":
|
//弹出框选择责任工序
|
layer.open({
|
type: 2
|
, area: ['80%', '80%']
|
, title: '责任工序列表'
|
, shade: 0.6 //遮罩透明度
|
, maxmin: true //允许全屏最小化
|
, anim: 0 //0-6的动画形式,-1不开启
|
, content: ['../../../views/Baseset/基础资料/Gy_ProcList.html?Type=HZR', 'yes']
|
, resize: false
|
, end: function () {
|
_obj.update({
|
HZRProcName: ZRProcName
|
});
|
}
|
})
|
console.log("字段赋值" + data.HZRProcName);
|
console.log("行号:" + rowIndex);
|
break;
|
case "12":
|
//弹出框选择责任工序
|
layer.open({
|
type: 2
|
, area: ['80%', '80%']
|
, title: '责任工序列表'
|
, shade: 0.6 //遮罩透明度
|
, maxmin: true //允许全屏最小化
|
, anim: 0 //0-6的动画形式,-1不开启
|
, content: ['../../../views/Baseset/基础资料/Gy_ProcList.html?Type=HZR', 'yes']
|
, resize: false
|
, end: function () {
|
_obj.update({
|
HZRProcName: ZRProcName
|
});
|
}
|
})
|
console.log("字段赋值" + data.HZRProcName);
|
console.log("行号:" + rowIndex);
|
break;
|
case "13":
|
//弹出框选择责任工序
|
layer.open({
|
type: 2
|
, area: ['80%', '80%']
|
, title: '责任工序列表'
|
, shade: 0.6 //遮罩透明度
|
, maxmin: true //允许全屏最小化
|
, anim: 0 //0-6的动画形式,-1不开启
|
, content: ['../../../views/Baseset/基础资料/Gy_ProcList.html?Type=HZR', 'yes']
|
, resize: false
|
, end: function () {
|
_obj.update({
|
HZRProcName: ZRProcName
|
});
|
}
|
})
|
console.log("字段赋值" + data.HZRProcName);
|
console.log("行号:" + rowIndex);
|
break;
|
case "14":
|
//弹出框选择责任工序
|
layer.open({
|
type: 2
|
, area: ['80%', '80%']
|
, title: '责任工序列表'
|
, shade: 0.6 //遮罩透明度
|
, maxmin: true //允许全屏最小化
|
, anim: 0 //0-6的动画形式,-1不开启
|
, content: ['../../../views/Baseset/基础资料/Gy_ProcList.html?Type=HZR', 'yes']
|
, resize: false
|
, end: function () {
|
_obj.update({
|
HZRProcName: ZRProcName
|
});
|
}
|
})
|
console.log("字段赋值" + data.HZRProcName);
|
console.log("行号:" + rowIndex);
|
break;
|
case "15":
|
//弹出框选择责任工序
|
layer.open({
|
type: 2
|
, area: ['80%', '80%']
|
, title: '责任工序列表'
|
, shade: 0.6 //遮罩透明度
|
, maxmin: true //允许全屏最小化
|
, anim: 0 //0-6的动画形式,-1不开启
|
, content: ['../../../views/Baseset/基础资料/Gy_ProcList.html?Type=HZR', 'yes']
|
, resize: false
|
, end: function () {
|
_obj.update({
|
HZRProcName: ZRProcName
|
});
|
}
|
})
|
console.log("字段赋值" + data.HZRProcName);
|
console.log("行号:" + rowIndex);
|
break;
|
case "16":
|
//弹出框选择责任工序
|
layer.open({
|
type: 2
|
, area: ['80%', '80%']
|
, title: '责任工序列表'
|
, shade: 0.6 //遮罩透明度
|
, maxmin: true //允许全屏最小化
|
, anim: 0 //0-6的动画形式,-1不开启
|
, content: ['../../../views/Baseset/基础资料/Gy_ProcList.html?Type=HZR', 'yes']
|
, resize: false
|
, end: function () {
|
_obj.update({
|
HZRProcName: ZRProcName
|
});
|
}
|
})
|
console.log("字段赋值" + data.HZRProcName);
|
console.log("行号:" + rowIndex);
|
break;
|
|
}
|
}
|
else if (obj.event === 'BadQtyEvent') {
|
var _obj = obj;
|
switch (rowIndex) {
|
case "0":
|
|
break;
|
case "1":
|
|
break;
|
case "2":
|
|
break;
|
case "3":
|
|
break;
|
case "4":
|
|
break;
|
case "5":
|
|
break;
|
case "6":
|
|
break;
|
case "7":
|
|
break;
|
case "8":
|
|
break;
|
case "9":
|
|
break;
|
case "10":
|
|
break;
|
case "11":
|
|
break;
|
case "12":
|
|
break;
|
case "13":
|
|
break;
|
case "14":
|
|
break;
|
case "15":
|
|
break;
|
case "16":
|
//$(obj.tr).find(".layui-table-edit").keyup(function () {
|
// var $input = $(this), val = $input.val();
|
// if (!val) val = "1";
|
// $input.val(val.replace(/[^\d]/g, ''));
|
//});
|
break;
|
|
}
|
}
|
else if (obj.event === 'RemarkEvent') {
|
var _obj = obj;
|
switch (rowIndex) {
|
case "0":
|
|
break;
|
case "1":
|
|
break;
|
case "2":
|
|
break;
|
case "3":
|
|
break;
|
case "4":
|
|
break;
|
case "5":
|
|
break;
|
case "6":
|
|
break;
|
case "7":
|
|
break;
|
case "8":
|
|
break;
|
case "9":
|
|
break;
|
case "10":
|
|
break;
|
case "11":
|
|
break;
|
case "12":
|
|
break;
|
case "13":
|
|
break;
|
case "14":
|
|
break;
|
case "15":
|
|
break;
|
case "16":
|
|
break;
|
|
}
|
}
|
else if (obj.event === 'PSProcNameEvent') {
|
var _obj = obj;
|
switch (rowIndex) {
|
case "0":
|
//弹出框选择不良确认人
|
layer.open({
|
type: 2
|
, area: ['80%', '80%']
|
, title: '职员列表'
|
, shade: 0.6 //遮罩透明度
|
, maxmin: true //允许全屏最小化
|
, anim: 0 //0-6的动画形式,-1不开启
|
, content: ['../../../views/Baseset/基础资料/Gy_EmployeeList.html?Type=HWorker', 'yes']
|
, resize: false
|
, end: function () {
|
_obj.update({
|
HPSProcName: QRName
|
});
|
}
|
})
|
console.log("字段赋值" + data.HPSProcName);
|
console.log("行号:" + rowIndex);
|
break;
|
case "1":
|
//弹出框选择不良确认人
|
layer.open({
|
type: 2
|
, area: ['80%', '80%']
|
, title: '职员列表'
|
, shade: 0.6 //遮罩透明度
|
, maxmin: true //允许全屏最小化
|
, anim: 0 //0-6的动画形式,-1不开启
|
, content: ['../../../views/Baseset/基础资料/Gy_EmployeeList.html?Type=HWorker', 'yes']
|
, resize: false
|
, end: function () {
|
_obj.update({
|
HPSProcName: QRName
|
});
|
}
|
})
|
console.log("字段赋值" + data.HPSProcName);
|
console.log("行号:" + rowIndex);
|
break;
|
case "2":
|
//弹出框选择不良确认人
|
layer.open({
|
type: 2
|
, area: ['80%', '80%']
|
, title: '职员列表'
|
, shade: 0.6 //遮罩透明度
|
, maxmin: true //允许全屏最小化
|
, anim: 0 //0-6的动画形式,-1不开启
|
, content: ['../../../views/Baseset/基础资料/Gy_EmployeeList.html?Type=HWorker', 'yes']
|
, resize: false
|
, end: function () {
|
_obj.update({
|
HPSProcName: QRName
|
});
|
}
|
})
|
console.log("字段赋值" + data.HPSProcName);
|
console.log("行号:" + rowIndex);
|
break;
|
case "3":
|
//弹出框选择不良确认人
|
layer.open({
|
type: 2
|
, area: ['80%', '80%']
|
, title: '职员列表'
|
, shade: 0.6 //遮罩透明度
|
, maxmin: true //允许全屏最小化
|
, anim: 0 //0-6的动画形式,-1不开启
|
, content: ['../../../views/Baseset/基础资料/Gy_EmployeeList.html?Type=HWorker', 'yes']
|
, resize: false
|
, end: function () {
|
_obj.update({
|
HPSProcName: QRName
|
});
|
}
|
})
|
console.log("字段赋值" + data.HPSProcName);
|
console.log("行号:" + rowIndex);
|
break;
|
case "4":
|
//弹出框选择不良确认人
|
layer.open({
|
type: 2
|
, area: ['80%', '80%']
|
, title: '职员列表'
|
, shade: 0.6 //遮罩透明度
|
, maxmin: true //允许全屏最小化
|
, anim: 0 //0-6的动画形式,-1不开启
|
, content: ['../../../views/Baseset/基础资料/Gy_EmployeeList.html?Type=HWorker', 'yes']
|
, resize: false
|
, end: function () {
|
_obj.update({
|
HPSProcName: QRName
|
});
|
}
|
})
|
console.log("字段赋值" + data.HPSProcName);
|
console.log("行号:" + rowIndex);
|
break;
|
case "5":
|
//弹出框选择不良确认人
|
layer.open({
|
type: 2
|
, area: ['80%', '80%']
|
, title: '职员列表'
|
, shade: 0.6 //遮罩透明度
|
, maxmin: true //允许全屏最小化
|
, anim: 0 //0-6的动画形式,-1不开启
|
, content: ['../../../views/Baseset/基础资料/Gy_EmployeeList.html?Type=HWorker', 'yes']
|
, resize: false
|
, end: function () {
|
_obj.update({
|
HPSProcName: QRName
|
});
|
}
|
})
|
console.log("字段赋值" + data.HPSProcName);
|
console.log("行号:" + rowIndex);
|
break;
|
case "6":
|
//弹出框选择不良确认人
|
layer.open({
|
type: 2
|
, area: ['80%', '80%']
|
, title: '职员列表'
|
, shade: 0.6 //遮罩透明度
|
, maxmin: true //允许全屏最小化
|
, anim: 0 //0-6的动画形式,-1不开启
|
, content: ['../../../views/Baseset/基础资料/Gy_EmployeeList.html?Type=HWorker', 'yes']
|
, resize: false
|
, end: function () {
|
_obj.update({
|
HPSProcName: QRName
|
});
|
}
|
})
|
console.log("字段赋值" + data.HPSProcName);
|
console.log("行号:" + rowIndex);
|
break;
|
case "7":
|
//弹出框选择不良确认人
|
layer.open({
|
type: 2
|
, area: ['80%', '80%']
|
, title: '职员列表'
|
, shade: 0.6 //遮罩透明度
|
, maxmin: true //允许全屏最小化
|
, anim: 0 //0-6的动画形式,-1不开启
|
, content: ['../../../views/Baseset/基础资料/Gy_EmployeeList.html?Type=HWorker', 'yes']
|
, resize: false
|
, end: function () {
|
_obj.update({
|
HPSProcName: QRName
|
});
|
}
|
})
|
console.log("字段赋值" + data.HPSProcName);
|
console.log("行号:" + rowIndex);
|
break;
|
case "8":
|
//弹出框选择不良确认人
|
layer.open({
|
type: 2
|
, area: ['80%', '80%']
|
, title: '职员列表'
|
, shade: 0.6 //遮罩透明度
|
, maxmin: true //允许全屏最小化
|
, anim: 0 //0-6的动画形式,-1不开启
|
, content: ['../../../views/Baseset/基础资料/Gy_EmployeeList.html?Type=HWorker', 'yes']
|
, resize: false
|
, end: function () {
|
_obj.update({
|
HPSProcName: QRName
|
});
|
}
|
})
|
console.log("字段赋值" + data.HPSProcName);
|
console.log("行号:" + rowIndex);
|
break;
|
case "9":
|
//弹出框选择不良确认人
|
layer.open({
|
type: 2
|
, area: ['80%', '80%']
|
, title: '职员列表'
|
, shade: 0.6 //遮罩透明度
|
, maxmin: true //允许全屏最小化
|
, anim: 0 //0-6的动画形式,-1不开启
|
, content: ['../../../views/Baseset/基础资料/Gy_EmployeeList.html?Type=HWorker', 'yes']
|
, resize: false
|
, end: function () {
|
_obj.update({
|
HPSProcName: QRName
|
});
|
}
|
})
|
console.log("字段赋值" + data.HPSProcName);
|
console.log("行号:" + rowIndex);
|
break;
|
case "10":
|
//弹出框选择不良确认人
|
layer.open({
|
type: 2
|
, area: ['80%', '80%']
|
, title: '职员列表'
|
, shade: 0.6 //遮罩透明度
|
, maxmin: true //允许全屏最小化
|
, anim: 0 //0-6的动画形式,-1不开启
|
, content: ['../../../views/Baseset/基础资料/Gy_EmployeeList.html?Type=HWorker', 'yes']
|
, resize: false
|
, end: function () {
|
_obj.update({
|
HPSProcName: QRName
|
});
|
}
|
})
|
console.log("字段赋值" + data.HPSProcName);
|
console.log("行号:" + rowIndex);
|
break;
|
case "11":
|
//弹出框选择不良确认人
|
layer.open({
|
type: 2
|
, area: ['80%', '80%']
|
, title: '职员列表'
|
, shade: 0.6 //遮罩透明度
|
, maxmin: true //允许全屏最小化
|
, anim: 0 //0-6的动画形式,-1不开启
|
, content: ['../../../views/Baseset/基础资料/Gy_EmployeeList.html?Type=HWorker', 'yes']
|
, resize: false
|
, end: function () {
|
_obj.update({
|
HPSProcName: QRName
|
});
|
}
|
})
|
console.log("字段赋值" + data.HPSProcName);
|
console.log("行号:" + rowIndex);
|
break;
|
case "12":
|
//弹出框选择不良确认人
|
layer.open({
|
type: 2
|
, area: ['80%', '80%']
|
, title: '职员列表'
|
, shade: 0.6 //遮罩透明度
|
, maxmin: true //允许全屏最小化
|
, anim: 0 //0-6的动画形式,-1不开启
|
, content: ['../../../views/Baseset/基础资料/Gy_EmployeeList.html?Type=HWorker', 'yes']
|
, resize: false
|
, end: function () {
|
_obj.update({
|
HPSProcName: QRName
|
});
|
}
|
})
|
console.log("字段赋值" + data.HPSProcName);
|
console.log("行号:" + rowIndex);
|
break;
|
case "13":
|
//弹出框选择不良确认人
|
layer.open({
|
type: 2
|
, area: ['80%', '80%']
|
, title: '职员列表'
|
, shade: 0.6 //遮罩透明度
|
, maxmin: true //允许全屏最小化
|
, anim: 0 //0-6的动画形式,-1不开启
|
, content: ['../../../views/Baseset/基础资料/Gy_EmployeeList.html?Type=HWorker', 'yes']
|
, resize: false
|
, end: function () {
|
_obj.update({
|
HPSProcName: QRName
|
});
|
}
|
})
|
console.log("字段赋值" + data.HPSProcName);
|
console.log("行号:" + rowIndex);
|
break;
|
case "14":
|
//弹出框选择不良确认人
|
layer.open({
|
type: 2
|
, area: ['80%', '80%']
|
, title: '职员列表'
|
, shade: 0.6 //遮罩透明度
|
, maxmin: true //允许全屏最小化
|
, anim: 0 //0-6的动画形式,-1不开启
|
, content: ['../../../views/Baseset/基础资料/Gy_EmployeeList.html?Type=HWorker', 'yes']
|
, resize: false
|
, end: function () {
|
_obj.update({
|
HPSProcName: QRName
|
});
|
}
|
})
|
console.log("字段赋值" + data.HPSProcName);
|
console.log("行号:" + rowIndex);
|
break;
|
case "15":
|
//弹出框选择不良确认人
|
layer.open({
|
type: 2
|
, area: ['80%', '80%']
|
, title: '职员列表'
|
, shade: 0.6 //遮罩透明度
|
, maxmin: true //允许全屏最小化
|
, anim: 0 //0-6的动画形式,-1不开启
|
, content: ['../../../views/Baseset/基础资料/Gy_EmployeeList.html?Type=HWorker', 'yes']
|
, resize: false
|
, end: function () {
|
_obj.update({
|
HPSProcName: QRName
|
});
|
}
|
})
|
console.log("字段赋值" + data.HPSProcName);
|
console.log("行号:" + rowIndex);
|
break;
|
case "16":
|
//弹出框选择不良确认人
|
layer.open({
|
type: 2
|
, area: ['80%', '80%']
|
, title: '职员列表'
|
, shade: 0.6 //遮罩透明度
|
, maxmin: true //允许全屏最小化
|
, anim: 0 //0-6的动画形式,-1不开启
|
, content: ['../../../views/Baseset/基础资料/Gy_EmployeeList.html?Type=HWorker', 'yes']
|
, resize: false
|
, end: function () {
|
_obj.update({
|
HPSProcName: QRName
|
});
|
}
|
})
|
console.log("字段赋值" + data.HPSProcName);
|
console.log("行号:" + rowIndex);
|
break;
|
|
}
|
}
|
else if (obj.event === 'CloseManEvent') {
|
var _obj = obj;
|
switch (rowIndex) {
|
case "0":
|
|
break;
|
case "1":
|
|
break;
|
case "2":
|
|
break;
|
case "3":
|
|
break;
|
case "4":
|
|
break;
|
case "5":
|
|
break;
|
case "6":
|
|
break;
|
case "7":
|
|
break;
|
case "8":
|
|
break;
|
case "9":
|
|
break;
|
case "10":
|
|
break;
|
case "11":
|
|
break;
|
case "12":
|
|
break;
|
case "13":
|
|
break;
|
case "14":
|
|
break;
|
case "15":
|
|
break;
|
case "16":
|
|
break;
|
|
}
|
}
|
|
|
|
});
|
|
|
|
function RoadBillMain(hID)//加载表头
|
{
|
alert(hID);
|
//查询检验方案单是否存在
|
$.ajax({
|
url: GetWEBURL() + "Sb_EqpRepairWorkBill/Sb_EqpRepairWorkBillListCheckDetai",
|
type: "GET",
|
data: {
|
"HID": hID
|
},
|
success: function (result) {
|
if (result.code == 1) { // 说明验证成功了,
|
var data = result.data.h_v_Sb_EquipRepairWorkBillList[0];
|
form.val("component-form-group", { //formTest 即 class="layui-form" 所在元素属性 lay-filter="" 对应的值
|
"HBillNo": data.单据号
|
, "HDate": data.日期
|
, "HInnerBillNo": data.内部单据号
|
, "HEmpID": data.HEmpID //维修人
|
, "HRepairBeginDate": data.维修开始日期 //维修开始日期
|
, "HEquipID": data.HEquipID //设备
|
, "HManagerID": data.HManagerID //负责人
|
, "HRepairEndDate": data.维修结束日期 //维修结束日期
|
, "HRepairID": data.HRepairID //维修项目
|
, "HDeptID": data.HDeptID //维修部门
|
, "HPlanTimes": data.计划维修工时 //计划维修工时
|
, "HTimes": data.实际维修工时 //实际维修工时
|
, "HCycleUnit": data.时间单位 //时间单位
|
, "HRepairContent": data.维修内容 //维修内容
|
, "HExplanation": data.维修要求 //维修要求
|
, "HRemark": data.表头备注 //备注
|
});
|
|
} else {
|
layer.alert(result.msg, { icon: 5, btn: ['退出'], time: 100000, offset: 't' });
|
}
|
}, error: function () {
|
layer.alert("发生错误!", { icon: 5 });
|
}
|
});
|
}
|
|
|
var date = new Date();
|
var day = date.getDate();
|
var month = date.getMonth() + 1;
|
var year = date.getFullYear();
|
var shijian = year + "-" + month + "-" + day;
|
|
//判断是否新增
|
if (hID == null || hID == 0) {
|
//获取最大单据号 new
|
$("#HInterID").val("0");
|
$("#HBillNo").val("");
|
$.ajax({
|
url: GetWEBURL() + "/Web/GetMAXNum",
|
type: "GET",
|
data: { "HBillType": '3910' },
|
success: function (d) {
|
//console.log(d.data);
|
$("#HBillNo").val(d.data[0].HBillNo);
|
$("#HDate").val(shijian);
|
$("#HRepairBeginDate").val(shijian);
|
$("#HRepairEndDate").val(shijian);
|
$("#HInterID").val(0);
|
}
|
});
|
}
|
else {//如果修改则走下面 new
|
RoadBillMain(hID);
|
/* RoadBillSub(linterid);*/
|
}
|
|
//成品模具弹窗
|
form.on('submit(ProductModulList)', function () {
|
//页面层-自定义
|
layer.open({
|
type: 2,
|
skin: 'layui-layer-rim', //加上边框
|
title: '模具列表',
|
closeBtn: 1,
|
shift: 2,
|
area: ['60%', '70%'],
|
maxmin: true,
|
content: ['../../Baseset/基础资料/Gy_ModulList.html', 'yes'],
|
btn: ['确定', '取消']
|
, btn1: function (index, layero) {
|
//按钮【按钮一】的回调
|
alert("aa");
|
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('请选择数据');
|
}
|
console.log("aa"+checkStatus.data);//选中的值
|
var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
|
parent.layer.close(index); //再执行关闭
|
}
|
, btn2: function (index, layero) {
|
//按钮【按钮二】的回调
|
|
//return false 开启该代码可禁止点击该按钮关闭
|
},
|
end: function () {
|
|
},
|
success: function (layero, index) {
|
|
}
|
});
|
|
});
|
|
//选择产品弹窗
|
form.on('submit(HMateria-BT)', function () {//产品
|
layer.open({
|
type: 2
|
, area: ['80%', '80%']
|
, title: '物料'
|
, shade: 0.6 //遮罩透明度
|
//, maxmin: true //允许全屏最小化
|
, anim: 0 //0-6的动画形式,-1不开启
|
, content: ['../../Baseset/基础资料/Gy_MaterialList.html', 'yes']
|
, resize: false
|
, cancel: function (index, layero) {
|
}
|
})
|
});
|
//选择工序
|
form.on('submit(HProc-BT)', function () {//选择工序
|
layer.open({
|
type: 2
|
, area: ['80%', '80%']
|
, title: '工序列表'
|
, shade: 0.6 //遮罩透明度
|
//, maxmin: true //允许全屏最小化
|
, anim: 0 //0-6的动画形式,-1不开启
|
, content: ['../../Baseset/基础资料/Gy_ProcList.html', 'yes']
|
, resize: false
|
, cancel: function (index, layero) {
|
}
|
})
|
});
|
|
//选择部门
|
form.on('submit(HDepart-BT)', function () {//选择部门
|
layer.open({
|
type: 2
|
, area: ['80%', '80%']
|
, title: '部门列表'
|
, shade: 0.6 //遮罩透明度
|
//, maxmin: true //允许全屏最小化
|
, anim: 0 //0-6的动画形式,-1不开启
|
, content: ['../../Baseset/基础资料/Gy_DepartmentList.html', 'yes']
|
, resize: false
|
, cancel: function (index, layero) {
|
}
|
})
|
});
|
//选择单位
|
form.on('submit(HUnitID-BT)', function () {//选择单位
|
layer.open({
|
type: 2
|
, area: ['666px', '666px']
|
, title: '单位列表'
|
, shade: 0.6 //遮罩透明度
|
, maxmin: true //允许全屏最小化
|
, anim: 0 //0-6的动画形式,-1不开启
|
, content: ['../../../views/Baseset/基础资料/Gy_UnitList.html', 'yes']
|
, resize: false
|
, cancel: function () {
|
//$(".layui-btn").removeClass("layui-btn-disabled");
|
}
|
})
|
});
|
|
form.on('submit(Exit)', function (data) {//
|
var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
|
parent.layer.close(index); //再执行关闭
|
});
|
|
//选择责任人
|
form.on('submit(HEmployeeID-BT)', function () {//选择责任人
|
layer.open({
|
type: 2
|
, area: ['80%', '80%']
|
, title: '职员列表'
|
, shade: 0.6 //遮罩透明度
|
, maxmin: true //允许全屏最小化
|
, anim: 0 //0-6的动画形式,-1不开启
|
, content: ['../../../views/Baseset/基础资料/Gy_EmployeeList.html?Type=HKeeper', 'yes']
|
, resize: false
|
, cancel: function () {
|
//$(".layui-btn").removeClass("layui-btn-disabled");
|
}
|
})
|
});
|
|
//选择责任工序
|
form.on('submit(HZRProcID-BT)', function () {//选择责任工序
|
layer.open({
|
type: 2
|
, area: ['80%', '80%']
|
, title: '责任工序列表'
|
, shade: 0.6 //遮罩透明度
|
, maxmin: true //允许全屏最小化
|
, anim: 0 //0-6的动画形式,-1不开启
|
, content: ['../../../views/Baseset/基础资料/Gy_ProcList.html?Type=HZR', 'yes']
|
, resize: false
|
, cancel: function () {
|
//$(".layui-btn").removeClass("layui-btn-disabled");
|
}
|
})
|
});
|
|
|
|
form.on('submit(Cancel)', function () {
|
//sessionStorage["SourceFlag"] = false;
|
parent.location.href = "../../../views/index.html"
|
//window.close();//关闭当前页
|
})
|
|
|
|
form.on('submit(Saver)', function (data) {//保存
|
//debugger;
|
data.field.HMaker = sessionStorage["HUserName"];//制单人
|
var sMainStr = JSON.stringify(data.field);
|
var sSubStr = JSON.stringify(table.cache['mainTable']);
|
var sMainSub = sMainStr + ';' + sSubStr;
|
$.ajax(
|
{
|
type: "POST",
|
url: GetWEBURL() + "/Sb_EqpRepairWorkBill/SaveGetEqpRepairWorkBillList", //方法所在页面和方法名
|
async: true,
|
data: { "msg": sMainSub },
|
dataType: "json",
|
success: function (data) {
|
if (data.count == 1) { // 说明验证成功了,
|
layer.msg(data.Message, { time: 1 * 1000, icon: 1 }, function () {
|
$('#add-btn').addClass("layui-btn-disabled").attr("disabled", true);
|
var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
|
parent.layer.close(index); //再执行关闭
|
});
|
}
|
else {
|
|
f_alert(data.Message);
|
console.log("Reason" + sMainStr + "sub:" + JSON.stringify(layui.table.cache.mainTable));
|
}
|
layer.closeAll("loading");
|
},
|
error: function (err) {
|
|
f_alert("错误:" + err);
|
console.log("Reason" + sMainStr);
|
}
|
});
|
});
|
function f_alert(sMsg) {
|
layer.alert(sMsg, { icon: 5 });
|
|
}
|
|
//监听提交
|
form.verify({
|
numberOrEmpty: function (value, item) {
|
// if (value != '') {
|
if (!/^\d+$/.test(value)) {
|
return '不能为空或数字或者0';
|
}
|
//}
|
}
|
});
|
|
|
});
|
//定义全局变量
|
var HReasonName, ReasonID, EmpName, SQProcName,
|
ProcID, ZRProcName, QRName
|
;
|
function GetHReasonValue(obj) //返回不良原因
|
{
|
HReasonName = obj[0].HName;
|
ReasonID = obj[0].HItemID;
|
}
|
//返回物料
|
function GetHMaterNameValue(obj) { //返回物料
|
$("#HMater").val(obj[0].HName);
|
$("#HMaterID").val(obj[0].HItemID);
|
$("#HMaterNumber").val(obj[0].HNumber);
|
}
|
//返回工序
|
function GetHProcValue(obj) { //返回工序
|
$("#HProcName").val(obj[0].工序);
|
$("#HProcID").val(obj[0].HItemID);
|
$("#HProcNumber").val(obj[0].工序代码);
|
}
|
function GetHDeptNameValue(obj) { //返回部门
|
$("#HDepName").val(obj[0].HName);
|
$("#HDeptID").val(obj[0].HItemID);
|
$("#HDeptNumber").val(obj[0].HNumber);
|
}
|
//返回单位
|
function GetHUnitNameValue(obj) {
|
$("#HUName").val(obj[0].HName);
|
$("#HUnitID").val(obj[0].HItemID);
|
$("#HUnitNumber").val(obj[0].HNumber);
|
}
|
|
function GetHKeeperValue(obj) { //返回责任人
|
EmpName = obj[0].HName;
|
// $("#HEmpName").val(obj[0].HName);
|
//$("#HItemID").val(obj[0].HItemID);
|
}
|
//function GetHProcValue(obj) { //返回申请工序
|
// SQProcName = obj[0].工序;
|
// ProcID = obj[0].HItemID;
|
// //$("#HSQProcName").val(obj[0].工序);
|
// //$("#HProcID").val(obj[0].HItemID);
|
//}
|
function GetHZRValue(obj) { //返回责任工序
|
ZRProcName = obj[0].工序;
|
//$("#HZRProcName").val(obj[0].工序);
|
//$("#HItemID").val(obj[0].HItemID);
|
}
|
//HWorker
|
function GetHWorkerValue(obj) { //返回不良确认人
|
QRName = obj[0].HName;
|
//$("#HQRName").val(obj[0].HName);
|
//$("#HItemID").val(obj[0].HItemID);
|
}
|
function AllowLoadData(sSubStr) { //非空验证
|
//if ($("#HSourceBillNo").val() == '') {
|
// layer.msg("请先扫源单!", { icon: 5 });
|
// return false;
|
//}
|
if ($("#HDeptName").val() == '') {
|
layer.msg("部门没有选择", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
|
return false;
|
}
|
if ($("#HSecManager").val() == '') {
|
layer.msg("验收人没有选择", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
|
return false;
|
}
|
if ($("#HKeeper").val() == '') {
|
layer.msg("保管人没有选择", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
|
return false;
|
}
|
//if ($("#HWHNAME").val() == '') {
|
// layer.msg("仓库没有选择!", { icon: 5 });
|
// return false;
|
//}
|
if ($("#HBillNo").val() == '') {
|
layer.msg("错误的单据号", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
|
return false;
|
}
|
if ($("#HInterID").val() == '') {
|
layer.msg("错误的内码", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
|
return false;
|
}
|
if (typeof (sSubStr) == "undefined") {
|
layer.msg("没有物料明细记录", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
|
return false;
|
}
|
if (!typeof (sSubStr) == "undefined") {
|
//for (var i = 0; i <= sSubStr.length - 1; i++) { //判断扫码数量不能大于应收数量
|
// if (parseFloat(sSubStr[i].HQtyMust) > 0) {
|
// if (parseFloat(sSubStr[i].HQty) > parseFloat(sSubStr[i].HQtyMust))
|
// {
|
// layer.msg("数量不能大于应收数量", { icon: 5, btn: ['确定'], time: 100000, offset: 't' });
|
// return false;
|
// }
|
// }
|
//}
|
for (var i = 0; i <= sSubStr.length - 1; i++) { //判断扫码数量不能为0
|
if (parseFloat(sSubStr[i].HQty) > 0) {
|
s = 1;
|
}
|
}
|
if (s == 0) {
|
layer.msg("产品入库记录未扫码", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
|
return false;
|
}
|
}
|
else {
|
return true;
|
}
|
}</script>
|
</body>
|
</html>
|