fdjsq.js 25 KB
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817
var gjj_a = 100;
var gongjj_je = 100;
var gjj_b2 = 240;
var zuhe_b1 = 240;
var sydk_lv = 6.55;
var sydkmj_lv = 6.55;
var sydkmj_etflv = 7.926;
var zuhedk_lv = 6.55;
var gjjdk_lv = 4.50;
var zhgjj_ll = 4.50;
var mj_sf = 0.3;
var etfmj_sf = 0.6;
var gjjmj_sf = 0.3;
var gjjmj_etf_sf = 0.6;
var gjj_bmj = 240;
var etf_bmj = 240;
var gjj_gjj = 240;
var gjmj_gjj = 240;
var gjmjetf_gjj = 240;
var gjj_pmdj = true;
var gjj_mj = true;
var gjj_zj = true;
var gjj_dkje = true;
var gjj_je = true;
var dk_lilv = true;
var business_sum = true;
var gjj_eds_dkje = true;
var gong_mj = true;
var gong_pmdj = true;
var zuhesydk = true;
var zhgjjdk = true;
$(document).ready(function() {
    szyz();
    szyz_mj();
    szyz_pfdj();
    szyz_fwzj();
    szyz_gongjj();
    syyz_gjjmj();
    szyz_gjjpfdj();
    szyz_zhsy();
    szyz_zhgjj();
    kuanTab();
    $($("#tab_one").find("input[name='pattern_jisuan']")[0]).attr("checked", true);
    $($("#tab_tow").find("input[name='pattern_tow']")[0]).attr("checked", true);
    $($("#edfangshi").find("input[name='pattern_ed']")[0]).attr("checked", true);
    $($("#mjfangshi").find("input[name='pattern_mj']")[0]).attr("checked", true);
    $($("#gjjfangshi").find("input[name='gongdebx']")[0]).attr("checked", true);
    $($("#taofang").find("input[name='pattern_ytf']")[0]).attr("checked", true);
    $($("#gjjgfxz").find("input[name='ax-pattern']")[0]).attr("checked", true);
    $($("#gjjf_de").find("input[name='gjjf_de']")[0]).attr("checked", true);
    $($("#zuhede").find("input[name='zhdeb']")[0]).attr("checked", true);
    $($("#etfmjfangshi").find("input[name='pattern_mj']")[0]).attr("checked", true);
    $($("#gjjetf_fangshi").find("input[name='gjjetf_de']")[0]).attr("checked", true);
});
function kuanTab() {
    var Li = $('#nav_list li');
    Li.click(function() {
        var fgd = $(this).hasClass('fjg');
        var num = $(this).index();
        var thisCon = Li.parents('#content').children('.loan_con').eq(num);
        if (fgd == false) {
            Li.removeClass('fjg');
            $(this).addClass('fjg');
            $('.loan_con').hide();
            thisCon.show();
        };
    });
}

function dkjCK(obj) {
    var obj = $(obj);
    var xsuo = obj.parent().children('.loan_div').children('.loan_li_selectcon');
    var ads = xsuo.hasClass('none');
    if (ads == true) {
        xsuo.removeClass('none');
    } else {
        xsuo.addClass('none');
    }
}

