配置静态表格,传给后台。然后根据表格生成合并表头

<table width="96%" style="margin: 0 2%;">
    <colgroup>
        <col width="80" style="width:80px"/>
        <col width="204" style=";width:204px"/>
        <col width="179" style=";width:179px"/>
        <col width="581" style=";width:581px"/>
        <col width="255" style=";width:255px"/>
        <col width="157" style=";width:157px"/>
        <col width="200" style=";width:200px"/>
        <col width="306" style=";width:307px"/>
    </colgroup>
    <tbody>
    <tr style="text-align: center;" class="firstRow">
        <td width="80" style="" class="refer_uuid_content">
            序号
        </td>
        <td width="204" style="border-left: none;" class="refer_uuid_content">
            基础类别
        </td>
        <td width="179" style="border-left: none;" class="refer_uuid_content">
            细分类别
        </td>
        <td width="581" style="border-left: none;" class="refer_uuid_content">
            项目
        </td>
        <td width="255" style="border-left: none;" class="refer_uuid_content">
            评分
        </td>
        <td width="200" style="border-left: none;" class="refer_uuid_content">
            评分说明
        </td>
        <td width="157" style="border-left: none;" class="refer_uuid_content">
            评分原因
        </td>
        <td width="307" style="border-left: none;" class="refer_uuid_content">
            备注
        </td>
    </tr>
    <tr class="tableRow table_content_fi">
        <td rowspan="4" width="72" style="border-bottom-width: 1px; border-top: none;text-align: center" class="orders_content">
            1
        </td>
        <td rowspan="4" width="204" style="border-top: none;" class="base_type_content">
            平安和谐度(50分)
        </td>
        <td rowspan="2" width="179" style="border-bottom-width: 1px; border-top: none;" class="detail_type_content">
            消防工作情况(15分)
        </td>
        <td width="581" style="border-top: none; border-left: none;" class="">
            消防报警数同比减少(5分)
        </td>
        <td width="255" style="border-top: none; border-left: none;">
            <input type="number" class="num_add" placeholder="请输入评分..." />
        </td>
        <td width="200" style="border-top: none; border-left: none;">

        </td>
        <td width="157" style="border-top: none; border-left: none;">
            <input type="text" class="num_add _judge_reason" placeholder="请输入评分原因..."/>
        </td>
        <td width="307" style="border-top: none;">
            以消防报警记录为准,同比增加则每增加10%1分,扣完为止
        </td>
    </tr>
    <tr class="tableRow">
        <td width="581" style="border-top: none; border-left: none;" class="">
            消防安全工作开展情况(10分)
        </td>
        <td width="255" style="border-top: none; border-left: none;">
            <input type="number" id="XFsg_score" class="num_add" placeholder="请输入评分..."/>
        </td>
        <td width="180" style="border-top: none; border-left: none;">
            按照居民住宅、物业服务企业消防安全检查记录表,不达标的每项扣1分,扣完为止
        </td>
        <td width="157" style="border-top: none; border-left: none;">
            <input type="text"  class="num_add _judge_reason" placeholder="请输入评分原因..."/>
        </td>
        <td width="307" style="border-top: none;">

        </td>
    </tr>
    <tr class="tableRow">
        <td rowspan="2" width="179" style="border-bottom-width: 1px; border-top: none;" class="detail_type_content">
            发案情况(35分)
        </td>
        <td width="581" style="border-top: none; border-left: none;" class="">
            同比上年度对应月份发案量情况统计(15分)
        </td>
        <td width="255" style="border-top: none; border-left: none;">
            <input type="number" id="Fal_score" class="num_add" placeholder="请输入评分..."/>
        </td>
        <td width="200" style="border-top: none; border-left: none;">
            增加10%5分、增加20%的扣10分、扣完为止
        </td>
        <td width="157" style="border-top: none; border-left: none;" class="_judge_reason">
            <input type="text"  class="num_add " placeholder="请输入评分原因..."/>
        </td>
        <td width="307" style=""></td>
    </tr>
    <tr class="tableRow">
        <td width="581" style="border-top: none; border-left: none;" class="">
            可防性案件发案情况(20分)
        </td>
        <td width="255" style="border-top: none; border-left: none;">
            <input type="number" id="Kfx_score" class="num_add" placeholder="请输入评分..."/>
        </td>
        <td width="200" style="border-top: none; border-left: none;">
            可防性案件发生1起的,未造成严重危害的扣5分,发生严重危害的扣20分;发生2起的扣10分,未造成严重危害的(以此类推)
        </td>
        <td width="157" style="border-top: none; border-left: none;" class="_judge_reason">
            <input type="text" id="" class="num_add " placeholder="请输入评分原因..."/>
        </td>
        <td width="307" style=""></td>
    </tr>
    <tr class="tableRow">
        <td rowspan="10" width="72" style="border-bottom-width: 1px; border-top: none;text-align: center" class="orders_content">
            2
        </td>
        <td rowspan="10" width="204" style="border-bottom-width: 1px; border-top: none;" class="base_type_content">
            信息化使用情况(50分)
        </td>
        <td rowspan="6" width="179" style="border-bottom-width: 1px; border-top: none;" class="detail_type_content">
            五大系统加电动车充电装置建设情况(20分)
        </td>
        <td width="581" style="border-top: none; border-left: none;" class="">
            具备门禁和楼宇对讲系统;是否正常启用(3分)
        </td>
        <td width="255" style="border-top: none; border-left: none;">
            <input type="number" id="MJqy_score" class="num_add" placeholder="请输入评分..."/>
        </td>
        <td width="200" style="border-top: none; border-left: none;">
            发现一处未能正常使用的扣1分,两处及以上的扣3        </td>
        <td width="157" style="border-top: none; border-left: none;" class="_judge_reason">
            <input type="text" id="" class="num_add " placeholder="请输入评分原因..."/>
        </td>
        <td rowspan="6" width="307" style="border-top: none;">
            根据小区的硬件配置和小区的年限酌情打分
        </td>
    </tr>
    <tr class="tableRow">
        <td width="581" style="border-top: none; border-left: none;" class="">
            小区视频监控是否完善,监控录像保存不得低于30天(5分)
        </td>
        <td width="255" style="border-top: none; border-left: none;">
            <input type="number" id="LYdj_score" class="num_add" placeholder="请输入评分..."/>
        </td>
        <td width="200" style="border-top: none; border-left: none;">
            发现一处未能正常使用的扣1分,两处及以上的扣5        </td>
        <td width="157" style="border-top: none; border-left: none;" class="_judge_reason">
            <input type="text"  class="num_add " placeholder="请输入评分原因..."/>
        </td>
    </tr>
    <tr class="tableRow">
        <td width="581" style="border-top: none; border-left: none;" class="">
            具备道闸系统;是否正常启用。小区主要出入口分别设置车辆和人员进出道闸系统,实现行人、机动车进出隔离(3分)
        </td>
        <td width="255" style="border-top: none; border-left: none;">
            <input type="number" id="DFqy_score" class="num_add" placeholder="请输入评分..."/>
        </td>
        <td width="200" style="border-top: none; border-left: none;">
            发现一处未能正常使用的扣1分,两处及以上的扣3        </td>
        <td width="157" style="border-top: none; border-left: none;" class="_judge_reason">
            <input type="text" class="num_add " placeholder="请输入评分原因..."/>
        </td>
    </tr>
    <tr class="tableRow">
        <td width="581" style="border-top: none; border-left: none;" class="">
            具备车辆简易抓拍系统;是否正常启用(2分)
        </td>
        <td width="255" style="border-top: none; border-left: none;">
            <input type="number" id="CLgk_score" class="num_add" placeholder="请输入评分..."/>
        </td>
        <td width="200" style="border-top: none; border-left: none;">
            发现系统无法使用的扣2分,损坏及时报修并提供相关手续的扣1        </td>
        <td width="157" style="border-top: none; border-left: none;" class="_judge_reason">
            <input type="text" class="num_add " placeholder="请输入评分原因..."/>
        </td>
    </tr>
    <tr class="tableRow">
        <td width="581" style="border-top: none; border-left: none;" class="">
            具备周界报警及小区监控系统;是否正常启用(3分)
        </td>
        <td width="255" style="border-top: none; border-left: none;">
            <input type="number" id="ZJbj_score" class="num_add" placeholder="请输入评分..."/>
        </td>
        <td width="200" style="border-top: none; border-left: none;">
            发现系统无法使用的扣3分,损坏及时报修并提供相关手续的扣1        </td>
        <td width="157" style="border-top: none; border-left: none;" class="_judge_reason">
            <input type="text" class="num_add " placeholder="请输入评分原因..."/>
        </td>
    </tr>
    <tr class="tableRow">
        <td width="581" style="border-top: none; border-left: none;" class="">
            具备电动车集中停放区域和充电装置;是否有损毁;是否存在安全隐患(4分)
        </td>
        <td width="255" style="border-top: none; border-left: none;">
            <input type="number" id="CDsh_score" class="num_add" placeholder="请输入评分..."/>
        </td>
        <td width="200" style="border-top: none; border-left: none;">
            不具备充电装置的扣4分,损坏未及时报修的扣2分,存在安全隐患的扣2        </td>
        <td width="157" style="border-top: none; border-left: none;" class="_judge_reason">
            <input type="text" class="num_add " placeholder="请输入评分原因..."/>
        </td>
    </tr>
    <tr class="tableRow">
        <td rowspan="4" width="179" style="border-bottom-width: 1px; border-top: none;" class="detail_type_content">
            物业数据集成平台应用情况(30)
        </td>
        <td width="581" style="border-top: none; border-left: none;" class="">
            信息采集硬件设备是否达标(4分)
        </td>
        <td width="255" style="border-top: none; border-left: none;">
            <input type="number" id="CJyj_score" class="num_add " placeholder="请输入评分..."/>
        </td>
        <td width="200" style="border-top: none; border-left: none;">
            未达标的扣4        </td>
        <td width="157" style="border-top: none; border-left: none;" class="_judge_reason">
            <input type="text" class="num_add " placeholder="请输入评分原因..."/>
        </td>
        <td width="307" style="">
            配备有能够正常运行信息化系统的电脑设备
        </td>
    </tr>
    <tr class="tableRow">
        <td width="581" style="border-top: none; border-left: none;" class="">
            小区月报、季报、年报完成质量(6分)
        </td>
        <td width="255" style="border-top: none; border-left: none;">
            <input type="number" id="YJNzl_score" class="num_add" placeholder="请输入评分..."/>
        </td>
        <td width="200" style="border-top: none; border-left: none;">
            无台账扣6分,台账不完整扣3        </td>
        <td width="157" style="border-top: none; border-left: none;" class="_judge_reason">
            <input type="text"  class="num_add " placeholder="请输入评分原因..."/>
        </td>
        <td rowspan="3" width="307">

        </td>
    </tr>
    <tr class="tableRow">
        <td width="581" style="border-top: none; border-left: none;" class="">
            物业公司信息采集的质量考核:信息采集的完整和真实性。按月、季、年对于小区每栋楼进行抽样检查,通过上门走访了解实际情况,系统登记的人口信息和公安人口信息库对比,以信息登记的全面性、完整性和真实性作为考核标准。(10分)
        </td>
        <td width="255" style="border-top: none; border-left: none;">
            <input type="number" id="WZzsx_score" class="num_add" placeholder="请输入评分..."/>
        </td>
        <td width="200" style="border-top: none; border-left: none;">
            信息登记的全面性、完整性和真实性达到80%以上的不扣分,60%80%5分,60%以下的扣10        </td>
        <td width="157" style="border-top: none; border-left: none;" class="_judge_reason">
            <input type="text"  class="num_add " placeholder="请输入评分原因..."/>
        </td>
    </tr>
    <tr class="tableRow">
        <td width="581" style="border-top: none; border-left: none;" class="">
            物业公司信息采集的质量考核:信息采集的鲜活度。按月、季、年对于小区每栋楼进行抽样检查,通过上门走访了解实际情况和系统登记的人口信息对比,以信息登记的鲜活度作为考核标准。(10分)
        </td>
        <td width="255" style="border-top: none; border-left: none;">
            <input type="number" id="DJxhd_score" class="num_add" placeholder="请输入评分..."/>
        </td>

        <td width="200" style="border-top: none; border-left: none;">
            信息登记的鲜活度达到80%以上的不扣分,60%80%5分,60%以下的扣10        </td>
        <td width="157" style="border-top: none; border-left: none;" class="_judge_reason">
            <input type="text"  class="num_add " placeholder="请输入评分原因..."/>
        </td>
    </tr>
    <tr class="tableRow">
        <td rowspan="5" width="72" style="border-bottom-width: 1px;text-align: center" class="orders_content">
            3
        </td>
        <td rowspan="5" width="204" style="border-bottom-width: 1px;" class="base_type_content">
            主动投入(额外加分项)
        </td>
        <td rowspan="5" width="179" style="border-bottom-width: 1px;"></td>
        <td width="581" style="border-top: none; border-left: none;" class="">
            为公安主动抓获提供有效线索数,每提供1条加1        </td>
        <td width="255" style="border-top: none; border-left: none;">
            <input type="number" id="TGxs_score" class="num_add" placeholder="请输入评分..."/>
        </td>
        <td width="200" style="border-top: none; border-left: none;"></td>
        <td width="157" style="border-top: none; border-left: none;" class="_judge_reason">
            <input type="text"  class="num_add " placeholder="请输入评分原因..."/>
        </td>
        <td rowspan="5" width="307" style="border-bottom-width: 1px;">
            加分项,该项目不扣分,达标加分,直到加至满分100为止
        </td>
    </tr>
    <tr class="tableRow">
        <td width="581" style="border-top: none; border-left: none;" class="">
            可防性案件发案数同比每减少10%1        </td>
        <td width="255" style="border-top: none; border-left: none;">
            <input type="number" id="KFXjs_score" class="num_add" placeholder="请输入评分..."/>
        </td>
        <td width="200" style="border-top: none; border-left: none;"></td>
        <td width="157" style="border-top: none; border-left: none;" class="_judge_reason">
            <input type="text"  class="num_add " placeholder="请输入评分原因..."/>
        </td>
        <%--<td width="307" style="border-bottom-width: 1px;">--%>
            <%--加分项,该项目不扣分,达标加分,直到加至满分100为止--%>
        <%--</td>--%>
    </tr>
    <%--<tr class="tableRow">--%>
        <%--<td width="581" style="border-top: none; border-left: none;" class="">--%>
            <%--每百人发案量同比每减少10%--%>
        <%--</td>--%>
        <%--<td width="255" style="border-top: none; border-left: none;">--%>
            <%--<input type="number" id="MBRjs_score" class="num_add" placeholder="请输入评分..."/>--%>
        <%--</td>--%>
        <%--<td width="200" style="border-top: none; border-left: none;"></td>--%>
        <%--<td width="157" style="border-top: none; border-left: none;" class="_judge_reason">--%>
            <%--<input type="text"  class="num_add " placeholder="请输入评分原因..."/>--%>
        <%--</td>--%>
        <%--&lt;%&ndash;<td width="307" style="border-bottom-width: 1px;">&ndash;%&gt;--%>
            <%--&lt;%&ndash;加分项,该项目不扣分,达标加分,直到加至满分100为止&ndash;%&gt;--%>
        <%--&lt;%&ndash;</td>&ndash;%&gt;--%>
    <%--</tr>--%>
    <tr class="tableRow">
        <td width="581" style="border-top: none; border-left: none;" class="">
            高清监控占比50%以上加5分,此基础上每增加10%1        </td>
        <td width="255" style="border-top: none; border-left: none;">
            <input type="number" id="GQjk_score" class="num_add" placeholder="请输入评分..."/>
        </td>
        <td width="200" style="border-top: none; border-left: none;"></td>
        <td width="157" style="border-top: none; border-left: none;" class="_judge_reason">
            <input type="text" class="num_add " placeholder="请输入评分原因..."/>
        </td>
        <%--<td width="307" style="border-bottom-width: 1px;">--%>
            <%--加分项,该项目不扣分,达标加分,直到加至满分100为止--%>
        <%--</td>--%>
    </tr>
    <tr class="tableRow">
        <td width="581" style="border-top: none; border-left: none;" class="">
            无案件小区创建每月获得锦旗1面,年底统计前三名,依次加分为5分、3分和1        </td>
        <td width="255" style="border-top: none; border-left: none;">
            <input type="number" id="Waj_score" class="num_add" placeholder="请输入评分..."/>
        </td>
        <td width="200" style="border-top: none; border-left: none;"></td>
        <td width="157" style="border-top: none; border-left: none;" class="_judge_reason">
            <input type="text" class="num_add " placeholder="请输入评分原因..."/>
        </td>
        <%--<td width="307" style="border-bottom-width: 1px;">--%>
            <%--加分项,该项目不扣分,达标加分,直到加至满分100为止--%>
        <%--</td>--%>
    </tr>
    </tbody>

