|
@@ -862,6 +862,40 @@ Register.industryChange = function () {
|
|
|
Feng.findChildDictBatch(JSON.stringify(arr));
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+Register.afterSelectProvince = function (prefix) {
|
|
|
+ var province = $("#" + prefix + "_province").val();
|
|
|
+ $("#" + prefix + "_city").empty();
|
|
|
+ $("#" + prefix + "_county").empty();
|
|
|
+ if (province == null || province == '') {
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ Feng.addAjaxSelect({
|
|
|
+ "id": prefix + "_city",
|
|
|
+ "displayCode": "code",
|
|
|
+ "displayName": "name",
|
|
|
+ "type": "GET",
|
|
|
+ "url": Feng.ctxPath + "/common/tool/findCityByProvinceSelect/code/" + province
|
|
|
+ });
|
|
|
+}
|
|
|
+/**
|
|
|
+ * 加载县
|
|
|
+ */
|
|
|
+Register.afterSelectCity = function (prefix) {
|
|
|
+ var city = $("#" + prefix + "_city").val();
|
|
|
+ $("#" + prefix + "_county").empty();
|
|
|
+ if (city == null || city == '') {
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ Feng.addAjaxSelect({
|
|
|
+ "id": prefix + "_county",
|
|
|
+ "displayCode": "code",
|
|
|
+ "displayName": "name",
|
|
|
+ "type": "GET",
|
|
|
+ "url": Feng.ctxPath + "/common/tool/findCountyByCitySelect/code/" + city
|
|
|
+ });
|
|
|
+}
|
|
|
+
|
|
|
$(function () {
|
|
|
$('#ep_form').bootstrapValidator({
|
|
|
feedbackIcons: {
|
|
@@ -913,7 +947,7 @@ $(function () {
|
|
|
{"name": "mf_street", "code": "street"},
|
|
|
{"name": "agencyType", "code": "agency_type"}];
|
|
|
Feng.findChildDictBatch(JSON.stringify(arr));
|
|
|
- $("#imgurl,#sy_imgurl,#mf_imgurl,#bankImg,#mf_bankImg,#sy_bankImg,#beian,#domainImg,#typeImg").change(function (e) {
|
|
|
+ $("#imgurl,#sy_imgurl,#mf_imgurl,#wj_imgurl,#gj_imgurl,#bankImg,#mf_bankImg,#sy_bankImg,#beian,#domainImg,#typeImg").change(function (e) {
|
|
|
var that = this;
|
|
|
if (!Feng.chkFileInvalid(that.files[0], 5, 10)) {
|
|
|
return;
|
|
@@ -931,4 +965,15 @@ $(function () {
|
|
|
}
|
|
|
};
|
|
|
});
|
|
|
+
|
|
|
+ //加载省份
|
|
|
+ Feng.addAjaxSelect({
|
|
|
+ "id": "wj_province",
|
|
|
+ "displayCode": "code",
|
|
|
+ "displayName": "name",
|
|
|
+ "type": "GET",
|
|
|
+ "url": Feng.ctxPath + "/common/tool/getProvinceSelect"
|
|
|
+ });
|
|
|
+ var provinceList = $("#wj_province option").clone();
|
|
|
+ $("#gj_province").html(provinceList);
|
|
|
});
|