1
duhe
2025-03-31 e76a65ef4d5f0648cfe4772f51f8539f3488b53f
WebTM/views/³µ¼ä¹ÜÀí/Æô¶¯µã¼ìµ¥/Sc_WorkBeginDotCheckBill.html
@@ -514,7 +514,7 @@
                //新增行表格数据
                var NewRow = {
                    "HCheckNoteItemID": "0", "HCheckNoteItemName": "", "HCheckPostID": "0", "HCheckPostName": "", "HDotCheckType": "设备", "HRelationID": "0", "HRelationName": "", "HCheckResult": "", "HRemark": "",
                    "HCheckNoteItemID": "0", "HCheckNoteItemName": "", "HCheckPostID": "0", "HCheckPostName": "", "HDotCheckType": "设备", "HRelationID": "0", "HRelationName": "", "HDotCheckVal": "", "HCheckResult": "OK", "HRemark": "",
                    "HSourceBillNo": 0, "HSourceBillType": 0, "HSourceInterID": 0, "HSourceEntryID": 0,
                };
                switch (obj.event) {
@@ -619,6 +619,7 @@
                        , { field: 'HDotCheckType', title: '点检类型', templet: '#HDotCheckType' }
                        , { field: 'HRelationID', title: 'HRelationID', hide: true, style: 'background-color: #f9f9f9;' }
                        , { field: 'HRelationName', title: '编码', edit: 'text', event: "HRelationID" }
                        , { field: 'HDotCheckVal', title: '点检实际值', edit: 'text' }
                        , { field: 'HCheckResult', title: '结果', templet: '#HCheckResult' }
                        , { field: 'HRemark', title: '备注', edit: 'text' }
                        , { field: 'HSourceInterID', title: '源单内码', hide: true, style: 'background-color: #f9f9f9;' }
@@ -638,7 +639,8 @@
                        , "HDotCheckType": "设备"
                        , "HRelationID": "0"
                        , "HRelationName": ""
                        , "HCheckResult": ""
                        , "HDotCheckVal":""
                        , "HCheckResult": "OK"
                        , "HRemark": ""
                        , "HSourceInterID": "0"
                        , "HSourceEntryID": "0"
@@ -659,6 +661,20 @@
                $.each(option.data, function (index, value) {
                    if (value.LAY_TABLE_INDEX == dataindex) {
                        value.HCheckResult = data.value;//把选中下拉框id值赋值给表格缓存
                        var a = 0;
                        for (var i = 0; i < option.data.length; i++) {
                            if (option.data[i]["HCheckResult"]!= "X") {
                                a += 1;
                            }
                        }
                        if (a != option.data.length) {
                            $("#HLastResult").val("NG");
                        } else {
                            $("#HLastResult").val("OK");
                        }
                        form.render('select');
                    }
                });
            });
@@ -696,7 +712,6 @@
                    type: "GET",
                    data: { "HBillType": '3744' },
                    success: function (d) {
                        //console.log(d.data);
                        $("#HInterID").val(d.data[0].HInterID);
                        $("#HBillNo").val(d.data[0].HBillNo);
                        $("#HDate").val(Format(new Date(), "yyyy-MM-dd"));
@@ -717,7 +732,7 @@
                    , shift: 2                                          //弹出动画
                    , area: ["90%", "90%"]                              //窗体大小
                    , maxmin: true                                      //设置最大最小按钮是否显示
                    , content: ["../../生产管理/生产任务单/Sc_ICMOBillList.html", "yes"]
                    , content: ["../../生产管理/生产任务单/Sc_ICMOBillList.html?openType=2", "yes"]
                    , btn: ["确定", "取消"]
                    , btn1: function (index, laero) {
                        //按钮一  çš„回调
@@ -750,7 +765,7 @@
                    , shift: 2                                          //弹出动画
                    , area: ["90%", "90%"]                              //窗体大小
                    , maxmin: true                                      //设置最大最小按钮是否显示
                    , content: ["../../车间管理/工序流转卡/Sc_ProcessExchangeBillList.html", "yes"]
                    , content: ["../../车间管理/工序流转卡/Sc_ProcessExchangeBillList.html?openType=2", "yes"]
                    , btn: ["确定", "取消"]
                    , btn1: function (index, laero) {
                        //按钮一  çš„回调
@@ -939,7 +954,9 @@
                                    //更新表格缓存的数据
                                    obj.update({
                                        "HCheckNoteItemID": checkStatus.data[0].HItemID,
                                        "HCheckNoteItemName": checkStatus.data[0].启动检查项目名称
                                        "HCheckNoteItemName": checkStatus.data[0].启动检查项目名称,
                                        "HCheckPostID": checkStatus.data[0].HCheckPostID,
                                        "HCheckPostName": checkStatus.data[0].确认者角色
                                    })
                                    layer.close(index);//关闭弹窗
                                }
@@ -948,7 +965,9 @@
                                    if (typeof (OptionData.HItemID) != "undefined") {
                                        obj.update({
                                            "HCheckNoteItemID": OptionData.HItemID,
                                            "HCheckNoteItemName": OptionData.启动检查项目名称
                                            "HCheckNoteItemName": OptionData.启动检查项目名称,
                                            "HCheckPostID": OptionData.HCheckPostID,
                                            "HCheckPostName": OptionData.确认者角色
                                        })
                                        OptionData = [];
                                    }
@@ -1202,6 +1221,7 @@
                                    "HDotCheckType": tableSub[i]["点检类型"],
                                    "HRelationID": tableSub[i]["HRelationID"],
                                    "HRelationName": relationName,
                                    "HDotCheckVal": tableSub[i]["点检实际值"],
                                    "HCheckResult": tableSub[i]["结果"],
                                    "HRemark": tableSub[i]["表体备注"]
                                }
@@ -1220,8 +1240,6 @@
                })
            }
            //#endregion
            //#region åˆ é™¤æŒ‡å®šè¡Œ
            function set_GridDelete(obj) {