function lotypeSelect(obj) {
    var obj = $(obj);
    var hjm = obj.parent().parent('.loan_li_selectcon');
    hjm.addClass('none');
    var sey_word = $('#loan_type01').html();
    var This_word = obj.html();
    $('#loan_type01').html(This_word);
    var sey_reval = $('#loan_type01').attr('reval');
    var This_reval = obj.attr('reval');
    $('#loan_type01').attr('reval', This_reval);
}
function ynewSelect() {
    $('#lv_pop_list').click(function() {
        var js_yon = $('#lv_list_options').hasClass('none');
        if (js_yon == true) {
            $('#lv_list_options').removeClass('none');
        } else {
            $('#lv_list_options').addClass('none');
        }

    });
}
function zhdkll(zhlv) {
    var bthis = $(zhlv);
    var js_reval = bthis.attr('reval');
    var jsshow = $('#loan_type07');
    var jsli = $('#zhdkll_list li a');
    var jsul = $('#zhdkll_list');
    var jsshow_reval = jsshow.attr('reval');
    var jscontent = $('#zuhedk_rate');
    jscontent.val(js_reval);
    jscontent = js_reval;
    jsshow_reval = js_reval;
    zuhedk_lv = jsshow_reval;
    jsshow.text(bthis.text());
    jsli.removeClass('mo');
    bthis.addClass('mo');
    jsul.addClass('none');
    jsshow.attr('reval', zuhedk_lv);
    return zuhedk_lv;
}
function sydk(sylv) {
    var bthis = $(sylv);
    var js_reval = bthis.attr('reval');
    var jsshow = $('#loan_type02');
    var jsli = $('#lv_list_options li a');
    var jsul = $('#lv_list_options');
    var jsshow_reval = jsshow.attr('reval');
    var jscontent = $('#business_rate');
    jscontent.val(js_reval);
    jscontent = js_reval;
    jsshow_reval = js_reval;
    sydk_lv = jsshow_reval;
    jsshow.text(bthis.text());
    jsli.removeClass('mo');
    bthis.addClass('mo');
    jsul.addClass('none');
    jsshow.attr('reval', sydk_lv);
    return sydk_lv;
}
function sydkmj(sylv) {
    var bthis = $(sylv);
    var js_reval = bthis.attr('reval');
    var jsshow = $('#loan_type05');
    var jsli = $('#sydkmj_list li a');
    var jsul = $('#sydkmj_list');
    var jsshow_reval = jsshow.attr('reval');
    var jscontent = $('#business_rate_mj');
    jscontent.val(js_reval);
    jscontent = js_reval;
    jsshow_reval = js_reval;
    sydkmj_lv = jsshow_reval;
    jsshow.text(bthis.text());
    jsli.removeClass('mo');
    bthis.addClass('mo');
    jsul.addClass('none');
    jsshow.attr('reval', sydkmj_lv);
    return sydkmj_lv;
}

function sydkmjetf(sylv) {
    var bthis = $(sylv);
    var js_reval = bthis.attr('reval');
    var jsshow = $('#loan_type55');
    var jsli = $('#sydkmj_etflist li a');
    var jsul = $('#sydkmj_etflist');
    var jsshow_reval = jsshow.attr('reval');
    var jscontent = $('#business_rate_etfmj');
    jscontent.val(js_reval);
    jscontent = js_reval;
    jsshow_reval = js_reval;
    sydkmj_etflv = jsshow_reval;
    jsshow.text(bthis.text());
    jsli.removeClass('mo');
    bthis.addClass('mo');
    jsul.addClass('none');
    jsshow.attr('reval', sydkmj_etflv);
    return sydkmj_etflv;
}
function sydk_mjsf(mjsf) {
    var bthis = $(mjsf);
    var js_reval = bthis.attr('reval');
    var jsshow = $('#loan_type03');
    var jsli = $('#lv_list_sf li a');
    var jsul = $('#lv_list_sf');
    var jsshow_reval = jsshow.attr('reval');
    jsshow_reval = js_reval;
    mj_sf = jsshow_reval;
    jsshow.text(bthis.text());
    jsli.removeClass('mo');
    bthis.addClass('mo');
    jsul.addClass('none');
    jsshow.attr('reval', mj_sf);
    return mj_sf;
}

function sydk_etfjsf(mjsf) {
    var bthis = $(mjsf);
    var js_reval = bthis.attr('reval');
    var jsshow = $('#loan_type22');
    var jsli = $('#etf_list_sf li a');
    var jsul = $('#etf_list_sf');
    var jsshow_reval = jsshow.attr('reval');
    jsshow_reval = js_reval;
    etfmj_sf = jsshow_reval;
    jsshow.text(bthis.text());
    jsli.removeClass('mo');
    bthis.addClass('mo');
    jsul.addClass('none');
    jsshow.attr('reval', etfmj_sf);
    return etfmj_sf;
}
function sydk_gjjmjsf(mjsf) {
    var bthis = $(mjsf);
    var js_reval = bthis.attr('reval');
    var jsshow = $('#funds_type');
    var jsli = $('#funds_type_list li a');
    var jsul = $('#funds_type_list');
    var jsshow_reval = jsshow.attr('reval');
    jsshow_reval = js_reval;
    gjjmj_sf = jsshow_reval;
    jsshow.text(bthis.text());
    jsli.removeClass('mo');
    bthis.addClass('mo');
    jsul.addClass('none');
    jsshow.attr('reval', gjjmj_sf);
    return gjjmj_sf;
}

