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.
187 lines
7.7 KiB
187 lines
7.7 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=""/>
|
|
</li>
|
|
<li>
|
|
<label>结束日期:</label>
|
|
<input type="text" name="pName"/>
|
|
</li>
|
|
<li>
|
|
<label>订单号:</label>
|
|
<input type="text" name="SaleorderNO"/>
|
|
</li>
|
|
<li>
|
|
<label>接单方式:</label>
|
|
<input type="text" name="Itemname"/>
|
|
</li>
|
|
<li>
|
|
<label>是否结案:</label>
|
|
<input type="text" name="Qty"/>
|
|
</li>
|
|
<!--<li>-->
|
|
<!--<label style="display: flex">客户名称</label>-->
|
|
<!--<select style="display: flex">-->
|
|
<!--</select>-->
|
|
<!--</li>-->
|
|
<li>
|
|
<label>物料种类:</label>
|
|
<input type="text" name="qQty"/>
|
|
</li>
|
|
<li>
|
|
<label>物料代码:</label>
|
|
<input type="text" name="zzgdOrderqty"/>
|
|
</li>
|
|
<!--<li>-->
|
|
<!--<label>物料名称:</label>-->
|
|
<!--<input type="text" name="zzgdQQty"/>-->
|
|
<!--</li>-->
|
|
<li>
|
|
<label>开始交期:</label>
|
|
<input type="text" class="time-input" placeholder="请选择" name="SendDate"/>
|
|
</li>
|
|
<li>
|
|
<label>截止交期:</label>
|
|
<input type="text" name="Factory"/>
|
|
</li>
|
|
<li>
|
|
<label>币种:</label>
|
|
<input type="text" name="piNo"/>
|
|
</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="finance:lsalesOrder:add">
|
|
<i class="fa fa-plus"></i> 添加
|
|
</a>
|
|
<a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="finance:lsalesOrder:remove">
|
|
<i class="fa fa-remove"></i> 删除
|
|
</a>
|
|
<a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="finance:lsalesOrder: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('finance:lsalesOrder:edit')}]];
|
|
var removeFlag = [[${@permission.hasPermi('finance:lsalesOrder:remove')}]];
|
|
var prefix = ctx + "finance/lsalesOrder";
|
|
|
|
|
|
$(function() {
|
|
var options = {
|
|
url: prefix + "/list",
|
|
createUrl: prefix + "/add",
|
|
updateUrl: prefix + "/edit/{id}",
|
|
removeUrl: prefix + "/remove",
|
|
exportUrl: prefix + "/export",
|
|
SaleorderUrl:prefix + "/saleorder/{saleorderNO}",
|
|
modalName: "订单管理",
|
|
onDblClickRow:onDblClickRow,
|
|
columns: [
|
|
{
|
|
checkbox: true
|
|
},
|
|
{
|
|
field: 'saleorderNO',
|
|
title: '订单号'
|
|
},
|
|
{
|
|
field: 'pName',
|
|
title: '客户名称'
|
|
},
|
|
{
|
|
field: 'wlCode',
|
|
title: '料号'
|
|
},
|
|
{
|
|
field: 'itemname',
|
|
title: '产品名'
|
|
},
|
|
{
|
|
field: 'qty',
|
|
title: '订单数量'
|
|
},
|
|
{
|
|
field: 'orderQty',
|
|
title: '已交货数量'
|
|
},
|
|
{
|
|
field: 'qQty',
|
|
title: '未交货数量'
|
|
},
|
|
{
|
|
field: 'zzgdOrderqty',
|
|
title: '已下工单数量'
|
|
},
|
|
{
|
|
field: 'zzgdQQty',
|
|
title: '欠工单数量'
|
|
},
|
|
{
|
|
field: 'SendDate',
|
|
title: '交货日期'
|
|
},
|
|
{
|
|
field: 'factory',
|
|
title: 'Factory'
|
|
},
|
|
{
|
|
field: 'piNo',
|
|
title: 'PNO'
|
|
},
|
|
{
|
|
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.saleorderNO + '\')"><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.saleorderNO + '\')"><i class="fa fa-remove"></i>删除</a>');
|
|
return actions.join('');
|
|
}
|
|
}]
|
|
};
|
|
$.table.init(options);
|
|
|
|
});
|
|
|
|
function onDblClickRow(row) {
|
|
console.log("这行订单号:" + row.saleorderNO)
|
|
var url = "/404.html";
|
|
if ($.common.isNotEmpty(row.saleorderNO)){
|
|
url = table.options.SaleorderUrl.replace("{saleorderNO}", row.saleorderNO);
|
|
console.log(url);
|
|
$.modal.open("订单明细" , url,1200);
|
|
} else {
|
|
|
|
}
|
|
}
|
|
// function onDblClickRow (row) {
|
|
// console.log("这行订单号:" + row.saleorderNO)
|
|
// }
|
|
</script>
|
|
</body>
|
|
</html>
|