cmAgencyForm.jsp 39 KB

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