username@email.com
2024-06-27 3fc58aef2f6f47c4a356df23479e3becca630177
CoreCms.Net.Web.Admin/Controllers/baifenbingfa/PuhuoController.cs
@@ -639,7 +639,7 @@
            //获取商品分类
            var categories = await _coreCmsGoodsCategoryServices.QueryListByClauseAsync(p => p.isShow, p => p.sort, OrderByType.Asc, true, true);
            var distributions = await _coreCmsDistributionServices.QueryListByClauseAsync(p => p.isDelete == false && p.verifyStatus == 1, p => p.createTime, OrderByType.Desc, true, true);
            var distributions = await _coreCmsDistributionServices.QueryListByClauseAsync(p => p.isDelete == false && p.verifyStatus == 1 && p.profession == "校园代理", p => p.createTime , OrderByType.Desc, true, true);
           var categoriesnew = departmentRecursion(0, categories,"--");
@@ -903,6 +903,19 @@
                return jm;
            }
            model.jintui = entity.jintui;
            if(model.jintui == 1)
            {
                model.tiaozhengbiaoti = "铺货数量";
            }
            else if (model.jintui == 2)
            {
                model.tiaozhengbiaoti = "退货数量";
            }
            else if (model.jintui == 3)
            {
                model.tiaozhengbiaoti = "调整数量";
            }
            jm.code = 0;
            jm.data = model;
@@ -934,7 +947,8 @@
                var puhuo = await _PuhuoServices.QueryByIdAsync(entity.id);
                var aaaa = puhuo.shoukuannums ?? 0;
                if ( puhuo.nums < (aaaa + entity.shoukuannums))
                if ( puhuo.nums < entity.shoukuannums)
                {
                    jm.msg = "收款数量大于铺货数量,不能提交";
                    return jm;
@@ -965,7 +979,8 @@
                puhuoShoukuan.upDataTime = DateTime.Now;
                jm = await _puhuoShoukuanServices.InsertAsync(puhuoShoukuan);
                puhuo.nums = puhuo.nums - entity.shoukuannums.Value;
                puhuo.amount = new decimal(puhuo.nums)  * puhuo.price;
                puhuo.upDataBy = _user.Name;
                puhuo.upDataTime = DateTime.Now;
                var sss = puhuo.shoukuannums ?? 0;