function gjjdk_etf(mjsf) {
    var bthis = $(mjsf);
    var js_reval = bthis.attr('reval');
    var jsshow = $('#funds_etf_type');
    var jsli = $('#funds_etf_type_list li a');
    var jsul = $('#funds_etf_type_list');
    var jsshow_reval = jsshow.attr('reval');
    jsshow_reval = js_reval;
    gjjmj_etf_sf = jsshow_reval;
    jsshow.text(bthis.text());
    jsli.removeClass('mo');
    bthis.addClass('mo');
    jsul.addClass('none');
    return gjjmj_etf_sf;
}

function shoufueSelect(obj) {
    var obj = $(obj);
    var hjm = obj.parent().parent('.loan_li_selectcon');
    hjm.addClass('none');
    var sey_word = $('#loan_type03').html();
    var This_word = obj.html();
    $('#loan_type03').html(This_word);
    var sey_reval = $('#loan_type03').attr('reval');
    var This_reval = obj.attr('reval');
}
function qitimeSelect(obj) {
    var obj = $(obj);
    var hjm = obj.parent().parent('.loan_li_selectcon');
    hjm.addClass('none');
    var sey_word = $('#loan_type04').html();
    var This_word = obj.html();
    $('#loan_type04').html(This_word);
    var sey_reval = $('#loan_type04').attr('reval');
    var This_reval = obj.attr('reval');
    $('#loan_type04').attr('reval', This_reval);
}
function yearlSelect(obj) {
    var obj = $(obj);
    var hjm = obj.parent().parent('.loan_li_selectcon');
    hjm.addClass('none');
    var sey_word = $('#loan_type05').html();
    var This_word = obj.html();
    $('#loan_type05').html(This_word);
    var sey_reval = $('#loan_type05').attr('reval');
    var This_reval = obj.attr('reval');
    $('#loan_type05').attr('reval', This_reval);
}
function symonth(obj) {
    var obj = $(obj);
    var hjm = obj.parent().parent('.loan_li_selectcon');
    hjm.addClass('none');
    var sey_word = $('#loan_type08').html();
    var This_word = obj.html();
    $('#loan_type08').html(This_word);
    var sey_reval = $('#loan_type08').attr('reval');
    var This_reval = obj.attr('reval');
    $('#loan_type08').attr('reval', This_reval);
}
function daikSelect(obj) {
    var obj = $(obj);
    var hjm = obj.parent().parent('.loan_li_selectcon');
    hjm.addClass('none');
    var sey_word = $('#loan_type09').html();
    var This_word = obj.html();
    $('#loan_type09').html(This_word);
    var sey_reval = $('#loan_type09').attr('reval');
    var This_reval = obj.attr('reval');
    $('#loan_type09').attr('reval', This_reval);
}
function zuhedkeSelect(obj) {
    var obj = $(obj);
    var hjm = obj.parent().parent('.loan_li_selectcon');
    hjm.addClass('none');
    var sey_word = $('#loan_type06').html();
    var This_word = obj.html();
    $('#loan_type06').html(This_word);
    var sey_reval = $('#loan_type06').attr('reval');
    var This_reval = obj.attr('reval');
    $('#loan_type06').attr('reval', This_reval);
}
function zuheyearSelect(obj) {
    var obj = $(obj);
    var hjm = obj.parent().parent('.loan_li_selectcon');
    hjm.addClass('none');
    var sey_word = $('#loan_type07').html();
    var This_word = obj.html();
    $('#loan_type07').html(This_word);
    var sey_reval = $('#loan_type07').attr('reval');
    var This_reval = obj.attr('reval');
    $('#loan_type07').attr('reval', This_reval);
}
function fundsSelect(obj) {
    var obj = $(obj);
    var hjm = obj.parent().parent('.loan_li_selectcon');
    hjm.addClass('none');
    var sey_word = $('#funds_type').html();
    var This_word = obj.html();
    $('#funds_type').html(This_word);
    var sey_reval = $('#funds_type').attr('reval');
    var This_reval = obj.attr('reval');
    $('#funds_type').attr('reval', This_reval);
}
function fundsdkSelect(obj) {
    var obj = $(obj);
    var hjm = obj.parent().parent('.loan_li_selectcon');
    hjm.addClass('none');
    var sey_word = $('#loan_funds').html();
    var This_word = obj.html();
    $('#loan_funds').html(This_word);
    var sey_reval = $('#loan_funds').attr('reval');
    var This_reval = obj.attr('reval');
    $('#loan_funds').attr('reval', This_reval);
}

