yusijie
2024-11-02 6ef89c7ecf836c80d64b16a33478032e5c854be8
WebTM/views/É豸¹ÜÀí/É豸Ͷ²ú¼ìÑéÑéÊÕµ¥/Sb_EquipWorkBeforeCheckBillEdit.html
@@ -169,7 +169,7 @@
        var option = [];
        var sBillType = "3915";
        var rowdata = [{ "HQCCheckClassID": 0, "HQCCheckClassName": "", "HQCCheckItemID": "0", "HQCCheckItemName": "", "HQCStd": "", "HQCRelValue": "", "HResult": "", "HProcCheckEmp": "0", "HProcCheckEmpName": "", "HProcCheckTime": "", "HRemark": "" }];
        var rowdata = [{ "HQCCheckClassID": 0, "HQCCheckClassName": "", "HQCCheckItemID": "0", "HQCCheckItemName": "", "HQCStd": "", "HQCRelValue": "", "HResult": "", "HProcCheckEmp": sessionStorage["HEmpID"], "HProcCheckEmpName": sessionStorage["HEmpName"], "HProcCheckTime": "", "HRemark": "" }];
        //#endregion
        //#region è¿›å…¥é¡µé¢å³åŠ è½½
@@ -188,6 +188,9 @@
        set_InitGrid();
        //判断操作类型
        if (OperationType == 1) {//无源新增
            $("#HFirstCheckEmp").val(sessionStorage["HEmpID"]); //根据登录用户带出检验员ID
            $("#HFirstCheckEmpNo").val(sessionStorage["HEmpName"]); //根据登录用户带出检验员
            set_AddFNew();
        }
        else if (OperationType == 3) {//编辑
@@ -205,7 +208,7 @@
        table.on('toolbar(mainTable)', function (obj) {
            var checkStatus = table.checkStatus('mainTable')
                , data = checkStatus.data;
            var NewRow = { "HQCCheckClassID": 0, "HQCCheckClassName": "", "HQCCheckItemID": "0", "HQCCheckItemName": "", "HQCStd": "", "HQCRelValue": "", "HResult": "", "HProcCheckEmp": "0", "HProcCheckEmpName": "", "HProcCheckTime": "", "HRemark": "" };
            var NewRow = { "HQCCheckClassID": 0, "HQCCheckClassName": "", "HQCCheckItemID": "0", "HQCCheckItemName": "", "HQCStd": "", "HQCRelValue": "", "HResult": "", "HProcCheckEmp": sessionStorage["HEmpID"], "HProcCheckEmpName": sessionStorage["HEmpName"], "HProcCheckTime": "", "HRemark": "" };
            switch (obj.event) {
                //新增一行
                case 'btn-AddLine':
@@ -277,7 +280,7 @@
                shift: 2,
                area: ['80%', '80%'],
                maxmin: true,
                content: ['../../PublicPage/EqpInformation.html', 'yes'],
                content: ['../../设备管理/设备档案/Gy_EquipFileMainList.html', 'yes'],
                btn: ['确定', '取消']
                , btn1: function (index, layero) {
                    //按钮【按钮一】的回调
@@ -286,8 +289,8 @@
                    if (checkStatus.data.length === 0) {
                        return layer.msg('请选择数据');
                    }
                    $("#HEquipName").val(checkStatus.data[0].HName);
                    $("#HEquipID").val(checkStatus.data[0].HInterID);
                    $("#HEquipName").val(checkStatus.data[0].设备名称);
                    $("#HEquipID").val(checkStatus.data[0].hmainid);
                    layer.close(layer.index); //它获取的始终是最新弹出的某个层,值是由layer内部动态递增计算的
                }
                , btn2: function (index, layero) {
@@ -425,7 +428,7 @@
        function set_InitGrid() {
            //表头
            columns = [
                { type: 'checkbox', fixed: 'left' }
                { type: 'checkbox', fixed: 'left', totalRowText: '合计行'}
                , { templet: '#xuhao', title: '序号', sort: true, fixed: 'left', event: "qwe" }
                , { field: 'HQCCheckClassID', title: 'HQCCheckClassID', edit: 'text', hide: true }
                , { field: 'HQCCheckClassName', title: '检验项目类别', edit: 'text', event: "HQCCheckClassCode" }
@@ -445,6 +448,7 @@
                , elem: '#mainTable'
                , toolbar: '#toolbarDemo'
                , page: true
                , totalRow: true
                , cellMinWidth: 120
                , height: 500
                , cols: [columns]
@@ -486,7 +490,7 @@
        function set_AddFNew() {
            //获取最大单据号
            get_MAXNum();
            option.data = [{ "HQCCheckClassID": 0, "HQCCheckClassName": "", "HQCCheckItemID": "0", "HQCCheckItemName": "", "HQCStd": "", "HQCRelValue": "", "HResult": "", "HProcCheckEmp": "0", "HProcCheckEmpName": "", "HProcCheckTime": "", "HRemark": "" }];
            option.data = [{ "HQCCheckClassID": 0, "HQCCheckClassName": "", "HQCCheckItemID": "0", "HQCCheckItemName": "", "HQCStd": "", "HQCRelValue": "", "HResult": "", "HProcCheckEmp": sessionStorage["HEmpID"], "HProcCheckEmpName": sessionStorage["HEmpName"], "HProcCheckTime": "", "HRemark": "" }];
            table.render(option);
        }