<!DOCTYPE html>
|
<html>
|
<head>
|
<meta charset="utf-8" />
|
<title>工序流转卡</title><!--车间管理/工序流转卡/Sc_ProcessExchangeBill.html-->
|
<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">
|
<link rel="stylesheet" href="../../../layuiadmin/layui/css/layui.css" media="all">
|
<link rel="stylesheet" href="../../../layuiadmin/style/admin.css" media="all">
|
<script src="../../../layuiadmin/layui/layui.js"></script>
|
</head>
|
<body>
|
<div class="layui-fluid" style="padding:0">
|
<div class="layui-card">
|
<div class="layui-card-body" style="padding: 20px;height:800px;">
|
<form class="layui-form" action="" lay-filter="component-form-group">
|
<div style="text-align: center;font-size: 24px;">
|
<span >工序流转卡</span>
|
</div>
|
<div class="layui-tab layui-col-xs12" lay-filter="tab-MoveStockBill">
|
<ul class="layui-tab-title" lay-filter="tab-all">
|
<li lay-id="1" style="padding:1px;" class="layui-this">表头信息</li>
|
<li lay-id="2" style="padding:1px;">其他信息</li>
|
</ul>
|
<div class="layui-tab-content">
|
<!--表头信息-->
|
<div class="layui-tab-item layui-show">
|
<div class="layui-form-item">
|
<table style="width:80%;">
|
<tbody>
|
<tr>
|
<th>条形码</th>
|
<td class="t1_input">
|
<input type="text" name="HBarCode" class="layui-input" id="HBarCode" placeholder="请输入条形码">
|
</td>
|
<th>流转卡号</th>
|
<td class="t1_input">
|
<input type="text" name="HProcExchBillNo" class="layui-input" id="HProcExchBillNo" placeholder="流转卡号">
|
</td>
|
<th>流转卡号</th>
|
<td class="t1_input">
|
<input type="text" name="HProcExchBillNo" class="layui-input" id="HProcExchBillNo" placeholder="流转卡号">
|
</td>
|
</tr>
|
<tr>
|
<th>流转卡号</th>
|
<td class="t1_input">
|
<input type="text" name="HProcExchBillNo" class="layui-input" id="HProcExchBillNo" placeholder="流转卡号">
|
</td>
|
<th>流转卡号</th>
|
<td class="t1_input">
|
<input type="text" name="HProcExchBillNo" class="layui-input" id="HProcExchBillNo" placeholder="流转卡号">
|
</td>
|
<th>流转卡号</th>
|
<td class="t1_input">
|
<input type="text" name="HProcExchBillNo" class="layui-input" id="HProcExchBillNo" placeholder="流转卡号">
|
</td>
|
</tr>
|
<tr>
|
<th>流水号</th>
|
<td class="t1_input">
|
<input type="text" name="HProcNo" class="layui-input" id="HProcNo" placeholder="请输入流水号">
|
</td>
|
<th>流转卡号</th>
|
<td class="t1_input">
|
<input type="text" name="HProcExchBillNo" class="layui-input" id="HProcExchBillNo" placeholder="流转卡号">
|
</td>
|
<th>流转卡号</th>
|
<td class="t1_input">
|
<input type="text" name="HProcExchBillNo" class="layui-input" id="HProcExchBillNo" placeholder="流转卡号">
|
</td>
|
</tr>
|
<tr>
|
<th>工序代码</th>
|
<td class="t1_input">
|
<input type="text" name="HProcID" class="layui-input" id="HProcID" placeholder="请输入工序代码">
|
</td>
|
<th>流转卡号</th>
|
<td class="t1_input">
|
<input type="text" name="HProcExchBillNo" class="layui-input" id="HProcExchBillNo" placeholder="流转卡号">
|
</td>
|
<th>流转卡号</th>
|
<td class="t1_input">
|
<input type="text" name="HProcExchBillNo" class="layui-input" id="HProcExchBillNo" placeholder="流转卡号">
|
</td>
|
</tr>
|
</tbody>
|
</table>
|
</div>
|
</div>
|
<!--其他信息-->
|
<div class="layui-tab-item">
|
<div class="layui-form-item">
|
<table style="width:80%;">
|
<tbody>
|
<tr>
|
<th>条形码2</th>
|
<td class="t1_input">
|
<input type="text" name="HBarCode" class="layui-input" id="HBarCode" placeholder="请输入条形码">
|
</td>
|
<th>流转卡号</th>
|
<td class="t1_input">
|
<input type="text" name="HProcExchBillNo" class="layui-input" id="HProcExchBillNo" placeholder="流转卡号">
|
</td>
|
<th>流转卡号</th>
|
<td class="t1_input">
|
<input type="text" name="HProcExchBillNo" class="layui-input" id="HProcExchBillNo" placeholder="流转卡号">
|
</td>
|
</tr>
|
<tr>
|
<th>流转卡号</th>
|
<td class="t1_input">
|
<input type="text" name="HProcExchBillNo" class="layui-input" id="HProcExchBillNo" placeholder="流转卡号">
|
</td>
|
<th>流转卡号</th>
|
<td class="t1_input">
|
<input type="text" name="HProcExchBillNo" class="layui-input" id="HProcExchBillNo" placeholder="流转卡号">
|
</td>
|
<th>流转卡号</th>
|
<td class="t1_input">
|
<input type="text" name="HProcExchBillNo" class="layui-input" id="HProcExchBillNo" placeholder="流转卡号">
|
</td>
|
</tr>
|
<tr>
|
<th>流水号</th>
|
<td class="t1_input">
|
<input type="text" name="HProcNo" class="layui-input" id="HProcNo" placeholder="请输入流水号">
|
</td>
|
<th>流转卡号</th>
|
<td class="t1_input">
|
<input type="text" name="HProcExchBillNo" class="layui-input" id="HProcExchBillNo" placeholder="流转卡号">
|
</td>
|
<th>流转卡号</th>
|
<td class="t1_input">
|
<input type="text" name="HProcExchBillNo" class="layui-input" id="HProcExchBillNo" placeholder="流转卡号">
|
</td>
|
</tr>
|
<tr>
|
<th>工序代码</th>
|
<td class="t1_input">
|
<input type="text" name="HProcID" class="layui-input" id="HProcID" placeholder="请输入工序代码">
|
</td>
|
<th>流转卡号</th>
|
<td class="t1_input">
|
<input type="text" name="HProcExchBillNo" class="layui-input" id="HProcExchBillNo" placeholder="流转卡号">
|
</td>
|
<th>流转卡号</th>
|
<td class="t1_input">
|
<input type="text" name="HProcExchBillNo" class="layui-input" id="HProcExchBillNo" placeholder="流转卡号">
|
</td>
|
</tr>
|
</tbody>
|
</table>
|
</div>
|
</div>
|
</div>
|
</div>
|
<div class="layui-tab layui-col-xs12" lay-filter="tab-MoveStockBill">
|
<ul class="layui-tab-title" lay-filter="tab-all">
|
<li lay-id="1" style="padding:1px;" class="layui-this">明细信息</li>
|
</ul>
|
<div class="layui-tab-content">
|
<!--明细信息-->
|
<div class="layui-tab-item layui-show">
|
<table class="" id="mainTable" lay-filter="mainTable"></table>
|
</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>
|
layui.config({
|
base: '../../../layuiadmin/' //静态资源所在路径
|
}).extend({
|
index: 'lib/index', //主入口模块
|
}).use(['index', 'form', 'table', 'element', 'laypage', 'laydate'], function () {
|
var $ = layui.$
|
, admin = layui.admin
|
, layer = layui.layer
|
, table = layui.table
|
, form = layui.form
|
, element = layui.element
|
, laypage = layui.laypage
|
, laydate = layui.laydate
|
//var sWhere = " 产品代码 = 'BX0002'";
|
var sWhere = "";
|
|
var option = {
|
elem: '#mainTable'
|
//, toolbar: '#toolbarDemo'
|
, height: 'full-50'
|
, page: true
|
, cols: [[
|
//{ field: 'HEmpID', title: 'HEmpID', sort: true, width: 110 }
|
//, { field: 'HGroupID', title: 'HGroupID', width: 110 }
|
//, { field: 'HMaterID', title: 'HMaterID', sort: true, width: 165 }
|
//, { field: 'HProcID', title: 'HProcID', width: 175 }
|
//, { field: 'HSourceID', title: 'HSourceID', width: 170 }
|
{ field: '进站时间', title: '进站时间', width: 120 }
|
, { field: '任务单', title: '任务单', width: 80 }
|
, { field: '工序流转卡号', title: '工序流转卡号', width: 165 }
|
, { field: '产品代码', title: '产品代码', width: 100 }
|
, { field: '产品名称', title: '产品名称', width: 100 }
|
, { field: '规格型号', title: '规格型号', width: 100 }
|
, { field: '当前工序', title: '当前工序', width: 100 }
|
, { field: 'LOT数量', title: '订单数量', width: 100 }
|
, { field: '接收数量', title: '接收数量', width: 100 }
|
, { field: '生产班组', title: '生产班组', width: 100 }
|
, { field: '生产资源', title: '生产资源', width: 100 }
|
, { field: '操作员', title: '操作员', width: 100 }
|
, { field: '客户信息', title: '客户信息', width: 100 }
|
, { field: '联系人信息', title: '联系人信息', width: 100 }
|
//, { field: 'hmainid', title: 'hmainid', width: 160 }
|
//, { field: '当前工序代码', title: '当前工序代码', width: 80 }
|
//, { field: '操作员代码', title: '操作员代码', width: 80 }
|
//, { field: '生产班组代码', title: '生产班组代码', width: 80 }
|
//, { field: '生产资源代码', title: '生产资源代码', width: 105 }
|
]]
|
};
|
|
table.render(option);
|
//进入页面显示的缓存列表
|
$.ajax({
|
//url: "http://61.130.49.162:9090/WMSAPI///Web/GetMAXNum",
|
url: GetWEBURL() + '/api/newBill/getStationInBillList',
|
type: "GET",
|
data: { "sWhere": sWhere },
|
success: function (data1) {
|
if (data1.code == 1) {
|
option.data = data1.data.h_v_MES_StationInBillList;
|
table.render(option);
|
} else {
|
layer.alert(data1.code + data1.msg, { icon: 5 });
|
}
|
}, error: function () {
|
layer.msg("接口请求失败!", {
|
icon: 5, btn: ['确认'], time: 100000, offset: 't',
|
skin: 'layui-layer-lan', title: "温馨提示"
|
});
|
}
|
});
|
|
//重置按钮
|
form.on('submit(btnReSearch)', function (data) {
|
$("#HDate").val("");//开始日期
|
$("#HDate1").val("");//结束日期
|
$("#HOrderProcNO").val("");//订单跟踪号
|
$("#WorkCenter").val("");//工作中心
|
$("#HProcExchBillNo").val("");//流转卡号
|
$("#HMaker").val("");//制单人
|
$("#hname").val("");//产品名称
|
$("#hnumber").val("");//产品代码
|
$("#hmodel").val("");//规格型号
|
$("#btnSearch").click();
|
});
|
|
//查询按钮
|
form.on('submit(btnSearch)', function (data) {//选择仓位
|
var HDate = $("#HDate").val();//开始日期
|
var HDate1 = $("#HDate1").val();//结束日期
|
var HOrderProcNO = $("#HOrderProcNO").val();//订单跟踪号
|
var WorkCenter = $("#WorkCenter").val();//工作中心
|
var HProcExchBillNo = $("#HProcExchBillNo").val();//流转卡号
|
var HMaker = $("#HMaker").val();//制单人
|
var hname = $("#hname").val();//产品名称
|
var hnumber = $("#hnumber").val();//产品代码
|
var hmodel = $("#hmodel").val();//规格型号
|
if (HDate) {
|
sWhere += " and 日期 >= '" + HDate + "'";
|
}
|
if (HDate1) {
|
sWhere += " and 日期 <= '" + HDate1 + "'";
|
}
|
if (HOrderProcNO) {
|
sWhere += " and 订单跟踪号 like '%" + HOrderProcNO + "%'";
|
}
|
if (WorkCenter) {
|
sWhere += " and 工作中心 like '%" + WorkCenter + "%'";
|
}
|
if (HProcExchBillNo) {
|
sWhere += " and 流转卡号 like '%" + HProcExchBillNo + "%'";
|
}
|
if (HMaker) {
|
sWhere += " and 制单人 like '%" + HMaker + "%'";
|
}
|
if (hname) {
|
sWhere += " and 产品名称 like '%" + hname + "%'";
|
}
|
if (hnumber) {
|
sWhere += " and 产品代码 like '%" + hnumber + "%'";
|
}
|
if (hmodel) {
|
sWhere += " and 规格型号 like '%" + hmodel + "%'";
|
}
|
$.ajax({
|
//url: "http://61.130.49.162:9090/WMSAPI///Web/GetMAXNum",
|
url: GetWEBURL() + '/api/newBill/getStationInBillList',
|
type: "GET",
|
data: { "sWhere": sWhere },
|
success: function (data1) {
|
if (data1.code == 1) {
|
option.data = data1.data.h_v_MES_StationInBillList;
|
table.render(option);
|
layer.alert("查询成功", { icon: 1 });
|
} else {
|
layer.alert(data1.code + data1.msg, { icon: 5 });
|
}
|
}, error: function () {
|
layer.alert("接口失效!", { icon: 5 });
|
}
|
});
|
sWhere = "";//调用接口后清空sWhere缓存
|
});
|
|
|
//laydate.render({
|
// elem: '#HDate'
|
// , type: 'datetime'
|
// , trigger: 'click'
|
// , format:'yyyy-MM-dd HH:mm'
|
//});
|
|
|
//以上是layui模块
|
});
|
|
|
|
|
</script>
|
</body>
|
</html>
|