duhe
2024-07-03 5369fee6bde3aad82af136dfd46d4da343854094
WebTM/views/Éú²ú¹ÜÀí/Òì³£·´À¡µ¥/OA_ErrMsgBackReceiveBillMain.html
@@ -415,6 +415,8 @@
                , form = layui.form
                , laydate = layui.laydate
                , element = layui.element;
            window.HDeptType = 0;
            //#endregion
            //获取参数
@@ -530,7 +532,8 @@
                        data: {
                            "HInterID": linterid,
                            "HEntryID": HEntryID,
                            "user": sessionStorage["HUserName"]
                            "user": sessionStorage["HUserName"],
                            "num": 1
                        },
                        dataType: "json",
                        success: function (data) {
@@ -757,6 +760,8 @@
            //发送部门
            form.on('submit(HDeptList)', function () {
                HDeptType = 1;
                //页面层-自定义
                layer.open({
                    type: 2,
@@ -795,6 +800,8 @@
            //接收部门
            form.on('submit(HReceiveList)', function () {
                HDeptType = 2;
                //页面层-自定义
                layer.open({
                    type: 2,
@@ -842,7 +849,7 @@
                    shift: 2,
                    area: ['80%', '80%'],
                    maxmin: true,
                    content: ['../../基础资料/公用基础资料/Gy_EmployeeList.html', 'yes'],
                    content: ['../../基础资料/公用基础资料/Gy_EmployeeList.html?Type=HSecManager', 'yes'],
                    btn: ['确定', '取消']
                    , btn1: function (index, layero) {
@@ -1094,7 +1101,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) {
@@ -1133,7 +1140,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) {
@@ -1205,6 +1212,46 @@
            return [year, month, day].join('-');
        }
        function GetHDeptNameValue(obj) {  //部门
            if (HDeptType == 1) {
                $("#HDeptName").val(obj[0].部门名称);
                $("#HDeptID").val(obj[0].HItemID);
            } else if (HDeptType == 2) {
                $("#HReceiveName").val(obj[0].部门名称);
                $("#HReceiveID").val(obj[0].HItemID);
            }
        }
        function GetErrMsgBackTypeValue(obj) {  //异常反馈
            $("#HErrMsgBackTypeName").val(obj[0].异常反馈类型名称);
            $("#HErrMsgBackTypeID").val(obj[0].HItemID);
        }
        function GetHEmpValue(obj) { //关联人
            $("#HRelationEmpName").val(obj[0].职员名称);
            $("#HRelationEmpID").val(obj[0].HItemID);
        }
        function GetHManagerValue(obj) { //指派处理人
            $("#HandleEmpName").val(obj[0].职员名称);
            $("#HHandleEmpID").val(obj[0].HItemID);
        }
        function GetHSecManagerValue(obj) {  //发送人
            $("#HSendMan").val(obj[0].职员名称);
        }
        function GetEquipFileValue(obj) {  //设备档案
            $("#HEquipName").val(obj[0].设备名称);
            $("#HEquipID").val(obj[0].hmainid);
        }
        function GetMouldFileValue(obj) {  //器具档案
            $("#HMouldName").val(obj[0].模具名称);
            $("#HMouldID").val(obj[0].hmainid);
        }
    </script>
</body>
</html>