huangzhiguo hace 2 años
padre
commit
058a83b0ab

+ 56 - 0
src/main/java/com/caimei/modules/user/web/newUser/AgencyController.java

@@ -1397,6 +1397,62 @@ private VisitRemarkDao visitRemarkDao;
         return map;
     }
 
+    @RequestMapping("/clubPortrait")
+    public String clubPortrait(NewCmClub newCmClub, Model model) {
 
+        model.addAttribute("newCmClub",newCmClub);
+        return "modules/userNew/cmClubPortrait";
+    }
+
+
+    @RequestMapping("/clubData")
+    public String clubData(NewCmClub newCmClub, Model model, HttpServletRequest request, HttpServletResponse response) {
+// 查询机构基本信息
+        Page<NewCmClub> page = newCmClubService.findPage(new Page<NewCmClub>(request, response, 20), newCmClub);
+        if (page.getList().size() > 0) {
+            newCmClub = page.getList().get(0);
+        }
+        // 机构详细信息
+        CmClubinfo cmClubinfo = new CmClubinfo();
+        cmClubinfo.setClubID(newCmClub.getClubID());
+        List<CmClubinfo> cmClubinfos = cmClubinfoService.findList(cmClubinfo);
+
+        if (null != cmClubinfos && cmClubinfos.size() > 0) {
+            cmClubinfo = cmClubinfos.get(0);
+        }
+        cmClubinfo.setClubID(newCmClub.getClubID());
+        cmClubinfo.setUserID(newCmClub.getUserID());
 
+        cmClubinfo.setContractPhone(newCmClub.getContractPhone());
+        cmClubinfo.setFax(newCmClub.getFax());
+        cmClubinfo.setInfo(newCmClub.getInfo());
+        cmClubinfo.setBusinessLicenseImage(newCmClub.getBusinessLicenseImage());
+        cmClubinfo.setHeadpic(newCmClub.getHeadpic());
+        cmClubinfo.setSocialCreditCode(newCmClub.getSocialCreditCode());
+        cmClubinfo.setProvinceID(newCmClub.getProvinceID());
+        cmClubinfo.setCityID(newCmClub.getCityID());
+        cmClubinfo.setTownID(newCmClub.getTownID());
+        cmClubinfo.setAddress(newCmClub.getAddress());
+        cmClubinfo.setFirstClubType(newCmClub.getFirstClubType());
+        cmClubinfo.setSecondClubType(newCmClub.getSecondClubType());
+        cmClubinfo.setDepartment(newCmClub.getDepartment());
+        String  mainpro = newCmClub.getMainpro();
+        if (StringUtils.isNotEmpty(mainpro)) {
+            mainpro = mainpro.replaceAll("/",",");
+        }
+        cmClubinfo.setMainpro(mainpro);
+        cmClubinfo.setMedicalPracticeLicenseImg(newCmClub.getMedicalPracticeLicenseImg());
+        cmClubinfo.setContractEmail(newCmClub.getContractEmail());
+        cmClubinfo.setLinkManIdentity(newCmClub.getLinkManIdentity());
+
+        String wwwServer = Global.getConfig("wwwServer");
+        //营业执照
+        newCmClub.setBusinessLicenseImage(AppUtils.getImageURL("clubBusinessLicenseImage", newCmClub.getBusinessLicenseImage(), 0, wwwServer));
+        //门头照
+        newCmClub.setHeadpic(AppUtils.getImageURL("club", newCmClub.getHeadpic(), AppKeys.CLUB_LOGO_SIZE, wwwServer));
+
+        model.addAttribute("cmClubinfo", cmClubinfo);
+        model.addAttribute("newCmClub", newCmClub);
+        return "modules/userNew/cmClubData";
+    }
 }

+ 4 - 3
src/main/webapp/WEB-INF/views/modules/userNew/cmAgencyList.jsp

@@ -289,6 +289,7 @@
                     ${newCmClubList.auditTime}
             </td>
             <td>
+                <a href="${ctx}/new/user/agency/clubPortrait?id=${newCmClubList.clubID}">机构画像</a>
                 <shiro:hasPermission name="club:cmAgency:edit">
                     <a href="${ctx}/new/user/agency/form?id=${newCmClubList.clubID}&source=1&searchName=${newCmClub.searchName}&searchUserName=${newCmClub.searchUserName}&searchBindMobile=${newCmClub.searchBindMobile}&searchEmail=${newCmClub.searchEmail}&searchUserOrganizeID=${newCmClub.searchUserOrganizeID}&searchStatus=${newCmClub.searchStatus}&searchUserIdentity=${newCmClub.searchUserIdentity}&searchStartTime=${newCmClub.searchStartTime}&searchEndTime=${newCmClub.searchEndTime}">编辑</a>
                 </shiro:hasPermission>
