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

240 lines
10 KiB

<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
<th:block th:include="include :: header('入库检验单列表')" />
</head>
<body class="gray-bg">
<div class="container-div">
<div class="row">
<div class="col-sm-12 search-collapse">
<form id="formId">
<div class="select-list">
<ul>
<li>
<label>采购/制造入库通知单号:</label>
<input type="text" name="warehousingnoticeId"/>
</li>
<li>
<label>物料代码:</label>
<input type="text" name="materialCode"/>
</li>
<li>
<label>物料名称:</label>
<input type="text" name="materialName"/>
</li>
<li>
<label>规格型号:</label>
<input type="text" name="specificationModel"/>
</li>
<li>
<label>机种:</label>
<input type="text" name="machineType"/>
</li>
<li>
<label>单位:</label>
<input type="text" name="unit"/>
</li>
<li>
<label>订单总量:</label>
<input type="text" name="orderAmt"/>
</li>
<li>
<label>合格数量:</label>
<input type="text" name="qualifiedAmt"/>
</li>
<li>
<label>不合格数量:</label>
<input type="text" name="unqualifiedAmt"/>
</li>
<li>
<label>合格率:</label>
<input type="text" name="qualifiedRate"/>
</li>
<li>
<label>说明:</label>
<input type="text" name="note"/>
</li>
<li>
<label>生产批号/批号:</label>
<input type="text" name="batchNumber"/>
</li>
<li class="select-time">
<label>该条数据生成时间:</label>
<input type="text" class="time-input" id="startTime" placeholder="开始时间" name="params[beginNotcieTime]"/>
<span>-</span>
<input type="text" class="time-input" id="endTime" placeholder="结束时间" name="params[endNotcieTime]"/>
</li>
<li class="select-time">
<label>检验时间:</label>
<input type="text" class="time-input" id="startTime" placeholder="开始时间" name="params[beginCheckTime]"/>
<span>-</span>
<input type="text" class="time-input" id="endTime" placeholder="结束时间" name="params[endCheckTime]"/>
</li>
<li>
<label>是否通过:</label>
<select name="isQualified">
<option value="">所有</option>
<option value="-1">代码生成请选择字典属性</option>
</select>
</li>
<li>
<label>检验人:</label>
<input type="text" name="inspector"/>
</li>
<li>
<label></label>
<input type="text" name="spell1"/>
</li>
<li>
<label></label>
<input type="text" name="spell2"/>
</li>
<li>
<label></label>
<input type="text" name="spell3"/>
</li>
<li>
<a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
<a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
</li>
</ul>
</div>
</form>
</div>
<div class="btn-group-sm" id="toolbar" role="group">
<a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="stock:warehousingCheck:add">
<i class="fa fa-plus"></i> 添加
</a>
<a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="stock:warehousingCheck:edit">
<i class="fa fa-edit"></i> 修改
</a>
<a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="stock:warehousingCheck:remove">
<i class="fa fa-remove"></i> 删除
</a>
<a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="stock:warehousingCheck:export">
<i class="fa fa-download"></i> 导出
</a>
</div>
<div class="col-sm-12 select-table table-striped">
<table id="bootstrap-table"></table>
</div>
</div>
</div>
<th:block th:include="include :: footer" />
<script th:inline="javascript">
var editFlag = [[${@permission.hasPermi('stock:warehousingCheck:edit')}]];
var removeFlag = [[${@permission.hasPermi('stock:warehousingCheck:remove')}]];
var prefix = ctx + "stock/warehousingCheck";
$(function() {
var options = {
url: prefix + "/list",
createUrl: prefix + "/add",
updateUrl: prefix + "/edit/{id}",
removeUrl: prefix + "/remove",
exportUrl: prefix + "/export",
modalName: "入库检验单",
columns: [{
checkbox: true
},
{
field: 'warehousingcheckId',
title: '检验单号',
visible: false
},
{
field: 'warehousingnoticeId',
title: '采购/制造入库通知单号'
},
{
field: 'materialCode',
title: '物料代码'
},
{
field: 'materialName',
title: '物料名称'
},
{
field: 'specificationModel',
title: '规格型号'
},
{
field: 'machineType',
title: '机种'
},
{
field: 'unit',
title: '单位'
},
{
field: 'orderAmt',
title: '订单总量'
},
{
field: 'qualifiedAmt',
title: '合格数量'
},
{
field: 'unqualifiedAmt',
title: '不合格数量'
},
{
field: 'qualifiedRate',
title: '合格率'
},
{
field: 'note',
title: '说明'
},
{
field: 'batchNumber',
title: '生产批号/批号'
},
{
field: 'notcieTime',
title: '该条数据生成时间'
},
{
field: 'checkTime',
title: '检验时间'
},
{
field: 'isQualified',
title: '是否通过'
},
{
field: 'inspector',
title: '检验人'
},
{
field: 'spell1',
title: ''
},
{
field: 'spell2',
title: ''
},
{
field: 'spell3',
title: ''
},
{
title: '操作',
align: 'center',
formatter: function(value, row, index) {
var actions = [];
if(row.isQualified-1!=0){
actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.warehousingcheckId + '\')"><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.warehousingcheckId + '\')"><i class="fa fa-remove"></i>删除</a>');
return actions.join('');
}
}]
};
$.table.init(options);
});
</script>
</body>
</html>