duhe
2025-09-02 cecb8de03f83f8e5b3cd32d3ac7eb09196ed5cf4
WebTM/views/ÖÊÁ¿¹ÜÀí/°²µÆÖ𼶺ô½Ð¹æÔò/OA_AndengFlowRuleBillMain.html
@@ -296,22 +296,31 @@
                ////禁用组织选项
                //$("#HOrgID").attr("disabled", true);
                OperationType = 1;
                //初始化项目阶段表
                get_InitGrid();
                //生成并设置主表的内码和单据号
                createBillNo();
                //初始化制单人和制单时间
                $("#HMaker").val(sessionStorage["HUserName"]);
                $("#HMakerDate").val(Format(new Date(), "yyyy-MM-dd"));
                //初始化日期
                $("#HDate").val(Format(new Date(), "yyyy-MM-dd"));
            }
            else if (OperationType == 2) {//如果修改则走下面 new                                        //编辑
                OperationType = 1;
                //初始化项目阶段表
                get_InitGrid();
                RoadBillMain(linterid);
                //生成并设置主表的内码和单据号
                createBillNo();
                //初始化制单人和制单时间
                $("#HMaker").val(sessionStorage["HUserName"]);
                $("#HMakerDate").val(Format(new Date(), "yyyy-MM-dd"));
                //初始化日期
                $("#HDate").val(Format(new Date(), "yyyy-MM-dd"));
            }
            else if (OperationType == 3) {//如果修改则走下面 new                                        //编辑
                ////禁用组织选项
@@ -575,7 +584,7 @@
                        , { field: 'HDutyName', title: '职务名称', edit: 'text', event: "HDutyName", style: 'background-color: #f9f9f9;' } //f7
                        , { field: 'HTimes', title: '触发时间', edit: 'text', style: 'background-color: #f9f9f9;', }
                        , { field: 'HReceiveType', title: '接收模式', style: 'background-color: #f9f9f9;', templet: '#HReceiveType' }
                        , { field: 'HIsRece', title: '完成标记', templet: "#HIsRece" }//checkbox
                        , { field: 'HIsRece', title: '是否接收人', templet: "#HIsRece" }//checkbox
                        , { field: 'HRemark', title: '备注', edit: 'text' }
                        , { field: 'HSourceInterID', title: '源单内码', hide: true, style: 'background-color: #f9f9f9;' }     //f7
                        , { field: 'HSourceEntryID', title: '源单子内码', hide: true, style: 'background-color: #f9f9f9;' }     //f7
@@ -587,11 +596,11 @@
                var rowdata = [
                    {
                        "HSNO": ""
                        "HSNO": "1"
                        , "HDutyID": ""
                        , "HDutyNumber": ""
                        , "HDutyName": ""
                        , "HTimes": ""
                        , "HTimes": "1"
                        , "HRemark": ""
                        , "HReceiveType": "短信"
                        , "HIsRece": false
@@ -671,7 +680,7 @@
                    , area: ['90%', '90%']//大小
                    , title: '发送部门表'//标题
                    , shift: 2//弹出动画
                    , content: ['../../基础资料/公用基础资料/Gy_DepartmentList.html', 'yes']
                    , content: ['../../基础资料/公用基础资料/Gy_DepartmentList.html?openType=2&HOrgName=' + sessionStorage["Organization"], 'yes']
                    , btn: ['确定', '取消']
                    , btn1: function (index, layero) {//按钮【按钮一】的回调
                        var iframeWindow = window['layui-layer-iframe' + index]  //获取弹框页面
@@ -700,7 +709,7 @@
                    , area: ['90%', '90%']//大小
                    , title: '接收部门表'//标题
                    , shift: 2//弹出动画
                    , content: ['../../基础资料/公用基础资料/Gy_DepartmentList.html', 'yes']
                    , content: ['../../基础资料/公用基础资料/Gy_DepartmentList.html?openType=2&HOrgName=' + sessionStorage["Organization"], 'yes']
                    , btn: ['确定', '取消']
                    , btn1: function (index, layero) {//按钮【按钮一】的回调
                        var iframeWindow = window['layui-layer-iframe' + index]  //获取弹框页面
@@ -795,8 +804,8 @@
                        //主表 èµ‹å€¼
                        form.val("formData", { //formTest å³ class="layui-form" æ‰€åœ¨å…ƒç´ å±žæ€§ lay-filter="" å¯¹åº”的值
                            "HInterID": data[0]["hmainid"]
                            , "HBillNo": data[0]["单据号"]
                            "HInterID": OperationType == 2 ? "" : data[0]["hmainid"]
                            , "HBillNo": OperationType == 2 ? "" : data[0]["单据号"]
                            , "HDate": formatDate(data[0]["日期"])
                            , "HDeptID": data[0]["HDeptID"]
                            , "HDeptName": data[0]["发起部门"]