function dkmoney(obj) {
    czjsq();
    gjj_czjs();
    var obj = $(obj);
    var mo = obj.parents().children('.dkmoney');
    var me = obj.parents().children('.area');
    me.hide();
    mo.show();
}
function area(obj) {
    czjsq();
    gjj_czjs();
    var obj = $(obj);
    var mo = obj.parents().children('.dkmoney');
    var me = obj.parents().children('.area');
    mo.hide();
    me.show();
}

function czjsq() {
    $('#business_sum').val('100');
    $('#ks_year_1').text(0);
    $('#ks_year_2').text(0);
    $('#ks_year').text(0);
    $('#ks_zlx_1').text(0);
    $('#ks_zlx_2').text(0);
    $('#ks_zlx').text(0);
    $('#sy_lxze').text(0);
    $('#sy_myyg').text(0);
    $('#sy_ljhk').text(0);
    $('#sy_yxxdy').text(0);
    $('#business_mj').val('');
    $('#business_pmdj').val('');
    $('#mj_fwzj').text(0);
    $('#business_dkje').text(0);
}

function gjj_czjs() {
    $('#gjj_eds_dkje').val('100');
    $('#gjj_year_1').text(0);
    $('#gjj_year_2').text(0);
    $('#gjj_year').text(0);
    $('#gjj_zlx_1').text(0);
    $('#gjj_zlx_2').text(0);
    $('#gjj_zlx').text(0);
    $('#gjj_lxze').text(0);
    $('#gjj_myyg').text(0);
    $('#gjj_ljhk').text(0);
    $('#gjj_yxxdy').text(0);
    $('#business_gjjmj').val('');
    $('#business_gjjpfdj').val('');
    $('#gjjmj_fwzj').text(0);
    $('#gjj_dkje').text(0);

}

function zuhe_cjjs() {
    $('#zuhesydk').val('');
    $('#zhgjjdk').val('');
}
function sydklv() {
    $('#lv_pop_list').click(function() {
        var js_yon = $('#lv_list_options').hasClass('none');
        if (js_yon == true) {
            $('#lv_list_options').removeClass('none');
        } else {
            $('#lv_list_options').addClass('none');
        }
    });
}
function sy_month(gjjbb) {
    var bthis = $(gjjbb);
    var js_reval = bthis.attr('reval');
    var jsshow = $('#loan_type01');
    var jsli = $('#sydk_options li a');
    var jsul = $('#sydk_options');
    var jsshow_reval = jsshow.attr('reval');
    jsshow_reval = js_reval;
    gjj_b2 = jsshow_reval;
    jsshow.text(bthis.text());
    jsli.removeClass('mo');
    bthis.addClass('mo');
    jsul.addClass('none');
    jsshow.attr('reval', gjj_b2);
    return gjj_b2;
}
function symj_month(gjjbb) {
    var bthis = $(gjjbb);
    var js_reval = bthis.attr('reval');
    var jsshow = $('#loan_type04');
    var jsli = $('#symj_qx_list li a');
    var jsul = $('#symj_qx_list');
    var jsshow_reval = jsshow.attr('reval');
    jsshow_reval = js_reval;
    gjj_bmj = jsshow_reval;
    jsshow.text(bthis.text());
    jsli.removeClass('mo');
    bthis.addClass('mo');
    jsul.addClass('none');
    jsshow.attr('reval', gjj_bmj);
    return gjj_bmj;
}
function symjetf_month(gjjbb) {
    var bthis = $(gjjbb);
    var js_reval = bthis.attr('reval');
    var jsshow = $('#loan_type44');
    var jsli = $('#etf_qx_list li a');
    var jsul = $('#etf_qx_list');
    var jsshow_reval = jsshow.attr('reval');
    jsshow_reval = js_reval;
    etf_bmj = jsshow_reval;
    jsshow.text(bthis.text());
    jsli.removeClass('mo');
    bthis.addClass('mo');
    jsul.addClass('none');
    jsshow.attr('reval', etf_bmj);
    return etf_bmj;
}

