You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
400 lines
18 KiB
400 lines
18 KiB
<!DOCTYPE html>
|
|
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
|
|
<head>
|
|
<th:block th:include="include :: header('新增制造入库通知查询')" />
|
|
<th:block th:include="include :: datetimepicker-css" />
|
|
</head>
|
|
<body class="white-bg">
|
|
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
|
|
<form class="form-horizontal m" id="form-warehousingManufactureNotice-add">
|
|
<h4 class="form-header h4">制造入库通知查询信息</h4>
|
|
<div class="form-group">
|
|
<label class="col-sm-3 control-label">制造入库通知单号:</label>
|
|
<div class="col-sm-8">
|
|
<input name="warehousingmanufacturenoticeNo" class="form-control" type="text">
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="col-sm-3 control-label">客户号:</label>
|
|
<div class="col-sm-8">
|
|
<input name="customerId" class="form-control" type="text">
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="col-sm-3 control-label">客户名称:</label>
|
|
<div class="col-sm-8">
|
|
<input name="customerName" class="form-control" type="text">
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="col-sm-3 control-label">入库类型:</label>
|
|
<div class="col-sm-8">
|
|
<select name="warehousingType" class="form-control m-b" th:with="type=${@dict.getType('dock_warehousing_purchase_type')}">
|
|
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
|
|
</select>
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="col-sm-3 control-label">入库日期:</label>
|
|
<div class="col-sm-8">
|
|
<div class="input-group date">
|
|
<input name="warehousingDate" class="form-control" placeholder="yyyy-MM-dd" type="text">
|
|
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="col-sm-3 control-label is-required">工单号:</label>
|
|
<div class="col-sm-8">
|
|
<input name="workorderNo" class="form-control workorderNo" type="text" required>
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="col-sm-3 control-label">内外销:</label>
|
|
<div class="col-sm-8">
|
|
<select name="domesticOrExport" class="form-control m-b" th:with="type=${@dict.getType('sys_NWX_class')}">
|
|
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
|
|
</select>
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="col-sm-3 control-label">仓库号:</label>
|
|
<div class="col-sm-8">
|
|
<select name="warehouseNo" class="form-control m-b">
|
|
<option value="">所有</option>
|
|
</select>
|
|
<span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 代码生成请选择字典属性</span>
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="col-sm-3 control-label">仓库名称:</label>
|
|
<div class="col-sm-8">
|
|
<select name="warehouseName" class="form-control m-b">
|
|
<option value="">所有</option>
|
|
</select>
|
|
<span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 代码生成请选择字典属性</span>
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="col-sm-3 control-label">项次:</label>
|
|
<div class="col-sm-8">
|
|
<input name="projectTimes" class="form-control" type="text">
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="col-sm-3 control-label">制造入库单号:</label>
|
|
<div class="col-sm-8">
|
|
<input name="warehousingmanufactureNo" class="form-control" type="text">
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="col-sm-3 control-label">物料代码:</label>
|
|
<div class="col-sm-8">
|
|
<input name="itemNo" class="form-control" type="text">
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="col-sm-3 control-label">物料名称:</label>
|
|
<div class="col-sm-8">
|
|
<input name="itemName" class="form-control" type="text">
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="col-sm-3 control-label">规格型号:</label>
|
|
<div class="col-sm-8">
|
|
<input name="specificationModel" class="form-control" type="text">
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="col-sm-3 control-label">机种:</label>
|
|
<div class="col-sm-8">
|
|
<input name="machineType" class="form-control" type="text">
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="col-sm-3 control-label">单位:</label>
|
|
<div class="col-sm-8">
|
|
<input name="unit" class="form-control" type="text">
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="col-sm-3 control-label is-required">入库数量:</label>
|
|
<div class="col-sm-8">
|
|
<input name="warehousingAmt" class="form-control" type="text" required>
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="col-sm-3 control-label">通知时间:</label>
|
|
<div class="col-sm-8">
|
|
<div class="input-group date">
|
|
<input name="noticeTime" class="form-control" placeholder="yyyy-MM-dd" type="text">
|
|
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<h4 class="form-header h4">入库检验单信息</h4>
|
|
<div class="row">
|
|
<div class="col-sm-12">
|
|
<button type="button" class="btn btn-white btn-sm" onclick="addColumn()"><i class="fa fa-plus"> 增加</i></button>
|
|
<button type="button" class="btn btn-white btn-sm" onclick="sub.delColumn()"><i class="fa fa-minus"> 删除</i></button>
|
|
<div class="col-sm-12 select-table table-striped">
|
|
<table id="bootstrap-table"></table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
<th:block th:include="include :: footer" />
|
|
<th:block th:include="include :: datetimepicker-js" />
|
|
<script th:inline="javascript">
|
|
var prefix = ctx + "stock/warehousingManufactureNotice"
|
|
$("#form-warehousingManufactureNotice-add").validate({
|
|
focusCleanup: true
|
|
});
|
|
|
|
function submitHandler() {
|
|
if ($.validate.form()) {
|
|
$.operate.save(prefix + "/add", $('#form-warehousingManufactureNotice-add').serialize());
|
|
}
|
|
}
|
|
|
|
$("input[name='warehousingDate']").datetimepicker({
|
|
format: "yyyy-mm-dd",
|
|
minView: "month",
|
|
autoclose: true
|
|
});
|
|
|
|
$("input[name='noticeTime']").datetimepicker({
|
|
format: "yyyy-mm-dd",
|
|
minView: "month",
|
|
autoclose: true
|
|
});
|
|
|
|
$(function() {
|
|
var options = {
|
|
pagination: false,
|
|
showSearch: false,
|
|
showRefresh: false,
|
|
showToggle: false,
|
|
showColumns: false,
|
|
sidePagination: "client",
|
|
columns: [{
|
|
checkbox: true
|
|
},
|
|
{
|
|
field: 'index',
|
|
align: 'center',
|
|
title: "序号",
|
|
formatter: function (value, row, index) {
|
|
var columnIndex = $.common.sprintf("<input type='hidden' name='index' value='%s'>", $.table.serialNumber(index));
|
|
return columnIndex + $.table.serialNumber(index);
|
|
}
|
|
},
|
|
{
|
|
field: 'materialCode',
|
|
align: 'center',
|
|
title: '物料代码',
|
|
formatter: function(value, row, index) {
|
|
var html = $.common.sprintf("<input class='form-control' type='text' name='warehousingCheckList[%s].materialCode' value='%s'>", index, value);
|
|
return html;
|
|
}
|
|
},
|
|
{
|
|
field: 'materialName',
|
|
align: 'center',
|
|
title: '物料名称',
|
|
formatter: function(value, row, index) {
|
|
var html = $.common.sprintf("<input class='form-control' type='text' name='warehousingCheckList[%s].materialName' value='%s'>", index, value);
|
|
return html;
|
|
}
|
|
},
|
|
{
|
|
field: 'specificationModel',
|
|
align: 'center',
|
|
title: '规格型号',
|
|
formatter: function(value, row, index) {
|
|
var html = $.common.sprintf("<input class='form-control' type='text' name='warehousingCheckList[%s].specificationModel' value='%s'>", index, value);
|
|
return html;
|
|
}
|
|
},
|
|
{
|
|
field: 'machineType',
|
|
align: 'center',
|
|
title: '机种',
|
|
formatter: function(value, row, index) {
|
|
var html = $.common.sprintf("<input class='form-control' type='text' name='warehousingCheckList[%s].machineType' value='%s'>", index, value);
|
|
return html;
|
|
}
|
|
},
|
|
{
|
|
field: 'unit',
|
|
align: 'center',
|
|
title: '单位',
|
|
formatter: function(value, row, index) {
|
|
var html = $.common.sprintf("<input class='form-control' type='text' name='warehousingCheckList[%s].unit' value='%s'>", index, value);
|
|
return html;
|
|
}
|
|
},
|
|
{
|
|
field: 'orderAmt',
|
|
align: 'center',
|
|
title: '订单总量',
|
|
formatter: function(value, row, index) {
|
|
var html = $.common.sprintf("<input class='form-control' type='text' name='warehousingCheckList[%s].orderAmt' value='%s'>", index, value);
|
|
return html;
|
|
}
|
|
},
|
|
{
|
|
field: 'qualifiedAmt',
|
|
align: 'center',
|
|
title: '合格数量',
|
|
formatter: function(value, row, index) {
|
|
var html = $.common.sprintf("<input class='form-control' type='text' name='warehousingCheckList[%s].qualifiedAmt' value='%s'>", index, value);
|
|
return html;
|
|
}
|
|
},
|
|
{
|
|
field: 'unqualifiedAmt',
|
|
align: 'center',
|
|
title: '不合格数量',
|
|
formatter: function(value, row, index) {
|
|
var html = $.common.sprintf("<input class='form-control' type='text' name='warehousingCheckList[%s].unqualifiedAmt' value='%s'>", index, value);
|
|
return html;
|
|
}
|
|
},
|
|
{
|
|
field: 'qualifiedRate',
|
|
align: 'center',
|
|
title: '合格率',
|
|
formatter: function(value, row, index) {
|
|
var html = $.common.sprintf("<input class='form-control' type='text' name='warehousingCheckList[%s].qualifiedRate' value='%s'>", index, value);
|
|
return html;
|
|
}
|
|
},
|
|
{
|
|
field: 'note',
|
|
align: 'center',
|
|
title: '说明',
|
|
formatter: function(value, row, index) {
|
|
var html = $.common.sprintf("<input class='form-control' type='text' name='warehousingCheckList[%s].note' value='%s'>", index, value);
|
|
return html;
|
|
}
|
|
},
|
|
{
|
|
field: 'batchNumber',
|
|
align: 'center',
|
|
title: '生产批号/批号',
|
|
formatter: function(value, row, index) {
|
|
var html = $.common.sprintf("<input class='form-control' type='text' name='warehousingCheckList[%s].batchNumber' value='%s'>", index, value);
|
|
return html;
|
|
}
|
|
},
|
|
{
|
|
field: 'notcieTime',
|
|
align: 'center',
|
|
title: '该条数据生成时间',
|
|
formatter: function(value, row, index) {
|
|
var html = $.common.sprintf("<input class='form-control' type='text' name='warehousingCheckList[%s].notcieTime' value='%s'>", index, value);
|
|
return html;
|
|
}
|
|
},
|
|
{
|
|
field: 'checkTime',
|
|
align: 'center',
|
|
title: '检验时间',
|
|
formatter: function(value, row, index) {
|
|
var html = $.common.sprintf("<input class='form-control' type='text' name='warehousingCheckList[%s].checkTime' value='%s'>", index, value);
|
|
return html;
|
|
}
|
|
},
|
|
{
|
|
field: 'isQualified',
|
|
align: 'center',
|
|
title: '是否通过标记',
|
|
formatter: function(value, row, index) {
|
|
var html = $.common.sprintf("<input class='form-control' type='text' name='warehousingCheckList[%s].isQualified' value='%s'>", index, value);
|
|
return html;
|
|
}
|
|
},
|
|
{
|
|
field: 'inspector',
|
|
align: 'center',
|
|
title: '检验人',
|
|
formatter: function(value, row, index) {
|
|
var html = $.common.sprintf("<input class='form-control' type='text' name='warehousingCheckList[%s].inspector' value='%s'>", index, value);
|
|
return html;
|
|
}
|
|
},
|
|
{
|
|
field: 'spell1',
|
|
align: 'center',
|
|
title: '',
|
|
formatter: function(value, row, index) {
|
|
var html = $.common.sprintf("<input class='form-control' type='text' name='warehousingCheckList[%s].spell1' value='%s'>", index, value);
|
|
return html;
|
|
}
|
|
},
|
|
{
|
|
field: 'spell2',
|
|
align: 'center',
|
|
title: '',
|
|
formatter: function(value, row, index) {
|
|
var html = $.common.sprintf("<input class='form-control' type='text' name='warehousingCheckList[%s].spell2' value='%s'>", index, value);
|
|
return html;
|
|
}
|
|
},
|
|
{
|
|
field: 'spell3',
|
|
align: 'center',
|
|
title: '',
|
|
formatter: function(value, row, index) {
|
|
var html = $.common.sprintf("<input class='form-control' type='text' name='warehousingCheckList[%s].spell3' value='%s'>", index, value);
|
|
return html;
|
|
}
|
|
|
|
}]
|
|
};
|
|
$.table.init(options);
|
|
});
|
|
|
|
function addColumn() {
|
|
var count = $("#" + table.options.id).bootstrapTable('getData').length;
|
|
sub.editColumn();
|
|
|
|
$("#" + table.options.id).bootstrapTable('insertRow', {
|
|
index: count,
|
|
row: {
|
|
index: $.table.serialNumber(count),
|
|
materialCode: "",
|
|
materialName: "",
|
|
specificationModel: "",
|
|
machineType: "",
|
|
unit: "",
|
|
orderAmt: "",
|
|
qualifiedAmt: "",
|
|
unqualifiedAmt: "",
|
|
qualifiedRate: "",
|
|
note: "",
|
|
batchNumber: "",
|
|
notcieTime: "",
|
|
checkTime: "",
|
|
isQualified: "",
|
|
inspector: "",
|
|
spell1: "",
|
|
spell2: "",
|
|
spell3: ""
|
|
}
|
|
});
|
|
}
|
|
|
|
|
|
|
|
$(".workorderNo").focus(function () {
|
|
// $("#btn_cpCode").click();
|
|
console.log("123");
|
|
window.location.href=prefix + "/warehousingManufactureNotice"
|
|
});
|
|
|
|
</script>
|
|
</body>
|
|
</html>
|