Browse Source

增加医疗执业许可证

plf 4 years ago
parent
commit
c32e6e71b8
1 changed files with 45 additions and 5 deletions
  1. 45 5
      src/main/webapp/WEB-INF/views/modules/user/newCmShopForm.jsp

+ 45 - 5
src/main/webapp/WEB-INF/views/modules/user/newCmShopForm.jsp

@@ -471,6 +471,7 @@ function loadTown(curTown) {
     $(function () {
         changeMaintenceFee();
 		secondShop();
+		medicalPractice();
     })
 
  function changeMaintenceFee(){
@@ -491,6 +492,16 @@ function loadTown(curTown) {
 		 $("#secondShopType").hide();
 	 }
  }
+
+ //三类器械医疗许可证显示
+	function medicalPractice() {
+		var secondShopType = $("input[name='secondShopType']:checked").val();
+		if (secondShopType == 3){
+			$("#medicalPracticeLicenseImg").show();
+		}else {
+			$("#medicalPracticeLicenseImg").hide();
+		}
+	}
 	</script>
 	<style>
 		.control-group table{margin: 10px}
@@ -774,21 +785,50 @@ function loadTown(curTown) {
 						<form:radiobutton path="firstShopType" value="2" label="非医疗"  class="required" onclick="secondShop()"/>
 					</td>
 				</tr>
-
 				<tr id="secondShopType" hidden="hidden">
 					<td>
 						<span><font color="red">*</font>医疗类型:</span>
 						<div class="control-group Main-content">
 							<div class="tags-area" id="secondShopTypeArea">
-								<form:radiobutton path="secondShopType" value="1" label="一类器械" class="required"/>&nbsp;&nbsp;
-								<form:radiobutton path="secondShopType" value="2" label="二类器械"  class="required"/>&nbsp;&nbsp;
-								<form:radiobutton path="secondShopType" value="3" label="三类器械"  class="required"/>&nbsp;&nbsp;
-								<form:radiobutton path="secondShopType" value="4" label="其他"  class="required"/>
+								<form:radiobutton path="secondShopType" value="1" label="一类器械" class="required" onclick="medicalPractice()"/>&nbsp;&nbsp;
+								<form:radiobutton path="secondShopType" value="2" label="二类器械"  class="required" onclick="medicalPractice()"/>&nbsp;&nbsp;
+								<form:radiobutton path="secondShopType" value="3" label="三类器械"  class="required" onclick="medicalPractice()"/>&nbsp;&nbsp;
+								<form:radiobutton path="secondShopType" value="4" label="其他"  class="required" onclick="medicalPractice()"/>
 							</div>
 						</div>
 					</td>
 				</tr>
 
+				<tr id="medicalPracticeLicenseImg" hidden="hidden">
+					<td>
+						<table>
+							<tr>
+								<td>
+									<font color="red">*</font>医疗执业许可证:
+								</td>
+								<td>
+									<form:hidden id="medicalPracticeLicenseImg1" path="medicalPracticeLicenseImg1"
+												 htmlEscape="false" maxlength="255" class="input-xlarge required"/>
+									<sys:ckfinder input="medicalPracticeLicenseImg1" type="images" uploadPath="/photo"
+												  selectMultiple="false" maxWidth="100" maxHeight="100"/>
+								</td>
+								<td>
+									<form:hidden id="medicalPracticeLicenseImg2" path="medicalPracticeLicenseImg2"
+												 htmlEscape="false" maxlength="255" class="input-xlarge"/>
+									<sys:ckfinder input="medicalPracticeLicenseImg2" type="images" uploadPath="/photo"
+												  selectMultiple="false" maxWidth="100" maxHeight="100"/>
+								</td>
+								<td>
+									<form:hidden id="medicalPracticeLicenseImg3" path="medicalPracticeLicenseImg3"
+												 htmlEscape="false" maxlength="255" class="input-xlarge"/>
+									<sys:ckfinder input="medicalPracticeLicenseImg3" type="images" uploadPath="/photo"
+												  selectMultiple="false" maxWidth="100" maxHeight="100"/>
+								</td>
+							</tr>
+						</table>
+					</td>
+				</tr>
+
 				<tr>
 					<td>
 						<span><font color="red">*</font>主营内容:</span>