function gjjdk_month(gjjbb) {
    var bthis = $(gjjbb);
    var js_reval = bthis.attr('reval');
    var jsshow = $('#loan_type08');
    var jsli = $('#gjjdk_list li a');
    var jsul = $('#gjjdk_list');
    var jsshow_reval = jsshow.attr('reval');
    jsshow_reval = js_reval;
    gjj_gjj = jsshow_reval;
    jsshow.text(bthis.text());
    jsli.removeClass('mo');
    bthis.addClass('mo');
    jsul.addClass('none');
    jsshow.attr('reval', gjj_gjj);
    return gjj_gjj;
}
function gjjmjdk_month(gjjbb) {
    var bthis = $(gjjbb);
    var js_reval = bthis.attr('reval');
    var jsshow = $('#loan_type09');
    var jsli = $('#gjjmjdk_list li a');
    var jsul = $('#gjjmjdk_list');
    var jsshow_reval = jsshow.attr('reval');
    jsshow_reval = js_reval;
    gjmj_gjj = jsshow_reval;
    jsshow.text(bthis.text());
    jsli.removeClass('mo');
    bthis.addClass('mo');
    jsul.addClass('none');
    jsshow.attr('reval', gjmj_gjj);
    return gjmj_gjj;
}
function gjjmjetf_month(gjjbb) {
    var bthis = $(gjjbb);
    var js_reval = bthis.attr('reval');
    var jsshow = $('#loan_type99');
    var jsli = $('#gjjmjetf_list li a');
    var jsul = $('#gjjmjetf_list');
    var jsshow_reval = jsshow.attr('reval');
    jsshow_reval = js_reval;
    gjmjetf_gjj = jsshow_reval;
    jsshow.text(bthis.text());
    jsli.removeClass('mo');
    bthis.addClass('mo');
    jsul.addClass('none');
    jsshow.attr('reval', gjmjetf_gjj);
    return gjmjetf_gjj;
}
function zh_month(gjjbb) {
    var bthis = $(gjjbb);
    var js_reval = bthis.attr('reval');
    var jsshow = $('#loan_type06');
    var jsli = $('#zuhe_year_list li a');
    var jsul = $('#zuhe_year_list');
    var jsshow_reval = jsshow.attr('reval');
    jsshow_reval = js_reval;
    zuhe_b1 = jsshow_reval;
    jsshow.text(bthis.text());
    jsli.removeClass('mo');
    bthis.addClass('mo');
    jsul.addClass('none');
    jsshow.attr('reval', zuhe_b1);
    return zuhe_b1;
}
function szyz(gjj_a) {
    var cipt = $('#business_sum');
    var gjj_a = cipt.val();
    cipt.blur(function() {
        var Cprice_val = cipt.val();
        var Tprice_val = $.trim(Cprice_val);
        var error_ts = $('.js_error');
        if (Tprice_val == "") {
            error_ts.removeClass('none');
            error_ts.text('金额不能为空');
            business_sum = false;
        } else if (Tprice_val.length > 0) {
            if (!isNaN(Tprice_val)) {
                error_ts.addClass('none');
                cipt.addClass('success_ts');
                business_sum = true;
            } else {
                error_ts.removeClass('none');
                error_ts.text('请输入数字');
                cipt.addClass('error_ts');
                business_sum = false;
            }
        }
    });
    cipt.focus(function() {
        cipt.removeClass('success_ts');
        cipt.removeClass('error_ts');
    });
    return gjj_a;
}

