万材erp项目
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.

405 lines
18 KiB

2 years ago
<!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-notice-edit" th:object="${warehousingNotice}">
<h4 class="form-header h4">入库通知-检验信息</h4>
<input name="warehousingnoticeNo" th:field="*{warehousingnoticeNo}" type="hidden">
<div class="form-group">
<label class="col-sm-3 control-label is-required">客户号:</label>
<div class="col-sm-8">
<input name="customerId" th:field="*{customerId}" class="form-control" type="text" required>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">客户名称:</label>
<div class="col-sm-8">
<input name="customerName" th:field="*{customerName}" class="form-control" type="text" required>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">入库类型:</label>
<div class="col-sm-8">
<input name="warehousingType" th:field="*{warehousingType}" class="form-control" type="text" required>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">入库日期:</label>
<div class="col-sm-8">
<div class="input-group date">
<input name="warehousingnoticeDate"
th:value="${#dates.format(warehousingNotice.warehousingnoticeDate, 'yyyy-MM-dd')}"
class="form-control" placeholder="yyyy-MM-dd" type="text" required>
<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">采购订单号:</label>
<div class="col-sm-8">
<input name="purchaseorderNo" th:field="*{purchaseorderNo}" 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="workorderNo" th:field="*{workorderNo}" 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">
<select name="domesticOrExport" class="form-control m-b"
th:with="type=${@dict.getType('sys_NWX_class')}" required>
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"
th:field="*{domesticOrExport}"></option>
</select>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">仓库号:</label>
<div class="col-sm-8">
<input name="warehouseNo" th:field="*{warehouseNo}" class="form-control" type="text" required>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">仓库名称:</label>
<div class="col-sm-8">
<input name="warehouseName" th:field="*{warehouseName}" class="form-control" type="text" required>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">入库数量:</label>
<div class="col-sm-8">
<input name="warehousingAmt" th:field="*{warehousingAmt}" class="form-control" type="text" required>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">物料代码:</label>
<div class="col-sm-8">
<input name="itemNo" th:field="*{itemNo}" class="form-control" type="text" required>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">物料名称:</label>
<div class="col-sm-8">
<input name="itemName" th:field="*{itemName}" class="form-control" type="text" required>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">项次:</label>
<div class="col-sm-8">
<input name="itemTimes" th:field="*{itemTimes}" class="form-control" type="text" required>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">规格型号:</label>
<div class="col-sm-8">
<input name="specificationModel" th:field="*{specificationModel}" class="form-control" type="text"
required>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">机种:</label>
<div class="col-sm-8">
<input name="machineType" th:field="*{machineType}" class="form-control" type="text" required>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">单位:</label>
<div class="col-sm-8">
<input name="unit" th:field="*{unit}" 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">-->
<!-- <input name="spell1" th:field="*{spell1}" 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="spell2" th:field="*{spell2}" 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="spell3" th:field="*{spell3}" class="form-control" type="text">-->
<!-- </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" class ="overflow : hidden; text-overflow : ellipsis ; white-space:nowrap ;"></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/notice";
$("#form-notice-edit").validate({
focusCleanup: true
});
function submitHandler() {
if ($.validate.form()) {
$.operate.save(prefix + "/edit", $('#form-notice-edit').serialize());
}
}
$("input[name='warehousingnoticeDate']").datetimepicker({
format: "yyyy-mm-dd",
minView: "month",
autoclose: true
});
$(function () {
var options = {
data: [[${warehousingNotice.warehousingCheckList}]],
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: 'warehousingnoticeId',
align: 'center',
title: '对应通知单号',
formatter: function (value, row, index) {
var html = $.common.sprintf("<input class='form-control' type='text' name='warehousingCheckList[%s].warehousingnoticeId' value='%s'>", index, value);
return html;
}
},
{
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("<select name=\"isQualified\" className=\"form-control m-b valid\">\n" +
" <option value=\"\">所有</option>\n" +
" <option value=\"1\">通过(合格)</option>\n" +
" <option value=\"0\">未通过(不合格)</option>\n" +
" </select>" +
"", 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: ""
}
});
}
</script>
</body>
</html>