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.
206 lines
7.9 KiB
206 lines
7.9 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 name="sendDate" class="form-control" placeholder="yyyy-MM-dd" type="text">
|
|
</li>
|
|
<li>
|
|
<label>开单日期(截止):</label>
|
|
<input name="sendDate2" class="form-control" placeholder="yyyy-MM-dd" type="text">
|
|
</li>
|
|
<li>
|
|
<label>订单号:</label>
|
|
<input type="text" name="saleorderNO"/>
|
|
</li>
|
|
<li>
|
|
<label>客户名称:</label>
|
|
<input type="text" name="pName"/>
|
|
</li>
|
|
<li>
|
|
<label>物料代码:</label>
|
|
<input type="text" name="wlCode"/>
|
|
</li>
|
|
<li>
|
|
<label>物料名称:</label>
|
|
<input type="text" name="itemname"/>
|
|
</li>
|
|
<li>
|
|
<label>结案选择:</label>
|
|
<input type="text" name="endFlag"/>
|
|
</li>
|
|
<li>
|
|
<label>订单确认否:</label>
|
|
<input type="text" name=""/>
|
|
</li>
|
|
<li>
|
|
<label>交货日期(起始):</label>
|
|
<input type="text" class="time-input" placeholder="请选择" name="plandate"/>
|
|
</li>
|
|
<li>
|
|
<label>交货日期(截止):</label>
|
|
<input type="text" class="time-input" placeholder="请选择" name="plandate2"/>
|
|
</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="finance:saleorderhead:add">
|
|
<i class="fa fa-plus"></i> 添加
|
|
</a>
|
|
<a class="btn btn-primary single disabled" onclick="$.operate.edit()"
|
|
shiro:hasPermission="finance:saleorderhead:edit">
|
|
<i class="fa fa-edit"></i> 修改
|
|
</a>
|
|
<a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()"
|
|
shiro:hasPermission="finance:saleorderhead:remove">
|
|
<i class="fa fa-remove"></i> 删除
|
|
</a>
|
|
<a class="btn btn-warning" onclick="$.table.exportExcel()"
|
|
shiro:hasPermission="finance:saleorderhead:export">
|
|
<i class="fa fa-download"></i> 导出
|
|
</a>
|
|
</div>
|
|
<div class="col-sm-12 select-table table-striped table-single">
|
|
<table id="bootstrap-table"></table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<th:block th:include="include :: footer" />
|
|
<th:block th:include="include :: bootstrap-table-editable-js" />
|
|
<th:block th:include="include :: datetimepicker-css" />
|
|
<th:block th:include="include :: datetimepicker-js" />
|
|
<script th:inline="javascript">
|
|
var editFlag = [[${@permission.hasPermi('finance:saleorderhead:edit')}]];
|
|
var removeFlag = [[${@permission.hasPermi('finance:saleorderhead:remove')}]];
|
|
var prefix = ctx + "finance/saleorderhead";
|
|
|
|
$(function () {
|
|
var options = {
|
|
url: prefix + "/list",
|
|
createUrl: prefix + "/add",
|
|
updateUrl: prefix + "/edit/{id}",
|
|
removeUrl: prefix + "/remove",
|
|
exportUrl: prefix + "/export",
|
|
modalName: "销售订单表",
|
|
columns: [{
|
|
checkbox: true
|
|
},
|
|
{
|
|
field: 'saleorderNO',
|
|
title: '订单号'
|
|
},
|
|
{
|
|
field: 'sendDate',
|
|
title: '交货日期'
|
|
},
|
|
{
|
|
field: 'plandate',
|
|
title: '开单日期'
|
|
},
|
|
{
|
|
field: 'pCode',
|
|
title: '客户代码'
|
|
},
|
|
{
|
|
field: 'pName',
|
|
title: '客户名称'
|
|
},
|
|
{
|
|
field: 'wlCode',
|
|
title: '成品代码'
|
|
},
|
|
{
|
|
field: 'itemname',
|
|
title: '成品名称'
|
|
},
|
|
{
|
|
field: 'crlName',
|
|
title: '币别'
|
|
},
|
|
{
|
|
field: 'price',
|
|
title: '单价'
|
|
},
|
|
{
|
|
field: 'qty',
|
|
title: '订单数量'
|
|
},
|
|
{
|
|
field: 'factory',
|
|
title: '已开工数量'
|
|
},
|
|
{
|
|
field: 'factory',
|
|
title: '欠开工数量'
|
|
},
|
|
{
|
|
field: 'amt',
|
|
title: '金额'
|
|
},
|
|
{
|
|
field: 'getMoneyMemo',
|
|
title: '付款金额'
|
|
},
|
|
{
|
|
field: 'saler',
|
|
title: '业务员'
|
|
},
|
|
{
|
|
field: 'endFlag',
|
|
title: '结案否'
|
|
},
|
|
{
|
|
field: 'piNo',
|
|
title: '出货批号'
|
|
},
|
|
{
|
|
field: 'saleorderIDL',
|
|
title: '订单编号',
|
|
|
|
},
|
|
{
|
|
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.saleorderID + '\')"><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.saleorderID + '\')"><i class="fa fa-remove"></i>删除</a>');
|
|
return actions.join('');
|
|
}
|
|
}]
|
|
};
|
|
$.table.init(options);
|
|
});
|
|
$("input[name='sendDate']").datetimepicker({
|
|
format: "yyyy-mm-dd",
|
|
minView: "month",
|
|
autoclose: true,
|
|
todayBtn:true
|
|
});
|
|
$("input[name='sendDate2']").datetimepicker({
|
|
format: "yyyy-mm-dd",
|
|
minView: "month",
|
|
autoclose: true,
|
|
todayBtn:true
|
|
});
|
|
</script>
|
|
</body>
|
|
</html>
|