yangle
2024-03-15 791453617b93d367db37862068c5f7a674a1d69e
WebTM/views/Ó¦ÊÕ¹ÜÀí/±¨±í·ÖÎö/YS_CusShouldIncomeEntryReport.html
@@ -349,7 +349,8 @@
                        }
                    });
                } else if (obj.data.单据类型 == "收款单") {
                }
                else if (obj.data.单据类型 == "收款单") {
                    sWhere += " and å•据号 like '%" + HBillNo + "%'";
                    $.ajax({
                        url: GetWEBURL() + '/YS_ReceiveBill/list',
@@ -387,6 +388,82 @@
                        }
                    });
                }
                else if (obj.data.单据类型 == "其他应收单") {
                    sWhere += " and å•据号 like '%" + HBillNo + "%'";
                    $.ajax({
                        url: GetWEBURL() + '/YS_ReceiveOtherBill/YS_ReceiveOtherBillMainList',
                        async: false,
                        type: "GET",
                        data: { "sWhere": sWhere, "user": sessionStorage["HUserName"] },
                        success: function (data1) {
                            if (data1.count == 1) {
                                var linterid = data1.data[0].hmainid
                                layer.open({
                                    type: 2
                                    , area: ['100%', '100%']
                                    , title: '编辑其他应收单'
                                    , closeBtn: 1
                                    , shade: 0.6 //遮罩透明度
                                    , maxmin: true //允许全屏最小化
                                    , anim: 0 //0-6的动画形式,-1不开启
                                    , content: '../../销售管理/其他应收单/YS_ReceiveOtherBillMain.html?OperationType=3&linterid=' + linterid + '&HSouceBillType=0&closeType=10'
                                    , resize: false,
                                    end: function () {
                                        //刷新页面,
                                        $("#btnSearch").trigger('click');
                                    }
                                    , cancel: function () {
                                    }
                                })
                            } else {
                                layer.close(ajaxLoad);
                                layer.alert(data1.code + data1.Message, { icon: 5 });
                            }
                        }, error: function () {
                            layer.close(ajaxLoad);
                            layer.alert("接口请求失败!", { icon: 5 });
                        }
                    });
                }
                else if (obj.data.单据类型 == "销售退货单") {
                    sWhere += " and å•据号 like '%" + HBillNo + "%'";
                    $.ajax({
                        url: GetWEBURL() + '/Kf_ICStockBackBill/GetKf_ICStockBackBillList',
                        async: false,
                        type: "GET",
                        data: { "sWhere": sWhere, "user": sessionStorage["HUserName"] },
                        success: function (data1) {
                            if (data1.count == 1) {
                                var linterid = data1.data[0].hmainid
                                layer.open({
                                    type: 2
                                    , area: ['100%', '100%']
                                    , title: '编辑销售退货单'
                                    , closeBtn: 1
                                    , shade: 0.6 //遮罩透明度
                                    , maxmin: true //允许全屏最小化
                                    , anim: 0 //0-6的动画形式,-1不开启
                                    , content: '../../销售管理/销售退货单/Kf_ICStockBackBill.html?OperationType=3&linterid=' + linterid + '&HSouceBillType=0&closeType=10'
                                    , resize: false,
                                    end: function () {
                                        //刷新页面,
                                        $("#btnSearch").trigger('click');
                                    }
                                    , cancel: function () {
                                    }
                                })
                            } else {
                                layer.close(ajaxLoad);
                                layer.alert(data1.code + data1.Message, { icon: 5 });
                            }
                        }, error: function () {
                            layer.close(ajaxLoad);
                            layer.alert("接口请求失败!", { icon: 5 });
                        }
                    });
                }
                
            });
            //#endregion