@@ -318,9 +319,9 @@
                         <a href="${ctx}/user/clubTemporary/confirmRecord?confirmUserId=${newCmClubList.userID}">确认记录</a>
                     </shiro:hasPermission>
                 </c:if>
-                <shiro:hasPermission name="club:cmAgency:remarks">
-                    <a href="${ctx}/new/user/agency/remarks?clubId=${newCmClubList.clubID}">咨询记录</a>
-                </shiro:hasPermission>
+                <%--<shiro:hasPermission name="club:cmAgency:remarks">
+                    <a style="visibility: hidden" href="${ctx}/new/user/agency/remarks?clubId=${newCmClubList.clubID}">咨询记录</a>
+                </shiro:hasPermission>--%>
                 <a href="${ctx}/new/user/agency/recordLinkage?clubId=${newCmClubList.clubID}">生成行为记录链接</a>
             </td>
         </tr>

+ 420 - 0
src/main/webapp/WEB-INF/views/modules/userNew/cmClubData.jsp

@@ -0,0 +1,420 @@
+<%@ page contentType="text/html;charset=UTF-8" %>
+<%@ include file="/WEB-INF/views/include/taglib.jsp" %>
+<html>
+<head>
+    <title>机构资料</title>
+    <meta name="decorator" content="default"/>
+    <script src="/static/modules/bulkpurchase/loadAddressById.js"></script>
+    <script type="text/javascript">
+
+    </script>
+    <style>
+        #auditBox {
+            padding: 20px;
+            line-height: 30px;
+        }
+
+        #auditBox .bd-row {
+            display: flex;
+            margin-bottom: 15px;
+        }
+
+        #auditBox .bd-row > span {
+            display: inline-block;
+            width: 60px;
+        }
+
+        #auditBox .auditCheckBox {
+            width: 250px;
+        }
+
+        #auditBox .auditCheckBox label {
+            margin: 0 5px 5px 0
+        }
+
+        #auditBox .auditCheckBox input {
+            display: none;
+        }
+
+        #auditBox .auditCheckBox input + span {
+            display: inline-block;
+            line-height: 24px;
+            padding: 0 12px;
+            border: 1px solid #666;
+            border-radius: 5px;
+        }
+
+        #auditBox .auditCheckBox input:checked + span {
+            background-color: #E6633A
+        }
+
+        .detailTitle {
+            margin: 16px 0px 4px 20px;
+            font-weight: bold;
+        }
+
+        .detailLine {
+            width: 98%;
+            margin-left: 10px;
+        }
+
+        .clubInfo {
+            float: left;
+            width: 25%;
+        }
+
+        .clubInfoTitle {
+            text-align: center;
+            text-decoration: underline;
+            font-weight: bold;
+        }
+
+        th {
+            text-align: right;
+            white-space: nowrap;
+        }
+
+        td {
+            padding: 5px 0;
+        }
+
+        #headpicPreview li, #businessLicenseImagePreview li {
+            min-height: 100px;
+        }
+
+        /*----------------------------------*/
+        .the-oradio {
+            display: inline-block;
+            vertical-align: top;
+        }
+
+        .the-oradio div {
+            width: 85px;
+            display: inline-block;
+            font-size: 12px;
+            color: #666;
+        }
+
+        .med-option {
+            display: block;
+            margin: 10px 0 0 160px;
+        }
+
+        .raw-option {
+            display: block;
+            margin: 10px 0 0 160px;
+        }
+
+        .control-group .new-tag {
+            display: inline-block;
+            width: 78px;
+            height: 30px;
+            border: 1px solid #e5e5e5;
+            border-radius: 5px;
+            margin: 7px;
+            text-align: center;
+            line-height: 30px;
+            font-size: 14px;
+            overflow: hidden;
+            text-overflow: ellipsis;
+            white-space: nowrap;
+            cursor: pointer;
+        }
+
+        .control-group .new-tag.active {
+            border-color: #e15616;
+            color: #e15616;
+        }
+
+        #clubArea {
+            display: inline-block;
+            width: 450px;
+        }
+
+        #clubOther {
+            height: 40px;
+            line-height: 40px;
+            vertical-align: middle
+        }
+
+        #clubInput {
+            width: 159px;
+            margin: 7px;
+            display: inline-block;
+            height: 30px;
+            display: none;
+        }
+
+        .tags-operate {
+            margin-left: 160px;
+        }
+
+        .control-group .tags-operate .tag-add {
+            height: 40px;
+            line-height: 40px;
+            vertical-align: middle;
+            display: none;
+        }
+
+        .top-label {
+            width: 160px;
+            text-align: right;
+            vertical-align: top;
+            margin-top: 10px;
+        }
+    </style>
+</head>
+<body>
+<ul class="nav nav-tabs">
+    <li><a href="${ctx}/new/user/agency/">机构列表</a></li>
+    <li class="active"><a href="${ctx}/new/user/agency/clubPortrait?id=${newCmClubList.clubID}">机构画像</a></li>
+</ul>
+<div class="ul-form">
+    <ul class="nav nav-tabs">
+        <li><a href="${ctx}/new/user/agency/clubPortrait?id=${newCmClubList.clubID}">仪表盘</a></li>
+        <li class="active"><a href="${ctx}/new/user/agency/clubData?id=${newCmClubList.clubID}">机构信息</a></li>
+    </ul>
+</div>
+<form:form id="inputForm" modelAttribute="cmClubinfo" action="#" method="post"
+           class="form-horizontal">
+<form:hidden path="id" value="${newCmClub.clubID}"/>
+<form:hidden path="clubInfoID"/>
+<form:hidden path="userID"/>
+<form:hidden path="clubID"/>
+<div style="max-width:1200px;padding:15px;">
+    <table border="0" cellspacing="0" cellpadding="0" width="100%">
+        <tr height="28">
+            <th width="12%">状态:</th>
+            <td width="13%">${fns:getDictLabel(newCmClub.status, 'club_status', newCmClub.status)}</td>
+            <th width="12%">注册时间:</th>
+            <td width="13%"><fmt:formatDate value="${newCmClub.registerTime}" pattern="yyyy-MM-dd HH:mm:ss"></fmt:formatDate></td>
+        </tr>
+        <tr height="28">
+            <th width="12%">机构名称:</th>
+            <td width="13%">${newCmClub.name}
+            <th width="12%">机构简称:</th>
+            <td width="13%">${newCmClub.sname}
+            <th width="12%">注册邮箱:</th>
+            <td width="13%">${newCmClub.contractEmail}
+        </tr>
+        <tr height="28">
+            <th width="12%">联系人:</th>
+            <td width="13%">${newCmClub.userName}
+            </td>
+            <th width="12%">手机号:</th>
+            <td width="13%">${newCmClub.bindMobile}
+            <th width="12%">联系人身份:</th>
+            <td width="13%">
+                <c:if test="${newCmClub.linkManIdentity eq '1'}">老板</c:if>
+                <c:if test="${newCmClub.linkManIdentity eq '2'}">采购</c:if>
+                <c:if test="${newCmClub.linkManIdentity eq '3'}">运营</c:if>
+            </td>
+        </tr>
+    </table>
+</div>
+
+<input type="hidden" id="curProvince" name="curProvince" value="${newCmClub.province }" disabled="disabled">
+<input type="hidden" id="curCity" name="curCity" value="${newCmClub.city }" disabled="disabled">
+<input type="hidden" id="curTown" name="curTown" value="${newCmClub.town }" disabled="disabled">
+<sys:message content="${message}"/>
+<hr class="detailLine">
+<div>
+    <table border="0" cellspacing="0" cellpadding="0" width="100%">
+        <tr>
+            <td colspan="2">
+                <div class="control-group">
+                    <label class="control-label"><b>地址:</b></label>
+                    <div class="controls">
+                        <form:select path="provinceID" disabled="true" class="input-xlarge" id="province"
+                                     onchange="loadCity()" style="width:100px;">
+                            <form:option value="" label="省" provinceId=""/>
+                        </form:select>
+                        <form:select path="cityID" disabled="true" class="input-xlarge" id="city" onchange="loadTown()"
+                                     style="width:100px;">
+                            <form:option value="" label="市" cityId=""/>
+                        </form:select>
+                        <form:select path="townID" disabled="true" class="input-xlarge" id="town" style="width:100px;">
+                            <form:option value="" label="区"/>
+                        </form:select>
+                            ${newCmClub.address}
+                    </div>
+                </div>
+            </td>
+        </tr>
+        <tr>
+            <td colspan="2">
+                <div class="control-group">
+                    <label class="control-label"><b>营业执照编号:</b></label>
+                    <div class="controls">${newCmClub.socialCreditCode}</div>
+                </div>
+            </td>
+        </tr>
+        <tr>
+            <td>
+                <div class="control-group">
+                    <label class="control-label"><b>营业执照:</b></label>
+                    <img width="100" height="100" src="${newCmClub.businessLicenseImage}">
+                </div>
+            </td>
+            <td>
+                <div class="control-group">
+                    <label class="control-label"><b>门头照:</b></label>
+                    <img width="100" height="100" src="${newCmClub.headpic}">
+                </div>
+            </td>
+        </tr>
+        <tr>
+            <td>
+                <div class="control-group">
+                    <label class="control-label" for=""><b>机构类型:</b></label>
+                    <div class="medical-radio the-oradio">
+                        <input value="${cmClubinfo.firstClubType}" class="hide" type="text" id="firstClubType"/>
+                        <div class="med-beauty">
+                            <c:if test="${cmClubinfo.firstClubType == '1'}">医美</c:if>
+                            <c:if test="${cmClubinfo.firstClubType == '2'}">生美</c:if>
+                            <c:if test="${cmClubinfo.firstClubType == '3'}">项目公司</c:if>
+                            <c:if test="${cmClubinfo.firstClubType == '4'}">个人</c:if>
+                            <c:if test="${cmClubinfo.firstClubType == '5'}">其他</c:if>
+
+                            <c:if test="${cmClubinfo.secondClubType eq '1'}"> - 诊所</c:if>
+                            <c:if test="${cmClubinfo.secondClubType eq '2'}"> - 门诊</c:if>
+                            <c:if test="${cmClubinfo.secondClubType eq '3'}"> - 医院</c:if>
+                            <c:if test="${cmClubinfo.secondClubType eq '4'}"> - 其他</c:if>
+                            <c:if test="${cmClubinfo.secondClubType eq '5'}"> - 美容院</c:if>
+                            <c:if test="${cmClubinfo.secondClubType eq '6'}"> - 养生馆</c:if>
+                            <c:if test="${cmClubinfo.secondClubType eq '7'}"> - 其他</c:if>
+                        </div>
+
+                    </div>
+
+                    <div class="qualification control-group" style="display: none">
+                        <label class="control-label"><b>医疗许可证:</b></label>
+                        <img width="100" height="100" src="${cmClubinfo.medicalPracticeLicenseImg}">
+
+                    </div>
+                </div>
+                <div class="control-group epart" style="display: none">
+                    <label class="control-label"><b>科室:</b></label>
+                    <input class="reg-input" type="text" name="department" id="Department"
+                           placeholder="请填写您的所经营的科室,用逗号隔开。(至少三个)" value="${cmClubinfo.department}"
+                           style="margin-left: 10px;"/>
+                    <span class="err-tip"></span>
+                </div>
+                <div class="control-group" >
+                    <label class="control-label"><b>主营内容:</b></label>
+                    <font size="3">${cmClubinfo.mainpro}</font>
+                </div>
+            </td>
+        </tr>
+        <tr>
+            <td>
+                <div class="control-group">
+                    <label class="control-label"><b>固定电话:</b></label>
+                    <div class="controls">${cmClubinfo.contractPhone}</div>
+                </div>
+            </td>
+            <td>
+                <div class="control-group">
+                    <label class="control-label"><b>传真:</b></label>
+                    <div class="controls">${cmClubinfo.fax}</div>
+                </div>
+            </td>
+        </tr>
+        <tr>
+            <td colspan="2">
+                <div class="control-group">
+                    <label class="control-label"><b>员工人数:</b></label>
+                    <div class="controls">${cmClubinfo.empnum}</div>
+                </div>
+            </td>
+        </tr>
+        <tr>
+            <td colspan="2">
+                <div class="control-group">
+                    <label class="control-label"><b>公司简介:</b></label>
+                    <div class="controls">${cmClubinfo.info}</div>
+                </div>
+            </td>
+        </tr>
+    </table>
+    <div style="visibility: hidden;">
+        <div class="clubInfo">
+            <div class="clubInfoTitle">基本信息</div>
+            <table border="0" cellspacing="0" cellpadding="0" width="100%">
+                <tr height="28">
+                    <th>机构面积:</th>
+                    <td>${cmClubinfo.area}</td>
+                </tr>
+                <tr height="28">
+                    <th>美容床数:</th>
+                    <td>${cmClubinfo.bedNums}</td>
+                </tr>
+                <tr height="28">
+                    <th>美容师数:</th>
+                    <td>${cmClubinfo.beauticians}</td>
+                </tr>
+            </table>
+        </div>
+        <div class="clubInfo">
+            <div class="clubInfoTitle">业绩信息</div>
+            <table border="0" cellspacing="0" cellpadding="0" width="100%">
+                <tr height="28">
+                    <th>月业绩:</th>
+                    <td>${cmClubinfo.monthAchievement}</td>
+                </tr>
+                <tr height="28">
+                    <th>促销业绩:</th>
+                    <td>${cmClubinfo.promotionAchievement}</td>
+                </tr>
+                <tr height="28">
+                    <th>年业绩:</th>
+                    <td>${cmClubinfo.yearAchievement}</td>
+                </tr>
+            </table>
+        </div>
+        <div class="clubInfo">
+            <div class="clubInfoTitle">会员信息及消费情况</div>
+            <table border="0" cellspacing="0" cellpadding="0" width="100%">
+                <tr height="28">
+                    <th>A类会员:</th>
+                    <td colspan="3" style="padding-top: 6px;">${cmClubinfo.cateA}人&nbsp;</td>
+                </tr>
+                <tr height="28">
+                    <th>B类会员:</th>
+                    <td colspan="3" style="padding-top: 6px;">${cmClubinfo.cateB}人&nbsp;</td>
+                </tr>
+                <tr height="28">
+                    <th>C类会员:</th>
+                    <td colspan="3" style="padding-top: 6px;">${cmClubinfo.cateC}人&nbsp;</td>
+                </tr>
+            </table>
+        </div>
+        <div class="clubInfo">
+            <div class="clubInfoTitle">活动业绩</div>
+            <table border="0" cellspacing="0" cellpadding="0" width="100%">
+                <tr height="28">
+                    <th>最高业绩:</th>
+                    <td>${cmClubinfo.highestAchievement}</td>
+                </tr>
+                <tr height="28">
+                    <th>到店人数:</th>
+                    <td>${cmClubinfo.reachPepole}</td>
+                </tr>
+                <tr height="28">
+                    <th>成交人数:</th>
+                    <td>${cmClubinfo.clinchPepole}</td>
+                </tr>
+            </table>
+        </div>
+        <table border="0" cellspacing="0" cellpadding="0" width="100%">
+            <tr height="28">
+                <th>店内所经营品牌及推广优势:</th>
+                <td colspan="10" width="25%">${cmClubinfo.brandSuperiority}</td>
+                <th>临近一次促销的模式及达成业绩:</th>
+                <td colspan="10" width="25%">${cmClubinfo.lastPromotion}</td>
+            </tr>
+        </table>
+    </div>
+    </form:form>
+</body>
+</html>