function szyz_mj(gjj_e) {
    var cipt = $('#business_mj')
    var gjj_e = cipt.val();
    cipt.blur(function() {
        var Cprice_val = cipt.val();
        var Tprice_val = $.trim(Cprice_val);
        var error_ts = $('.jsmj_error');
        if (Tprice_val == "") {
            error_ts.removeClass('none');
            error_ts.text('不能为空');
            gjj_mj = false;
        } else if (Tprice_val.length > 0) {
            if (!isNaN(Tprice_val)) {
                error_ts.addClass('none');
                cipt.addClass('success_ts');
                gjj_mj = true;
            } else {
                error_ts.removeClass('none');
                error_ts.text('请输入数字');
                cipt.addClass('error_ts');
                gjj_mj = false;
            }
        }
    });
    cipt.focus(function() {
        cipt.removeClass('success_ts');
        cipt.removeClass('error_ts');
    });
    return gjj_e;
}
function syyz_gjjmj(gongjj_mj) {
    var cipt = $('#business_gjjmj')
    var gongjj_mj = cipt.val();
    cipt.blur(function() {
        var Cprice_val = cipt.val();
        var Tprice_val = $.trim(Cprice_val);
        var error_ts = $('.gongmj_error');
        if (Tprice_val == "") {
            error_ts.removeClass('none');
            error_ts.text('不能为空');
            gong_mj = false;
        } else if (Tprice_val.length > 0) {
            if (!isNaN(Tprice_val)) {
                error_ts.addClass('none');
                cipt.addClass('success_ts');
                gong_mj = true;
            } else {
                error_ts.removeClass('none');
                error_ts.text('请输入数字');
                cipt.addClass('error_ts');
                gong_mj = false;
            }
        }
    });
    cipt.focus(function() {
        cipt.removeClass('success_ts');
        cipt.removeClass('error_ts');
    });
    return gongjj_mj;
}
function szyz_pfdj(gjj_d) {
    var cipt = $('#business_pmdj')
    var gjj_d = cipt.val();
    cipt.blur(function() {
        var Cprice_val = cipt.val();
        var Tprice_val = $.trim(Cprice_val);
        var error_ts = $('.jspfdj_error');
        if (Tprice_val == "") {
            error_ts.removeClass('none');
            error_ts.text('不能为空');
            gjj_pmdj = false;
        } else if (Tprice_val.length > 0) {
            if (!isNaN(Tprice_val)) {
                error_ts.addClass('none');
                cipt.addClass('success_ts');
                gjj_pmdj = true;
            } else {
                error_ts.removeClass('none');
                error_ts.text('请输入数字');
                cipt.addClass('error_ts');
                gjj_pmdj = false;
            }
        }
    });
    cipt.focus(function() {
        cipt.removeClass('success_ts');
        cipt.removeClass('error_ts');
    });
    return gjj_d;
}

function szyz_gjjpfdj(gjj_pfdj) {
    var cipt = $('#business_gjjpfdj')
    var gjj_pfdj = cipt.val();
    cipt.blur(function() {
        var Cprice_val = cipt.val();
        var Tprice_val = $.trim(Cprice_val);
        var error_ts = $('.gongpfdj_error');
        if (Tprice_val == "") {
            error_ts.removeClass('none');
            error_ts.text('不能为空');
            gong_pmdj = false;
        } else if (Tprice_val.length > 0) {
            if (!isNaN(Tprice_val)) {
                error_ts.addClass('none');
                cipt.addClass('success_ts');
                gong_pmdj = true;
            } else {
                error_ts.removeClass('none');
                error_ts.text('请输入数字');
                cipt.addClass('error_ts');
                gong_pmdj = false;
            }
        }
    });
    cipt.focus(function() {
        cipt.removeClass('success_ts');
        cipt.removeClass('error_ts');
    });
    return gjj_pfdj;
}
function szyz_fwzj(gjj_z) {
    var cipt = $('#business_fwzj')
    var gjj_z = cipt.val();
    cipt.blur(function() {
        var Cprice_val = cipt.val();
        var Tprice_val = $.trim(Cprice_val);
        var error_ts = $('.jsfwzj_error');
        if (Tprice_val == "") {
            error_ts.removeClass('none');
            error_ts.text('不能为空');
            gjj_zj = false;
        } else if (Tprice_val.length > 0) {
            if (!isNaN(Tprice_val)) {
                error_ts.addClass('none');
                cipt.addClass('success_ts');
                gjj_zj = true;
            } else {
                error_ts.removeClass('none');
                error_ts.text('请输入数字');
                cipt.addClass('error_ts');
                gjj_zj = false;
            }
        }
    });
    cipt.focus(function() {
        cipt.removeClass('success_ts');
        cipt.removeClass('error_ts');
    });
    return gjj_z;
}

