jjcommon.js 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. /**
  2. * 银行名称变更
  3. * @param content
  4. * @param nextId
  5. */
  6. function bankChange(content,nextId) {
  7. var bank = $(content).val();
  8. if($.trim(bank)=='中国工商银行'){
  9. $("#"+ nextId).val('102391050013');
  10. }else {
  11. $("#"+ nextId).val('');
  12. }
  13. }
  14. /**
  15. * 加载省份
  16. */
  17. function loadProvince(){
  18. //加载省份
  19. Feng.addAjaxSelect({
  20. "id": "provinceCode",
  21. "displayCode": "code",
  22. "displayName": "name",
  23. "type": "GET",
  24. "url": Feng.ctxPath + "/api/commonLocation/getProvinceSelect"
  25. });
  26. }
  27. /**
  28. * 省市级联
  29. * @param content 省
  30. * @param target1 市
  31. * @param target2 县
  32. */
  33. function afterSelectProvince(content,target1,target2){
  34. var province = $(content).val();
  35. $("#" + target1).empty();
  36. $("#" + target2).empty();
  37. if(province==null||province==''){
  38. return;
  39. }
  40. Feng.addAjaxSelect({
  41. "id": target1,
  42. "displayCode": "code",
  43. "displayName": "name",
  44. "type": "GET",
  45. "url": Feng.ctxPath + "/api/commonLocation/findCityByProvinceSelect/"+province
  46. });
  47. }
  48. /**
  49. * 市县级联
  50. * @param content
  51. * @param target
  52. */
  53. function afterSelectCity(content,target){
  54. var city = $(content).val();
  55. $("#" + target).empty();
  56. if(city==null||city==''){
  57. return;
  58. }
  59. Feng.addAjaxSelect({
  60. "id": target,
  61. "displayCode": "code",
  62. "displayName": "name",
  63. "type": "GET",
  64. "url": Feng.ctxPath + "/api/commonLocation/findCountyByCitySelect/"+city
  65. });
  66. }