|
@@ -39,174 +39,26 @@
|
|
|
<div class="container-div">
|
|
|
<div class="row">
|
|
|
<div class="col-sm-12 search-collapse" >
|
|
|
+ <div class="query-condition-container">
|
|
|
+ <h4 class="query-condition-title">查询条件</h4>
|
|
|
+ <div class="query-buttons">
|
|
|
+ <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>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
<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>
|
|
|
+ 门店简称:<input type="text" class="styled-input" placeholder="门店简称" name="storeShortName" autocomplete="off"/>
|
|
|
</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>
|
|
@@ -245,9 +97,6 @@
|
|
|
createUrl: prefix + "/sXtszMdzhglStoremanagementAdd",
|
|
|
updateUrl: prefix + "/sXtszMdzhglStoremanagementEdit/{id}",
|
|
|
removeUrl: prefix + "/sXtszMdzhglStoremanagementRemove",
|
|
|
- /*exportUrl: prefix + "/export",
|
|
|
- importUrl: prefix + "/importData",
|
|
|
- importTemplateUrl: prefix + "/importTemplate",*/
|
|
|
sortName: "id",
|
|
|
sortOrder: "asc",
|
|
|
modalName: "门店管理表",
|
|
@@ -265,61 +114,18 @@
|
|
|
{ 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) {
|
|
|
+ if (row.id) {
|
|
|
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>');*/
|
|
|
+ actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick=""><i class="fa fa-search"></i>查看</a> ');
|
|
|
+ actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick=""><i class="fa fa-search"></i>二维码</a> ');
|
|
|
return actions.join('');
|
|
|
} else {
|
|
|
return "";
|
|
@@ -329,7 +135,6 @@
|
|
|
};
|
|
|
$.table.init(options);
|
|
|
}
|
|
|
-
|
|
|
/* 自定义重置-表单重置/隐藏框/树节点选择色/搜索 */
|
|
|
function resetPre() {
|
|
|
resetDate();
|
|
@@ -343,30 +148,9 @@
|
|
|
_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>
|
|
|
|