</table>

<%--弹出层表格--%>
<div id="myOpenTable">
    <table width="96%" style="margin: 0 2%;">
        <colgroup>
            <col width="80" style="width:80px"/>
            <col width="204" style=";width:204px"/>
            <col width="179" style=";width:179px"/>
            <col width="581" style=";width:581px"/>
            <col width="255" style=";width:255px"/>
            <col width="157" style=";width:157px"/>
            <col width="200" style=";width:200px"/>
            <col width="306" style=";width:307px"/>
        </colgroup>
        <tbody id="myTableTbody">
        <tr style="text-align: center;border-top:1px solid #dcdcdc" class="firstRow">
            <td width="80" style="" class="refer_uuid_content">
                序号
            </td>
            <td width="204" style="border-left: none;" class="refer_uuid_content">
                基础类别
            </td>
            <td width="179" style="border-left: none;" class="refer_uuid_content">
                细分类别
            </td>
            <td width="581" style="border-left: none;" class="refer_uuid_content">
                项目
            </td>
            <td width="255" style="border-left: none;" class="refer_uuid_content">
                评分
            </td>
            <td width="200" style="border-left: none;" class="refer_uuid_content">
                评分说明
            </td>
            <td width="157" style="border-left: none;" class="refer_uuid_content">
                评分原因
            </td>
            <td width="307" style="border-left: none;" class="refer_uuid_content">
                备注
            </td>
        </tr>

        </tbody>
    </table>
