yl
2022-11-25 e81a7b4c19dacd486a74a463b24107a9ee92d342
VueWebApi/Controllers/ProductionManagementController.cs
@@ -17,7 +17,7 @@
{
    [RoutePrefix(prefix: "api/ProductionManagement")]
    [ControllerGroup("生产管理", "在线接口")]
    //[ChannelActionFilter]
    [ChannelActionFilter]
    public class ProductionManagementController : ApiController
    {
        //定义全局信息返回变量
@@ -87,8 +87,9 @@
            string markqty = obj["markqty"].ToString(); //下单数量
            string ordernum = obj["ordernum"].ToString(); //下单单数
            string relse_qty = obj["relse_qty"].ToString(); //已下单数量
            string saleOrderDeliveryDate = obj["saleOrderDeliveryDate"].ToString(); //交付时间
            var username = HttpContext.Current.Request.Cookies["admin"].Value.ToString(); //操作人员
            mes = ProductionManagementBLL.MarkSaveErpOrder(erporderid,erpordercode, partcode, wkshopcode, warehousecode, erpqty, markqty, ordernum, relse_qty, username);
            mes = ProductionManagementBLL.MarkSaveErpOrder(erporderid,erpordercode, partcode, wkshopcode, warehousecode, erpqty, markqty, ordernum, relse_qty, saleOrderDeliveryDate, username);
            return TJson.toJson(mes);
        }
        #endregion
@@ -184,6 +185,21 @@
        public HttpResponseMessage SelectRouteStep(string routecode)
        {
            mes = ProductionManagementBLL.SelectRouteStep(routecode);
            return TJson.toJson(mes);
        }
        #endregion
        #region【生产管理、工单新增、编辑时,选择排程是时获取物料清单版本号】
        /// <summary>
        /// 生产管理、工单新增、编辑时,选择排程是时获取物料清单版本号
        /// </summary>
        /// <param name="partnumber">产品编码</param>
        /// <returns></returns>
        [Route(template: "JobCreationSonAddVison")]
        [HttpGet]
        public HttpResponseMessage JobCreationSonAddVison(string partnumber)
        {
            mes = ProductionManagementBLL.JobCreationSonAddVison(partnumber);
            return TJson.toJson(mes);
        }
        #endregion
@@ -709,6 +725,7 @@
        #endregion
        #region[产能规划方案设置查询]
        /// <summary>
        /// 产能规划方案设置查询