cmRegistRemarksList.jsp 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276
  1. <%@ page contentType="text/html;charset=UTF-8" %>
  2. <%@ include file="/WEB-INF/views/include/taglib.jsp" %>
  3. <html>
  4. <head>
  5. <title>已注册用户咨询记录</title>
  6. <meta name="decorator" content="default"/>
  7. <script type="text/javascript">
  8. $(document).ready(function () {
  9. //$("#name").focus();cmOrderRemarksFormNew.jsp
  10. $("#inputForm").validate({
  11. submitHandler: function (form) {
  12. loading('正在提交,请稍等...');
  13. form.submit();
  14. },
  15. errorContainer: "#messageBox",
  16. errorPlacement: function (error, element) {
  17. $("#messageBox").text("输入有误,请先更正。");
  18. if (element.is(":checkbox") || element.is(":radio") || element.parent().is(".input-append")) {
  19. error.appendTo(element.parent().parent());
  20. } else {
  21. error.insertAfter(element);
  22. }
  23. }
  24. });
  25. });
  26. function getmember() {
  27. var leaderId = $("#leaderId").val();
  28. if (leaderId > 0) {
  29. $.get("${ctx}/new/user/agency/group", {'leaderId': leaderId}, function (data) {
  30. console.log(data);
  31. var opts = "<option value='" + data[0].serviceProviderID + "'>" + data[0].name + "</option>";
  32. if (data.length > 1) {
  33. for (let i = 1; i < data.length; i++) {
  34. opts += "<option value='" + data[i].serviceProviderID + "' >" + data[i].name + "</option>";
  35. }
  36. }
  37. $("#findgroup").html('').append(opts);
  38. });
  39. } else {
  40. $("#findgroup").html('');
  41. }
  42. }
  43. function previewFile(url) {
  44. var index = url.lastIndexOf(".");
  45. var suffix = url.substring(index);
  46. if (suffix.startsWith(".png") || suffix.startsWith(".jpg") || suffix.startsWith(".pdf")) {
  47. window.open(url, '_blank');
  48. } else {
  49. var previewUrl = "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(url);
  50. window.open(previewUrl, '_blank');
  51. }
  52. }
  53. function page(n, s) {
  54. $("#pageNo").val(n);
  55. $("#pageSize").val(s);
  56. $("#searchForm").submit();
  57. return false;
  58. }
  59. </script>
  60. </head>
  61. <body>
  62. <ul class="nav nav-tabs">
  63. <li class="active"><a href="${ctx}/new/user/agency/regist">已注册用户咨询记录</a></li>
  64. <li><a href="${ctx}/new/user/visit/unregist">未注册用户咨询记录</a></li>
  65. <li><a href="${ctx}/consult/type/cmConsulttype/">咨询类别设置</a></li>
  66. <li><a href="${ctx}/new/user/agency/cmrenaksList">关键词库</a></li>
  67. </ul>
  68. <br/>
  69. <form:form id="searchForm" modelAttribute="cmClubRemarks" action="${ctx}/new/user/agency/regist" method="post"
  70. class="breadcrumb form-search">
  71. <input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
  72. <input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
  73. <div class="flex-wrap">
  74. <div>
  75. <label>关键词:</label>
  76. <form:input path="remarks" htmlEscape="false" class="input-medium" maxlength="10"/>
  77. </div>
  78. <div class="item">
  79. <label>咨询类别:</label>
  80. <form:select path="consult" class="input-medium">
  81. <form:option value="" label="全部"/>
  82. <c:forEach items="${cmClubRemarks.consults}" var="consults">
  83. <form:option value="${consults.id}">${consults.className}</form:option>
  84. </c:forEach>
  85. </form:select>
  86. </div>
  87. <div class="item">
  88. <label>机构名称:</label>
  89. <form:input path="clubName" class="input-medium" maxlength="50"/>
  90. </div>
  91. <div class="item">
  92. <label>小组:</label>
  93. <form:select path="leaderId" class="input-medium" onchange="getmember()">
  94. <form:option value="" label="全部"/>
  95. <c:forEach items="${cmClubRemarks.teams}" var="team">
  96. <form:option value="${team.leaderId}">${team.leaderName}</form:option>
  97. </c:forEach>
  98. </form:select>
  99. </div>
  100. <div class="item">
  101. <label>组员:</label>
  102. <form:select path="serviceProviderId" class="input-medium" id="findgroup">
  103. <form:option value="" label="全部"/>
  104. </form:select>
  105. </div>
  106. <div class="item">
  107. <label class="control-label">添加日期:</label>
  108. <form:input path="startAddTime" type="text" maxlength="20" class="input-mini Wdate"
  109. value="${cmClubRemarks.startAddTime}" cssStyle="width: 130px"
  110. onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:false});"/>
  111. -
  112. <form:input path="endAddTime" type="text" maxlength="20" class="input-mini Wdate"
  113. value="${cmClubRemarks.endAddTime}" cssStyle="width: 130px"
  114. onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:false});"/>
  115. </div>
  116. <div class="item">
  117. &nbsp;&nbsp;&nbsp;&nbsp;<input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/>
  118. </div>
  119. </div>
  120. </form:form>
  121. <form:form id="inputForm" modelAttribute="cmClubRemarks" action="${ctx}" method="post" class="form-horizontal">
  122. <sys:message content="${message}"/>
  123. <c:if test="${not empty page.list}">
  124. <div style="overflow-x: hidden;word-break:break-all">
  125. <c:forEach items="${page.list}" var="clubRemarks" varStatus="remark">
  126. <div class="td clear" style="dashed:#0066CC;">
  127. <div style="font-weight: bold;width: 100%;float: left;">
  128. <%-- <c:if test="${not empty clubRemarks.oldName}">--%>
  129. <%-- <span style="float: left;">${clubRemarks.oldName}</span>--%>
  130. <%-- </c:if>--%>
  131. <%-- <c:if test="${empty clubRemarks.oldName}">--%>
  132. <%-- <span style="float: left;">${clubRemarks.spName}</span>--%>
  133. <%-- </c:if>--%>
  134. <span style="float: left;">${clubRemarks.spName}</span>
  135. <span style="float: left;margin-left:20px;"><fmt:formatDate value="${clubRemarks.addTime}"
  136. pattern="yyyy-MM-dd HH:mm"/></span>
  137. <span style="float: left;margin-left:120px;">管理员:${clubRemarks.leaderName}</span>
  138. </div>
  139. <div class="td-text" style="width: 100%;float: left;margin-top: 20px;">
  140. <div style="width: 100px;font-weight: bold;margin: 10px 0;float: left;text-align: right;margin-right: 10px;">
  141. 咨询人 :
  142. </div>
  143. <div style="width: 150px;float: left;margin: 10px 0;">${clubRemarks.questionMan}</div>
  144. <div style="width: 100px;font-weight: bold;margin: 10px 0;float: left;text-align: right;margin-right: 10px;">
  145. 机构名称:
  146. </div>
  147. <div style="width: 150px;float: left;margin: 10px 0;">${clubRemarks.clubName}</div>
  148. <c:if test="${not empty clubRemarks.clubType}">
  149. <div style="width: 100px;font-weight: bold;margin: 10px 0;float: left;text-align: right;margin-right: 10px;">
  150. 机构类型:
  151. </div>
  152. <div style=" width: 150px;float: left;margin: 10px 0;position: relative;">${clubRemarks.clubType}</div>
  153. </c:if>
  154. </div>
  155. <div class="td-text" style="width: 100%;float: left;margin-top: 20px;">
  156. <div style="width: 100px;font-weight: bold;margin: 10px 0;float: left;text-align: right;margin-right: 10px;">
  157. 咨询类别:
  158. </div>
  159. <div style="width: 300px;float: left;margin: 10px 0;">${clubRemarks.consultType}</div>
  160. </div>
  161. <div class="td-text" style="width: 100%;float: left;margin-top: 20px;">
  162. <c:if test="${not empty clubRemarks.pinceSensitve}">
  163. <div style="width: 100px;font-weight: bold;margin: 10px 0;float: left;text-align: right;margin-right: 10px;">
  164. 价格敏感度 :
  165. </div>
  166. <c:if test="${clubRemarks.pinceSensitve eq 1}">
  167. <div style="width: 150px;float: left;margin: 10px 0;">敏感</div>
  168. </c:if>
  169. <c:if test="${clubRemarks.pinceSensitve eq 2}">
  170. <div style="width: 150px;float: left;margin: 10px 0;">适中</div>
  171. </c:if>
  172. <c:if test="${clubRemarks.pinceSensitve eq 3}">
  173. <div style="width: 150px;float: left;margin: 10px 0;">不敏感</div>
  174. </c:if>
  175. <c:if test="${clubRemarks.pinceSensitve eq 4}">
  176. <div style="width: 150px;float: left;margin: 10px 0;">不明确</div>
  177. </c:if>
  178. </c:if>
  179. <c:if test="${not empty clubRemarks.satisfied}">
  180. <div style="width: 100px;font-weight: bold;margin: 10px 0;float: left;text-align: right;margin-right: 10px;">
  181. 意向程度:
  182. </div>
  183. <c:if test="${clubRemarks.satisfied eq 1}">
  184. <div style="width: 150px;float: left;margin: 10px 0;">意向强烈</div>
  185. </c:if>
  186. <c:if test="${clubRemarks.satisfied eq 2}">
  187. <div style="width: 150px;float: left;margin: 10px 0;">意向一般</div>
  188. </c:if>
  189. <c:if test="${clubRemarks.satisfied eq 3}">
  190. <div style="width: 150px;float: left;margin: 10px 0;">意向平淡</div>
  191. </c:if>
  192. <c:if test="${clubRemarks.satisfied eq 4}">
  193. <div style="width: 150px;float: left;margin: 10px 0;">随便看看</div>
  194. </c:if>
  195. </c:if>
  196. <c:if test="${not empty clubRemarks.followup}">
  197. <div style="width: 100px;font-weight: bold;margin: 10px 0;float: left;text-align: right;margin-right: 10px;">
  198. 跟进状态:
  199. </div>
  200. <c:if test="${clubRemarks.followup eq 1}">
  201. <div style="width: 150px;float: left;margin: 10px 0;">跟进中</div>
  202. </c:if>
  203. <c:if test="${clubRemarks.followup eq 2}">
  204. <div style="width: 150px;float: left;margin: 10px 0;">跟进完成</div>
  205. </c:if>
  206. <c:if test="${clubRemarks.followup eq 3}">
  207. <div style="width: 150px;float: left;margin: 10px 0;">已放弃</div>
  208. </c:if>
  209. </c:if>
  210. </div>
  211. <div class="td-text" style="width: 100%;float: left;margin-top: 20px;">
  212. <div style="width: 100px;font-weight: bold;margin: 10px 0;float: left;text-align: right;margin-right: 10px;">
  213. 关键词记录:
  214. </div>
  215. <div style="width: 800px;float: left;margin: 10px 0;">
  216. ${clubRemarks.remarks}
  217. </div>
  218. </div>
  219. <c:if test="${not empty clubRemarks.extra}">
  220. <div class="td-text" style="width: 100%;float: left;margin-top: 20px;">
  221. <div style="width: 100px;font-weight: bold;margin: 10px 0;float: left;text-align: right;margin-right: 10px;">
  222. 额外说明:
  223. </div>
  224. <div style="width: 800px;float: left;margin: 10px 0;">
  225. ${clubRemarks.extra}
  226. </div>
  227. </div>
  228. </c:if>
  229. <div class="td-text" style="width: 100%;float: left;">
  230. <c:if test="${not empty clubRemarks.imageList}">
  231. <div style="width: 100px;font-weight: bold;margin: 10px 0;float: left;text-align: right;margin-right: 10px;">
  232. 图片:
  233. </div>
  234. <div style="width: 1000px;float: left;">
  235. <c:forEach items="${clubRemarks.imageList}" var="imageUrl" varStatus="remarkImage">
  236. <a href="${imageUrl}" target="_blank">
  237. <img class="enlarge-pic" style="height: 150px;width: 150px;margin-top: 10px"
  238. src="${imageUrl}">&nbsp;
  239. </a>
  240. </c:forEach>
  241. </div>
  242. </c:if>
  243. </div>
  244. <div class="td-text"
  245. style="width: 100%;float: left;margin-top: 20px;border-bottom:1px dashed #999999;padding: 10px 0;">
  246. <c:if test="${not empty clubRemarks.fileList}">
  247. <div style="width: 100px;font-weight: bold;margin: 10px 0;float: left;text-align: right;margin-right: 10px;">
  248. 文件:
  249. </div>
  250. <div style="width: 1000px;float: left;margin: 10px 0;">
  251. <c:forEach items="${clubRemarks.fileList}" var="item" varStatus="remarkFile">
  252. <p>${item.fileName}&nbsp;&nbsp;&nbsp;&nbsp;
  253. <a onclick="previewFile('${item.fileUrl}')" target="_blank">预览</a>&nbsp;&nbsp;&nbsp;&nbsp;
  254. <a href="${ctx}/new/user/agency/remarks/download?fileName=${item.fileName}&ossName=${item.ossName}">下载</a>
  255. </p>
  256. </c:forEach>
  257. </div>
  258. </c:if>
  259. </div>
  260. </div>
  261. </c:forEach>
  262. </div>
  263. <div class="pagination">${page}</div>
  264. </c:if>
  265. <c:if test="${empty page.list}">
  266. <font size="3" style="text-align: center;display: block;line-height: 80px;" color="#0066CC">暂无任何备注..</font>
  267. </c:if>
  268. </form:form>
  269. </body>
  270. </html>