WebTM/views/ÖÊÁ¿¹ÜÀí/Ѳ¼ì¼Ç¼µ¥/QC_Add_Edit_PatrolProcCheckBill_XW.html
@@ -483,26 +483,26 @@
                    , { field: 'HQCCheckItemID', title: '检验项目ID', edit: 'text', hide: true }
                    , { field: 'HQCCheckItemName', title: '检验项目名称', edit: 'text', width: 230 }
                    /////////////
                    , { field: 'HAnalysisMethod', title: '分析方法', templet: '#HAnalysisMethod', event: 'HAnalysisMethod' }
                    , { field: 'HAnalysisMethod', title: '分析方法', width: 185, templet: '#HAnalysisMethod', event: 'HAnalysisMethod' }
                    , { field: 'HInspectMethodID', title: '检验方法ID', edit: 'text', hide: true }
                    , { field: 'HInspectMethodName', title: '检验方法', edit: 'text', event: 'HInspectMethodName'}
                    , { field: 'HQCStd', title: '检验标准', edit: 'text', event: "", width: 125, hide: true }
                    , { field: 'HInspectVal', title: '检验值', edit: 'text', width: 125, hide: true }
                    , { field: 'HUpLimit', title: '上限值', edit: 'text', width: 125, hide: true }
                    , { field: 'HDownLimit', title: '下限值', edit: 'text', width: 125, hide: true }
                    , { field: 'HTargetVal', title: '目标值', edit: 'text' }
                    , { field: 'HInspectMethodName', title: '检验方法', width: 185, edit: 'text', event: 'HInspectMethodName', style: 'white-space: nowrap; overflow: hidden;text-overflow: ellipsis;'}
                    , { field: 'HQCStd', title: '检验标准', edit: 'text', event: "", width: 125 }
                  /*  , { field: 'HInspectVal', title: '检验值', edit: 'text', width: 125 }*/
                    , { field: 'HUpLimit', title: '上限值', edit: 'text', width: 125}
                    , { field: 'HDownLimit', title: '下限值', edit: 'text', width: 125 }
                    , { field: 'HQCNote1', title: '08:00--10:00', width: 125, templet: '#HQCNote1' }
                    , { field: 'HTargetVal', title: '检验值1', edit: 'text', width: 185, }
                    , { field: 'HQCNote2', title: '10:00--12:00', width: 125, templet: '#HQCNote2' }
                    , { field: 'HTargetVal2', title: '检验值2', edit: 'text', width: 185, }
                    , { field: 'HQCNote3', title: '12:00--14:00', width: 125, templet: '#HQCNote3' }
                    , { field: 'HTargetVal3', title: '检验值3', edit: 'text', width: 185, }
                    , { field: 'HQCNote4', title: '14:00--16:00', width: 125, templet: '#HQCNote4' }
                    , { field: 'HTargetVal4', title: '检验值4', edit: 'text', width: 185, }
                    , { field: 'HQCNote5', title: '16:00--18:00', width: 125, templet: '#HQCNote5' }
                    , { field: 'HTargetVal5', title: '检验值5', edit: 'text', width: 185, }
                    , { field: 'HQCNote6', title: '18:00--19:30', width: 125, templet: '#HQCNote6' }
                    , { field: 'HTargetVal6', title: '检验值6', edit: 'text', width: 185, }
                    , { field: 'HQCNote7', title: '检验记录7', edit: 'text', hide: true }
                    , { field: 'HQCNote8', title: '检验记录8', edit: 'text', hide: true }
