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.
515 lines
23 KiB
515 lines
23 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="poId"/>-->
|
||
|
<!-- </li>-->
|
||
|
<li>
|
||
|
<label>工单号:</label>
|
||
|
<input type="text" name="workNo"/>
|
||
|
</li>
|
||
|
<li>
|
||
|
<label>订单号:</label>
|
||
|
<input type="text" name="piNo"/>
|
||
|
</li>
|
||
|
<!-- <li>-->
|
||
|
<!-- <label>客户代码:</label>-->
|
||
|
<!-- <input type="text" name="pCode"/>-->
|
||
|
<!-- </li>-->
|
||
|
<li>
|
||
|
<label>客户名称:</label>
|
||
|
<input type="text" name="pName"/>
|
||
|
</li>
|
||
|
<li>
|
||
|
<label>开工日期:</label>
|
||
|
<input type="text" class="time-input" placeholder="请选择开工日期" name="beginDate"/>
|
||
|
</li>
|
||
|
<li>
|
||
|
<label>完工日期:</label>
|
||
|
<input type="text" class="time-input" placeholder="请选择完工日期" name="endDate"/>
|
||
|
</li>
|
||
|
<li>
|
||
|
<label>开单日期:</label>
|
||
|
<input type="text" class="time-input" placeholder="请选择开单日期" name="poDate"/>
|
||
|
</li>
|
||
|
<li>
|
||
|
<label>发货日期:</label>
|
||
|
<input type="text" class="time-input" placeholder="请选择发货日期" name="sendDate"/>
|
||
|
</li>
|
||
|
<li>
|
||
|
<label>工单类型:</label>
|
||
|
<input type="text" name="workorderClass"/>
|
||
|
</li>
|
||
|
<li>
|
||
|
<label>成品代码:</label>
|
||
|
<input type="text" name="cpCode"/>
|
||
|
</li>
|
||
|
<li>
|
||
|
<label>:</label>
|
||
|
<select name="cpType">
|
||
|
<option value="">所有</option>
|
||
|
<option value="-1">代码生成请选择字典属性</option>
|
||
|
</select>
|
||
|
</li>
|
||
|
<!-- <li>-->
|
||
|
<!-- <label>单位:</label>-->
|
||
|
<!-- <input type="text" name="cpDw"/>-->
|
||
|
<!-- </li>-->
|
||
|
<!-- <li>-->
|
||
|
<!-- <label>数量:</label>-->
|
||
|
<!-- <input type="text" name="cpQty"/>-->
|
||
|
<!-- </li>-->
|
||
|
<!-- <li>-->
|
||
|
<!-- <label>投单数量:</label>-->
|
||
|
<!-- <input type="text" name="ylCpQty"/>-->
|
||
|
<!-- </li>-->
|
||
|
<!-- <li>-->
|
||
|
<!-- <label>完工入库数量:</label>-->
|
||
|
<!-- <input type="text" name="cpInQty"/>-->
|
||
|
<!-- </li>-->
|
||
|
<!-- <li>-->
|
||
|
<!-- <label>欠工单数量:</label>-->
|
||
|
<!-- <input type="text" name="qdQty"/>-->
|
||
|
<!-- </li>-->
|
||
|
<li>
|
||
|
<label>是否结案:</label>
|
||
|
<input type="text" name="endFlag"/>
|
||
|
</li>
|
||
|
<!-- <li>-->
|
||
|
<!-- <label>:</label>-->
|
||
|
<!-- <input type="text" name="chinaInOrOut"/>-->
|
||
|
<!-- </li>-->
|
||
|
<!-- <li>-->
|
||
|
<!-- <label>:</label>-->
|
||
|
<!-- <input type="text" name="isDelete"/>-->
|
||
|
<!-- </li>-->
|
||
|
<!-- <li>-->
|
||
|
<!-- <label>成品料号:</label>-->
|
||
|
<!-- <input type="text" name="cpwldm"/>-->
|
||
|
<!-- </li>-->
|
||
|
<!-- <li>-->
|
||
|
<!-- <label>:</label>-->
|
||
|
<!-- <input type="text" name="nowcpstockqty"/>-->
|
||
|
<!-- </li>-->
|
||
|
<!-- <li>-->
|
||
|
<!-- <label>:</label>-->
|
||
|
<!-- <input type="text" name="NWX"/>-->
|
||
|
<!-- </li>-->
|
||
|
<!-- <li>-->
|
||
|
<!-- <label>:</label>-->
|
||
|
<!-- <input type="text" name="haveprint"/>-->
|
||
|
<!-- </li>-->
|
||
|
<!-- <li>-->
|
||
|
<!-- <label>版本号:</label>-->
|
||
|
<!-- <input type="text" name="bomVersionNo"/>-->
|
||
|
<!-- </li>-->
|
||
|
<!-- <li>-->
|
||
|
<!-- <label>:</label>-->
|
||
|
<!-- <input type="text" name="badQty"/>-->
|
||
|
<!-- </li>-->
|
||
|
<!-- <li>-->
|
||
|
<!-- <label>:</label>-->
|
||
|
<!-- <input type="text" name="jaMan"/>-->
|
||
|
<!-- </li>-->
|
||
|
<!-- <li>-->
|
||
|
<!-- <label>:</label>-->
|
||
|
<!-- <input type="text" class="time-input" placeholder="请选择" name="jaTime"/>-->
|
||
|
<!-- </li>-->
|
||
|
<!-- <li>-->
|
||
|
<!-- <label>:</label>-->
|
||
|
<!-- <input type="text" name="department"/>-->
|
||
|
<!-- </li>-->
|
||
|
<!-- <li>-->
|
||
|
<!-- <label>:</label>-->
|
||
|
<!-- <input type="text" name="cpWeizhi"/>-->
|
||
|
<!-- </li>-->
|
||
|
<!-- <li>-->
|
||
|
<!-- <label>:</label>-->
|
||
|
<!-- <input type="text" name="mjWeizhi"/>-->
|
||
|
<!-- </li>-->
|
||
|
<!-- <li>-->
|
||
|
<!-- <label>版本号:</label>-->
|
||
|
<!-- <input type="text" name="versionNo"/>-->
|
||
|
<!-- </li>-->
|
||
|
<!-- <li>-->
|
||
|
<!-- <label>:</label>-->
|
||
|
<!-- <input type="text" name="Factory"/>-->
|
||
|
<!-- </li>-->
|
||
|
<li>
|
||
|
<label>制造数量:</label>
|
||
|
<input type="text" name="madeQty"/>
|
||
|
</li>
|
||
|
<li>
|
||
|
<label>损耗:</label>
|
||
|
<input type="text" name="qMadeQty"/>
|
||
|
</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.addFull()" shiro:hasPermission="produce:workorderhead:add">-->
|
||
|
<!-- <i class="fa fa-plus"></i> 添加-->
|
||
|
<!-- </a>-->
|
||
|
<a class="btn btn-primary single disabled" onclick="modifyInfo()"
|
||
|
shiro:hasPermission="buyorderHead:buyOrderList:chooseManufacture">
|
||
|
<i class="fa fa-edit"></i> 选择
|
||
|
</a>
|
||
|
<!-- <a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="produce:workorderhead:remove">-->
|
||
|
<!-- <i class="fa fa-remove"></i> 删除-->
|
||
|
<!-- </a>-->
|
||
|
<!-- <a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="produce:workorderhead:export">-->
|
||
|
<!-- <i class="fa fa-download"></i> 导出-->
|
||
|
<!-- </a>-->
|
||
|
</div>
|
||
|
<div class="col-sm-12 select-table table-striped" style="padding-bottom: 100px;">
|
||
|
<table id="bootstrap-table"></table>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<th:block th:include="include :: footer"/>
|
||
|
<script th:inline="javascript">
|
||
|
var editFlag = [[${@permission.hasPermi('produce:workorderhead:edit')}]];
|
||
|
var removeFlag = [[${@permission.hasPermi('produce:workorderhead:remove')}]];
|
||
|
var prefix = ctx + "produce/workorderhead";
|
||
|
|
||
|
|
||
|
//鼠标移入,显示完整的数据
|
||
|
function paramsMatter(value, row, index) {
|
||
|
var span = document.createElement("span");
|
||
|
span.setAttribute("title", value);
|
||
|
span.innerHTML = value;
|
||
|
return span.outerHTML;
|
||
|
}
|
||
|
|
||
|
$(function () {
|
||
|
var options = {
|
||
|
url: prefix + "/list",
|
||
|
createUrl: prefix + "/add",
|
||
|
updateUrl: prefix + "/edit/{id}",
|
||
|
removeUrl: prefix + "/remove",
|
||
|
exportUrl: prefix + "/export",
|
||
|
modalName: "制工",
|
||
|
columns: [{
|
||
|
radio: true
|
||
|
},
|
||
|
{
|
||
|
field: 'poId',
|
||
|
title: '工单号',
|
||
|
visible: false
|
||
|
},
|
||
|
{
|
||
|
field: 'poNo',
|
||
|
title: '订单号'
|
||
|
},
|
||
|
{
|
||
|
field: 'workNo',
|
||
|
title: '工单号'
|
||
|
},
|
||
|
{
|
||
|
field: 'piNo',
|
||
|
title: '',
|
||
|
visible: false
|
||
|
|
||
|
},
|
||
|
{
|
||
|
field: 'pCode',
|
||
|
title: '客户代码',
|
||
|
visible: false
|
||
|
},
|
||
|
{
|
||
|
field: 'pName',
|
||
|
title: '公司名称',
|
||
|
cellStyle: function (value, row, index) {
|
||
|
return {
|
||
|
css: {
|
||
|
"min-width": "60px",
|
||
|
"text-overflow": "ellipsis",
|
||
|
"overflow": "hidden",
|
||
|
"max-width": "80px",
|
||
|
"white-space": "nowrap"
|
||
|
}
|
||
|
}
|
||
|
},
|
||
|
|
||
|
formatter: paramsMatter
|
||
|
},
|
||
|
{
|
||
|
field: 'cpCode',
|
||
|
title: '成品代码'
|
||
|
},
|
||
|
{
|
||
|
field: 'cpQty',
|
||
|
title: '订单数量'
|
||
|
},
|
||
|
{
|
||
|
field: 'ylCpQty',
|
||
|
title: '投单数量'
|
||
|
},
|
||
|
{
|
||
|
field: 'cpInQty',
|
||
|
title: '完工入库数量'
|
||
|
},
|
||
|
{
|
||
|
field: 'qdQty',
|
||
|
title: '欠工单数量'
|
||
|
},
|
||
|
{
|
||
|
field: 'poDate',
|
||
|
title: '开单日期',
|
||
|
cellStyle: function (value, row, index) {
|
||
|
return {
|
||
|
css: {
|
||
|
"min-width": "80px",
|
||
|
"text-overflow": "ellipsis",
|
||
|
"overflow": "hidden",
|
||
|
"max-width": "100px",
|
||
|
"white-space": "nowrap"
|
||
|
}
|
||
|
}
|
||
|
},
|
||
|
},
|
||
|
{
|
||
|
field: 'beginDate',
|
||
|
title: '开工日期',
|
||
|
cellStyle: function (value, row, index) {
|
||
|
return {
|
||
|
css: {
|
||
|
"min-width": "80px",
|
||
|
"text-overflow": "ellipsis",
|
||
|
"overflow": "hidden",
|
||
|
"max-width": "100px",
|
||
|
"white-space": "nowrap"
|
||
|
}
|
||
|
}
|
||
|
},
|
||
|
},
|
||
|
{
|
||
|
field: 'endDate',
|
||
|
title: '完工日期',
|
||
|
cellStyle: function (value, row, index) {
|
||
|
return {
|
||
|
css: {
|
||
|
"min-width": "80px",
|
||
|
"text-overflow": "ellipsis",
|
||
|
"overflow": "hidden",
|
||
|
"max-width": "100px",
|
||
|
"white-space": "nowrap"
|
||
|
}
|
||
|
}
|
||
|
},
|
||
|
},
|
||
|
|
||
|
{
|
||
|
field: 'sendDate',
|
||
|
title: '发货日期',
|
||
|
cellStyle: function (value, row, index) {
|
||
|
return {
|
||
|
css: {
|
||
|
"min-width": "80px",
|
||
|
"text-overflow": "ellipsis",
|
||
|
"overflow": "hidden",
|
||
|
"max-width": "100px",
|
||
|
"white-space": "nowrap"
|
||
|
}
|
||
|
}
|
||
|
},
|
||
|
},
|
||
|
{
|
||
|
field: 'workorderClass',
|
||
|
title: '工单类型',
|
||
|
cellStyle: function (value, row, index) {
|
||
|
return {
|
||
|
css: {
|
||
|
"min-width": "60px",
|
||
|
"text-overflow": "ellipsis",
|
||
|
"overflow": "hidden",
|
||
|
"max-width": "80px",
|
||
|
"white-space": "nowrap"
|
||
|
}
|
||
|
}
|
||
|
},
|
||
|
},
|
||
|
|
||
|
{
|
||
|
field: 'cpName',
|
||
|
title: '成品名称'
|
||
|
},
|
||
|
{
|
||
|
field: 'cpType',
|
||
|
title: '规格型号',
|
||
|
cellStyle: function (value, row, index) {
|
||
|
return {
|
||
|
css: {
|
||
|
"min-width": "60px",
|
||
|
"text-overflow": "ellipsis",
|
||
|
"overflow": "hidden",
|
||
|
"max-width": "150px",
|
||
|
"white-space": "nowrap"
|
||
|
}
|
||
|
}
|
||
|
},
|
||
|
formatter: paramsMatter
|
||
|
},
|
||
|
{
|
||
|
field: 'cpMachineno',
|
||
|
title: '机种',
|
||
|
cellStyle: function (value, row, index) {
|
||
|
return {
|
||
|
css: {
|
||
|
"min-width": "60px",
|
||
|
"text-overflow": "ellipsis",
|
||
|
"overflow": "hidden",
|
||
|
"max-width": "150px",
|
||
|
"white-space": "nowrap"
|
||
|
}
|
||
|
}
|
||
|
},
|
||
|
},
|
||
|
{
|
||
|
field: 'cpDw',
|
||
|
title: '单位'
|
||
|
},
|
||
|
|
||
|
{
|
||
|
field: 'bzMemo',
|
||
|
title: '备注'
|
||
|
},
|
||
|
{
|
||
|
field: 'endFlag',
|
||
|
title: '是否结案',
|
||
|
formatter: function (value, index, row) {
|
||
|
if (value == 1) {
|
||
|
return "是";
|
||
|
} else {
|
||
|
return "否";
|
||
|
}
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
field: 'chinaInOrOut',
|
||
|
title: '',
|
||
|
visible: false
|
||
|
},
|
||
|
{
|
||
|
field: 'isDelete',
|
||
|
title: '',
|
||
|
visible: false
|
||
|
},
|
||
|
{
|
||
|
field: 'cpwldm',
|
||
|
title: '成品料号',
|
||
|
visible: false
|
||
|
},
|
||
|
{
|
||
|
field: 'nowcpstockqty',
|
||
|
title: '',
|
||
|
visible: false
|
||
|
},
|
||
|
{
|
||
|
field: 'NWX',
|
||
|
title: '',
|
||
|
visible: false
|
||
|
},
|
||
|
{
|
||
|
field: 'haveprint',
|
||
|
title: '',
|
||
|
visible: false
|
||
|
},
|
||
|
{
|
||
|
field: 'bomVersionNo',
|
||
|
title: '版本号',
|
||
|
visible: false
|
||
|
},
|
||
|
{
|
||
|
field: 'badQty',
|
||
|
title: '',
|
||
|
visible: false
|
||
|
},
|
||
|
{
|
||
|
field: 'jaMan',
|
||
|
title: '',
|
||
|
visible: false
|
||
|
|
||
|
},
|
||
|
{
|
||
|
field: 'jaTime',
|
||
|
title: '',
|
||
|
visible: false
|
||
|
},
|
||
|
{
|
||
|
field: 'department',
|
||
|
title: '',
|
||
|
visible: false
|
||
|
},
|
||
|
{
|
||
|
field: 'cpWeizhi',
|
||
|
title: '',
|
||
|
visible: false
|
||
|
},
|
||
|
{
|
||
|
field: 'mjWeizhi',
|
||
|
title: '',
|
||
|
visible: false
|
||
|
},
|
||
|
{
|
||
|
field: 'versionNo',
|
||
|
title: '版本号',
|
||
|
visible: false
|
||
|
},
|
||
|
{
|
||
|
field: 'Factory',
|
||
|
title: '',
|
||
|
visible: false
|
||
|
},
|
||
|
{
|
||
|
field: 'madeQty',
|
||
|
title: '制造数量',
|
||
|
visible: false
|
||
|
},
|
||
|
{
|
||
|
field: 'qMadeQty',
|
||
|
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="$.operate.edit(\'' + row.poId + '\')"><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.poId + '\')"><i class="fa fa-remove"></i>删除</a>');
|
||
|
return actions.join('');
|
||
|
}
|
||
|
}]
|
||
|
};
|
||
|
$.table.init(options);
|
||
|
});
|
||
|
|
||
|
|
||
|
function modifyInfo() {
|
||
|
let row = $("#bootstrap-table").bootstrapTable("getSelections");
|
||
|
window.location.href = ctx + "stock/notice" + "/chooseManufactureOrder/" + row[0].workNo;
|
||
|
}
|
||
|
|
||
|
|
||
|
</script>
|
||
|
</body>
|
||
|
</html>
|