订单操作记录页面
This commit is contained in:
parent
ccda079938
commit
a90df2dab3
|
|
@ -0,0 +1,36 @@
|
||||||
|
package com.ghy.web.controller.order;
|
||||||
|
|
||||||
|
import com.ghy.common.core.domain.AjaxResult;
|
||||||
|
import com.ghy.order.domain.OrderBehavior;
|
||||||
|
import com.ghy.order.service.OrderBehaviorService;
|
||||||
|
import org.springframework.stereotype.Controller;
|
||||||
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestBody;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.ResponseBody;
|
||||||
|
|
||||||
|
import javax.annotation.Resource;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
@Controller
|
||||||
|
@RequestMapping("order/behavior")
|
||||||
|
public class OrderBehaviorController {
|
||||||
|
|
||||||
|
private static final String PREFIX = "order/behavior";
|
||||||
|
|
||||||
|
@Resource
|
||||||
|
private OrderBehaviorService service;
|
||||||
|
|
||||||
|
@ResponseBody
|
||||||
|
@GetMapping("list")
|
||||||
|
public AjaxResult list(OrderBehavior behavior) {
|
||||||
|
List<OrderBehavior> list = service.select(behavior);
|
||||||
|
return AjaxResult.success(list);
|
||||||
|
}
|
||||||
|
|
||||||
|
@GetMapping
|
||||||
|
public String listPage() {
|
||||||
|
return PREFIX + "/list";
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,91 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
|
||||||
|
<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="order-behavior-form">
|
||||||
|
<div class="select-list">
|
||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
师傅名称:<input type="text" name="workerName"/>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
订单编号:<input type="text" name="orderMasterCode"/>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
子订单编号:<input type="text" name="orderDetailCode"/>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
操作类型:<select name="status" th:with="type=${@dict.getType('sys_order_behavior')}">
|
||||||
|
<option value="">所有</option>
|
||||||
|
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"/>
|
||||||
|
</select>
|
||||||
|
</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="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 datas = [[${@dict.getType('sys_order_behavior')}]];
|
||||||
|
var prefix = ctx + "order/behavior"
|
||||||
|
|
||||||
|
$(function () {
|
||||||
|
var options = {
|
||||||
|
url: prefix + "/list",
|
||||||
|
method: 'get',
|
||||||
|
modalName: "订单操作记录",
|
||||||
|
columns: [
|
||||||
|
{
|
||||||
|
field: 'orderMasterCode',
|
||||||
|
title: '订单编号',
|
||||||
|
align: "left"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
field: 'orderDetailCode',
|
||||||
|
title: '子订单编号',
|
||||||
|
align: "left"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
field: 'workerName',
|
||||||
|
title: '师傅名称',
|
||||||
|
align: "left"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
field: 'behavior',
|
||||||
|
title: '操作',
|
||||||
|
align: "left",
|
||||||
|
formatter: function (value, item, index) {
|
||||||
|
return $.table.selectDictLabel(datas, item.status);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
field: 'behaviorTime',
|
||||||
|
title: '操作时间',
|
||||||
|
align: "left"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
};
|
||||||
|
$.table.init(options);
|
||||||
|
});
|
||||||
|
|
||||||
|
</script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
Loading…
Reference in New Issue