万材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.
 
 
 
 

334 lines
11 KiB

<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
<th:block th:include="include :: header('修改半成品bom')" />
<th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
<div class="row">
<div class="col-sm-12" th:object="${bcpBom}">
<form>
<ul style="float: left;">
<li>
<label>成品代码:</label>
<input type="text" th:field="*{bcpCode}" name="cpCode"/>
</li>
<li>
<label>机种代码:</label>
<input type="text" th:field="*{bcpName}" name="cpMachineNo"/>
</li>
</ul>
</form>
</div>
<div class="col-sm-12 select-table table-striped">
<table id="bootstrap-table"></table>
</div>
</div>
</div>
<th:block th:include="include :: footer" />
<th:block th:include="include :: datetimepicker-js" />
<script th:inline="javascript">
var prefix = ctx + "ck/bcpbom";
var editFlag = [[${@permission.hasPermi('ck:bom:edit')}]];
var removeFlag = [[${@permission.hasPermi('ck:bom:remove')}]];
function queryParams(params) {
var search = $.table.queryParams(params);
search.bcpCode = $("input[name='bcpCode']").val();
return search;
}
$(function() {
var options = {
url: prefix + "/bcpyllist",
createUrl: prefix + "/add",
updateUrl: prefix + "/edit/{cpCode}",
removeUrl: prefix + "/remove",
exportUrl: prefix + "/export",
modalName: "半成品物料清单",
pageSize: '10',
contentType: "application/x-www-form-urlencoded; charset=UTF-8",
sidePagination: 'server',//设置为服务器端分页
queryParamsType: "",
queryParams :queryParams,
columns: [
{
field: 'wlCode',
title: '原料编号'
},
// {
// field: 'bcpCode',
// title: '成品代码',
// visible: false
//
// },
// {
// field: 'bcpName',
// title: '成品名称',
// visible: false
//
// },
{
field: 'bcpType',
title: '规格型号',
visible: false
},
// {
// field: 'bcpMachineNo',
// title: '客户料号'
// },
{
field: 'cpDw',
title: '单位',
visible: false
},
{
field: 'itemname',
title: '名称'
},
{
field: 'itemstandard',
title: '规格型号'
},
{
field: 'stockDw',
title: '单位'
},
{
field: 'useNum',
title: '原辅料使用量'
},
// {
// field: 'lostpre',
// title: '损耗'
// },
{
field: 'zpGuige',
title: '厂商l料号'
},
{
field: 'zpUseNum',
title: '成品数量',
visible: false
},
{
field: 'mQty',
title: '',
visible: false
},
{
field: 'memolist',
title: '',
visible: false
},
{
field: 'nowversion',
title: '',
visible: false
},
{
field: 'begindate',
title: '',
visible: false
},
{
field: 'endtime',
title: '',
visible: false
},
{
field: 'wldm',
title: '',
visible: false
},
{
field: 'customno',
title: '',
visible: false
},
{
field: 'sendflag',
title: '',
visible: false
},
{
field: 'yDWDH',
title: '',
visible: false
},
{
field: 'zLDWDH',
title: '',
visible: false
},
{
field: 'ylWeight',
title: '',
visible: false
},
{
field: 'zongzhongWeight',
title: '',
visible: false
},
{
field: 'pno',
title: '',
visible: false
},
{
field: 'addtime',
title: '',
visible: false
},
{
field: 'fuWidth',
title: '',
visible: false
},
{
field: 'yflItemclass',
title: '',
visible: false
},
{
field: 'mouldNo',
title: '',
visible: false
},
{
field: 'standNowversion',
title: '',
visible: false
},
{
field: 'comfirmFlag',
title: '',
visible: false
},
{
field: 'comfirmMan',
title: '',
visible: false
},
{
field: 'comfirmDate',
title: '',
visible: false
},
{
field: 'writeMan',
title: '',
visible: false
},
{
field: 'GongCha',
title: '',
visible: false
},
{
field: 'factoryMouldNo',
title: '',
visible: false
},
{
field: 'mainMaterial',
title: '',
visible: false
},
{
field: 'limitFlag',
title: '',
visible: false
},
{
field: 'gongchaMore',
title: '',
visible: false
},
{
field: 'gongchaSmall',
title: '',
visible: false
},
{
field: 'changtime',
title: '',
visible: false
},
{
field: 'cpNum',
title: '',
visible: false
},
{
field: 'worklineclass',
title: '',
visible: false
},
{
title: '操作',
align: 'center',
formatter: function(value, row, index) {
var actions = [];
actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="edit(\'' + row.versionNo + '\',\'' + row.cpCode + '\')"><i class="fa fa-edit"></i>编辑</a> ');
actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.versionNo + '\')"><i class="fa fa-remove"></i>删除</a>');
return actions.join('');
}
}]
};
$.table.init(options);
});
// $("#form-bcpbom-edit").validate({
// focusCleanup: true
// });
// function submitHandler() {
// if ($.validate.form()) {
// $.operate.save(prefix + "/edit", $('#form-bcpbom-edit').serialize());
// }
// }
// $("input[name='Addtime']").datetimepicker({
// format: "yyyy-mm-dd",
// minView: "month",
// autoclose: true
// });
//
// $("input[name='comfirmDate']").datetimepicker({
// format: "yyyy-mm-dd",
// minView: "month",
// autoclose: true
// });
//
// $("input[name='changtime']").datetimepicker({
// format: "yyyy-mm-dd",
// minView: "month",
// autoclose: true
// });
</script>
</body>
</html>