unis_sip/ruoyi-admin/src/main/resources/templates/manage/delivery/selectOrder.html

89 lines
2.3 KiB
HTML

<!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="col-sm-12 select-table table-striped" >
<div>
<form id="formId">
<div class="select-list">
<ul>
<li>
<label>合同编号:</label>
<input type="text" name="orderCode"/>
</li>
<li>
<label>合同名称:</label>
<input type="text" name="orderName"/>
</li>
<li>
<label>客户名称:</label>
<input type="text" name="customerName"/>
</li>
<li>
<label>合同类型:</label>
<select name="orderType" th:with="type=${@dict.getType('order_type')}">
<option value="">所有</option>
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
</select>
</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>
<table id="bootstrap-table"></table>
</div>
<th:block th:include="include :: footer" />
<script>
var prefixOrder = ctx + "manage/order";
$(function() {
var options = {
url: prefixOrder + "/list",
showSearch:false,
showColumns:false,
showToggle:false,
showRefresh:false,
showPageGo:true,
params:{
},
onClickRow:function (row,event) {
$(parent[parent.length-2].document).find("input[name='orderId']").val(row.id)
$(parent[parent.length-2].document).find("input[name='orderName']").val(row.orderName)
$.modal.close();
},
columns: [{
checkbox: false,
},
{
field: 'id',
title: '主键',
},
{
field: 'orderCode',
title: '合同编号'
},
{
field: 'orderName',
title: '合同名称'
},
]
};
$.table.init(options);
});
</script>
</body>
</html>