yusijie
2024-08-07 be3ff32c503649df66933a3f625cdf9b0925f62e
WebTM/views/²É¹º¹ÜÀí/²É¹º¶©µ¥/Cg_POOrderBillList.html
@@ -270,16 +270,6 @@
                                                <input type="text" class="layui-input ForFilteringSchemes" value="" name="ColContent2" id="ColContent2">
                                            </div>
                                        </div>
                                        <div class="layui-row" style=" margin-top: 10px; margin-left: 70px;">
                                            <div class="layui-inline">
                                                <label class="layui-form-label">审批流</label>
                                                <div class="layui-input-block">
                                                    <select name="HCheckFlowList" id="HCheckFlowList" class="ForFilteringSchemes" lay-filter="HCheckFlowList" style="width:190px;">
                                                    </select>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
@@ -373,11 +363,6 @@
            //选择的过滤方案内码(全局变量)
            window.HInterID_Choose = 0;
            //#endregion
            //#region åŠ è½½å®¡æ‰¹æµ
            HCheckFlowList_Filter();
            //#endregion
            //#region è¿›å…¥é¡µé¢æ—¢åŠ è½½
@@ -533,6 +518,29 @@
                            //$(".layui-btn").removeClass("layui-btn-disabled");
                        }
                    })
                } else if(obj.event == '当前审核项目') {
                    var linterid = data.hmainid.toString();
                        layer.open({
                            type: 2
                            , area: ['70%', '70%']
                            , title: '单据审批进度'
                            , closeBtn: 1
                            , shade: 0.6 //遮罩透明度
                            , maxmin: true //允许全屏最小化
                            , anim: 0 //0-6的动画形式,-1不开启
                            , content: '../../系统管理/多级审批/审批进度/Xt_CheckFlowProgressList.html?linterid=' + linterid + '&HSouceBillType=' + HBillType
                            , resize: false,
                            end: function () {
                                ////修改为功后刷新界面
                                //if (get_needClose_Bar == 0) {
                                //    $("#btnSearch").trigger('click');
                                //} else if (get_needClose_Bar == 1) {
                                //    $("#get_needClose").trigger('click');
                                //}
                            }
                            , cancel: function () {
                            }
                        })
                }
            });
            //获取组织
@@ -805,6 +813,12 @@
                                    col.push({
                                        field: data[i].id, title: data[i].name, align: 'center', sort: true, width: 200, event: '单据号', templet: function (d) {
                                            return '<span style="color: blue;">' + d.单据号 + '</span>'
                                        }, style: 'cursor: pointer;'
                                    });
                                } else if (data[i].name == '当前审核项目') {//添加超链接
                                    col.push({
                                        field: data[i].id, title: data[i].name, align: 'center', sort: true, width: 200, event: '当前审核项目', templet: function (d) {
                                            return '<span style="color: blue;">' + d.当前审核项目 + '</span>'
                                        }, style: 'cursor: pointer;'
                                    });
                                }else {
@@ -1294,12 +1308,11 @@
                    , data = checkStatus.data;
                if (checkStatus.data.length === 1) {
                    var InterID = data[0].hmainid.toString();
                    var HCheckFlowID = $("#HCheckFlowList").val();
                    //逻辑审核方法
                    $.ajax({
                        type: "GET",
                        url: GetWEBURL() + "/Cg_POOrderBill/StartCheckFlow_POOrderBill", //方法所在页面和方法名
                        data: { "HInterID": InterID, "HCheckFlowID_select": HCheckFlowID, "CurUserName": sessionStorage["HUserName"] },
                        data: { "HInterID": InterID, "CurUserName": sessionStorage["HUserName"] },
                        success: function (result) {
                            if (result.count == 1) {
                                layer.msg(result.Message, { time: 1 * 1000, icon: 1 }, function () {
@@ -1308,9 +1321,6 @@
                                    var index = layer.getFrameIndex(window.name);
                                    //关闭当前frame
                                    layer.close(index);
                                    //修改为功后刷新界面
                                    if (get_needClose_Bar == 0) {
                                        $("#btnSearch").trigger('click');
@@ -2330,34 +2340,6 @@
                $("#ColName2").empty();
                $("#ColName2").append(Organization);
                form.render('select');
            }
            //#endregion
            //#region å®¡æ‰¹æµæ˜¾ç¤ºä¸‹æ‹‰æ¡†
            function HCheckFlowList_Filter() {
                sWhere_CheckFlowList = " and a.HBillTypeID='" + HBillType + "' and c.HUserID = '" + sessionStorage["Czybm"] + "' ";
                $.ajax({
                    url: GetWEBURL() + '/Xt_CheckFlowProgressBill/getList_CheckFlowList',
                    async: false,
                    type: "GET",
                    data: { "sWhere": sWhere_CheckFlowList, "user": sessionStorage["HUserName"] },
                    success: function (data1) {
                        var data = data1.data;
                        if (data1.count == 1) {
                            var Organization = '<option  value="' + data[0]["HInterID"] + '" selected="selected" >' + data[0]["审批流"] + '</option>';
                            for (var i = 1; i < data.length; i++) {
                                Organization += '<option  style="color:blue;" value="' + data[i]["HInterID"] + '">' + data[i]["审批流"] + '</option>';
                            }
                            $("#HCheckFlowList").empty();
                            $("#HCheckFlowList").append(Organization);
                            form.render('select');
                        } else {
                        }
                    }, error: function () {
                        layer.alert("接口请求失败!", { icon: 5 });
                    }
                });
            }
            //#endregion