jz-history-tt.html 53.3 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 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>广厦系统</title>
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <!--        <meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8" />-->
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <!-- <link rel="stylesheet" href="./css/font.css">
     <link rel="stylesheet" href="./css/xadmin.css">-->
    <!-- <link rel="stylesheet" href="./css/theme5.css"> -->
    <!--<script src="./lib/layui/layui.js" charset="utf-8"></script>
    <script type="text/javascript" src="./js/xadmin.js"></script>-->
        <link href="css/font.css" rel="stylesheet">
        <link href="css/xadmin.css" rel="stylesheet">
        <link href="css/login.css" rel="stylesheet">
        <link href="../lib/layui/css/layui.css">
    <!--    隐藏操作中的多一次显示-->
    <style>
        .layui-table-tips-main {
            display: none;
        }
        .layui-table-tips-c {
            display: none;
        }
        .layui-table-grid-down{
            display: none;
        }
        .layui-form-select dl dd.layui-select-tips {
            padding-left: 10px!important;
            color: #999;
        }
        .layui-layer-lan  div.layui-layer-title {
            background: #eee;
            color: #333;
            border: none;
        }
        #agreementUp{
            display: none;
        }
    </style>

    <script src="js/jquery.min.js"></script>
    <script src="lib/layui/layui.js"></script>
    <script src="js/xadmin.js"></script>
    <script src="js/util.js"></script>
    <script src="js/getUserToken.js"></script>
    <script src="js/api.js"></script>
    <script src="js/layer.js"></script>
    <!--<script src="js/append.js"></script>-->
    <script src="js/search.js"></script>
    <script src="js/jqueryForm.js"></script>
    <!--动态表单拼接-->
    <script src="js/parameter.js"></script>
    <!--详情页动态表单-->
    <script src="js/base.js"></script>
    <!--待办动态表单-->
    <script src="js/Taskdealwith.js"></script>
    <!--<script src="js/ajax.js"></script>-->
    <!--详情页静态元素-->
    <script src="js/Taskdealwith-static.js"></script>


    <!--已办详情动态拼接-->
    <script src="js/complete.js"></script>
    <!--已办详情静态拼接-->
    <script src="js/complete-static.js"></script>
    <!--二维码-->
    <script src="js/jquery.qrcode.min.js"></script>
    <!--当前详情静态拼接-->
    <script src="js/baseStatic.js"></script>
    <!--当前详情动态拼接-->
    <script src="js/base.js"></script>
    <script src="js/agreement.js"></script>
    <!--禁用回车键(texaarea文本输入框除外)-->
    <script>
      window.onload = function (){
        document.body.onkeydown=function(event){
          if(event.keyCode==13 && event.target.nodeName !== 'TEXTAREA'){
            event.keyCod=0; return false;
          }
        }
      };
    </script>
    <!--//备注与输入框超过300|100字时截断且提示-->
    <script src="js/msgRemark.js"></script>
    <!--//更换阶段负责人-->
    <script src="js/ifChangeOn.js"></script>

    <!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
    <!--[if lt IE 9]>
    <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
    <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
</head>
<body>
<style>
    .layui-table-cell {
        text-align: center;
    }
    .layui-table-cell .layui-table-link {
        color: #000000;
    }
    .layui-card-body {
        min-height: 570px;
    }
</style>
<div class="x-nav">
          <span class="layui-breadcrumb">
            <a href="">首页</a>
            <a href="stationData.html">基站历史</a>
          </span>
    <a class="layui-btn layui-btn-small" style="line-height:1.6em;margin-top:3px;float:right" onclick="location.reload()" title="刷新">
        <i class="layui-icon layui-icon-refresh" style="line-height:30px"></i></a>
</div>
<div style="padding: 10px">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-md12">
            <div class="layui-card">
                <div class="layui-card-header">基本数据历史
                    <div style="float: right;margin-right: 2px" >
                        <a onclick="jumpToTask()" class="layui-btn layui-btn-sm" ><i class="layui-icon">&#xe65c;</i>返回</a>
                    </div>
                </div>
                <div class="layui-card-body">
                    <div class="layui-collapse" lay-filter="test" style="margin-right: 400px; width:100%;display: inline-block">
                        <h2  id="jz_history-fan" class="layui-colla-title">基站历史操作信息</h2>
                        <div id="jz-history">
                            <table id="history_work" lay-filter="test"></table>
                            <br/>
                        </div>
                    </div>
                    <br/>
                    <div class="layui-collapse" lay-filter="test" style="margin-right: 400px; width:100%;display: inline-block">
                        <h2  id="jz_history-lin" class="layui-colla-title">基站历史流程信息</h2>
                        <div id="jz-history-aa">
                            <table class="layui-table" lay-skin="line" id="historyMessage">

                            </table>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