function szyz_gongjj(gongjj_je) {
    var cipt = $('#gjj_eds_dkje')
    var gongjj_je = cipt.val();
    cipt.blur(function() {
        var Cprice_val = cipt.val();
        var Tprice_val = $.trim(Cprice_val);
        var error_ts = $('.gongjj_error');
        if (Tprice_val == "") {
            error_ts.removeClass('none');
            error_ts.text('不能为空');
            gjj_eds_dkje = false;
        } else if (Tprice_val.length > 0) {
            if (!isNaN(Tprice_val)) {
                error_ts.addClass('none');
                cipt.addClass('success_ts');
                gjj_eds_dkje = true;
            } else {
                error_ts.removeClass('none');
                error_ts.text('请输入数字');
                cipt.addClass('error_ts');
                gjj_eds_dkje = false;
            }
        }
    });
    cipt.focus(function() {
        cipt.removeClass('success_ts');
        cipt.removeClass('error_ts');
    });
    return gongjj_je;
}

function szyz_zhsy(zhsy_a) {
    var cipt = $('#zuhesydk');
    var zhsy_a = cipt.val();
    cipt.blur(function() {
        var Cprice_val = cipt.val();
        var Tprice_val = $.trim(Cprice_val);
        var error_ts = $('.zuhesydk_error');
        if (Tprice_val == "") {
            error_ts.removeClass('none');
            error_ts.text('金额不能为空');
            zuhesydk = false;
        } else if (Tprice_val.length > 0) {
            if (!isNaN(Tprice_val)) {
                error_ts.addClass('none');
                cipt.addClass('success_ts');
                zuhesydk = true;
            } else {
                error_ts.removeClass('none');
                error_ts.text('请输入数字');
                cipt.addClass('error_ts');
                zuhesydk = false;
            }
        }
    });
    cipt.focus(function() {
        cipt.removeClass('success_ts');
        cipt.removeClass('error_ts');
    });
    return zhsy_a;
}
function szyz_zhgjj(zhsy_gjj) {
    var cipt = $('#zhgjjdk');
    var zhsy_gjj = cipt.val();
    cipt.blur(function() {
        var Cprice_val = cipt.val();
        var Tprice_val = $.trim(Cprice_val);
        var error_ts = $('.zuhegjjdk_error');
        if (Tprice_val == "") {
            error_ts.removeClass('none');
            error_ts.text('金额不能为空');
            zhgjjdk = false;
        } else if (Tprice_val.length > 0) {
            if (!isNaN(Tprice_val)) {
                error_ts.addClass('none');
                cipt.addClass('success_ts');
                zhgjjdk = true;
            } else {
                error_ts.removeClass('none');
                error_ts.text('请输入数字');
                cipt.addClass('error_ts');
                zhgjjdk = false;
            }
        }
    });
    cipt.focus(function() {
        cipt.removeClass('success_ts');
        cipt.removeClass('error_ts');
    });
    return zhsy_gjj;
}

function yixztf(obj) {
    var obj = $(obj);
    var mo = obj.parents('.area').children('.yi_taofang');
    var me = obj.parents('.area').children('.er_taofang');
    me.hide();
    mo.show();

}
function erxztf(obj) {
    var obj = $(obj);
    var mo = obj.parents('.area').children('.yi_taofang');
    var me = obj.parents('.area').children('.er_taofang');
    mo.hide();
    me.show();
}