<!DOCTYPE html>
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
<head>
|
<meta http-equiv="Content-Type" content="text/html; 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">
|
</head>
|
<body>
|
<div class="layui-fluid">
|
<div class="layui-card">
|
<!--<div class="layui-card-header"></div>-->
|
<div class="layui-card-body" style="padding: 15px;">
|
<form class="layui-form" action="" lay-filter="component-form-group">
|
<div class="layui-form-item">
|
<div class="layui-inline">
|
<label class="layui-form-label">过滤列</label>
|
<div class="layui-input-inline">
|
<input type="text" name="Value" id="Value" lay-verify="Value" autocomplete="off" placeholder="请输入过滤列" class="layui-input">
|
</div>
|
<button type="button" lay-submit="" class="layui-btn" lay-filter="HQuery">快速查询</button>
|
<button type="button" lay-submit="" class="layui-btn" lay-filter="FH">返回</button>
|
</div>
|
</div>
|
</form>
|
</div>
|
</div>
|
</div>
|
<table class="layui-hide" id="ck-table"></table>
|
<script src="../../../layuiadmin/layui/layui.js"></script>
|
<script src="../../../layuiadmin/Scripts/json2.js" type="text/javascript"></script>
|
<script src="../../../layuiadmin/Scripts/jquery-1.4.1.js" type="text/javascript"></script>
|
<script src="../../../layuiadmin/Scripts/webConfig.js"></script>
|
<script>
|
layui.use(['table', 'form', 'layer'], function () {
|
var table = layui.table
|
, form = layui.form
|
, layer = layui.layer;
|
|
form.on('submit(HQuery)', function () {//选择单位
|
//var sMainStr = JSON.stringify(table.cache['ck-table']);
|
RoadQuery($('#Value').val());
|
});
|
form.on('submit(FH)', function () {//选择单位
|
//var sMainStr = JSON.stringify(table.cache['ck-table']);
|
var checkStatus = table.checkStatus('ck-table')
|
, data = checkStatus.data;
|
parent.GetICMOBillValue(data);
|
var index = parent.layer.getFrameIndex(window.name);
|
parent.layer.close(index);
|
});
|
RoadQuery($('#Value').val());
|
table.render({
|
elem: '#ck-table'
|
// , url: '/demo/table/user/'
|
, data: []
|
, cellMinWidth: 80 //全局定义常规单元格的最小宽度,layui 2.2.1 新增
|
, cols: [[
|
{ type: 'radio' }
|
, { field: 'hmainid', width: 150, title: 'hmainid', hide: true, sort: true }
|
, { field: '订单跟踪号', width: 150, title: '订单跟踪号' }
|
, { field: '生产订单号', width: 150, title: '生产订单号' }
|
, { field: 'hdeptid', width: 150, title: 'hdeptid', hide: true }
|
, { field: '生产车间代码', width: 150, title: '生产车间代码' }
|
, { field: '生产车间名称', width: 150, title: '生产车间名称' }
|
, { field: 'hmaterid', width: 150, title: 'hmaterid', hide: true }
|
, { field: '物料代码', width: 150, title: '物料代码' }
|
, { field: '物料名称', width: 150, title: '物料名称' }
|
, { field: '规格型号', width: 150, title: '规格型号' }
|
, { field: '批号', width: 150, title: '批号' }
|
, { field: '流转卡数量', width: 150, title: '流转卡数量' }
|
, { field: 'hunitid', width: 150, title: 'hunitid', hide: true }
|
, { field: '计量单位代码', width: 150, title: '计量单位代码' }
|
, { field: '计量单位名称', width: 150, title: '计量单位名称' }
|
, { field: '计划生产数量', width: 150, title: '计划生产数量' }
|
, { field: 'hbomid', width: 150, title: 'hbomid' }
|
, { field: 'BOM单代码', width: 150, title: 'BOM单代码' }
|
, { field: 'HRoutingID', width: 150, title: 'HRoutingID' }
|
, { field: '计划开工日期', width: 150, title: '计划开工日期' }
|
, { field: '计划完工日期', width: 150, title: '计划完工日期' }
|
, { field: 'hsubid', width: 150, title: 'hsubid' }
|
, { field: '工序号', width: 150, title: '工序号' }
|
, { field: 'hprocid', width: 150, title: 'hprocid' }
|
, { field: '工序代码', width: 150, title: '工序代码' }
|
, { field: '工序', width: 150, title: '工序' }
|
, { field: '加工说明', width: 150, title: '加工说明' }
|
, { field: 'HWorkCenterID', width: 150, title: 'HWorkCenterID' }
|
, { field: '工作中心代码', width: 150, title: '工作中心代码' }
|
, { field: '工作中心', width: 150, title: '工作中心' }
|
, { field: 'HSourceID', width: 150, title: 'HSourceID' }
|
, { field: '生产资源代码', width: 150, title: '生产资源代码' }
|
, { field: '生产资源', width: 150, title: '生产资源' }
|
, { field: 'HGroupID', width: 150, title: 'HGroupID' }
|
, { field: '班组代码', width: 150, title: '班组代码' }
|
, { field: '班组', width: 150, title: '班组' }
|
, { field: 'HWorkerID', width: 150, title: 'HWorkerID' }
|
, { field: '操作工代码', width: 150, title: '操作工代码' }
|
, { field: 'HSupID', width: 150, title: 'HSupID' }
|
, { field: '供应商', width: 150, title: '供应商' }
|
, { field: '供应商代码', width: 150, title: '供应商代码' }
|
, { field: '委外标记', width: 150, title: '委外标记' }
|
, { field: '工艺参数', width: 150, title: '工艺参数' }
|
, { field: '图纸编号', width: 150, title: '图纸编号' }
|
, { field: '本工序确认记录', width: 150, title: '本工序确认记录' }
|
, { field: '操作工', width: 150, title: '操作工' }
|
, { field: '加工单价', width: 150, title: '加工单价' }
|
, { field: '良率', width: 150, title: '良率' }
|
, { field: '累计良率', width: 150, title: '累计良率' }
|
, { field: '超额比例', width: 150, title: '超额比例' }
|
, { field: '最高上限', width: 150, title: '最高上限' }
|
, { field: 'HBillType', width: 150, title: 'HBillType' }
|
, { field: '关联数量', width: 150, title: '关联数量' }
|
, { field: 'HEntryID', width: 150, title: 'HEntryID' }
|
, { field: '下道流转工序', width: 150, title: '下道流转工序' }
|
, { field: '产品CODE', width: 150, title: '产品CODE' }
|
, { field: '销售订单号', width: 150, title: '销售订单号' }
|
, { field: '客户简称', width: 150, title: '客户简称' }
|
, { field: '客户要求材料成分', width: 150, title: '客户要求材料成分' }
|
, { field: '预计出货日期', width: 150, title: '预计出货日期' }
|
, { field: '产品名称', width: 150, title: '产品名称' }
|
, { field: '客户名称', width: 150, title: '客户名称' }
|
, { field: '生产备注', width: 150, title: '生产备注' }
|
, { field: '重要提示', width: 150, title: '重要提示' }
|
]]
|
, page: true
|
});
|
///加载显示数据
|
function RoadQuery(Where) {
|
var index = layer.load();
|
var Value = Where;
|
if (Value == null) {
|
Value = '';
|
}
|
$.ajax({
|
type: "get",
|
url: GetWEBURL() + "/Web/GetSc_ICMOBillListView",
|
async: true,
|
data: { "ICMOBill": Value, "OrganizationID": sessionStorage["OrganizationID"] },
|
//data: { "Value": Value },
|
success: function (result) {
|
if (result.count == 1) {
|
ajaxReturnData = JSON.parse(JSON.stringify(result)).data;
|
table.reload('ck-table', {
|
data: ajaxReturnData
|
, height: 'full-10'
|
, loading: false
|
, done: function (index, res) {
|
|
}
|
});
|
layer.close(index);
|
}
|
else {
|
layer.close(index);
|
layer.msg(result.Message, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
|
}
|
},
|
error: function (result) {
|
layer.close(index);
|
console.log(result);
|
//layer.msg('获取采购订单出现异常', { icon: 2, time: 2000 });
|
}
|
});
|
};
|
});
|
</script>
|
|
</body>
|
</html>
|