</div>
</body>
</html>
<script>
  var pageBack=window.location.href.split('?')[1].split('pageNow=')[1]?decodeURI(window.location.href.split('?')[1].split('pageNow=')[1].split('&')[0]):1;
  var pageName = window.location.href.split('?')[1].split('pageName=')[1]?decodeURI(window.location.href.split('?')[1].split('pageName=')[1].split('&')[0]):1;
  let bussinessIdHis = window.location.href.split('businessId=')[1].split('&')[0]
  function jumpToTask(){
    window.location.href='baseOther.html?businessId=' + bussinessIdHis+ '&pageNow='+pageBack+'&pageName='+pageName
  }
  layui.use(['form', 'layer','jquery','laydate','upload'],
    function() {
        $ = layui.jquery;
        var form = layui.form,
            layer = layui.layer,
            laydate = layui.laydate,
            upload = layui.upload;
        // 空格函数
        String.prototype.times = function(n) {
            return Array.prototype.join.call({length:n+1}, this);
        };
        function appendKG(result,length){
            return result + "&nbsp;".times(length)
        }
        // 静态获取数据
        function jsonToHistory(dataInfo,key) {
            var Elementname = '';
            var ElementPath = '';
            var obj = {};
            //获取输入框标题
            switch (key) {
                case "jzProspectlist":
                    Elementname = dataInfo[key].jzProspectlistName
                    ElementPath = dataInfo[key].jzProspectlistPath
                    obj.fieldNm = "勘查单"
                    obj.fieldTp = "upload";
                    obj.fieldValue = {
                        "fileName": Elementname,
                        "filePath": ElementPath
                    };
                    break;
                case "jzDesigndrawing":
                    Elementname = dataInfo[key].jzDesigndrawingName
                    ElementPath = dataInfo[key].jzDesigndrawingPath
                    obj.fieldNm = "设计图"
                    obj.fieldTp = "upload";
                    obj.fieldValue = {
                        "fileName": Elementname,
                        "filePath": ElementPath
                    };
                    break;
                case "jzElementlist": //下载
                    Elementname = dataInfo[key].jzElementlistName
                    ElementPath = dataInfo[key].jzElementlistPath
                    obj.fieldNm = "要素表"
                    obj.fieldTp = "upload";
                    obj.fieldValue = {
                        "fileName": Elementname,
                        "filePath": ElementPath
                    };
                    break;
                case "jzOutboundlist":
                    Elementname = dataInfo[key].jzOutboundlistName
                    ElementPath = dataInfo[key].jzOutboundlistPath
                    obj.fieldNm = "出库单"
                    obj.fieldTp = "upload";
                    obj.fieldValue = {
                        "fileName": Elementname,
                        "filePath": ElementPath
                    };
                    break;
                case "jzOperatoracceptlist":
                    Elementname = dataInfo[key].jzOperatoracceptlistName
                    ElementPath = dataInfo[key].jzOperatoracceptlistPath
                    obj.fieldNm = "运营商验收单"
                    obj.fieldTp = "upload";
                    obj.fieldValue = {
                        "fileName": Elementname,
                        "filePath": ElementPath
                    };
                    break;
                case "jzRoutedrawing":
                    Elementname = dataInfo[key].jzRoutedrawingName
                    ElementPath = dataInfo[key].jzRoutedrawingPath
                    obj.fieldNm = "路由图"
                    obj.fieldTp = "upload";
                    obj.fieldValue = {
                        "fileName": Elementname,
                        "filePath": ElementPath
                    };
                    break;
                case "jzBudgetofelectic":
                    Elementname = dataInfo[key].jzBudgetofelecticName
                    ElementPath = dataInfo[key].jzBudgetofelecticPath
                    obj.fieldNm = "电力预算"
                    obj.fieldTp = "upload";
                    obj.fieldValue = {
                        "fileName": Elementname,
                        "filePath": ElementPath
                    };
                    break;
                case "jzMatterlist":
                    Elementname = dataInfo[key].jzMatterlistName
                    ElementPath = dataInfo[key].jzMatterlistPath
                    obj.fieldNm = "立项物资清单"
                    obj.fieldTp = "upload";
                    obj.fieldValue = {
                        "fileName": Elementname,
                        "filePath": ElementPath
                    };
                    break;
                case "jzOpenrepory":
                    Elementname = dataInfo[key].jzOpenreporyName
                    ElementPath = dataInfo[key].jzOpenreporyPath
                    obj.fieldNm = "开工报告"
                    obj.fieldTp = "upload";
                    obj.fieldValue = {
                        "fileName": Elementname,
                        "filePath": ElementPath
                    };
                    break;
                case "jzConstructprocept":
                    Elementname = dataInfo[key].jzConstructproceptName
                    ElementPath = dataInfo[key].jzConstructproceptPath
                    obj.fieldNm = "施工组织方案"
                    obj.fieldTp = "upload";
                    obj.fieldValue = {
                        "fileName": Elementname,
                        "filePath": ElementPath
                    };
                    break;
                case "jzCompletedreport":
                    Elementname = dataInfo[key].jzCompletedreportName
                    ElementPath = dataInfo[key].jzCompletedreportPath
                    obj.fieldNm = "完工报告"
                    obj.fieldTp = "upload";
                    obj.fieldValue = {
                        "fileName": Elementname,
                        "filePath": ElementPath
                    };
                    break;
                case "jzCompletedphoto":
                    Elementname = dataInfo[key].jzCompletedphotoName
                    ElementPath = dataInfo[key].jzCompletedphotoPath
                    obj.fieldNm = "完工照片"
                    obj.fieldTp = "upload";
                    obj.fieldValue = {
                        "fileName": Elementname,
                        "filePath": ElementPath
                    };
                    break;
                case "jzCompletedacceptlist":
                    Elementname = dataInfo[key].jzCompletedacceptlistName
                    ElementPath = dataInfo[key].jzCompletedacceptlistPath
                    obj.fieldNm = "竣工验收单"
                    obj.fieldTp = "upload";
                    obj.fieldValue = {
                        "fileName": Elementname,
                        "filePath": ElementPath
                    };
                    break;
                case "jzOpendrawing":
                    Elementname = dataInfo[key].jzOpendrawingName
                    ElementPath = dataInfo[key].jzOpendrawingPath
                    obj.fieldNm = "开通截图"
                    obj.fieldTp = "upload";
                    obj.fieldValue = {
                        "fileName": Elementname,
                        "filePath": ElementPath
                    };
                    break;
                case "jzRentdrawing":
                    Elementname = dataInfo[key].jzRentdrawingName
                    ElementPath = dataInfo[key].jzRentdrawingPath
                    obj.fieldNm = "起租截图"
                    obj.fieldTp = "upload";
                    obj.fieldValue = {
                        "fileName": Elementname,
                        "filePath": ElementPath
                    };
                    break;
                case "jzCode": //text
                    obj.fieldNm = "基站号"
                    obj.fieldTp = "input";
                    obj.fieldValue = dataInfo[key]
                    break;
                case "jzName": //text
                    obj.fieldNm = "基站名"
                    obj.fieldTp = "input";
                    obj.fieldValue = dataInfo[key]
                    break;
                case "projectCode": //text
                    obj.fieldNm = "项目编号"
                    obj.fieldTp = "input";
                    obj.fieldValue = dataInfo[key]
                    break;
                case "businessLineName": //text
                    obj.fieldNm = "业务线"
                    obj.fieldTp = "input";
                    obj.fieldValue = dataInfo[key]
                    break;
                case "jzRequire": //text
                    obj.fieldNm = "需求号"
                    obj.fieldTp = "input";
                    obj.fieldValue = dataInfo[key]
                    break;
                case "jzLatitude": //text
                    obj.fieldNm = "经度"
                    obj.fieldTp = "input";
                    obj.fieldValue = dataInfo[key]
                    break;
                case "jzLongitude": //text
                    obj.fieldNm = "纬度"
                    obj.fieldTp = "input";
                    obj.fieldValue = dataInfo[key]
                    break;
                case "projectAddress": //text
                    obj.fieldNm = "基站地址"
                    obj.fieldTp = "input";
                    obj.fieldValue = dataInfo[key]
                    break;
                case "jzNeId": //text
                    obj.fieldNm = "网元id"
                    obj.fieldTp = "input";
                    obj.fieldValue = dataInfo[key]
                    break;
                case "maintainername":
                    obj.fieldNm = "维护人员"
                    obj.fieldTp = "input";
                    obj.fieldValue = dataInfo[key]
                    break;
                case "jzUppermachineroomplace":
                    obj.fieldNm = "上联机房位置"
                    obj.fieldTp = "input";
                    obj.fieldValue = dataInfo[key]
                    break;
                case "jzPropertycode":
                    obj.fieldNm = "资产编码"
                    obj.fieldTp = "input";
                    obj.fieldValue = dataInfo[key]
                    break;
                case "jzIsconnectwithowner":
                    obj.fieldNm = "是否与业务主交接"
                    obj.fieldTp = "input";
                    obj.fieldValue = dataInfo[key]
                    break;
                case "jzPropertyname":
                    obj.fieldNm = "接维物业名称"
                    obj.fieldTp = "input";
                    obj.fieldValue = dataInfo[key]
                    break;
                case "jzOwnercontactinfo":
                    obj.fieldNm = "业务联系方式"
                    obj.fieldTp = "input";
                    obj.fieldValue = dataInfo[key]
                    break;
                case "oldSalesmanName": //text
                    obj.fieldNm = "原阶段负责人"
                    obj.fieldTp = "input";
                    obj.fieldValue = dataInfo[key]
                    break;
                case "changeSalesmanName": //text
                    obj.fieldNm = "更换阶段负责人为"
                    obj.fieldTp = "input";
                    obj.fieldValue = dataInfo[key]
                    break;
            }
            return obj;
        }

        // 接收stationData.html页面传来的businessId
        layui.use('table', function(){
            var businessId = window.location.href.split('businessId=')[1].split('&')[0];
            var table = layui.table;
            //第一个实例
            table.render({
                elem: '#history_work',
                url:util.interfaceUrl + interfacenName.getHistory  //调接口   基本信息历史操作
                ,height:301
                ,method:'get',
                where:{
                    page:'',
                    limit:'',
                    businessId:businessId,
                },
                headers: {
                    'Authorization':userToken,
                    'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8'
                }
                ,parseData: function(res){ //res 即为原始返回的数据
                    // 获取历史详情的数据
                    var dataUpTable = res.data.hiJzMessageList
                    var data = res.data.processMidDTOS
                    var lastHis = "";
                    // 将processMidDTOS中的字段显示为汉字
                    for(var i=0; i<data.length;i++) {
                        // 静态数据
                        //var dataStatic = data[i].regionStr
                        // 判断typeTemplate取相对于的名字
                        var typeHistoryTemplate = data[i].typeTemplate
                        var historyInformation = "";
                        //非管理员
                        if(data[i].typeProcess) {
                            switch (typeHistoryTemplate) {
                                case "S01":
                                    historyInformation = '修改基站信息';
                                    break;
                                case "S02":
                                    historyInformation = '更换阶段负责人';
                                    break;
                                case "S03":
                                    historyInformation= '基站需求取消';
                                    break;
                                case "S04":
                                    historyInformation = ' 基  站  拆  站 ';
                                    break;
                                case "S05":
                                    historyInformation = ' 维护部拆站 ';
                                    break;
                                case "S06":
                                    historyInformation = ' 维护部修改 ';
                                    break;
                                case "M01":
                                    historyInformation= ' 选  址  成  功 ';
                                    break;
                                case "M02":
                                    historyInformation= ' 选  址  失  败 ';
                                    break;
                                case "M03":
                                    historyInformation = ' 基  站  勘  察 ';
                                    break;
                                case "M04":
                                    historyInformation = ' 基  站  会  审 ';
                                    break;
                                case "M05":
                                    historyInformation = ' 基  站  交  底 ';
                                    break;
                                case "M06":
                                    historyInformation = ' 基  站  领  料 ';
                                    break;
                                case "M07":
                                    historyInformation = ' 基  站  施  工 ';
                                    break;
                                case "M08":
                                    historyInformation = ' 基  站  开  通 ';
                                    break;
                                case "M09":
                                    historyInformation = '基站签署订单';
                                    break;
                                case "M10":
                                    historyInformation = ' 基  站  交  资 ';
                                    break;
                                case "M11":
                                    historyInformation = ' 基  站  交  维 ';
                                    break;
                                case "M14":
                                    historyInformation = '维护部修改';
                                    break;
                                case "T01":
                                    historyInformation = ' 选  址  成  功 ';
                                    break;
                                case "T02":
                                    historyInformation = ' 选  址  失  败 ';
                                    break;
                                case "T03":
                                    historyInformation = ' 基  站  勘  察 ';
                                    break;
                                case "T04":
                                    historyInformation = ' 基  站  会  审 ';
                                    break;
                                case "T05":
                                    historyInformation = ' 基  站  立  项 ';
                                    break;
                                case "T06":
                                    historyInformation = ' 基  站  领  料 ';
                                    break;
                                case "T07":
                                    historyInformation = ' 基  站  施  工 ';
                                    break;
                                case "T08":
                                    historyInformation = ' 基  站  完  工 ';
                                    break;
                                case "T09":
                                    historyInformation = ' 基  站  交  付 ';
                                    break;
                                case "T10":
                                    historyInformation = ' 基  站  起  租 ';
                                    break;
                                case "T11":
                                    historyInformation = '签订租赁与电费合同';
                                    break;
                                case "T12":
                                    historyInformation = ' 基  站  交  维 ';
                                    break;
                                case "T15":
                                    historyInformation = '维护部修改';
                                    break;
                                default:
                                    break;
                            }
                        }
                        else{
                            historyInformation = "管理员修改";
                        }


                        var dataone = data[i].taskMessageDTOList
                        for (var x =0;x< dataone.length;x++){

                            var dataStatic = dataone[x].regionStr
                            var datastation = dataone[x].workflowTaskDataHiList
                            var curHis = appendKG(historyInformation,7);
                            // 判断typeTemplate紧挨着形成时只显示最上边的
                            if(!lastHis) {
                                lastHis = curHis;
                            }
                            else if(lastHis && lastHis == curHis){
                                curHis = appendKG("&nbsp;", 24);
                            }else if(lastHis && lastHis != curHis){
                                lastHis = curHis
                            }
                            // 拼接taskMessageDTOList字段
                            $("#historyMessage").append($("<tr><td colspan=3>" + "<span style='font-size: 16px'>" + curHis + "</span>" + "操作人:"  + appendKG(dataone[x].name,20) + "操作时间:" + appendKG(dataone[x].createtime,20)+
                                "" + appendKG(dataone[x].transition,10) + "备注:" + util.dealWithFormatTextByLen(dataone[x].remarks,25,true)+"</td></tr>"));
                            if(typeHistoryTemplate === 'S01') {
                                continue
                            }
                            if(typeHistoryTemplate === 'S06') {
                                continue
                            }
                            //static
                            if(dataStatic){
                                var dataInfo = JSON.parse(dataStatic);
                                // 判断建维专员
                                if (dataInfo.jzMatintain) {
                                    dataInfo['maintainername'] = dataInfo.jzMatintain.maintainername;
                                }
                                delete dataInfo['jzMatintain']
                                for (let key in dataInfo) {
                                    datastation.push(jsonToHistory(dataInfo,key))
                                }
                            }

                            let newTd =''
                            // 判断数据为空时将多余的行隐藏
                            var datastationDealWith = [];
                            var reNum = 0;
                            for (var y = 0; y < datastation.length; y++) {
                                // 判断是否是合同
                                var historyContract = datastation [y].fieldTp;
                                if(!datastation[y].fieldNm)
                                    continue;
                                //合同
                                if (datastation[y].fieldNm && historyContract == 'contract'){
                                    if(!newTd){
                                        $("#historyMessage").append($("<tr>"+newTd+"</tr>"));
                                        newTd='';
                                        reBlank = false;
                                        reNum = 0;
                                    }
                                    var resultContract = datastation[y].fieldValue;
                                    var jsonobj = {};
                                    try{
                                        jsonobj=eval('('+resultContract+')');
                                    }catch (e) {
                                        continue;
                                    }
                                    if(!jsonobj || 0 == jsonobj.length)
                                        continue;
                                    for (var k = 0 ; k < jsonobj.length ; k++) {
                                        //datastation[y].fieldValue =
                                        var str = "合同编号:" + appendKG(util.dealWithFormatTextByLen(jsonobj[k].agree_id,10,true),6)+ "合同名称:" + appendKG(util.dealWithFormatTextByLen(jsonobj[k].agree_name,10,true),6)+ "往来单位:" + appendKG(util.dealWithFormatTextByLen(jsonobj[k].agree_unit,10,true),6)+ "签订日期:" + appendKG(util.dealWithFormatTextByLen(jsonobj[k].agree_date,10),6)+ "是否验证:" + jsonobj[k].agree_check;
                                        $("#historyMessage").append($("<tr><td colspan=3>" + appendKG("",29)  +  util.dealWithFormatTextByLen(str,400)+ "</td></tr>"));
                                    }

                                    continue;
                                }
                              switch (historyContract) {
                                case 'select':
                                  var fieldExpand = JSON.parse(datastation[y].fieldExpand)
                                  var fieldValue = datastation[y].fieldValue
                                  var expandFlag = 0;
                                  for(let i = 0;i<fieldExpand.items.length;i++){
                                    if( fieldValue.trim() == fieldExpand.items[i].value) {
                                      newTd += "<td>" + appendKG("", reNum == 0 ? 29 : 0) + util.dealWithFormatTextByLen(datastation[y].fieldNm, 10, true) + ":" + "<span class='layui-table-link'>" + fieldExpand.items[i].label + "</span></td>"
                                      break;
                                    }else{
                                        expandFlag++;
                                    }
                                  }
                                  if(expandFlag == fieldExpand.items.length ){
                                      newTd += "<td>" + appendKG("", reNum == 0 ? 29 : 0) + util.dealWithFormatTextByLen(datastation[y].fieldNm, 10, true) + ":" + "<span class='layui-table-link'></span></td>"
                                  }
                                  break;
                                case 'upload':
                                  if(typeof datastation[y].fieldValue == 'string'){
                                      let temp ={fileName:'',filePath:''}
                                      var mydataValue = datastation[y].fieldValue.replace(/\'/g,"\"") ==''?temp:JSON.parse(datastation[y].fieldValue.replace(/\'/g,"\""))
                                      newTd += "<td>"  +appendKG("",reNum == 0 ? 29 : 0)+ util.dealWithFormatTextByLen(datastation[y].fieldNm,15,true)+ ":" +  '<a target="_parent"  style="color: #0984e3;"  href="' + util.interfaceUrl+interfacenName.fileDown + "?fileName="+mydataValue.fileName +"&filePath=" + mydataValue.filePath+'" >' + util.dealWithFormatTextByLen(mydataValue.fileName,15,true)+"</a></td>"
                                  }
                                  else{
                                      newTd += '<td>'  +appendKG("",reNum == 0 ? 29 : 0)+ util.dealWithFormatTextByLen(datastation[y].fieldNm,15,true)+ ':' +  '<a target="_parent"  style="color: #0984e3;"  href=" '+ util.interfaceUrl+interfacenName.fileDown +"?fileName="+datastation[y].fieldValue.fileName +"&filePath=" + datastation[y].fieldValue.filePath+'" >' + util.dealWithFormatTextByLen(datastation[y].fieldValue.fileName,15,true)+"</a></td>"
                                  }
                                  break;
                                default:
                                  newTd += "<td>"  +appendKG("",reNum == 0 ? 29 : 0)+ util.dealWithFormatTextByLen(datastation[y].fieldNm,15,true)+ ":" +  util.dealWithFormatTextByLen(datastation[y].fieldValue,12,true)+ "</td>"
                                  break;
                              }
                               /* //下拉框
                                if (datastation[y].fieldNm && historyContract == 'select'){
                                var fieldExpand = JSON.parse(datastation[y].fieldExpand)
                                var  fieldValue = datastation[y].fieldValue
                                for(let i = 0;i<fieldExpand.items.length;i++){
                                    if( fieldValue.trim() == fieldExpand.items[i].value) {
                                        newTd += "<td>" + appendKG("", reNum == 0 ? 29 : 0) + util.dealWithFormatTextByLen(datastation[y].fieldNm, 10, true) + ":" + "<span class='layui-table-link'>" + fieldExpand.items[i].label + "</span></td>"
                                        break;
                                    }
                                }
                                continue;
                            }
                                //附件
                                if (datastation[y].fieldNm && historyContract == 'upload'){
                                    if(typeof datastation[y].fieldValue == 'string'){
                                        try{
                                            var mydataValue = JSON.parse(datastation[y].fieldValue)
                                            newTd += "<td>"  +appendKG("",reNum == 0 ? 29 : 0)+ util.dealWithFormatTextByLen(datastation[y].fieldNm,15,true)+ ":" +  '<a target="_parent"  style="color: #0984e3;"  href="' + util.interfaceUrl+interfacenName.fileDown + "?fileName="+mydataValue.fileName +"&filePath=" + mydataValue.filePath+'" >' + util.dealWithFormatTextByLen(mydataValue.fileName,15,true)+"</a></td>"
                                        }catch (e) {
                                            newTd += "<td>"  +appendKG("",reNum == 0 ? 29 : 0)+ util.dealWithFormatTextByLen(datastation[y].fieldNm,15,true)+ ":" + "</td>"
                                        }

                                    }
                                    else{
                                        console.log(datastation[y])
                                        newTd += '<td>'  +appendKG("",reNum == 0 ? 29 : 0)+ util.dealWithFormatTextByLen(datastation[y].fieldNm,15,true)+ ':' +  '<a target="_parent"  style="color: #0984e3;"  href=" '+ util.interfaceUrl+interfacenName.fileDown +"?fileName="+datastation[y].fieldValue.fileName +"&filePath=" + datastation[y].fieldValue.filePath+'" >' + util.dealWithFormatTextByLen(datastation[y].fieldValue.fileName,15,true)+"</a></td>"
                                    }
                                }

                                else{
                                    newTd += "<td>"  +appendKG("",reNum == 0 ? 29 : 0)+ util.dealWithFormatTextByLen(datastation[y].fieldNm,15,true)+ ":" +  util.dealWithFormatTextByLen(datastation[y].fieldValue,16,true)+ "</td>"
                                }*/
                                /*if (datastation[y].fieldNm && historyContract == 'upload'){
                                    let fieldValue = JSON.parse(datastation[y].fieldValue)
                                    newTd += "<td>"  +appendKG("",reNum == 0 ? 29 : 0)+ util.dealWithFormatTextByLen(datastation[y].fieldNm,10,true)+ ":" +  "<a  style='color: #0984e3;'  href=" + util.interfaceUrl+interfacenName.fileDown + "?fileName="+fieldValue.fileName +"&filePath=" + fieldValue.filePath+'" >' + util.dealWithFormatTextByLen(fieldValue.fileName,16,true)+"</a></td>"
                                    continue;
                                }
                             else{
                                    newTd += "<td>"  +appendKG("",reNum == 0 ? 29 : 0)+ util.dealWithFormatTextByLen(datastation[y].fieldNm,10,true)+ ":" +  util.dealWithFormatTextByLen(datastation[y].fieldValue,16,true)+ "</td>"
                                }*/
                                if((reNum+1) % 3 == 0){
                                    $("#historyMessage").append($("<tr>"+newTd+"</tr>"));
                                    newTd='';
                                    reNum = 0;
                                    continue;
                                }
                                //选择框
                                // if (datastation[y].fieldNm && historyContract == 'upload'){
                                //     let fieldValue = JSON.parse(datastation[y].fieldValue)
                                //     newTd += "<td>"  +appendKG("",reNum == 0 ? 29 : 0)+ util.dealWithFormatTextByLen(datastation[y].fieldNm,10,true)+ "" +  "<a  style='color: #0984e3;'  href=" + util.interfaceUrl+interfacenName.fileDown + "?fileName="+fieldValue.fileName +"&filePath=" + fieldValue.filePath+'" >' + util.dealWithFormatTextByLen(fieldValue.fileName,16,true)+"</a></td>"
                                // }else{
                                //     newTd += "<td>"  +appendKG("",reNum == 0 ? 29 : 0)+ util.dealWithFormatTextByLen(datastation[y].fieldNm,10,true)+ ":" +  util.dealWithFormatTextByLen(datastation[y].fieldValue,16,true)+ "</td>"
                                // }
                                // if((reNum+1) % 3 == 0){
                                //     $("#historyMessage").append($("<tr>"+newTd+"</tr>"));
                                //     newTd='';
                                //     reNum = 0;
                                //     continue;
                                // }
                                // // 判断workflowTaskDataHiList里的字段少于三条时自动显示在一行
                                if (y == datastation.length - 1 &&  ((reNum+1) % 3 != 0)){
                                    var res = "";
                                    if(reNum == 0)
                                        res = "<td></td><td></td>"
                                    else if(reNum == 1)
                                        res = "<td></td>"
                                    $("#historyMessage").append($("<tr>"+newTd+ res + "</tr>"));
                                    reNum = 0;
                                }
                                reNum ++;
                            }
                        }
                    }

                    return {
                        "code":0, //解析接口状态
                        "msg":"",
                        "data": dataUpTable   //显示数据
                    };
                }

                //表头
                ,cols: [[
                    {
                        field: 'number', title: '序号', fixed: 'left', width: 145,
                        templet: function (d){
                            return '<div><span class="layui-table-link"> '+util.dealWithFormatTextByLen(d.number,20,true)+'</span> </div>'

                        }
                    }
                    ,{field: 'jzCode', title: '基站号', width:135,
                        templet: function (d){
                            return '<div><span class="layui-table-link"> '+util.dealWithFormatTextByLen(d.jzCode,20,true)+'</span> </div>'

                        }
                    }
                    ,{field: 'jzName', title: '基站名', width:135,
                        templet: function (d){
                            return '<div><span class="layui-table-link"> '+util.dealWithFormatTextByLen(d.jzName,20,true)+'</span></div>'
                        }
                    }
                    ,{field: 'jzProjectId', title: '项目ID', width:135,
                        templet: function (d){
                            return '<div><span class="layui-table-link"> '+util.dealWithFormatTextByLen(d.jzProjectId,20,true)+'</span></div>'
                        }
                    }
                    ,{field: 'projectCode', title: '项目编号', width:135,
                        templet: function (d){
                            return '<div><span class="layui-table-link"> '+util.dealWithFormatTextByLen(d.projectCode,20,true)+'</span></div>'
                        }
                    }
                    ,{field: 'updateName', title: '变更人', width:135,
                        templet: function (d){
                            return '<div><span class="layui-table-link"> '+util.dealWithFormatTextByLen(d.updateName,20,true)+'</span></div>'
                        }
                    }
                    ,{field: 'updateDate', title: '变更时间', width: 150,
                        templet: function (d){
                            return '<div><span class="layui-table-link"> '+util.dealWithFormatTextByLen(d.updateDate,25,true)+'</span></div>'
                        }
                    }
                    ,{field: 'jzWaitReason', title: '变更来源', width:135,
                        templet: function (d){
                            var jzWaitReason =util.dealWithFormatTextByLen(d.jzWaitReason,25,true)
                            console.log(jzWaitReason)
                            // 判断字段是否存在
                            if (jzWaitReason){
                                var jsonWaitReason ={
                                    "0":'勘察阶段',
                                    "1":'会审阶段',
                                    "2":'领料阶段',
                                    "3":'施工验收阶段',
                                    "4":'开通阶段',
                                    "5":'交资阶段',
                                    "6":'交维阶段',
                                    "7":'立项阶段',
                                    "8":'施工阶段',
                                    "9":'完工阶段',
                                    "10":'起租阶段',
                                    "12":'更换负责人',
                                    /*"13":'需求取消阶段',
                                    "14":'需求取消阶段',
                                    "16":'拆站阶段',*/
                                    "17":'管理员修改基站信息',
                                    "18":'修改基站信息',
                                    "20":'维护部修改基站信息'
                                }
                                var jsonWait = jsonWaitReason[jzWaitReason]
                                return '<div>'+jsonWait+'</div>'
                            }else if (!jzWaitReason) {
                                return '初始导入'
                            }
                        }
                    }
                    ,{field: 'curUserName', title: '阶段负责人', width:135,
                        templet: function (d){
                            return '<div><span class="layui-table-link"> '+util.dealWithFormatTextByLen(d.curUserName,20,true)+'</span></div>'
                        }
                    }
                    ,{field: 'jzProspectlistName', title: '勘察单', width:135,
                        templet: function (d){
                            var jzProspectlistName =  d.jzProspectlistName
                            var jzProspectlistPath= d.jzProspectlistPath
                            return '<div><a  href="'+util.interfaceUrl+interfacenName.fileDown+'?fileName='+jzProspectlistName+'&filePath='+jzProspectlistPath+'" class="layui-table-link" style="color: #0984e3;"> '+util.dealWithFormatTextByLen(d.jzProspectlistName,20,true)+'</a></div>'
                        }
                    }
                    ,{field: 'jzDesigndrawingName', title: '设计图', width:135,
                        templet: function (d){
                            var desginDrawingName = d.jzDesigndrawingName
                            var desginDrawingPath= d.jzDesigndrawingPath
                            return '<div><a  href="'+util.interfaceUrl+interfacenName.fileDown+'?fileName='+desginDrawingName+'&filePath='+desginDrawingPath+'" class="layui-table-link" style="color: #0984e3;"> '+util.dealWithFormatTextByLen(d.jzDesigndrawingName,20,true)+'</a></div>'
                        }
                    }
                    ,{field: 'jzElementlistName', title: '要素表', width:135,
                        templet: function (d){
                            var jzElementlistName = d.jzElementlistName
                            var jzElementlistPath= d.jzElementlistPath
                            return '<div><a  href="'+util.interfaceUrl+interfacenName.fileDown+'?fileName='+jzElementlistName+'&filePath='+jzElementlistPath+'" class="layui-table-link" style="color: #0984e3;"> '+util.dealWithFormatTextByLen(d.jzElementlistName,20,true)+'</a></div>'
                        }
                    }
                    ,{field: 'jzOutboundlistName', title: '出库单', width:135,
                        templet: function (d){
                            var jzOutboundlistName = d.jzOutboundlistName
                            var jzOutboundlistPath= d.jzOutboundlistPath
                            return '<div><a  href="'+util.interfaceUrl+interfacenName.fileDown+'?fileName='+jzOutboundlistName+'&filePath='+jzOutboundlistPath+'" class="layui-table-link" style="color: #0984e3;"> '+util.dealWithFormatTextByLen(d.jzOutboundlistName,20,true)+'</a></div>'
                        }
                    }
                    ,{field: 'jzCompletedacceptlistName', title: '竣工验收单', width:135,
                        templet: function (d){
                            var jzCompletedacceptlistName = d.jzCompletedacceptlistName
                            var jzCompletedacceptlistPath= d.jzCompletedacceptlistPath
                            return '<div><a  href="'+util.interfaceUrl+interfacenName.fileDown+'?fileName='+jzCompletedacceptlistName+'&filePath='+jzCompletedacceptlistPath+'" class="layui-table-link" style="color: #0984e3;"> '+util.dealWithFormatTextByLen(d.jzCompletedacceptlistName,20,true)+'</a></div>'
                        }
                    }
                    ,{field: 'jzIsconnectwithowner', title: '是否与业主交接', width:135,
                        templet: function (d){
                            return '<div><span class="layui-table-link"> '+util.dealWithFormatTextByLen(d.jzIsconnectwithowner,20,true)+'</span></div>'
                        }
                    }
                    ,{field: 'jzPropertyname', title: '接维物业名称', width:135,
                        templet: function (d){
                            return '<div><span class="layui-table-link"> '+util.dealWithFormatTextByLen(d.jzPropertyname,20,true)+'</span></div>'
                        }
                    }
                    ,{field: 'jzOwnercontactinfo', title: '业主联系方式', width:135,
                        templet: function (d){
                            return '<div><span class="layui-table-link"> '+util.dealWithFormatTextByLen(d.jzOwnercontactinfo,20,true)+'</span></div>'
                        }
                    }
                    ,{field: 'jzBudgetofelecticName', title: '电力预算表', width:135,
                        templet: function (d){
                            var jzBudgetofelecticName = d.jzBudgetofelecticName
                            var jzBudgetofelecticPath= d.jzBudgetofelecticPath
                            return '<div><a  href="'+util.interfaceUrl+interfacenName.fileDown+'?fileName='+jzBudgetofelecticName+'&filePath='+jzBudgetofelecticPath+'" class="layui-table-link" style="color: #0984e3;"> '+util.dealWithFormatTextByLen(d.jzBudgetofelecticName,20,true)+'</a></div>'
                        }
                    }
                    ,{field: 'jzMatterlistName', title: '立项物资清单', width:135,
                        templet: function (d){
                            var jzMatterlistName = d.jzMatterlistName
                            var jzMatterlistPath=d.jzMatterlistPath
                            return '<div><a  href="'+util.interfaceUrl+interfacenName.fileDown+'?fileName='+jzMatterlistName+'&filePath='+jzMatterlistPath+'" class="layui-table-link" style="color: #0984e3;"> '+util.dealWithFormatTextByLen(d.jzMatterlistName,20,true)+'</a></div>'
                        }
                    }
                    ,{field: 'jzOpenreporyName', title: '开工报告', width:135,
                        templet: function (d){
                            var jzOpenreporyName =  d.jzOpenreporyName
                            var jzOpenreporyPath= d.jzOpenreporyPath
                            return '<div><a  href="'+util.interfaceUrl+interfacenName.fileDown+'?fileName='+jzOpenreporyName+'&filePath='+jzOpenreporyPath+'" class="layui-table-link" style="color: #0984e3;"> '+util.dealWithFormatTextByLen(d.jzOpenreporyName,20,true)+'</a></div>'
                        }
                    }
                    ,{field: 'jzConstructproceptName', title: '施工组织方案', width:135,
                        templet: function (d){
                            var jzConstructproceptName =  d.jzConstructproceptName
                            var jzConstructproceptPath= d.jzConstructproceptPath
                            return '<div><a  href="'+util.interfaceUrl+interfacenName.fileDown+'?fileName='+jzConstructproceptName+'&filePath='+jzConstructproceptPath+'" class="layui-table-link" style="color: #0984e3;"> '+util.dealWithFormatTextByLen(d.jzConstructproceptName,20,true)+'</a></div>'
                        }
                    }
                    ,{field: 'jzCompletedreportName', title: '完工报告', width:135,
                        templet: function (d){
                           console.log(d.jzCompletedreportName,'aaaaaaaaaaaaaaaaaaa')
                            var jzCompletedreportName = d.jzCompletedreportName
                            var jzCompletedreportPath = d.jzCompletedreportPath
                            return '<div><a  href="'+util.interfaceUrl+interfacenName.fileDown+'?fileName='+jzCompletedreportName+'&filePath='+jzCompletedreportPath+'" class="layui-table-link" style="color: #0984e3;"> '+util.dealWithFormatTextByLen(d.jzCompletedreportName,20,true)+'</a></div>'
                        }
                    }
                    ,{field: 'jzCompletedphotoName', title: '完工照片', width:135,
                        templet: function (d){
                            var jzCompletedphotoName =  d.jzCompletedphotoName
                            var jzCompletedphotoPath= d.jzCompletedphotoPath
                            return '<div><a  href="'+util.interfaceUrl+interfacenName.fileDown+'?fileName='+jzCompletedphotoName+'&filePath='+jzCompletedphotoPath+'" class="layui-table-link" style="color: #0984e3;"> '+util.dealWithFormatTextByLen(d.jzCompletedphotoName,20,true)+'</a></div>'
                        }
                    }
                    ,{field: 'jzRentdrawingName', title: '铁塔起租截图', width:135,
                        templet: function (d){
                            var jzRentdrawingName =  d.jzRentdrawingName
                            var jzRentdrawingPath=d.jzRentdrawingPath
                            return '<div><a  href="'+util.interfaceUrl+interfacenName.fileDown+'?fileName='+jzRentdrawingName+'&filePath='+jzRentdrawingPath+'" class="layui-table-link" style="color: #0984e3;"> '+util.dealWithFormatTextByLen(d.jzRentdrawingName,20,true)+'</a></div>'
                        }
                    }
                    ,{field: 'jzLongitude', title: '经度', width: 135,
                        templet: function (d){
                            return '<div><span class="layui-table-link"> '+ d.jzLongitude.toFixed(6) +'</span></div>'
                        }
                    }
                    ,{field: 'jzLatitude', title: '纬度', width: 135,
                        templet: function (d){
                            return '<div><span class="layui-table-link"> '+ d.jzLatitude.toFixed(6) +'</span></div>'
                        }
                    }
                    ,{field: 'jzVersion', title: '信息版本', width: 135,
                        templet: function (d){
                            return '<div><span class="layui-table-link"> '+util.dealWithFormatTextByLen(d.jzVersion,10,true)+'</span></div>'
                        }
                    }
                  /*  ,{field: 'jzMapLink', title: '地图查看', width: 135,
                        templet: function (d){
                            return '<div><a href="'+d.jzMapLink+'" style="color: #0984e3;" target="_blank"  class="layui-table-link"> '+util.dealWithFormatTextByLen(d.jzMapLink,20,true)+'</a></div>'                        }
                    }*/
                ]]
            });
        });
        // 点击基本信息历史操作实现隐藏出现
        $(document).ready(function(){
            $("#jz_history-fan").click(function(){
                $("#jz-history").toggle();
            });
        });
        $(document).ready(function(){
            $("#jz_history-lin").click(function(){
                $("#jz-history-aa").toggle();
            });
        });
    });
</script>
<!--  基本信息历史操作详情-->
</body>
</html>