1
duhe
2024-04-09 ef197f035bc4c3b8b70783fabfa99593b86dcfc3
WebTM/views/Éú²ú¹ÜÀí/Òì³£·´À¡µ¥/Sc_Add_MESExecptFeedBackBillList.html
@@ -410,6 +410,8 @@
                , form = layui.form
                , laydate = layui.laydate
                , element = layui.element;
            window.HDeptType = 0;
            //#endregion
            //初始化表单插件
@@ -731,7 +733,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) {
@@ -759,6 +761,8 @@
            //发送部门
            form.on('submit(HDeptList)', function () {
                HDeptType = 1;
                //页面层-自定义
                layer.open({
                    type: 2,
@@ -798,6 +802,8 @@
            
            //接收部门
            form.on('submit(HRecDeptList)', function () {
                HDeptType = 2;
                //页面层-自定义
                layer.open({
                    type: 2,
@@ -1038,6 +1044,21 @@
            return [year, month, day].join('-');
        }
        function GetHEmpValue(obj) {  //发送人
            $("#HSendMan").val(obj[0].职员名称);
        }
        function GetHDeptNameValue(obj) {  //部门
            if (HDeptType == 1) {
                $("#HDeptName").val(obj[0].部门名称);
                $("#HDeptID").val(obj[0].HItemID);
            } else if (HDeptType == 2) {
                $("#HRecDeptName").val(obj[0].部门名称);
                $("#HRecDeptID").val(obj[0].HItemID);
            }
        }
    </script>
</body>
</html>