cmAgencyForm.jsp 36 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808
  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 src="/static/modules/bulkpurchase/loadAddressById.js"></script>
  8. <script type="text/javascript">
  9. $(document).ready(function () {
  10. //$("#name").focus();
  11. $("#inputForm").validate({
  12. ignore: "",
  13. submitHandler: function (form) {
  14. var bindMobile = $("#bindMobile").val();
  15. var userID = $("#userID").val();
  16. $.post("${ctx}/new/user/agency/checkMobile?bindMobile="+bindMobile+"&userID="+userID, function (data) {
  17. if (data.code == -1) {
  18. alertx(data.msg);
  19. }else {
  20. loading('正在提交,请稍等...');
  21. form.submit();
  22. }
  23. })
  24. },
  25. errorContainer: "#messageBox",
  26. errorPlacement: function (error, element) {
  27. $("#messageBox").text("输入有误,请先更正。");
  28. if (element.is(":checkbox") || element.is(":radio") || element.parent().is(".input-append")) {
  29. error.appendTo(element.parent().parent());
  30. } else {
  31. error.insertAfter(element);
  32. }
  33. }
  34. });
  35. });
  36. function checkMobile() {
  37. var bindMobile = $("#bindMobile").val();
  38. var userID = $("#userID").val();
  39. $.post("${ctx}/new/user/agency/checkMobile?bindMobile="+bindMobile+"&userID="+userID, function (data) {
  40. if (data.code == -1) {
  41. alertx(data.msg);
  42. }
  43. })
  44. }
  45. function onlyNumOrLetter(obj) {
  46. var reg = /^[0-9a-zA-Z]+$/;
  47. var str = document.getElementById("socialCreditCode").value;
  48. if (!reg.test(str)) {
  49. alertx("营业执照编号格式不正确");
  50. $("#socialCreditCode").val("");
  51. }
  52. }
  53. /**
  54. * @param obj
  55. * jquery控制input只能输入数字
  56. */
  57. function mobileVerification(obj) {
  58. var reg = /^1\d{10}$/;
  59. var contractMobile = document.getElementById("contractMobile").value;
  60. if (!reg.test(contractMobile)) {
  61. alertx("手机号格式不正确");
  62. $("#contractMobile").val("");
  63. }
  64. }
  65. /**
  66. * @param obj
  67. * jquery控制input只能输入数字
  68. */
  69. function onlynum(obj) {
  70. obj.value = obj.value.replace(/[^\d]/g, ""); //清除"数字"以外的字符
  71. }
  72. /**
  73. * @param obj
  74. * jquery控制input只能输入数字和两位小数
  75. */
  76. function num(obj) {
  77. obj.value = obj.value.replace(/[^\d.]/g, ""); //清除"数字"和"."以外的字符
  78. obj.value = obj.value.replace(/^\./g, ""); //验证第一个字符是数字
  79. obj.value = obj.value.replace(/\.{2,}/g, "."); //只保留第一个, 清除多余的
  80. obj.value = obj.value.replace(".", "$#$").replace(/\./g, "").replace("$#$", ".");
  81. obj.value = obj.value.replace(/^(\-)*(\d+)\.(\d\d).*$/, '$1$2.$3'); //只能输入两个小数
  82. }
  83. function int(obj) {
  84. obj.value = obj.value.replace(/[^\d]/g, ""); //清除"数字"以外的字符
  85. }
  86. //设置主营类型
  87. function setTags(opts) {
  88. var tagArr = [];
  89. opts.$mainPro.val('')
  90. opts.$tagArea.find('.new-tag.active').each(function (i, v) {
  91. var _typeName = $(v).attr('data-typeName');
  92. tagArr.push(_typeName);
  93. opts.$mainPro.val(tagArr.join('/'));
  94. })
  95. }
  96. //选择主营内容项目
  97. function getTags(opts) {
  98. opts.$tagArea.on('click', '.new-tag', function () {
  99. var $this = $(this);
  100. $this.toggleClass('active');
  101. setTags(opts);
  102. });
  103. opts.$other.on('click', function () {
  104. opts.$input.css('display', 'inline-block');
  105. opts.$add.css('display', 'inline-block');
  106. });
  107. opts.$add.on('click', function () {
  108. var _tag = $.trim(opts.$input.val());
  109. if (_tag) {
  110. var flag = false;
  111. opts.$tagArea.find('.new-tag').each(function (i, v) {
  112. var _name = $(v).attr('data-typeName');
  113. if (_tag == _name) {
  114. flag = true;
  115. return false;
  116. } else {
  117. if (i == opts.$tagArea.find('.new-tag').length) {
  118. flag = false;
  119. }
  120. }
  121. })
  122. if (flag) {
  123. opts.$tagArea.find('.new-tag').each(function (i, v) {
  124. var _name = $(v).attr('data-typeName');
  125. if (_tag == _name) {
  126. $(v).addClass('active');
  127. layer.tips('该类型已存在', opts.$add);
  128. flag = true;
  129. return false;
  130. }
  131. })
  132. } else {
  133. opts.$tagArea.append('<span class="new-tag up-' + opts.$type + '-tag active" data-typeName="' + _tag + '">' + _tag + '</span> ');
  134. setTags(opts);
  135. opts.$input.val('');
  136. return;
  137. }
  138. }
  139. })
  140. }
  141. $(document).on("change", "#auditStatus", function () {
  142. if ($("#auditStatus").val() == 2) {
  143. $("#auditNopass").show();
  144. } else {
  145. $("#auditNopass").hide();
  146. }
  147. })
  148. function toAudit(id) {
  149. audit(id);
  150. }
  151. /**
  152. * 审核会所
  153. */
  154. function audit(id) {
  155. var html = "<div id='auditBox'>"
  156. + " <div class='bd-row'>"
  157. + " <span><font color='red'>*</font>审核:</span>"
  158. + " <select name='auditStatus' id='auditStatus'>"
  159. + " <option value='1'>审核通过</option>"
  160. + " <option value='2'>审核未通过</option>"
  161. + " <select/>"
  162. + " </div>"
  163. + " <div id='auditNopass' style='display: none;'>"
  164. + " <div class='bd-row'>"
  165. + " <span><font color='red'>*</font>原因:</span>"
  166. + " <div class='auditCheckBox'>"
  167. + " <label><input name='auditCheckBox' type='checkbox' value='图片模糊'><span>图片模糊</span></label>"
  168. + " <label><input name='auditCheckBox' type='checkbox' value='营业执照错误'><span>营业执照错误</span></label>"
  169. + " <label><input name='auditCheckBox' type='checkbox' value='详细信息不全'><span>详细信息不全</span></label>"
  170. + " <label><input name='auditCheckBox' type='checkbox' value='机构名称敏感'><span>机构名称敏感</span></label>"
  171. + " </div>"
  172. + " </div>"
  173. + " <div class='bd-row'>"
  174. + " <span></span>"
  175. + " <div>"
  176. + " <textarea name='auditNote'></textarea>"
  177. + " <p class='err-tip' style='display:none;margin-left:-55px;color:red;'>请选择审核未通过的原因</p>"
  178. + " </div>"
  179. + " </div>"
  180. + " </div>"
  181. + "</div>";
  182. var submit = function (v, h, f) {
  183. if (f.auditStatus == '') {
  184. $.jBox.tip("请选择状态", 'error', {focusId: "auditStatus"});
  185. return false;
  186. } else if (f.auditStatus == 2 && f.auditNote == '' && !f.auditCheckBox) {
  187. $.jBox.tip("请选择审核未通过的原因", 'error', {focusId: "auditNote"});
  188. return false;
  189. } else if (f.auditStatus == 2 && f.auditNote.length > 100) {
  190. $.jBox.tip("内容过长", 'error', {focusId: "auditNote"});
  191. return false;
  192. }
  193. var auditText = f.auditCheckBox ? (f.auditCheckBox.toString() + ',' + f.auditNote) : f.auditNote;
  194. $.post("${ctx}/new/user/agency/auditClub", {
  195. 'auditStatus': f.auditStatus,
  196. 'id': id,
  197. 'auditNote': auditText
  198. }, function (data) {
  199. if (true == data.success) {
  200. $.jBox.tip(data.msg, 'info');
  201. // $("#searchForm").submit();
  202. window.location.href = "${ctx}/new/user/agency/";
  203. } else {
  204. $.jBox.tip(data.msg, 'error');
  205. }
  206. }, "JSON");//这里返回的类型有:json,html,xml,text
  207. };
  208. $.jBox(html, {title: "审核", submit: submit});
  209. }
  210. // 初始化选中数据
  211. $(function () {
  212. //初始化1
  213. var firstClubType = $('#firstClubType').val();
  214. console.log(firstClubType)
  215. if (firstClubType == '1') {
  216. $('.med-option,.qualification').show();
  217. }
  218. $('.medical-radio div input[name="firstClubType"]').on('click', function () {
  219. var html = '';
  220. var nameval = $(this).val();
  221. if (nameval == '1') {
  222. $('.med-option,.qualification').show();
  223. html += '<span class="new-tag up-club-tag" data-typeName="整形">整形</span>',
  224. html += '<span class="new-tag up-club-tag" data-typeName="轻医美">轻医美</span>',
  225. html += '<span class="new-tag up-club-tag" data-typeName="皮肤科">皮肤科</span>';
  226. $('#clubArea').html(html);
  227. $('.Main-content').show();
  228. } else if (nameval == '2') {
  229. $('.med-option,.qualification,.epart').hide();
  230. $('input[name="secondClubType"]').attr('checked', false);
  231. html += '<span class="new-tag up-club-tag" data-typeName="美容">美容</span>',
  232. html += '<span class="new-tag up-club-tag" data-typeName="美体">美体</span>',
  233. html += '<span class="new-tag up-club-tag" data-typeName="美发">美发</span>',
  234. html += '<span class="new-tag up-club-tag" data-typeName="皮肤管理">皮肤管理</span>',
  235. html += '<span class="new-tag up-club-tag" data-typeName="光电">光电</span>',
  236. html += '<span class="new-tag up-club-tag" data-typeName="综合类">综合类</span>',
  237. html += '<span class="new-tag up-club-tag" data-typeName="中医养生">中医养生</span>',
  238. html += '<span class="new-tag up-club-tag" data-typeName="spa">spa</span>'
  239. $('#clubArea').html(html);
  240. $('.Main-content').show();
  241. }
  242. });
  243. //初始化2
  244. if (firstClubType == '1') {
  245. var nameval1 = $('input[name="secondClubType"]:checked').val();
  246. if (nameval1 == '1') {
  247. $('.epart').hide()
  248. } else if (nameval1 == '2') {
  249. $('.epart').show()
  250. } else if (nameval1 == '3') {
  251. $('.epart').show()
  252. }
  253. }
  254. //医美二级选择
  255. $('.med-option div input[name="secondClubType"]').on('click', function () {
  256. var nameVal = $(this).val();
  257. if (nameVal == '1') {
  258. $('.epart').hide()
  259. } else if (nameVal == '2') {
  260. $('.epart').show()
  261. } else if (nameVal == '3') {
  262. $('.epart').show()
  263. }
  264. });
  265. //主营项目
  266. var cMainProVal = $('#cMainPro').val();
  267. if (cMainProVal != null && cMainProVal != "") {
  268. var _mainPros = cMainProVal.split('/');
  269. var proList = $('#clubArea').find('.new-tag');
  270. for (var j = 0; j < _mainPros.length; j++) {
  271. var _flag = false;
  272. for (var i = 0; i < proList.length; i++) {
  273. if ($(proList[i]).attr('data-typeName') == _mainPros[j]) {
  274. _flag = true;
  275. }
  276. }
  277. if (_flag) {
  278. for (var i = 0; i < proList.length; i++) {
  279. if ($(proList[i]).attr('data-typeName') == _mainPros[j]) {
  280. $(proList[i]).addClass('active');
  281. }
  282. }
  283. } else {
  284. $('#clubArea').append('<span class="new-tag up-club-tag active" data-typeName="' + _mainPros[j] + '">' + _mainPros[j] + '</span> ');
  285. $('.Main-content').show();
  286. }
  287. }
  288. $('#cMainPro').val(cMainProVal);
  289. }
  290. //机构品项选择
  291. var optsClub = {
  292. $tag: $('.up-club-tag'),
  293. $tagArea: $('#clubArea'),
  294. $mainPro: $('#cMainPro'),
  295. $other: $('#clubOther'),
  296. $input: $('#clubInput'),
  297. $add: $('#clubAdd'),
  298. $type: 'club'
  299. };
  300. getTags(optsClub);
  301. })
  302. </script>
  303. <style>
  304. #auditBox {
  305. padding: 20px;
  306. line-height: 30px;
  307. }
  308. #auditBox .bd-row {
  309. display: flex;
  310. margin-bottom: 15px;
  311. }
  312. #auditBox .bd-row > span {
  313. display: inline-block;
  314. width: 60px;
  315. }
  316. #auditBox .auditCheckBox {
  317. width: 250px;
  318. }
  319. #auditBox .auditCheckBox label {
  320. margin: 0 5px 5px 0
  321. }
  322. #auditBox .auditCheckBox input {
  323. display: none;
  324. }
  325. #auditBox .auditCheckBox input + span {
  326. display: inline-block;
  327. line-height: 24px;
  328. padding: 0 12px;
  329. border: 1px solid #666;
  330. border-radius: 5px;
  331. }
  332. #auditBox .auditCheckBox input:checked + span {
  333. background-color: #E6633A
  334. }
  335. .detailTitle {
  336. margin: 16px 0px 4px 20px;
  337. font-weight: bold;
  338. }
  339. .detailLine {
  340. width: 98%;
  341. margin-left: 10px;
  342. }
  343. .clubInfo {
  344. float: left;
  345. width: 25%;
  346. }
  347. .clubInfoTitle {
  348. text-align: center;
  349. text-decoration: underline;
  350. font-weight: bold;
  351. }
  352. th {
  353. text-align: right;
  354. white-space: nowrap;
  355. }
  356. td {
  357. padding: 5px 0;
  358. }
  359. #headpicPreview li, #businessLicenseImagePreview li {
  360. min-height: 100px;
  361. }
  362. /*----------------------------------*/
  363. .the-oradio {
  364. display: inline-block;
  365. vertical-align: top;
  366. }
  367. .the-oradio div {
  368. width: 85px;
  369. display: inline-block;
  370. font-size: 12px;
  371. color: #666;
  372. }
  373. .med-option {
  374. display: block;
  375. margin: 10px 0 0 160px;
  376. }
  377. .control-group .new-tag {
  378. display: inline-block;
  379. width: 78px;
  380. height: 30px;
  381. border: 1px solid #e5e5e5;
  382. border-radius: 5px;
  383. margin: 7px;
  384. text-align: center;
  385. line-height: 30px;
  386. font-size: 14px;
  387. overflow: hidden;
  388. text-overflow: ellipsis;
  389. white-space: nowrap;
  390. cursor: pointer;
  391. }
  392. .control-group .new-tag.active {
  393. border-color: #e15616;
  394. color: #e15616;
  395. }
  396. #clubArea {
  397. display: inline-block;
  398. width: 450px;
  399. }
  400. #clubOther {
  401. height: 40px;
  402. line-height: 40px;
  403. vertical-align: middle
  404. }
  405. #clubInput {
  406. width: 159px;
  407. margin: 7px;
  408. display: inline-block;
  409. height: 30px;
  410. display: none;
  411. }
  412. .tags-operate {
  413. margin-left: 160px;
  414. }
  415. .control-group .tags-operate .tag-add {
  416. height: 40px;
  417. line-height: 40px;
  418. vertical-align: middle;
  419. display: none;
  420. }
  421. .top-label {
  422. width: 160px;
  423. text-align: right;
  424. vertical-align: top;
  425. margin-top: 10px;
  426. }
  427. </style>
  428. </head>
  429. <body>
  430. <ul class="nav nav-tabs">
  431. <li><a href="${ctx}/new/user/agency/?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></li>
  432. <li class="active"><a href="${ctx}/new/user/agency/form?id=${newCmClub.clubID}&source=${source}&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></li>
  433. </ul>
  434. <form:form id="inputForm" modelAttribute="cmClubinfo" action="${ctx}/new/user/agency/save?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}" method="post"
  435. class="form-horizontal">
  436. <form:hidden path="id" value="${newCmClub.clubID}"/>
  437. <form:hidden path="clubInfoID"/>
  438. <form:hidden path="userID"/>
  439. <form:hidden path="clubID"/>
  440. <div style="max-width:1200px;padding:15px;">
  441. <table border="0" cellspacing="0" cellpadding="0" width="100%">
  442. <tr height="28">
  443. <th>状态:</th>
  444. <td colspan="5">${fns:getDictLabel(newCmClub.status, 'club_status', newCmClub.status)}</td>
  445. </tr>
  446. <tr height="28">
  447. <th width="12%">机构名称:</th>
  448. <td width="13%"><form:input path="name" htmlEscape="false" maxlength="20"
  449. class="input-medium" value="${newCmClub.userIdentity eq 4 && newCmClub.status eq 90?'':newCmClub.name}"/></td>
  450. <th width="12%">机构简称:</th>
  451. <td width="13%"><form:input path="sname" htmlEscape="false" maxlength="20"
  452. class="input-medium" value="${newCmClub.userIdentity eq 4 && newCmClub.status eq 90?'':newCmClub.sname}"/></td>
  453. <th width="12%">注册邮箱:</th>
  454. <td width="13%"><form:input path="contractEmail1" htmlEscape="false" maxlength="20"
  455. class="input-medium"/></td>
  456. </tr>
  457. <tr height="28">
  458. <th width="12%"><font color="red">*</font>联系人:</th>
  459. <td width="13%">
  460. <form:input path="userName" htmlEscape="false" maxlength="20"
  461. class="input-medium required" value="${newCmClub.userName}"/>
  462. </td>
  463. <th width="12%"><font color="red">*</font> 手机号:</th>
  464. <td colspan="3"><form:input path="bindMobile" htmlEscape="false" maxlength="20"
  465. class="input-medium required" value="${newCmClub.bindMobile}" onchange="checkMobile()"/></td>
  466. </tr>
  467. </table>
  468. </div>
  469. <input type="hidden" id="curProvince" name="curProvince" value="${newCmClub.province }" disabled="disabled">
  470. <input type="hidden" id="curCity" name="curCity" value="${newCmClub.city }" disabled="disabled">
  471. <input type="hidden" id="curTown" name="curTown" value="${newCmClub.town }" disabled="disabled">
  472. <sys:message content="${message}"/>
  473. <hr class="detailLine">
  474. <div>
  475. <table border="0" cellspacing="0" cellpadding="0" width="100%">
  476. <tr>
  477. <td colspan="2">
  478. <div class="control-group">
  479. <label class="control-label"><b>地址:</b></label>
  480. <div class="controls">
  481. <form:select path="provinceID" class="input-xlarge" id="province"
  482. onchange="loadCity()" style="width:100px;">
  483. <form:option value="" label="省" provinceId=""/>
  484. </form:select>
  485. <form:select path="cityID" class="input-xlarge" id="city" onchange="loadTown()"
  486. style="width:100px;">
  487. <form:option value="" label="市" cityId=""/>
  488. </form:select>
  489. <form:select path="townID" class="input-xlarge" id="town" style="width:100px;">
  490. <form:option value="" label="区"/>
  491. </form:select>
  492. <form:input path="address" class="input-xlarge userAddress" width="20px" maxlength="60"
  493. placeholder="请填写会所详细的地址"/>
  494. </div>
  495. </div>
  496. </td>
  497. </tr>
  498. <tr>
  499. <td colspan="2">
  500. <div class="control-group">
  501. <label class="control-label"><b>营业执照编号:</b></label>
  502. <div class="controls">
  503. <form:input path="socialCreditCode" htmlEscape="false" maxlength="18"
  504. class="input-xlarge" onchange="onlyNumOrLetter(this)"
  505. placeholder="请填写统一社会信用代码"/>
  506. </div>
  507. </div>
  508. </td>
  509. </tr>
  510. <tr>
  511. <td>
  512. <div class="control-group">
  513. <label class="control-label"><b>营业执照:</b></label>
  514. <div class="controls">
  515. <form:hidden id="businessLicenseImage" path="businessLicenseImage" htmlEscape="false"
  516. maxlength="255" class="input-xlarge required"/>
  517. <sys:ckfinder input="businessLicenseImage" type="images" uploadPath="/photo"
  518. selectMultiple="false" maxWidth="100" maxHeight="100"/>
  519. <font color="red">注意:请上传jpg/png格式的图片,最大不超过5M</font>
  520. </div>
  521. </div>
  522. </td>
  523. <td>
  524. <div class="control-group">
  525. <label class="control-label"><b>门头照:</b></label>
  526. <div class="controls">
  527. <form:hidden id="headpic" path="headpic" htmlEscape="false" maxlength="255"
  528. class="input-xlarge"/>
  529. <sys:ckfinder input="headpic" type="images" uploadPath="/photo" maxWidth="100" maxHeight="100"/>
  530. <font color="red">注意:请上传jpg/png格式的图片,最大不超过5M</font>
  531. </div>
  532. </div>
  533. </td>
  534. </tr>
  535. <tr>
  536. <td>
  537. <div class="control-group">
  538. <label class="control-label" for=""><b>机构类型:</b></label>
  539. <div class="medical-radio the-oradio">
  540. <input value="${cmClubinfo.firstClubType}" class="hide" type="text" id="firstClubType"/>
  541. <div class="med-beauty">
  542. <input name="firstClubType" value="1" type="radio" ${cmClubinfo.firstClubType == "1" ? "checked" : ""}/>医美
  543. </div>
  544. <div class="raw-beauty">
  545. <input name="firstClubType" value="2" type="radio" ${cmClubinfo.firstClubType == "2" ? "checked" : ""}/>生美
  546. </div>
  547. </div>
  548. <span class="err-tip"></span>
  549. <div class="med-option the-oradio" style="display: none">
  550. <div class="med-beauty"><input name="secondClubType" value="1"
  551. type="radio" ${cmClubinfo.secondClubType == "1" ? "checked" : ""}/>诊所
  552. </div>
  553. <div class="med-beauty"><input name="secondClubType" value="2"
  554. type="radio" ${cmClubinfo.secondClubType == "2" ? "checked" : ""}/>门诊
  555. </div>
  556. <div class="med-beauty"><input name="secondClubType" value="3"
  557. type="radio" ${cmClubinfo.secondClubType == "3" ? "checked" : ""}/>医院
  558. </div>
  559. <span class="err-tip"></span>
  560. </div>
  561. <div class="qualification control-group" style="display: none">
  562. <label class="control-label"><b>资质:</b></label>
  563. <div class="controls" style="margin-bottom: 10px">
  564. <form:hidden id="medicalPracticeLicenseImg" path="medicalPracticeLicenseImg"
  565. htmlEscape="false" maxlength="255"
  566. class="input-xlarge"/>
  567. <sys:ckfinder input="medicalPracticeLicenseImg" type="images" uploadPath="/photo"
  568. maxWidth="100" maxHeight="100"/>
  569. <font color="red">注意:请上传jpg/png格式的图片,最大不超过5M</font>
  570. </div>
  571. </div>
  572. </div>
  573. <div class="control-group epart" style="display: none">
  574. <label class="control-label"><b>科室:</b></label>
  575. <input class="reg-input" type="text" name="department" id="Department"
  576. placeholder="请填写您的所经营的科室,用逗号隔开。(至少三个)" value="${cmClubinfo.department}"
  577. style="margin-left: 10px;"/>
  578. <span class="err-tip"></span>
  579. </div>
  580. <div class="control-group Main-content" style="display: none">
  581. <label class="control-label" for=""><b>主营内容:</b></label>
  582. <div class="tags-area" id="clubArea"></div>
  583. <span class="err-tip" style="display: inline-block;margin-left:-55px;"></span>
  584. <input type="hidden" name="mainpro" value="${cmClubinfo.mainpro}" id="cMainPro">
  585. <div class="tags-operate">
  586. <span class="new-tag tag-other" id="clubOther">其他</span>
  587. <input type="text" class="reg-input tag-input" id="clubInput" placeholder="请输入自定义品项目"
  588. maxlength="5">
  589. <span class="new-tag tag-add" id="clubAdd">确认添加</span>
  590. </div>
  591. </div>
  592. </td>
  593. </tr>
  594. <tr>
  595. <td>
  596. <div class="control-group">
  597. <label class="control-label"><b>固定电话:</b></label>
  598. <div class="controls">
  599. <form:input path="contractPhone" htmlEscape="false" maxlength="11" class="input-xlarge"
  600. onchange="int(this)"/>
  601. </div>
  602. </div>
  603. <td>
  604. <div class="control-group">
  605. <label class="control-label"><b>传真:</b></label>
  606. <div class="controls">
  607. <form:input path="fax" htmlEscape="false" maxlength="18" class="input-xlarge"
  608. onchange="int(this)"/>
  609. </div>
  610. </div>
  611. </td>
  612. </tr>
  613. <tr>
  614. <td colspan="2">
  615. <div class="control-group">
  616. <label class="control-label"><b>员工人数:</b></label>
  617. <div class="controls">
  618. <form:input path="empnum" htmlEscape="false" maxlength="18" class="input-xlarge"
  619. onchange="onlyNumOrLetter(this)"/>
  620. </div>
  621. </div>
  622. </td>
  623. </tr>
  624. <tr>
  625. <td colspan="2">
  626. <div class="control-group">
  627. <label class="control-label"><b>公司简介:</b></label>
  628. <div class="controls">
  629. <form:textarea rows="7" cols="80" path="info" htmlEscape="false" maxlength="500"
  630. cssStyle="width:70%;"/>
  631. </div>
  632. </div>
  633. </td>
  634. </tr>
  635. </table>
  636. <div>
  637. <div class="clubInfo">
  638. <div class="clubInfoTitle">基本信息</div>
  639. <table border="0" cellspacing="0" cellpadding="0" width="100%">
  640. <tr height="28">
  641. <th>机构面积:</th>
  642. <td><form:input path="area" htmlEscape="false" class="input-medium" onkeyup="num(this)"/>
  643. </td>
  644. </tr>
  645. <tr height="28">
  646. <th>美容床数:</th>
  647. <td><form:input path="bedNums" htmlEscape="false" maxlength="11" class="input-medium"
  648. onkeyup="int(this)"/>
  649. <%--<input type="text" name="bedNums" value="${clubInfo.bedNums}">--%>
  650. </td>
  651. </tr>
  652. <tr height="28">
  653. <th>美容师数:</th>
  654. <td><form:input path="beauticians" htmlEscape="false" maxlength="11" class="input-medium"
  655. onkeyup="int(this)"/>
  656. </td>
  657. </tr>
  658. </table>
  659. </div>
  660. <div class="clubInfo">
  661. <div class="clubInfoTitle">业绩信息</div>
  662. <table border="0" cellspacing="0" cellpadding="0" width="100%">
  663. <tr height="28">
  664. <th>月业绩:</th>
  665. <td><form:input path="monthAchievement" htmlEscape="false" maxlength="63" class="input-medium"
  666. onkeyup="num(this)"/>
  667. </td>
  668. </tr>
  669. <tr height="28">
  670. <th>促销业绩:</th>
  671. <td><form:input path="promotionAchievement" htmlEscape="false" maxlength="63" class="input-medium"
  672. onkeyup="num(this)"/>
  673. </td>
  674. </tr>
  675. <tr height="28">
  676. <th>年业绩:</th>
  677. <td><form:input path="yearAchievement" htmlEscape="false" maxlength="63" class="input-medium"
  678. onkeyup="num(this)"/>
  679. </td>
  680. </tr>
  681. </table>
  682. </div>
  683. <div class="clubInfo">
  684. <div class="clubInfoTitle">会员信息及消费情况</div>
  685. <table border="0" cellspacing="0" cellpadding="0" width="100%">
  686. <tr height="28">
  687. <th>A类会员:</th>
  688. <td colspan="3" style="padding-top: 6px;">
  689. <form:input path="cateA" htmlEscape="false" maxlength="11" class="cut-input-medium"
  690. onkeyup="int(this)"/>人&nbsp;
  691. <form:input path="consumeA" htmlEscape="false" class="cut-input-medium" onkeyup="num(this)"/>元
  692. </td>
  693. </tr>
  694. <tr height="28">
  695. <th>B类会员:</th>
  696. <td colspan="3" style="padding-top: 6px;">
  697. <form:input path="cateB" htmlEscape="false" maxlength="11" class="cut-input-medium"
  698. onkeyup="int(this)"/>人&nbsp;
  699. <form:input path="consumeB" htmlEscape="false" class="cut-input-medium" onkeyup="num(this)"/>元
  700. </td>
  701. </tr>
  702. <tr height="28">
  703. <th>C类会员:</th>
  704. <td colspan="3" style="padding-top: 6px;">
  705. <form:input path="cateC" htmlEscape="false" maxlength="11" class="cut-input-medium"
  706. onkeyup="int(this)"/>人&nbsp;
  707. <form:input path="consumeC" htmlEscape="false" class="cut-input-medium" onkeyup="num(this)"/>元
  708. </td>
  709. </tr>
  710. </table>
  711. </div>
  712. <div class="clubInfo">
  713. <div class="clubInfoTitle">活动业绩</div>
  714. <table border="0" cellspacing="0" cellpadding="0" width="100%">
  715. <tr height="28">
  716. <th>最高业绩:</th>
  717. <td>
  718. <form:input path="highestAchievement" htmlEscape="false" maxlength="63" class="input-medium"
  719. onkeyup="num(this)"/>
  720. </td>
  721. </tr>
  722. <tr height="28">
  723. <th>到店人数:</th>
  724. <td>
  725. <form:input path="reachPepole" htmlEscape="false" maxlength="11" class="input-medium"
  726. onkeyup="int(this)"/>
  727. </td>
  728. </tr>
  729. <tr height="28">
  730. <th>成交人数:</th>
  731. <td>
  732. <form:input path="clinchPepole" htmlEscape="false" maxlength="11" class="input-medium"
  733. onkeyup="int(this)"/>
  734. </td>
  735. </tr>
  736. </table>
  737. </div>
  738. <table border="0" cellspacing="0" cellpadding="0" width="100%">
  739. <tr height="28">
  740. <th>店内所经营品牌及推广优势:</th>
  741. <td colspan="3">
  742. <form:textarea rows="7" cols="80" path="brandSuperiority" htmlEscape="false" cssStyle="width:90%;"
  743. maxlength="200"/>
  744. </td>
  745. <th>临近一次促销的模式及达成业绩:</th>
  746. <td colspan="3">
  747. <form:textarea rows="7" cols="80" path="lastPromotion" htmlEscape="false" cssStyle="width:90%;"
  748. maxlength="200"/>
  749. </td>
  750. </tr>
  751. </table>
  752. </div>
  753. <div class="form-actions">
  754. <c:if test="${source eq 1}">
  755. <input id="btnSubmit" class="btn btn-primary" type="submit" value="保 存"/>&nbsp;&nbsp;&nbsp;
  756. </c:if>
  757. <%-- <c:if test="${source eq 2 && newCmClub.status eq 1}">--%>
  758. <%-- <input id="btnAudit" class="btn btn-primary" type="button" onclick="toAudit(${newCmClub.clubID})"--%>
  759. <%-- value="审 核"/>&nbsp;&nbsp;&nbsp;--%>
  760. <%-- </c:if>--%>
  761. <input id="btnCancel" class="btn" type="button" value="返 回" onclick="history.go(-1)"/>
  762. </div>
  763. </form:form>
  764. </body>
  765. </html>