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.
223 lines
8.3 KiB
223 lines
8.3 KiB
<!DOCTYPE html>
|
|
<html>
|
|
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title></title>
|
|
<link rel="stylesheet" href="../layui/css/layui.css" />
|
|
<style>
|
|
.woo-tool-text-delimiter {
|
|
width: 1px;
|
|
height: 12px;
|
|
background: #EEEEEE;
|
|
display: inline-block;
|
|
margin: 0 6px 0 4px;
|
|
}
|
|
|
|
.woo-theme-color {
|
|
color: #1e9fff !important;
|
|
}
|
|
|
|
.woo-tool-span {
|
|
margin: 0 3px;
|
|
position: relative;
|
|
top: -1px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.layui-card-body .layui-form {
|
|
margin-top: 0 !important;
|
|
}
|
|
|
|
.layui-form-item .layui-inline {
|
|
/* margin-bottom: 5px; */
|
|
margin-right: 0;
|
|
}
|
|
|
|
/* .layui-form-select {
|
|
width: 300px;
|
|
} */
|
|
</style>
|
|
</head>
|
|
|
|
<body class="layui-form">
|
|
|
|
<div class="layui-card" style="margin-bottom: 10px !important;">
|
|
<div class="layui-card-body">
|
|
<div class="layui-form-item" style="margin: 10px 0 5px 0 !important;">
|
|
<div class="layui-form-item layui-inline">
|
|
<label class="layui-form-label" style="width: auto;">订单号:</label>
|
|
<div class="layui-input-inline" style="width: 200px">
|
|
<input type="text" id="orderNo" lay-affix="clear" lay-filter="clear" placeholder="请输入订单号"
|
|
class="layui-input">
|
|
</div>
|
|
</div>
|
|
<div class="layui-form-item layui-inline">
|
|
<label class="layui-form-label" style="width: auto;">发送人:</label>
|
|
<div class="layui-input-inline" id="sendPerson" style="width: 135px;">
|
|
</div>
|
|
<script id="personScript" type="text/html">
|
|
<select id="personId" lay-filter="sendPersonFilter">
|
|
<option value="">全部</option>
|
|
{{# layui.each(d, function(index, item){ }}
|
|
<option value="{{item.person_id}}">{{item.person_name}}</option>
|
|
{{# }); }}
|
|
</select>
|
|
</script>
|
|
</div>
|
|
<div class="layui-form-item layui-inline">
|
|
<label class="layui-form-label" style="width: auto;">手机号:</label>
|
|
<div class="layui-input-inline" style="width: 200px">
|
|
<input type="text" id="telephone" lay-affix="clear" lay-filter="clear" placeholder="请输入接收短信手机号"
|
|
class="layui-input">
|
|
</div>
|
|
</div>
|
|
<div class="layui-form-item layui-inline">
|
|
<label class="layui-form-label" style="width: auto;">充电站:</label>
|
|
<div class="layui-input-inline" id="station" style="width: 265px;">
|
|
</div>
|
|
<script id="stationScript" type="text/html">
|
|
<select id="stationId" lay-filter="stationFilter">
|
|
<option value="">全部</option>
|
|
{{# layui.each(d, function(index, item){ }}
|
|
<option value="{{item.id}}">{{item.stationName}}</option>
|
|
{{# }); }}
|
|
</select>
|
|
</script>
|
|
</div>
|
|
<div class="layui-form-item layui-inline">
|
|
<button class="layui-btn" lay-submit lay-filter="user-query">
|
|
<i class="layui-icon layui-icon-search"></i>
|
|
查询
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="layui-card">
|
|
<div class="layui-card-body">
|
|
<table id="data-table"></table>
|
|
</div>
|
|
</div>
|
|
|
|
<script src="../layui/layui.js"></script>
|
|
<script src="../../../lib/base64.js"></script>
|
|
|
|
<script>
|
|
layui.use(function () {
|
|
var table = layui.table;
|
|
var form = layui.form;
|
|
var $ = layui.jquery;
|
|
var common = layui.common;
|
|
var laytpl = layui.laytpl;
|
|
|
|
function getJwt() {
|
|
var token = "";
|
|
$.ajax({
|
|
type: "GET",
|
|
async: false,
|
|
url: "/ZhuQue/wxgzh/getJwt",
|
|
success: function (res) {
|
|
if (res.code === 200) {
|
|
token = res.data.token;
|
|
} else {
|
|
token = ""
|
|
}
|
|
}
|
|
});
|
|
return token;
|
|
}
|
|
|
|
getStationList();
|
|
|
|
function getStationList() {
|
|
var _token = getJwt();
|
|
$.ajax({
|
|
type: "GET",
|
|
async: false,
|
|
url: "/saas/station/selectSaasStationList?departmentId=&operatorId=",
|
|
headers: {
|
|
'Authorization': _token
|
|
},
|
|
success: function (res) {
|
|
var stationSelectTpl = stationScript.innerHTML,
|
|
stationView = document.getElementById('station');
|
|
laytpl(stationSelectTpl).render(res.data, function (html) {
|
|
stationView.innerHTML = html;
|
|
});
|
|
form.render();
|
|
}
|
|
});
|
|
}
|
|
|
|
getPersonList();
|
|
|
|
function getPersonList() {
|
|
$.ajax({
|
|
type: "GET",
|
|
async: false,
|
|
url: "/ZhuQue/hurryQuit/getHurryQuitSendPerson",
|
|
success: function (res) {
|
|
var personSelectTpl = personScript.innerHTML,
|
|
personView = document.getElementById('sendPerson');
|
|
laytpl(personSelectTpl).render(res.data, function (html) {
|
|
personView.innerHTML = html;
|
|
});
|
|
form.render();
|
|
}
|
|
});
|
|
}
|
|
|
|
tableRender();
|
|
|
|
function tableRender() {
|
|
|
|
table.render({
|
|
elem: '#data-table',
|
|
url: '/ZhuQue/hurryQuit/queryHurryQuitManualSend',
|
|
where: {
|
|
person_id: $("#personId").val(),
|
|
order_no: $("#orderNo").val(),
|
|
telephone: $("#telephone").val(),
|
|
station_id: $("#stationId").val()
|
|
},
|
|
height: 'full-135',
|
|
page: {
|
|
limit: 20
|
|
, layout: ['count', 'prev', 'page', 'next', 'skip']
|
|
, prev: "上一页"
|
|
, next: "下一页"
|
|
},
|
|
cols: [[
|
|
{ title: '序号', align: 'center', width: "5%", type: 'numbers' },
|
|
{ title: '订单号', field: 'order_no', align: 'center' },
|
|
{ title: '场站', field: 'station_name', align: 'center' },
|
|
{ title: '发送人', field: 'person_name', align: 'center', width: 80 },
|
|
{ title: '发送时间', field: 'send_time', align: 'center' },
|
|
{ title: '手机号', field: 'telephone', align: 'center', width: 130 },
|
|
{ title: '发送内容', field: 'send_message', align: 'left', width: "30%" },
|
|
]],
|
|
skin: 'line',
|
|
defaultToolbar: []
|
|
});
|
|
|
|
|
|
}
|
|
|
|
|
|
form.on('submit(user-query)', function () {
|
|
|
|
tableRender();
|
|
|
|
// 阻止表单的默认提交行为
|
|
return false;
|
|
});
|
|
|
|
|
|
|
|
});
|
|
</script>
|
|
</body>
|
|
|
|
</html> |