@@ -579,7 +579,7 @@
                //初始加载表格{ "ID": 0, "HWasterReasonName": " ","HBadReasonID":0,"HEmpName": "  ", "HSQProcName": "   ","HProcID":0, "HZRProcName": "  ", "HMRBChecker": "  ", "HRemark": "  ", "HPSProcName": "  ", "HCloseMan": "   " }
                option.data = [{
                    "HAnalysisMethod": 1, "HUpLimit": "", "HDownLimit": "", "HInspectMethodID": 0, "HInspectMethodName": "", "HTargetVal": "",
                    "HAnalysisMethod": 1, "HUpLimit": "", "HDownLimit": "", "HInspectMethodID": 0, "HInspectMethodName": "", "HTargetVal": "", "HTargetVal2": "", "HTargetVal3": "", "HTargetVal4": "", "HTargetVal5": "", "HTargetVal6": "",
                    "检验项目分类": "", "HQCCheckItemID": 0, "HQCCheckItemName": "", "HQCStd": " ", "HQCNote1": " ", "HQCNote2": " ", "HQCNote3": "  "
                    , "HQCNote4": "  ", "HQCNote5": " ", "HQCNote6": " ", "HQCNote7": " ", "HQCNote8": " ", "HQCNote9": " ", "HQCNote10": " ", "HRemark": " "
                    , "HQCNote1_SN": "", "HQCNote2_SN": "", "HQCNote3_SN": "", "HQCNote4_SN": "", "HQCNote5_SN": "", "HQCNote6_SN": "", "HQCNote7_SN": ""
@@ -636,7 +636,7 @@
                                        break;
                                }
                                rowdata.push({
                                    "HAnalysisMethod": data[i].分析方法, "HInspectMethodID": data[i].HInspectMethodID, "HInspectMethodName": data[i].HInspectMethodName, "HUpLimit": data[i].上限值, "HDownLimit": data[i].下限值, "HTargetVal": data[i].目标值,
                                    "HAnalysisMethod": data[i].分析方法, "HInspectMethodID": data[i].HInspectMethodID, "HInspectMethodName": data[i].HInspectMethodName, "HUpLimit": data[i].上限值, "HDownLimit": data[i].下限值, "HTargetVal": data[i].目标值, "HTargetVal2": data[i].目标值2, "HTargetVal3": data[i].目标值3, "HTargetVal4": data[i].目标值4, "HTargetVal5": data[i].目标值5, "HTargetVal6": data[i].目标值6,
                                    "检验项目分类": data[i].检验项目分类, "HQCCheckItemID": data[i].HQCCheckItemID, "HQCCheckItemName": data[i].检验项目名称,
                                    "HQCStd": data[i].HQCStd, "HQCNote1": data[i].HQCNote1, "HQCNote2": data[i].HQCNote2, "HQCNote3": data[i].HQCNote3,
                                    "HQCNote4": data[i].HQCNote4, "HQCNote5": data[i].HQCNote5, "HQCNote6": data[i].HQCNote6, "HQCNote7": data[i].HQCNote7,
@@ -1499,9 +1499,19 @@
                            var rowdata = [];
                            var data = result.data;
                            for (var i = 0; i < result.data.length; i++) {
                                var analysisMethodValue = data[i].HAnalysisMethod;
                                var analysisMethodText = "";
                                if (analysisMethodValue == "1" || analysisMethodValue == 1) {
                                    analysisMethodText = "定性分析";
                                } else if (analysisMethodValue == "2" || analysisMethodValue == 2) {
                                    analysisMethodText = "定量分析";
                                } else if (analysisMethodValue == "3" || analysisMethodValue == 3) {
                                    analysisMethodText = "其他分析";
                                }
                                //子表  èµ‹å€¼
                                rowdata.push({
                                    "HAnalysisMethod": data[i].分析方法 == "定性分析" ? 1 : (data[i].分析方法 == "定量分析" ? 2 : 3),
                                    //"HAnalysisMethod": data[i].HAnalysisMethod == "定性分析" ? 1 : (data[i].HAnalysisMethod == "定量分析" ? 2 : 3),
                                    "HAnalysisMethod": analysisMethodValue ,
                                    "检验项目分类": data[i]["检验项目分类"], "HQCCheckItemID": data[i]["HQCCheckItemID"], "HQCCheckItemName": data[i]["检验项目"],
                                    "HQCStd": "",
                                    "HQCNote1": "",
@@ -1530,10 +1540,19 @@
                            }
                            option.data = rowdata;
                            table.render(option);
                            for (let j = 0; j < data.length; j++) {
                                $("#HAnalysisMethod" + (j + 1)).val(data[j].分析方法 == "定性分析" ? 1 : (data[j].分析方法 == "定量分析" ? 2 : 3))
                            }
                            form.render('select');
                            setTimeout(function () {
                                var tableData = table.cache['mainTable'];
                                if (tableData) {
                                    for (var i = 0; i < tableData.length; i++) {
                                        var selectElem = $('#HAnalysisMethod' + (i + 1));
                                        if (selectElem.length) {
                                            // è®¾ç½®ä¸‹æ‹‰æ¡†çš„选中值
                                            selectElem.val(tableData[i].HAnalysisMethod || '');
                                        }
                                    }
                                    form.render('select');
                                }
                            }, 200);
                        }
                    }
                })