zrg
2024-11-28 727ee25aeb5fcaf84e2cf009b2eacd3a86bcb3ca
WebTM/views/Ä£Öξ߹ÜÀí/Ä£Öξ߹ÜÀí/Sc_Add_MouldRepairCheckBillList.html
@@ -125,6 +125,9 @@
                                                <div class="layui-input-inline">
                                                    <input type="text" name="HMouldRepairWorkName" id="HMouldRepairWorkName" class="layui-input" value="" style="float:left;width:150px;">
                                                    <input type="hidden" name="HMouldRepairWorkID" id="HMouldRepairWorkID" class="layui-input" value="" style="float:left;width:150px;">
                                                    <input type="hidden" name="HMainSourceBillNo" id="HMainSourceBillNo" class="layui-input" value="" style="float:left;width:150px;">
                                                    <input type="hidden" name="HMainSourceInterID" id="HMainSourceInterID" class="layui-input" value="0" style="float:left;width:150px;">
                                                    <input type="hidden" name="HMainSourceEntryID" id="HMainSourceEntryID" class="layui-input" value="0" style="float:left;width:150px;">
                                                    <button type="button" lay-submit="" class="layui-btn" lay-filter="btnHMouldRepairWork" style="width:40px;">
                                                        <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></i>
                                                    </button>
@@ -308,7 +311,7 @@
                    shift: 2,
                    area: ['80%', '80%'],
                    maxmin: true,
                    content: ['../../基础资料/公用基础资料/Gy_EmployeeList.html', 'yes'],
                    content: ['../../基础资料/公用基础资料/Gy_EmployeeList.html?Type=HEmp', 'yes'],
                    btn: ['确定', '取消']
                    , btn1: function (index, layero) {
@@ -384,7 +387,7 @@
                    shift: 2,
                    area: ['80%', '80%'],
                    maxmin: true,
                    content: ['../../基础资料/公用基础资料/Gy_EmployeeList.html', 'yes'],
                    content: ['../../基础资料/公用基础资料/Gy_EmployeeList.html?Type=HManager', 'yes'],
                    btn: ['确定', '取消']
                    , btn1: function (index, layero) {
@@ -435,6 +438,10 @@
                        }
                        $("#HMouldRepairWorkName").val(checkStatus.data[0].单据号);
                        $("#HMouldRepairWorkID").val(checkStatus.data[0].hmainid);
                        $("#HMainSourceBillNo").val(checkStatus.data[0].单据号);
                        $("#HMainSourceInterID").val(checkStatus.data[0].hmainid);
                        $("#HMainSourceEntryID").val(checkStatus.data[0].hsubid == undefined ? 1 : checkStatus.data[0].hsubid);
                        layer.close(layer.index); //它获取的始终是最新弹出的某个层,值是由layer内部动态递增计算的
                    }
                    , btn2: function (index, layero) {
@@ -600,6 +607,10 @@
                                , "HRemark": data.备注
                                , "HMouldRepairWorkID": data.HMouldRepairWorkID
                                , "HMouldRepairWorkName": data.HMouldRepairWorkNo
                                , "HMainSourceBillNo": data.HMouldRepairWorkNo                //维修记录单
                                , "HMainSourceInterID": data.HMouldRepairWorkID                //维修记录内码
                                , "HMainSourceEntryID": data.HMouldRepairWorkEntryID == undefined ? 1 : data.HMouldRepairWorkEntryID    //维修记录子内码
                            });
                        } else {
@@ -622,7 +633,13 @@
                    success: function (result) {
                        //console.log('gouba' + result);
                        if (result.count == 1) {
                            option.data = result.data;
                            var subarr = [];
                            var data = result.data;
                            for (var i = 0; i < result.data.length; i++) {
                                subarr.push({ "HRepairCheckID": data[i].HRepairCheckID, "HRepairCheckCode": data[i].验收项目代码, "HRepairCheckName": data[i].验收项目, "HRepairCheckContent": data[i].验收内容, "HManagerID": data[i].HManagerSonID, "HManagerCode": data[i].子负责人代码, "HManagerName": data[i].子负责人, "HRemark": data[i].表体备注});
                            }
                            option.data = subarr;
                            table.render(option);
                        } else {
@@ -715,7 +732,7 @@
                                shift: 2,
                                area: ['80%', '80%'],
                                maxmin: true,
                                content: ['../../基础资料/基础资料/Gy_RepairList.html', 'yes'],
                                content: ['../../基础资料/基础资料/Gy_RepairCheckList.html', 'yes'],
                                btn: ['确定', '取消']
                                , btn1: function (index, layero) {
@@ -729,8 +746,8 @@
                                    //同步更新表格和缓存对应的值
                                    obj.update({
                                        HRepairCheckID: checkStatus.data[0].hitemid,
                                        HRepairCheckCode: checkStatus.data[0].维修项目代码,
                                        HRepairCheckName: checkStatus.data[0].维修项目,
                                        HRepairCheckCode: checkStatus.data[0].维修验收项目代码,
                                        HRepairCheckName: checkStatus.data[0].维修验收项目,
                                    });
                                    layer.close(layer.index); //它获取的始终是最新弹出的某个层,值是由layer内部动态递增计算的
@@ -841,6 +858,31 @@
        });
        function GetMouldFileValue(obj) {  //器具档案
            $("#HMouldID").val(obj[0].hmainid);//器具id
            $("#HName").val(obj[0].模具名称);//器具名称
        }
        function GetHDeptNameValue(obj) {  //返回部门
            $("#HDeptID").val(obj[0].HItemID);//维修部门id
            $("#HDeptName").val(obj[0].部门名称);//维修部门名称
        }
        function GetHManagerValue(obj) {  //返回负责人
            $("#HManagerName").val(obj[0].职员名称);
            $("#HManagerID").val(obj[0].HItemID);
        }
        function GetHEmpValue(obj) {  //返回验收人
            $("#HEmpName").val(obj[0].职员名称);
            $("#HEmpID").val(obj[0].HItemID);
        }
        function GetMouldRepairWorkValue(obj) {  //返回维修记录
            $("#HMouldRepairWorkName").val(obj[0].单据号);
            $("#HMouldRepairWorkID").val(obj[0].hmainid);
        }
    </script>
</body>
</html>