+ 53 - 0
src/main/webapp/WEB-INF/views/modules/userNew/cmClubPortrait.jsp

@@ -0,0 +1,53 @@
+<%@ page contentType="text/html;charset=UTF-8" %>
+<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
+<html>
+<head>
+    <title>机构画像</title>
+    <meta name="decorator" content="default"/>
+    <style>
+        #flex {
+            width: 100%;
+            height: 100%;
+            display: flex;
+        }
+        .portrait {
+            width: 400px;
+            height: 300px;
+            border:1px solid #000000 ;
+            margin-left: 20px;
+            margin-top: 20px;
+        }
+    </style>
+</head>
+<body>
+<ul class="nav nav-tabs">
+    <li><a href="${ctx}/new/user/agency/">机构列表</a></li>
+    <li class="active"><a href="${ctx}/new/user/agency/clubPortrait?id=${newCmClubList.clubID}">机构画像</a></li>
+</ul>
+<div class="ul-form">
+    <ul class="nav nav-tabs">
+        <li class="active"><a href="${ctx}/new/user/agency/clubPortrait?id=${newCmClubList.clubID}">仪表盘</a></li>
+        <li><a href="${ctx}/new/user/agency/clubData?id=${newCmClubList.clubID}">机构资料</a></li>
+    </ul>
+    <div id="flex">
+        <div class="portrait">
+            <label>订单总量</label>
+            <a href="#">个</a>
+            <label>购买总额</label>
+            <a href="#">¥</a>
+        </div>
+        <div class="portrait">
+            <label>搜索关键词总数</label>
+            <a href="#">条</a>
+        </div>
+        <div class="portrait">
+            <label>咨询记录总数</label>
+            <a href="#">条</a>
+        </div>
+        <div class="portrait">
+            <a href="#">访问记录</a>
+        </div>
+    </div>
+</div>
+</body>
+</html>