2021-05-28 17:28:33 +08:00
|
|
|
|
<!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="nu"/>
|
|
|
|
|
|
</li>
|
|
|
|
|
|
<li>
|
|
|
|
|
|
<label>快递公司:</label>
|
|
|
|
|
|
<input type="text" name="com"/>
|
|
|
|
|
|
</li>
|
|
|
|
|
|
<li>
|
|
|
|
|
|
<label>电话号码:</label>
|
|
|
|
|
|
<input type="text" name="phone"/>
|
|
|
|
|
|
</li>
|
2021-07-21 09:57:17 +08:00
|
|
|
|
<li>
|
|
|
|
|
|
<label>出货单号:</label>
|
|
|
|
|
|
<input type="text" name="deliveryNum"/>
|
|
|
|
|
|
</li>
|
2021-05-28 17:28:33 +08:00
|
|
|
|
<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">
|
2021-06-02 15:24:40 +08:00
|
|
|
|
<!--<a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="bps:expressInfo:add">
|
2021-05-28 17:28:33 +08:00
|
|
|
|
<i class="fa fa-plus"></i> 添加
|
|
|
|
|
|
</a>
|
|
|
|
|
|
<a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="bps:expressInfo:edit">
|
|
|
|
|
|
<i class="fa fa-edit"></i> 修改
|
|
|
|
|
|
</a>
|
|
|
|
|
|
<a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="bps:expressInfo:remove">
|
|
|
|
|
|
<i class="fa fa-remove"></i> 删除
|
2021-06-02 15:24:40 +08:00
|
|
|
|
</a>-->
|
2021-07-21 09:57:17 +08:00
|
|
|
|
<a class="btn btn-info" onclick="$.table.importExcel()">
|
|
|
|
|
|
<i class="fa fa-upload"></i> 导入
|
|
|
|
|
|
</a>
|
2021-05-28 17:28:33 +08:00
|
|
|
|
<a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="bps:expressInfo: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('bps:expressInfo:edit')}]];
|
|
|
|
|
|
var removeFlag = [[${@permission.hasPermi('bps:expressInfo:remove')}]];
|
|
|
|
|
|
|
|
|
|
|
|
var prefix = ctx + "bps/expressInfo";
|
|
|
|
|
|
var datas = [[${@dict.getType('express_company')}]];
|
|
|
|
|
|
var stats= [[${@dict.getType('express_stats')}]];
|
|
|
|
|
|
|
|
|
|
|
|
$(function() {
|
|
|
|
|
|
var options = {
|
|
|
|
|
|
url: prefix + "/list",
|
|
|
|
|
|
createUrl: prefix + "/add",
|
|
|
|
|
|
updateUrl: prefix + "/edit/{id}",
|
|
|
|
|
|
removeUrl: prefix + "/remove",
|
|
|
|
|
|
exportUrl: prefix + "/export",
|
2021-07-21 09:57:17 +08:00
|
|
|
|
importUrl: prefix + "/importData",
|
|
|
|
|
|
importTemplateUrl: prefix + "/importTemplate",
|
2021-05-28 17:28:33 +08:00
|
|
|
|
modalName: "快递信息",
|
|
|
|
|
|
columns: [{
|
2021-06-02 15:24:40 +08:00
|
|
|
|
checkbox: false
|
2021-05-28 17:28:33 +08:00
|
|
|
|
},
|
|
|
|
|
|
/*
|
|
|
|
|
|
{
|
|
|
|
|
|
field: 'message',
|
|
|
|
|
|
title: '消息'
|
|
|
|
|
|
},*/
|
2021-07-21 09:57:17 +08:00
|
|
|
|
{
|
|
|
|
|
|
field: 'deliveryNum',
|
|
|
|
|
|
title: '出货单号'
|
|
|
|
|
|
},
|
2021-05-28 17:28:33 +08:00
|
|
|
|
{
|
|
|
|
|
|
field: 'nu',
|
|
|
|
|
|
title: '快递单号'
|
|
|
|
|
|
},
|
|
|
|
|
|
/*
|
|
|
|
|
|
{
|
|
|
|
|
|
field: 'ischeck',
|
|
|
|
|
|
title: '签收状态'
|
|
|
|
|
|
},*/
|
|
|
|
|
|
{
|
|
|
|
|
|
field: 'com',
|
|
|
|
|
|
title: '快递公司',
|
|
|
|
|
|
formatter: function(value, row, index) {
|
|
|
|
|
|
return $.table.selectDictLabel(datas, value);
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
/*
|
|
|
|
|
|
{
|
|
|
|
|
|
field: 'status',
|
|
|
|
|
|
title: '通信状态'
|
|
|
|
|
|
},*/
|
|
|
|
|
|
{
|
|
|
|
|
|
field: 'data',
|
2021-06-02 15:24:40 +08:00
|
|
|
|
title: '运单详情',
|
|
|
|
|
|
formatter:function (value,row,index){
|
|
|
|
|
|
return value.replace(/(\r\n)|(\n)/g,'<br>');
|
|
|
|
|
|
}
|
2021-05-28 17:28:33 +08:00
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
field: 'state',
|
|
|
|
|
|
title: '当前状态',
|
|
|
|
|
|
formatter: function(value, row, index) {
|
|
|
|
|
|
return $.table.selectDictLabel(stats, value);
|
|
|
|
|
|
}
|
|
|
|
|
|
},/*
|
|
|
|
|
|
{
|
|
|
|
|
|
field: 'condition',
|
|
|
|
|
|
title: '状态标志'
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
field: 'routeInfo',
|
|
|
|
|
|
title: '路由信息'
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
field: 'returnCode',
|
|
|
|
|
|
title: '返回码'
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
field: 'result',
|
|
|
|
|
|
title: '返回结果'
|
|
|
|
|
|
},*/
|
2021-07-21 09:57:17 +08:00
|
|
|
|
|
2021-05-28 17:28:33 +08:00
|
|
|
|
{
|
|
|
|
|
|
field: 'phone',
|
|
|
|
|
|
title: '电话号码'
|
2021-07-21 09:57:17 +08:00
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
field: 'singedTime',
|
|
|
|
|
|
title: '签收时间'
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
field: 'collectTime',
|
|
|
|
|
|
title: '揽收时间'
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
field: 'lastUpdateTime',
|
|
|
|
|
|
title: '最后更新时间'
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
field: 'queryTime',
|
|
|
|
|
|
title: '查询时间'
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
field: 'queryUser',
|
|
|
|
|
|
title: '查询人'
|
|
|
|
|
|
}
|
|
|
|
|
|
/*
|
2021-05-28 17:28:33 +08:00
|
|
|
|
{
|
|
|
|
|
|
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.message + '\')"><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.message + '\')"><i class="fa fa-remove"></i>删除</a>');
|
|
|
|
|
|
return actions.join('');
|
|
|
|
|
|
}
|
2021-06-02 15:24:40 +08:00
|
|
|
|
}*/]
|
2021-05-28 17:28:33 +08:00
|
|
|
|
};
|
|
|
|
|
|
$.table.init(options);
|
|
|
|
|
|
});
|
|
|
|
|
|
</script>
|
2021-07-21 09:57:17 +08:00
|
|
|
|
<!-- 导入区域 -->
|
|
|
|
|
|
<script id="importTpl" type="text/template">
|
|
|
|
|
|
<form enctype="multipart/form-data" class="mt20 mb10">
|
|
|
|
|
|
<div class="col-xs-offset-1">
|
|
|
|
|
|
<input type="file" id="file" name="file"/>
|
|
|
|
|
|
<div class="mt10 pt5">
|
|
|
|
|
|
<a onclick="$.table.importTemplate()" class="btn btn-default btn-xs"><i class="fa fa-file-excel-o"></i> 下载模板</a>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<span class="pull-left mt10" style="color: red; ">
|
|
|
|
|
|
提示:仅允许导入“xls”或“xlsx”格式文件!
|
|
|
|
|
|
</span>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</form>
|
|
|
|
|
|
</script>
|
2021-05-28 17:28:33 +08:00
|
|
|
|
</body>
|
|
|
|
|
|
</html>
|