</div>
/**
 * 根据数据生成基础表格
 */
function makeTable(data, tbId) {
    var myList = [
        'orders',
        'base_type',
        'detail_type',
        'item',
        'judge_score',
        'exam_rule',
        'judge_reason',
        'comment',
    ]
    var myTableData = [];
    data.forEach(function (ele) {
        var myData = [];
        myData.push(ele.orders)
        myData.push(ele.base_type)
        myData.push(ele.detail_type)
        myData.push(ele.item + "(" + ele.full_score + ")")
        myData.push(ele.judge_score)
        myData.push(ele.exam_rule)
        myData.push(ele.judge_reason)
        myData.push(ele.comment)
        myTableData.push(myData)
    })
    var _table = document.getElementById(tbId);
    myTableData.forEach(function (ele) {
        // 生成tr
        var myTr = document.createElement('tr');
        for (var item in ele) {
            // 生成td
            var myTd = document.createElement('td');
            var myClass = "_" + myList[item];
            // 给列做标记,方便寻找
            myTd.setAttribute("class", myClass);
            myTd.innerHTML = ele[item];
            myTr.appendChild(myTd);
        }
        _table.appendChild(myTr);
    })
}


/**
 * 表格行加工合并
 */
function handleTableRowspan(myClass) {
    var claName = "_" + myClass;
    var list = document.getElementsByClassName(claName);

    var num = 1;
    for (var i = 1; i < list.length; i++) {

        if (String(list[i].innerHTML) == String(list[i-num].innerHTML)){
            list[i-num].setAttribute('rowspan', ++num);
            list[i].classList.add('will-remove');
        } else {
            num = 1;
        }
    }
    var removeList = document.getElementsByClassName('will-remove');
    for (var j = 0; removeList.length > 0; j++) {
        removeList[0].parentNode.removeChild(removeList[0]);
    }
}
/**
 * 填充INPUT */
