1
yangle
2024-04-02 c92a58fa7f3df1a15914fd59709a053f8e15d538
WebTM/views/ÖÊÁ¿¹ÜÀí/Ѳ¼ì¼Ç¼µ¥/QC_Add_Edit_PatrolProcCheckBill.html
@@ -325,7 +325,7 @@
            //#endregion
            var tableReload = table.reload;
            var option = {
            window.option = {
                elem: '#mainTable'
                , toolbar: '#toolbarDemo'
                , totalRow: true
@@ -1278,7 +1278,7 @@
                    , shade: 0.6 //遮罩透明度
                    , maxmin: true //允许全屏最小化
                    , anim: 0 //0-6的动画形式,-1不开启
                    , content: ['../../基础资料/公用基础资料/Gy_EmployeeList.html', 'yes']
                    , content: ['../../基础资料/公用基础资料/Gy_EmployeeList.html?Type=HEmp', 'yes']
                    , btn: ['确定', '取消']
                    , btn1: function (index, layero) {//按钮【按钮一】的回调
                        var iframeWindow = window['layui-layer-iframe' + index]  //获取弹框页面
@@ -1620,6 +1620,52 @@
                return true;
            }
        }
        function GetHEmpValue(obj) {  //检验员
            $("#HEmpName").val(obj[0].职员名称);
            $("#HFirstCheckEmp").val(obj[0].HItemID);
        }
        function GetProcessValue(obj) {  //工序
            $("#HMainProcID").val(obj[0].HItemID);
            $("#HMainProcNumber").val(obj[0].工序代码);
            $("#HMainProcName").val(obj[0].工序名称);
            var HQCSchemeID_Patrol = obj[0].HQCSchemeID_Patrol;
            $.ajax({
                url: GetWEBURL() + "/Web/GetCheckItemByCheckProjectID",
                type: "GET",
                data: { "CheckProjectID": HQCSchemeID_Patrol, "HBatchQty": 0 },
                success: function (result) {
                    if (result.code == 1) {
                        var rowdata = [];
                        var data = result.data;
                        for (var i = 0; i < result.data.length; i++) {
                            //子表  èµ‹å€¼
                            rowdata.push({
                                "检验项目分类": data[i]["检验项目分类"], "HQCCheckItemID": data[i]["HQCCheckItemID"], "HQCCheckItemName": data[i]["检验项目"],
                                "HQCStd": "",
                                "HQCNote1": "",
                                "HQCNote2": "",
                                "HQCNote3": "",
                                "HQCNote4": "",
                                "HQCNote5": "",
                                "HQCNote6": "",
                                "HQCNote7": "",
                                "HQCNote8": "",
                                "HQCNote9": "",
                                "HQCNote10": "",
                                "HRemark": ""
                            });
                        }
                        option.data = rowdata;
                        table.render(option);
                    }
                }
            })
        }
    </script>
</body>
</html>