|
@@ -0,0 +1,373 @@
|
|
|
+<!DOCTYPE html>
|
|
|
+<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
|
|
|
+<head>
|
|
|
+ <meta charset="UTF-8">
|
|
|
+ <meta name="format-detection" content="telephone=no">
|
|
|
+ <th:block th:include="include :: header('门店管理表')" />
|
|
|
+ <th:block th:include="include :: layout-latest-css" />
|
|
|
+ <th:block th:include="include :: ztree-css" />
|
|
|
+</head>
|
|
|
+<style>
|
|
|
+ /* 设置 ul 的基本样式 */
|
|
|
+ ul {
|
|
|
+ list-style-type: none; /* 去掉项目符号 */
|
|
|
+ padding: 0; /* 去掉默认的内边距 */
|
|
|
+ display: grid; /* 使用网格布局 */
|
|
|
+ grid-template-columns: repeat(5, 1fr); /* 设置三列 */
|
|
|
+ }
|
|
|
+ ul-list ul{
|
|
|
+ list-style-type: none; /* 去掉项目符号 */
|
|
|
+ padding: 0; /* 去掉默认的内边距 */
|
|
|
+ display: grid; /* 使用网格布局 */
|
|
|
+ grid-template-columns: repeat(4, 1fr); /* 设置三列 */
|
|
|
+ }
|
|
|
+ ul-list ul li{
|
|
|
+ /*padding: 10px;*/ /* 内边距 */
|
|
|
+ text-align: left; /* 文本居中 */
|
|
|
+ }
|
|
|
+
|
|
|
+ /* 设置 li 的基本样式 */
|
|
|
+ li {
|
|
|
+ /*background-color: lightblue; *//* 背景颜色 */
|
|
|
+ /*padding: 1px; !* 内边距 *!*/
|
|
|
+ text-align: right; /* 文本居中 */
|
|
|
+ }
|
|
|
+</style>
|
|
|
+
|
|
|
+<body class="gray-bg">
|
|
|
+<div class="ui-layout-center">
|
|
|
+ <div class="container-div">
|
|
|
+ <div class="row">
|
|
|
+ <div class="col-sm-12 search-collapse" >
|
|
|
+ <form id="SXtszMdzhglStoremanagement-form">
|
|
|
+ <input type="hidden" id="deptId" name="deptId">
|
|
|
+ <input type="hidden" id="parentId" name="parentId">
|
|
|
+ <div class="select-list" >
|
|
|
+ <ul>
|
|
|
+ <li>
|
|
|
+ 门店名称:<input type="text" class="styled-input" name="storeName" autocomplete="off"/>
|
|
|
+ </li>
|
|
|
+ <li>
|
|
|
+ 门店简称:<input type="text" class="styled-input" name="storeShortName" autocomplete="off"/>
|
|
|
+ </li>
|
|
|
+ <li>
|
|
|
+ 门店类型:<input type="text" class="styled-input" name="storeType" autocomplete="off"/>
|
|
|
+ </li>
|
|
|
+ <li>
|
|
|
+ 行政区域:<input type="text" class="styled-input" name="administrativeArea" autocomplete="off"/>
|
|
|
+ </li>
|
|
|
+ <li>
|
|
|
+ 行政区域编码:<input type="text" class="styled-input" name="administrativeAreaCode" autocomplete="off"/>
|
|
|
+ </li>
|
|
|
+ <li>
|
|
|
+ 门二维码:<input type="text" class="styled-input" name="qrCode" autocomplete="off"/>
|
|
|
+ </li>
|
|
|
+ <li>
|
|
|
+ 电话:<input type="text" class="styled-input" name="phoneNumber" autocomplete="off"/>
|
|
|
+ </li>
|
|
|
+ <li>
|
|
|
+ 营业时间:<input type="text" class="styled-input" name="businessHours" autocomplete="off"/>
|
|
|
+ </li>
|
|
|
+ <li>
|
|
|
+ 地址:<input type="text" class="styled-input" name="address" autocomplete="off"/>
|
|
|
+ </li>
|
|
|
+ <li>
|
|
|
+ 经度:<input type="text" class="styled-input" name="longitude" autocomplete="off"/>
|
|
|
+ </li>
|
|
|
+ <li>
|
|
|
+ 纬度:<input type="text" class="styled-input" name="latitude" autocomplete="off"/>
|
|
|
+ </li>
|
|
|
+ <li>
|
|
|
+ 门店编码:<input type="text" class="styled-input" name="storeCode" autocomplete="off"/>
|
|
|
+ </li>
|
|
|
+ <li>
|
|
|
+ 地图:<input type="text" class="styled-input" name="mapUrl" autocomplete="off"/>
|
|
|
+ </li>
|
|
|
+ <li>
|
|
|
+ 所在片区:<input type="text" class="styled-input" name="area" autocomplete="off"/>
|
|
|
+ </li>
|
|
|
+ <li>
|
|
|
+ 参考门店编码:<input type="text" class="styled-input" name="referenceStoreCode" autocomplete="off"/>
|
|
|
+ </li>
|
|
|
+ <li>
|
|
|
+ 门店属性:<input type="text" class="styled-input" name="storeAttribute" autocomplete="off"/>
|
|
|
+ </li>
|
|
|
+ <li>
|
|
|
+ 门店内码:<input type="text" class="styled-input" name="internalCode" autocomplete="off"/>
|
|
|
+ </li>
|
|
|
+ <li>
|
|
|
+ 助记码:<input type="text" class="styled-input" name="mnemonicCode" autocomplete="off"/>
|
|
|
+ </li>
|
|
|
+ <li>
|
|
|
+ 采购组织:<input type="text" class="styled-input" name="procurementOrganization" autocomplete="off"/>
|
|
|
+ </li>
|
|
|
+ <li>
|
|
|
+ 销售组织:<input type="text" class="styled-input" name="salesOrganization" autocomplete="off"/>
|
|
|
+ </li>
|
|
|
+ <li>
|
|
|
+ 分销渠道:<input type="text" class="styled-input" name="distributionChannel" autocomplete="off"/>
|
|
|
+ </li>
|
|
|
+ <li>
|
|
|
+ 部门:<input type="text" class="styled-input" name="department" autocomplete="off"/>
|
|
|
+ </li>
|
|
|
+ <li>
|
|
|
+ 租赁面积:<input type="text" class="styled-input" name="leaseArea" autocomplete="off"/>
|
|
|
+ </li>
|
|
|
+ <li>
|
|
|
+ 外租面积:<input type="text" class="styled-input" name="externalLeaseArea" autocomplete="off"/>
|
|
|
+ </li>
|
|
|
+ <li>
|
|
|
+ 经营面积:<input type="text" class="styled-input" name="operatingArea" autocomplete="off"/>
|
|
|
+ </li>
|
|
|
+ <li>
|
|
|
+ 传真:<input type="text" class="styled-input" name="faxNumber" autocomplete="off"/>
|
|
|
+ </li>
|
|
|
+ <li>
|
|
|
+ 联系人:<input type="text" class="styled-input" name="contactPerson" autocomplete="off"/>
|
|
|
+ </li>
|
|
|
+ <li>
|
|
|
+ 开业日期:<input type="text" class="styled-input" name="openingDate" autocomplete="off"/>
|
|
|
+ </li>
|
|
|
+ <li>
|
|
|
+ 交割日期:<input type="text" class="styled-input" name="transferDate" autocomplete="off"/>
|
|
|
+ </li>
|
|
|
+ <li>
|
|
|
+ 关店日期:<input type="text" class="styled-input" name="closingDate" autocomplete="off"/>
|
|
|
+ </li>
|
|
|
+ <li>
|
|
|
+ 最近翻新改造日期:<input type="text" class="styled-input" name="lastRenovationDate" autocomplete="off"/>
|
|
|
+ </li>
|
|
|
+ <li>
|
|
|
+ 门店租金:<input type="text" class="styled-input" name="rent" autocomplete="off"/>
|
|
|
+ </li>
|
|
|
+ <li>
|
|
|
+ 门店状态:<input type="text" class="styled-input" name="storeStatus" autocomplete="off"/>
|
|
|
+ </li>
|
|
|
+ <li>
|
|
|
+ 社区及商住店:<input type="text" class="styled-input" name="communityAndResidentialStore" autocomplete="off"/>
|
|
|
+ </li>
|
|
|
+ <li>
|
|
|
+ 编制人数:<input type="text" class="styled-input" name="staffCount" autocomplete="off"/>
|
|
|
+ </li>
|
|
|
+ <li>
|
|
|
+ 日历:<input type="text" class="styled-input" name="calendar" autocomplete="off"/>
|
|
|
+ </li>
|
|
|
+ <li>
|
|
|
+ 门店使用的系统:<input type="text" class="styled-input" name="systemUsed" autocomplete="off"/>
|
|
|
+ </li>
|
|
|
+ <li>
|
|
|
+ 详细地址:<input type="text" class="styled-input" name="detailedAddress" autocomplete="off"/>
|
|
|
+ </li>
|
|
|
+ <li>
|
|
|
+ 大区:<input type="text" class="styled-input" name="district" autocomplete="off"/>
|
|
|
+ </li>
|
|
|
+ <li>
|
|
|
+ 选址商圈店型:<input type="text" class="styled-input" name="locationBusinessCircleStoreType" autocomplete="off"/>
|
|
|
+ </li>
|
|
|
+ <li>
|
|
|
+ 特殊业态店型:<input type="text" class="styled-input" name="specialBusinessType" autocomplete="off"/>
|
|
|
+ </li>
|
|
|
+ <li>
|
|
|
+ 营业面积分类:<input type="text" class="styled-input" name="businessAreaCategory" autocomplete="off"/>
|
|
|
+ </li>
|
|
|
+ <li>
|
|
|
+ 月销售额等级:<input type="text" class="styled-input" name="monthlySalesLevel" autocomplete="off"/>
|
|
|
+ </li>
|
|
|
+ <li>
|
|
|
+ 医保政策分类:<input type="text" class="styled-input" name="medicalInsurancePolicyCategory" autocomplete="off"/>
|
|
|
+ </li>
|
|
|
+ <li>
|
|
|
+ 顾客年龄层:<input type="text" class="styled-input" name="customerAgeLayer" autocomplete="off"/>
|
|
|
+ </li>
|
|
|
+ <li style="text-align: center">
|
|
|
+ <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="resetPre()"><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="system:user:add">
|
|
|
+ <i class="fa fa-plus"></i> 新增
|
|
|
+ </a>
|
|
|
+ <a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="system:user:edit">
|
|
|
+ <i class="fa fa-edit"></i> 修改
|
|
|
+ </a>
|
|
|
+ <a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="system:user:remove">
|
|
|
+ <i class="fa fa-remove"></i> 删除
|
|
|
+ </a>
|
|
|
+ <a class="btn btn-info" onclick="$.table.importExcel()" shiro:hasPermission="system:user:import">
|
|
|
+ <i class="fa fa-upload"></i> 导入
|
|
|
+ </a>
|
|
|
+ <a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="system:user: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>
|
|
|
+</div>
|
|
|
+
|
|
|
+<th:block th:include="include :: footer" />
|
|
|
+<th:block th:include="include :: layout-latest-js" />
|
|
|
+<th:block th:include="include :: ztree-js" />
|
|
|
+<script th:inline="javascript">
|
|
|
+ var editFlag = [[${@permission.hasPermi('dtp:pmService:edit')}]];
|
|
|
+ var removeFlag = [[${@permission.hasPermi('dtp:pmService:remove')}]];
|
|
|
+ var prefix = ctx + "xtsz/sxtszmdzhglstoremanagement";
|
|
|
+ $(function() {
|
|
|
+ var panehHidden = false;
|
|
|
+ if ($(this).width() < 1590) {
|
|
|
+ panehHidden = true;
|
|
|
+ }
|
|
|
+ $('body').layout({ initClosed: panehHidden, west__size: 185, resizeWithWindow: false });
|
|
|
+ // 回到顶部绑定
|
|
|
+ if ($.fn.toTop !== undefined) {
|
|
|
+ var opt = {
|
|
|
+ win:$('.ui-layout-center'),
|
|
|
+ doc:$('.ui-layout-center')
|
|
|
+ };
|
|
|
+ $('#scroll-up').toTop(opt);
|
|
|
+ }
|
|
|
+ queryArchivesList();
|
|
|
+ });
|
|
|
+
|
|
|
+ function queryArchivesList() {
|
|
|
+ var options = {
|
|
|
+ url: prefix + "/sXtszMdzhglStoremanagementList",
|
|
|
+ viewUrl: prefix + "/sXtszMdzhglStoremanagementView/{id}",
|
|
|
+ createUrl: prefix + "/sXtszMdzhglStoremanagementAdd",
|
|
|
+ updateUrl: prefix + "/sXtszMdzhglStoremanagementEdit/{id}",
|
|
|
+ removeUrl: prefix + "/sXtszMdzhglStoremanagementRemove",
|
|
|
+ /*exportUrl: prefix + "/export",
|
|
|
+ importUrl: prefix + "/importData",
|
|
|
+ importTemplateUrl: prefix + "/importTemplate",*/
|
|
|
+ sortName: "id",
|
|
|
+ sortOrder: "asc",
|
|
|
+ modalName: "门店管理表",
|
|
|
+ fitColumns: true,
|
|
|
+ striped: true,
|
|
|
+ autoRowHeight: true,
|
|
|
+ rowNumbers: true,
|
|
|
+ showFooter:true, //是否显示表格底部区域。
|
|
|
+ clickToSelect: true, //是否启用点击行时选中整行的功能。
|
|
|
+ singleSelect: true, //是否仅允许选择一行
|
|
|
+ columns: [{
|
|
|
+ checkbox: true
|
|
|
+ },
|
|
|
+ { field: 'id', title: '主键', align: 'center' ,visible:false},
|
|
|
+ { field: 'storeName', title: '门店名称', align: 'center' },
|
|
|
+ { field: 'storeShortName', title: '门店简称', align: 'center' },
|
|
|
+ { field: 'storeType', title: '门店类型', align: 'center' },
|
|
|
+ { field: 'administrativeArea', title: '行政区域', align: 'center' },
|
|
|
+ { field: 'administrativeAreaCode', title: '行政区域编码', align: 'center' },
|
|
|
+ { field: 'qrCode', title: '门二维码', align: 'center' },
|
|
|
+ { field: 'phoneNumber', title: '电话', align: 'center' },
|
|
|
+ { field: 'businessHours', title: '营业时间', align: 'center' },
|
|
|
+ { field: 'address', title: '地址', align: 'center' },
|
|
|
+ { field: 'longitude', title: '经度', align: 'center' },
|
|
|
+ { field: 'latitude', title: '纬度', align: 'center' },
|
|
|
+ { field: 'storeCode', title: '门店编码', align: 'center' },
|
|
|
+ { field: 'mapUrl', title: '地图', align: 'center' },
|
|
|
+ { field: 'area', title: '所在片区', align: 'center' },
|
|
|
+ { field: 'referenceStoreCode', title: '参考门店编码', align: 'center' },
|
|
|
+ { field: 'storeAttribute', title: '门店属性', align: 'center' },
|
|
|
+ { field: 'internalCode', title: '门店内码', align: 'center' },
|
|
|
+ { field: 'mnemonicCode', title: '助记码', align: 'center' },
|
|
|
+ { field: 'procurementOrganization', title: '采购组织', align: 'center' },
|
|
|
+ { field: 'salesOrganization', title: '销售组织', align: 'center' },
|
|
|
+ { field: 'distributionChannel', title: '分销渠道', align: 'center' },
|
|
|
+ { field: 'department', title: '部门', align: 'center' },
|
|
|
+ { field: 'leaseArea', title: '租赁面积', align: 'center' },
|
|
|
+ { field: 'externalLeaseArea', title: '外租面积', align: 'center' },
|
|
|
+ { field: 'operatingArea', title: '经营面积', align: 'center' },
|
|
|
+ { field: 'faxNumber', title: '传真', align: 'center' },
|
|
|
+ { field: 'contactPerson', title: '联系人', align: 'center' },
|
|
|
+ { field: 'openingDate', title: '开业日期', align: 'center' },
|
|
|
+ { field: 'transferDate', title: '交割日期', align: 'center' },
|
|
|
+ { field: 'closingDate', title: '关店日期', align: 'center' },
|
|
|
+ { field: 'lastRenovationDate', title: '最近翻新改造日期', align: 'center' },
|
|
|
+ { field: 'rent', title: '门店租金', align: 'center' },
|
|
|
+ { field: 'storeStatus', title: '门店状态', align: 'center' },
|
|
|
+ { field: 'communityAndResidentialStore', title: '社区及商住店', align: 'center' },
|
|
|
+ { field: 'staffCount', title: '编制人数', align: 'center' },
|
|
|
+ { field: 'calendar', title: '日历', align: 'center' },
|
|
|
+ { field: 'systemUsed', title: '门店使用的系统', align: 'center' },
|
|
|
+ { field: 'detailedAddress', title: '详细地址', align: 'center' },
|
|
|
+ { field: 'district', title: '大区', align: 'center' },
|
|
|
+ { field: 'locationBusinessCircleStoreType', title: '选址商圈店型', align: 'center' },
|
|
|
+ { field: 'specialBusinessType', title: '特殊业态店型', align: 'center' },
|
|
|
+ { field: 'businessAreaCategory', title: '营业面积分类', align: 'center' },
|
|
|
+ { field: 'monthlySalesLevel', title: '月销售额等级', align: 'center' },
|
|
|
+ { field: 'medicalInsurancePolicyCategory', title: '医保政策分类', align: 'center' },
|
|
|
+ { field: 'customerAgeLayer', title: '顾客年龄层', align: 'center' },
|
|
|
+
|
|
|
+ {
|
|
|
+ title: '操作',
|
|
|
+ align: 'center',
|
|
|
+ formatter: function(value, row, index) {
|
|
|
+ if (row.serviceId != 1) {
|
|
|
+ var actions = [];
|
|
|
+ actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="edit_page(\'' + row.id + '\')"><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.id + '\')"><i class="fa fa-remove"></i>删除</a> ');
|
|
|
+ var more = [];
|
|
|
+ /*more.push("<a class='btn btn-default btn-xs " + resetPwdFlag + "' href='javascript:void(0)' onclick='resetPwd(" + row.userId + ")'><i class='fa fa-key'></i>重置密码</a> ");
|
|
|
+ more.push("<a class='btn btn-default btn-xs " + editFlag + "' href='javascript:void(0)' onclick='authRole(" + row.userId + ")'><i class='fa fa-check-square-o'></i>分配角色</a>");
|
|
|
+ actions.push('<a tabindex="0" class="btn btn-info btn-xs" role="button" data-container="body" data-placement="left" data-toggle="popover" data-html="true" data-trigger="hover" data-content="' + more.join('') + '"><i class="fa fa-chevron-circle-right"></i>更多操作</a>');*/
|
|
|
+ return actions.join('');
|
|
|
+ } else {
|
|
|
+ return "";
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }]
|
|
|
+ };
|
|
|
+ $.table.init(options);
|
|
|
+ }
|
|
|
+
|
|
|
+ /* 自定义重置-表单重置/隐藏框/树节点选择色/搜索 */
|
|
|
+ function resetPre() {
|
|
|
+ resetDate();
|
|
|
+ $("#SXtszMdzhglStoremanagement-form")[0].reset();
|
|
|
+ $("#deptId").val("");
|
|
|
+ $("#parentId").val("");
|
|
|
+ $(".curSelectedNode").removeClass("curSelectedNode");
|
|
|
+ $.table.search();
|
|
|
+ var resetButton = document.getElementById('SXtszMdzhglStoremanagement-form');
|
|
|
+ resetButton.addEventListener('click', function() {
|
|
|
+ _refresh();
|
|
|
+ });
|
|
|
+ }
|
|
|
+ function edit_page(id){
|
|
|
+ table.set();
|
|
|
+ var url = "/404.html";
|
|
|
+ if ($.common.isNotEmpty(id)) {
|
|
|
+ url = table.options.updateUrl.replace("{id}", id);
|
|
|
+ } else {
|
|
|
+ var id = $.common.isEmpty(table.options.uniqueId) ? $.table.selectFirstColumns() : $.table.selectColumns(table.options.uniqueId);
|
|
|
+ if (id.length == 0) {
|
|
|
+ $.modal.alertWarning("请至少选择一条记录");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ url = table.options.updateUrl.replace("{id}", id);
|
|
|
+ }
|
|
|
+ $.modal.openTab("修改" + table.options.modalName, url + "?status=1" );
|
|
|
+ }
|
|
|
+
|
|
|
+ /* 用户状态显示 */
|
|
|
+ function statusTools(row) {
|
|
|
+ if (row.status == 1) {
|
|
|
+ return '<i class=\"fa fa-toggle-off text-info fa-2x\" onclick="enable(\'' + row.userId + '\')"></i> ';
|
|
|
+ } else {
|
|
|
+ return '<i class=\"fa fa-toggle-on text-info fa-2x\" onclick="disable(\'' + row.userId + '\')"></i> ';
|
|
|
+ }
|
|
|
+ }
|
|
|
+</script>
|
|
|
+</body>
|
|
|
+
|
|
|
+</html>
|