function inputSetIn(returnData) {
    var _judge_reason = $('#myTableTbody ._judge_reason')
    var _judge_score = $('#myTableTbody ._judge_score')
    _judge_score.html('')
    _judge_reason.html('')
    _judge_reason.append('<input />')
    _judge_score.append('<input />')
    _judge_reason.children().attr({
        "class":"num_add",
        "type":"text"
    })
    _judge_score.children().attr({
            "class":"num_add",
            "type":"text",
            "min":"0"
        }
    )
    for(var i=0;i<returnData.length;i++){
        _judge_score.children().eq(i).val(returnData[i].judge_score)
        _judge_reason.children().eq(i).val(returnData[i].judge_reason)
    }
    for(var i=0;i<returnData.length-5;i++){
        _judge_score.children().eq(i).attr("max",returnData[i].full_score)
    }
    var x = returnData.length-5
    do{
        _judge_score.children().eq(x).attr("max","100")
        x++
    }
    while(x<returnData.length)

    //添加rowUuid
    var in_rowuuid = $('#myTableTbody tr')
    in_rowuuid.append('<input class="rowUuid" type="hidden" />')
    $('#myTableTbody tr:first-child input').remove()

    //校验
    $('._judge_score input').bind('blur', function (e) {

        var normal = $(e.target).val()
        var teshu = $(e.target).attr('max')

        if(normal == ''){
            e.target.setAttribute('style', 'border: 1px solid red;')
            layer.alert('请输入评分', {title : '提示框',icon : 2})
            return;
        }
        if( Number(normal) > Number(teshu)){
            e.target.setAttribute('style', 'border: 1px solid red;')
            layer.alert('请填写正确的评分(0-' + teshu + '分)', {title : '提示框',icon : 2})
            return;
        }
        e.target.setAttribute('style', '')
    })



}
function saveRow(){

    var rowUuid = $('#rowUuid').val()
    var selectUuid = $('#area_select').val()
    var area_uuid = selectUuid || allArea;
    //var area_wunai = $('.searchable-select-holder').html()
    var exam_date = $('#ScorerDate_input').val()
    var doms = $('._judge_score input');
    if($c.isEmpty(area_uuid)){
        layer.alert('请选择区域', {title : '提示框',icon : 2})
        return
    }
    if($c.isEmpty(exam_date)){
        layer.alert('请选择时间', {title : '提示框',icon : 2})
        return
    }
    for(var ide=0;ide<doms.length-5;ide++){
        if($c.isEmpty(doms[ide].value)) {
            doms[ide].setAttribute('style', 'border: 1px solid red;')
            layer.alert('请输入评分', {title: '提示框', icon: 2})
            return
        }
    }

   for (var item = 0; item < doms.length - 5; item++) {
        var normal = doms[item].value;
        var teshu = doms[item].getAttribute('max');
        if( Number(normal) > Number(teshu)) {
            doms[item].setAttribute('style', 'border: 1px solid red;')
            layer.alert('请填写正确的评分', {title : '提示框',icon : 2})
            return;
        }
    }
    var xuuid =[]
    var uuid_val = $('.rowUuid');
    var jrfi_reason = [];
    var post_reason = $('._judge_reason').children();
    var jrfi_score=[];
    var post_score = $('._judge_score').children();
    for(var i=0;i<post_reason.length;i++){
        var myData = $c.trim(post_reason.eq(i).val())
        var myScore = $c.trim(post_score.eq(i).val())
        var myuuid = uuid_val.eq(i).val()
        jrfi_reason.push(myData)
        jrfi_score.push(myScore)
        xuuid.push(myuuid)
    }

   var url = isEmpty(rowUuid) ? '<%=basePath%>exam/add.ui' : '<%=basePath%>exam/mod.ui'
   layer.confirm(
      '确定保存?', 
      {btn: ['确定','取消']}, 
      function(){
          var data = [
                {
                    'orders': 1,
                    'base_type': '平安和谐度(50分)',
                    'detail_type': '消防工作情况(15分)',
                    'item': '消防报警数同比减少',
                    'exam_rule': null,
                    'comment': '以消防报警记录为准,同比增加则每增加10%1分,扣完为止',
                    'indexs': 1,
                    'full_score': 5,
                    'judge_score': '',
                    'judge_reason': '',
                    'exam_date': exam_date,
                    'area': area_uuid,
                    'uuid': ''
                },
                {
                    'orders': 1,
                    'base_type': '平安和谐度(50分)',
                    'detail_type': '消防工作情况(15分)',
                    'item': '消防安全工作开展情况',
                    'exam_rule': '按照居民住宅、物业服务企业消防安全检查记录表,不达标的每项扣1分,扣完为止',
                    'comment': null,
                    'indexs': 2,
                    'full_score': 10,
                    'judge_score': '',
                    'judge_reason': '',
                    'exam_date': exam_date,
                    'area': area_uuid,
                    'uuid': ''
                },
                {
                    'orders': 1,
                    'base_type': '平安和谐度(50分)',
                    'detail_type': '发案情况(35分)',
                    'item': '同比上年度对应月份发案量情况统计',
                    'exam_rule': '增加10%5分、增加20%的扣10分、扣完为止',
                    'comment': null,
                    'indexs': 3,
                    'full_score': 15,
                    'judge_score': '',
                    'judge_reason': '',
                    'exam_date': exam_date,
                    'area': area_uuid,
                    'uuid': ''
                },
                {
                    'orders': 1,
                    'base_type': '平安和谐度(50分)',
                    'detail_type': '发案情况(35分)',
                    'item': '可防性案件发案情况',
                    'exam_rule': '可防性案件发生1起的,未造成严重危害的扣5分,发生严重危害的扣20分;发生2起的扣10分,未造成严重危害的(以此类推)',
                    'comment': null,
                    'indexs': 4,
                    'full_score': 20,
                    'judge_score': '',
                    'judge_reason': '',
                    'exam_date': exam_date,
                    'area': area_uuid,
                    'uuid': ''
                },
                {
                    'orders': 2,
                    'base_type': '信息化使用情况(50分)',
                    'detail_type': '五大系统加电动车充电装置建设情况(20分)',
                    'item': '具备门禁和楼宇对讲系统;是否正常启用',
                    'exam_rule': '发现一处未能正常使用的扣1分,两处及以上的扣3',
                    'comment': '根据小区的硬件配置和小区的年限酌情打分',
                    'indexs': 5,
                    'full_score': 3,
                    'judge_score': '',
                    'judge_reason': '',
                    'exam_date': exam_date,
                    'area': area_uuid,
                    'uuid': ''
                },
                {
                    'orders': 2,
                    'base_type': '信息化使用情况(50分)',
                    'detail_type': '五大系统加电动车充电装置建设情况(20分)',
                    'item': '小区视频监控是否完善,监控录像保存不得低于30',
                    'exam_rule': '发现一处未能正常使用的扣1分,两处及以上的扣5',
                    'comment': '根据小区的硬件配置和小区的年限酌情打分',
                    'indexs': 6,
                    'full_score': 5,
                    'judge_score': '',
                    'judge_reason': '',
                    'exam_date': exam_date,
                    'area': area_uuid,
                    'uuid': ''
                },
                {
                    'orders': 2,
                    'base_type': '信息化使用情况(50分)',
                    'detail_type': '五大系统加电动车充电装置建设情况(20分)',
                    'item': '具备道闸系统;是否正常启用。小区主要出入口分别设置车辆和人员进出道闸系统,实现行人、机动车进出隔离',
                    'exam_rule': '发现一处未能正常使用的扣1分,两处及以上的扣3',
                    'comment': '根据小区的硬件配置和小区的年限酌情打分',
                    'indexs': 7,
                    'full_score': 3,
                    'judge_score': '',
                    'judge_reason': '',
                    'exam_date': exam_date,
                    'area': area_uuid,
                    'uuid': ''
                },
                {
                    'orders': 2,
                    'base_type': '信息化使用情况(50分)',
                    'detail_type': '五大系统加电动车充电装置建设情况(20分)',
                    'item': '具备车辆简易抓拍系统;是否正常启用',
                    'exam_rule': '发现系统无法使用的扣2分,损坏及时报修并提供相关手续的扣1',
                    'comment': '根据小区的硬件配置和小区的年限酌情打分',
                    'indexs': 8,
                    'full_score': 2,
                    'judge_score': '',
                    'judge_reason': '',
                    'exam_date': exam_date,
                    'area': area_uuid,
                    'uuid': ''
                },
                {
                    'orders': 2,
                    'base_type': '信息化使用情况(50分)',
                    'detail_type': '五大系统加电动车充电装置建设情况(20分)',
                    'item': '具备周界报警及小区监控系统;是否正常启用',
                    'exam_rule': '发现系统无法使用的扣3分,损坏及时报修并提供相关手续的扣1',
                    'comment': '根据小区的硬件配置和小区的年限酌情打分',
                    'indexs': 9,
                    'full_score': 3,
                    'judge_score': '',
                    'judge_reason': '',
                    'exam_date': exam_date,
                    'area': area_uuid,
                    'uuid': ''
                },
                {
                    'orders': 2,
                    'base_type': '信息化使用情况(50分)',
                    'detail_type': '五大系统加电动车充电装置建设情况(20分)',
                    'item': '具备电动车集中停放区域和充电装置;是否有损毁;是否存在安全隐患',
                    'exam_rule': '不具备充电装置的扣4分,损坏未及时报修的扣2分,存在安全隐患的扣2',
                    'comment': '根据小区的硬件配置和小区的年限酌情打分',
                    'indexs': 10,
                    'full_score': 4,
                    'judge_score': '',
                    'judge_reason': '',
                    'exam_date': exam_date,
                    'area': area_uuid,
                    'uuid': ''
                },
                {
                    'orders': 2,
                    'base_type': '信息化使用情况(50分)',
                    'detail_type': '物业数据集成平台应用情况(30)',
                    'item': '信息采集硬件设备是否达标',
                    'exam_rule': '未达标的扣4',
                    'comment': '配备有能够正常运行信息化系统的电脑设备',
                    'indexs': 11,
                    'full_score': 4,
                    'judge_score': '',
                    'judge_reason': '',
                    'exam_date': exam_date,
                    'area': area_uuid,
                    'uuid': ''
                },
                {
                    'orders': 2,
                    'base_type': '信息化使用情况(50分)',
                    'detail_type': '物业数据集成平台应用情况(30)',
                    'item': '小区月报、季报、年报完成质量',
                    'exam_rule': '无台账扣6分,台账不完整扣3',
                    'comment': null,
                    'indexs': 12,
                    'full_score': 6,
                    'judge_score': '',
                    'judge_reason': '',
                    'exam_date': exam_date,
                    'area': area_uuid,
                    'uuid': ''
                },
                {
                    'orders': 2,
                    'base_type': '信息化使用情况(50分)',
                    'detail_type': '物业数据集成平台应用情况(30)',
                    'item': '物业公司信息采集的质量考核:信息采集的完整和真实性。按月、季、年对于小区每栋楼进行抽样检查,通过上门走访了解实际情况,对比系统登记的人口信息和公安人口库的信息,以信息登记的完整和真实性作为考核标准。',
                    'exam_rule': '信息登记的全面性、完整性和真实性达到80%以上的不扣分,60%80%5分,60%以下的扣10',
                    'comment': null,
                    'indexs': 13,
                    'full_score': 10,
                    'judge_score': '',
                    'judge_reason': '',
                    'exam_date': exam_date,
                    'area': area_uuid,
                    'uuid': ''
                },
                {
                    'orders': 2,
                    'base_type': '信息化使用情况(50分)',
                    'detail_type': '物业数据集成平台应用情况(30)',
                    'item': '物业公司信息采集的质量考核:信息采集的鲜活度。按月、季、年对于小区每栋楼进行抽样检查,通过上门走访了解实际情况,对比系统登记的人口信息,以信息登记的鲜活度作为考核标准。',
                    'exam_rule': '信息登记的鲜活度达到80%以上的不扣分,60%80%5分,60%以下的扣10',
                    'comment': null,
                    'indexs': 14,
                    'full_score': 10,
                    'judge_score': '',
                    'judge_reason': '',
                    'exam_date': exam_date,
                    'area': area_uuid,
                    'uuid': ''
                },
                {
                    'orders': 3,
                    'base_type': '主动投入(额外加分项)',
                    'detail_type': null,
                    'item': '为公安主动抓获提供有效线索数,每提供1条加1',
                    'exam_rule': null,
                    'comment': '加分项,该项目不扣分,达标加分,直到加至满分100为止',
                    'indexs': 15,
                    'full_score': 0,
                    'judge_score': '',
                    'judge_reason': '',
                    'exam_date': exam_date,
                    'area': area_uuid,
                    'uuid': ''
                },
                {
                    'orders': 3,
                    'base_type': '主动投入(额外加分项)',
                    'detail_type': null,
                    'item': '可防性案件发案数同比每减少10%1',
                    'exam_rule': null,
                    'comment': '加分项,该项目不扣分,达标加分,直到加至满分100为止',
                    'indexs': 16,
                    'full_score': 0,
                    'judge_score': '',
                    'judge_reason': '',
                    'exam_date': exam_date,
                    'area': area_uuid,
                    'uuid': ''
                },
                // {
                //     'orders': 3,
                //     'base_type': '主动投入(额外加分项)',
                //     'detail_type': null,
                //     'item': '每百人发案量同比每减少10%1',
                //     'exam_rule': null,
                //     'comment': '加分项,该项目不扣分,达标加分,直到加至满分100为止',
                //     'indexs': 17,
                //     'full_score': 0,
                //     'judge_score': '',
                //     'judge_reason': '',
                //     'exam_date': exam_date,
                //     'area': area_uuid,
                //     'uuid': ''
                // },
                {
                    'orders': 3,
                    'base_type': '主动投入(额外加分项)',
                    'detail_type': null,
                    'item': '高清监控占比50%以上加5分,此基础上每增加10%1',
                    'exam_rule': null,
                    'comment': '加分项,该项目不扣分,达标加分,直到加至满分100为止',
                    'indexs': 18,
                    'full_score': 0,
                    'judge_score': '',
                    'judge_reason': '',
                    'exam_date': exam_date,
                    'area': area_uuid,
                    'uuid': ''
                },
                {
                    'orders': 3,
                    'base_type': '主动投入(额外加分项)',
                    'detail_type': null,
                    'item': '无案件小区创建每月获得锦旗1面,年底统计前三名,依次加分为5分、3分和1',
                    'exam_rule': null,
                    'comment': '加分项,该项目不扣分,达标加分,直到加至满分100为止',
                    'indexs': 19,
                    'full_score': 0,
                    'judge_score': '',
                    'judge_reason': '',
                    'exam_date': exam_date,
                    'area': area_uuid,
                    'uuid': ''
                }
            ];
          data.forEach(function (e, index) {
                // 添加评分原因数据
              e.judge_reason = jrfi_reason[index]
                e.judge_score = jrfi_score[index]
                e.uuid = xuuid[index]
                // 添加表头area
            });
          console.log(data)
         $.post(
            url,
                {data: JSON.stringify(data)},
            function(data, textStatus, jqXHR){
               if(data && 1 == data.code){
                  layer.alert('操作成功', {title: '提示框', icon:1},function(){
                     window.location.reload()
                  }); 
               }else{
                  layer.alert('操作失败, '+data.message, {title : '提示框', icon : 2})
               }
            },
            'json'
         )

      }
   );
}
/**
* 新增操作
*/
$('#member_add').on('click', function(){
   //清空表单
   cleanAddContent();
    $('.table_cell').css("display","block")
    $('#myOpenTable').css("display","none")

    $('.table_cell input[type=number]').parent().attr("class","_judge_score")
    $('.table_cell input[type=text]').parent().attr("class","_judge_reason")

    $('._judge_score input').bind('blur', function (e) {

        var normal = $(e.target).val()
        var teshu = $(e.target).attr('max')

        if(normal == ''){
            e.target.setAttribute('style', 'border: 1px solid red;')
            layer.alert('请输入评分', {title : '提示框',icon : 2})
            return;
        }
        if( Number(normal) > Number(teshu)){
            e.target.setAttribute('style', 'border: 1px solid red;')
            layer.alert('请填写正确的评分', {title : '提示框',icon : 2})
            return;
        }
        e.target.setAttribute('style', '')
    })

    var full_score=[5,10,15,20,3,5,3,2,3,4,4,6,10,10,100,100,100,100,100]
    for(var i=0;i<full_score.length;i++) {
        $('._judge_score input').eq(i).attr("max", full_score[i])
    }
   layer.open({
       type: 1,
       title: '添加',
      maxmin: false, 
      shadeClose: true, //点击遮罩关闭层
       area : ['80%' , ''],
       content:$('#add_menber_style'),
      btn:['提交','取消'],
      yes:function(index,layero){
         saveRow();
      }
   });
});

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值