| | |
| | | icon: 1, |
| | | time: 500 //2秒关闭(如果不配置,默认是3秒) |
| | | }, function () { |
| | | $.cookie('token', res.data); |
| | | $.cookie('token', res.data,{ path: '/' }); |
| | | //回调 |
| | | location.href="/View/index.html"; |
| | | }); |
| | |
| | | } |
| | | |
| | | function isTokenExpired(token) { |
| | | if(token==undefined||token==''){ |
| | | return true; |
| | | } |
| | | const tokenParts = token.split('.'); |
| | | if (tokenParts.length !== 3) { |
| | | return true; // JWT 格式不正确 |
| | |
| | | throw new Exception("请选择所属仓库"); |
| | | } |
| | | //验证是否为平库入库 |
| | | if (houseNo == "W02") |
| | | var houseType = Db.Queryable<SysWareHouse>().First(a => a.WareHouseNo == houseNo);//获取仓库类型 |
| | | //验证是否为平库入库 |
| | | if (houseType.Type == "2") |
| | | { |
| | | throw new Exception("平库请使用PDA手持进行平库入库"); |
| | | } |
| | |
| | | /// Nullable:True |
| | | /// </summary> |
| | | public string LotNo {get;set;} |
| | | /// <summary> |
| | | /// Desc:储位地址 |
| | | /// Default: |
| | | /// Nullable:True |
| | | /// </summary> |
| | | public string LocatNo { get; set; } |
| | | |
| | | |
| | | /// <summary> |
| | | /// Desc:批次描述 |
| | |
| | | { |
| | | return "不允许过频繁执行任务!"; |
| | | } |
| | | throw Oops.Bah("测试异常"); |
| | | return await scheduler.AddScheduleJobAsync(entity); |
| | | } |
| | | |