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.
366 lines
14 KiB
366 lines
14 KiB
2 years ago
|
<!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="customerNumber"/>
|
||
|
</li>
|
||
|
<li>
|
||
|
<label>成品名称:</label>
|
||
|
<input type="text" name="finishProductName"/>
|
||
|
</li>
|
||
|
<li>
|
||
|
<label>客户代码:</label>
|
||
|
<!-- <select name="enterpriseCode">-->
|
||
|
<!-- <option value="">所有</option>-->
|
||
|
<!-- <option value="-1">代码生成请选择字典属性</option>-->
|
||
|
<!-- </select>-->
|
||
|
<input type="text" name="enterpriseCode"/>
|
||
|
|
||
|
</li>
|
||
|
<li>
|
||
|
<label>客户名称:</label>
|
||
|
<!-- <select name="enterpriseName">-->
|
||
|
<!-- <option value="">所有</option>-->
|
||
|
<!-- <option value="-1">代码生成请选择字典属性</option>-->
|
||
|
<!-- </select>-->
|
||
|
<input type="text" name="enterpriseName"/>
|
||
|
|
||
|
</li>
|
||
|
<li>
|
||
|
<label>库存单位:</label>
|
||
|
<select name="inventoryUnit" th:with="type=${@dict.getType('sys_unit_class')}">
|
||
|
<option value="">所有</option>
|
||
|
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
|
||
|
</select>
|
||
|
</li>
|
||
|
<li>
|
||
|
<label>版本号:</label>
|
||
|
<input type="text" name="versionNumber"/>
|
||
|
</li>
|
||
|
<li>
|
||
|
<label>成品代码:</label>
|
||
|
<input type="text" name="finishProductCode"/>
|
||
|
</li>
|
||
|
<li>
|
||
|
<label>厂内编码:</label>
|
||
|
<input type="text" name="inPlantCode"/>
|
||
|
</li>
|
||
|
<li>
|
||
|
<label>生产类别:</label>
|
||
|
<select name="productionCategory" th:with="type=${@dict.getType('sys_production_category')}">
|
||
|
<option value="">所有</option>
|
||
|
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
|
||
|
</select>
|
||
|
</li>
|
||
|
<li>
|
||
|
<label>规格型号:</label>
|
||
|
<input type="text" name="specificationModel"/>
|
||
|
</li>
|
||
|
<li>
|
||
|
<label>客户工程师:</label>
|
||
|
<input type="text" name="customerEngineer"/>
|
||
|
</li>
|
||
|
<li>
|
||
|
<label>创建日期:</label>
|
||
|
<input type="text" class="time-input" placeholder="请选择创建日期" name="createrTime"/>
|
||
|
</li>
|
||
|
<li>
|
||
|
<a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i> 搜索</a>
|
||
|
<a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i> 重置</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="system:finishproduct:add">
|
||
|
<i class="fa fa-plus"></i> 添加
|
||
|
</a>
|
||
|
<a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="system:finishproduct:edit">
|
||
|
<i class="fa fa-edit"></i> 修改
|
||
|
</a>
|
||
|
<a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="system:finishproduct:remove">
|
||
|
<i class="fa fa-remove"></i> 删除
|
||
|
</a>
|
||
|
<a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="system:finishproduct:export">
|
||
|
<i class="fa fa-download"></i> 导出
|
||
|
</a>
|
||
|
</div>
|
||
|
<div class="col-sm-12 select-table table-striped">
|
||
|
<table id="bootstrap-table" style="white-space:nowrap"></table>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<th:block th:include="include :: footer" />
|
||
|
<script th:inline="javascript">
|
||
|
var editFlag = [[${@permission.hasPermi('system:finishproduct:edit')}]];
|
||
|
var removeFlag = [[${@permission.hasPermi('system:finishproduct:remove')}]];
|
||
|
var inventoryUnitDatas = [[${@dict.getType('sys_unit_class')}]];
|
||
|
var gpItemSelectionDatas = [[${@dict.getType('sys_gp_Item_selection')}]];
|
||
|
var whetherStopDatas = [[${@dict.getType('sys_whether')}]];
|
||
|
var materialCategoryDatas = [[${@dict.getType('sys_material_category')}]];
|
||
|
var productionCategoryDatas = [[${@dict.getType('sys_production_category')}]];
|
||
|
var finishProductCategoryDatas = [[${@dict.getType('sys_finish_product_category')}]];
|
||
|
var prefix = ctx + "system/finishproduct";
|
||
|
|
||
|
$(function() {
|
||
|
var options = {
|
||
|
url: prefix + "/list",
|
||
|
createUrl: prefix + "/add",
|
||
|
updateUrl: prefix + "/edit/{id}",
|
||
|
removeUrl: prefix + "/remove",
|
||
|
exportUrl: prefix + "/export",
|
||
|
clickToSelect: true,
|
||
|
modalName: "成品资料",
|
||
|
columns: [{
|
||
|
checkbox: true
|
||
|
},
|
||
|
{
|
||
|
field: 'finishProductId',
|
||
|
title: '成品id',
|
||
|
visible: false
|
||
|
},
|
||
|
{
|
||
|
field: 'customerNumber',
|
||
|
title: '客户料号'
|
||
|
},
|
||
|
{
|
||
|
field: 'typeMachine',
|
||
|
title: '机种'
|
||
|
},
|
||
|
{
|
||
|
field: 'finishProductName',
|
||
|
title: '成品名称'
|
||
|
},
|
||
|
{
|
||
|
field: 'enterpriseCode',
|
||
|
title: '客户代码'
|
||
|
},
|
||
|
{
|
||
|
field: 'enterpriseName',
|
||
|
title: '客户名称'
|
||
|
},
|
||
|
{
|
||
|
field: 'inventoryUnit',
|
||
|
title: '库存单位',
|
||
|
formatter: function(value, row, index) {
|
||
|
return $.table.selectDictLabel(inventoryUnitDatas, value);
|
||
|
},
|
||
|
visible: false
|
||
|
|
||
|
},
|
||
|
{
|
||
|
field: 'versionNumber',
|
||
|
title: '版本号'
|
||
|
},
|
||
|
{
|
||
|
field: 'finishProductCode',
|
||
|
title: '成品代码'
|
||
|
},
|
||
|
{
|
||
|
field: 'safetyStock',
|
||
|
title: '安全库存',
|
||
|
visible: false
|
||
|
|
||
|
},
|
||
|
{
|
||
|
field: 'stockUnitWeight',
|
||
|
title: '单位重量',
|
||
|
visible: false
|
||
|
|
||
|
},
|
||
|
{
|
||
|
field: 'gpItemSelection',
|
||
|
title: 'GP项选择',
|
||
|
formatter: function(value, row, index) {
|
||
|
return $.table.selectDictLabel(gpItemSelectionDatas, value);
|
||
|
},
|
||
|
visible: false
|
||
|
|
||
|
},
|
||
|
{
|
||
|
field: 'inPlantCode',
|
||
|
title: '厂内编码'
|
||
|
},
|
||
|
{
|
||
|
field: 'whetherStop',
|
||
|
title: '料号是否停用',
|
||
|
formatter: function(value, row, index) {
|
||
|
return $.table.selectDictLabel(whetherStopDatas, value);
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
field: 'createrName',
|
||
|
title: '创建人',
|
||
|
visible: false
|
||
|
|
||
|
},
|
||
|
{
|
||
|
field: 'ordinalName',
|
||
|
title: '半成品对应完工工序名',
|
||
|
visible: false
|
||
|
|
||
|
},
|
||
|
{
|
||
|
field: 'originalNumber',
|
||
|
title: '原成品料号',
|
||
|
visible: false
|
||
|
|
||
|
},
|
||
|
{
|
||
|
field: 'customsName',
|
||
|
title: '海关名称',
|
||
|
visible: false
|
||
|
|
||
|
},
|
||
|
{
|
||
|
field: 'defaultWarehouse',
|
||
|
title: '默认仓库'
|
||
|
},
|
||
|
{
|
||
|
field: 'materialCategory',
|
||
|
title: '类别',
|
||
|
formatter: function(value, row, index) {
|
||
|
return $.table.selectDictLabel(materialCategoryDatas, value);
|
||
|
},
|
||
|
visible: false
|
||
|
|
||
|
},
|
||
|
{
|
||
|
field: 'productionCategory',
|
||
|
title: '生产类别',
|
||
|
formatter: function(value, row, index) {
|
||
|
return $.table.selectDictLabel(productionCategoryDatas, value);
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
field: 'finishProductCategory',
|
||
|
title: '所属类别',
|
||
|
formatter: function(value, row, index) {
|
||
|
return $.table.selectDictLabel(finishProductCategoryDatas, value);
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
field: 'specificationModel',
|
||
|
title: '规格型号'
|
||
|
},
|
||
|
{
|
||
|
field: 'customerEngineer',
|
||
|
title: '客户工程师'
|
||
|
},
|
||
|
{
|
||
|
field: 'productDescription',
|
||
|
title: '产品描述',
|
||
|
visible: false
|
||
|
|
||
|
},
|
||
|
{
|
||
|
field: 'maximumInventory',
|
||
|
title: '最高库存',
|
||
|
visible: false
|
||
|
|
||
|
},
|
||
|
{
|
||
|
field: 'productPrice',
|
||
|
title: '产品售价',
|
||
|
visible: false
|
||
|
|
||
|
},
|
||
|
{
|
||
|
field: 'componentName',
|
||
|
title: '组件名称',
|
||
|
visible: false
|
||
|
|
||
|
},
|
||
|
{
|
||
|
field: 'createrTime',
|
||
|
title: '创建日期',
|
||
|
visible: false
|
||
|
|
||
|
},
|
||
|
{
|
||
|
field: 'ordinalNumber',
|
||
|
title: '半成品对应完工工序号',
|
||
|
visible: false
|
||
|
|
||
|
},
|
||
|
{
|
||
|
field: 'defaultLocation',
|
||
|
title: '默认位置',
|
||
|
visible: false
|
||
|
|
||
|
},
|
||
|
{
|
||
|
field: 'hsNumber',
|
||
|
title: 'HS号',
|
||
|
visible: false
|
||
|
|
||
|
},
|
||
|
{
|
||
|
field: 'kesNumber',
|
||
|
title: '科恩仕料号'
|
||
|
},
|
||
|
{
|
||
|
field: 'standbyOne',
|
||
|
title: '备用一',
|
||
|
visible: false
|
||
|
|
||
|
},
|
||
|
{
|
||
|
field: 'standbyTwo',
|
||
|
title: '备用二',
|
||
|
visible: false
|
||
|
|
||
|
},
|
||
|
{
|
||
|
field: 'firstAddTime',
|
||
|
title: '录入时间',
|
||
|
formatter: function (value, row, index) {
|
||
|
if (value == null) {
|
||
|
return " ";
|
||
|
} else {
|
||
|
return value;
|
||
|
}
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
field: 'updateInfoTime',
|
||
|
title: '上次修改时间',
|
||
|
formatter: function (value, row, index) {
|
||
|
if (value == null) {
|
||
|
return " ";
|
||
|
} else {
|
||
|
var vArr = value.split(',')
|
||
|
return vArr[0];
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
// {
|
||
|
// 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="$.operate.edit(\'' + row.finishProductId + '\')"><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.finishProductId + '\')"><i class="fa fa-remove"></i>删除</a>');
|
||
|
// return actions.join('');
|
||
|
// }
|
||
|
// }
|
||
|
]
|
||
|
};
|
||
|
$.table.init(options);
|
||
|
});
|
||
|
</script>
|
||
|
</body>
|
||
|
</html>
|