| | |
| | | //"ConnectionString": "PORT=5432;DATABASE=xxx;HOST=localhost;PASSWORD=xxx;USER ID=xxx", // PostgreSQL 库连接字符串 |
| | | //"ConnectionString": "Server=localhost;Database=xxx;Uid=xxx;Pwd=xxx;SslMode=None;", // MySql 库连接字符串", |
| | | //"ConnectionString": "User Id=xxx; Password=xxx; Data Source=(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=ORCL)))", // Oracle 库连接字符串 |
| | | "ConnectionString": "Server=10.18.99.10;Database=WCSnet6;User Id=sa;Password=sql2024;", // SqlServer 库连接字符串 |
| | | //"ConnectionString": "Server=192.168.62.200;Database=WCSnet6;User Id=sa;Password=sql2019;", // SqlServer 库连接字符串 |
| | | //"ConnectionString": "Server=10.18.99.10;Database=WCSnet6;User Id=sa;Password=sql2024;", // SqlServer 库连接字符串 |
| | | "ConnectionString": "Server=192.168.62.200;Database=WCSnet6;User Id=sa;Password=sql2019;", // SqlServer 库连接字符串 |
| | | |
| | | |
| | | //"SlaveConnectionConfigs": [ // 读写分离/主从 |
| | |
| | | /// 数量 |
| | | /// </summary> |
| | | [SugarColumn(ColumnName = "Qty", ColumnDescription = "数量")] |
| | | public int? Qty { get; set; } |
| | | public decimal? Qty { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 拆垛数量 |
| | | /// </summary> |
| | | [SugarColumn(ColumnName = "CompleteQty", ColumnDescription = "拆垛数量")] |
| | | public int? CompleteQty { get; set; } |
| | | public decimal? CompleteQty { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 是否绑定 |
| | |
| | | /// </summary> |
| | | [SugarColumn(ColumnName = "IsBale", ColumnDescription = "是否裹包")] |
| | | public string IsBale { get; set; } |
| | | |
| | | |
| | | /// <summary> |
| | | /// 单据号 |
| | | /// </summary> |
| | | [SugarColumn(ColumnName = "OrderNo", ColumnDescription = "单据号", Length = 20)] |
| | | public string? OrderNo { get; set; } |
| | | |
| | | } |
| | |
| | | public string Qty { get; set; } |
| | | |
| | | public string CompleteQty { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 单据号 |
| | | /// </summary> |
| | | public string OrderNo { get; set; } |
| | | |
| | | |
| | | } |
| | |
| | | } |
| | | Enum type; |
| | | var bale = "0"; |
| | | var nqty = "0"; |
| | | var ncomqty = "0"; |
| | | decimal nqty = 0; |
| | | decimal ncomqty = 0; |
| | | if (models.TaskType == "0" ) |
| | | { |
| | | type = TaskTypeEnum.In; |
| | |
| | | } |
| | | if (!string.IsNullOrEmpty( models.Qty)) |
| | | { |
| | | nqty = models.Qty; |
| | | nqty =Convert.ToDecimal(models.Qty); |
| | | } |
| | | if (!string.IsNullOrEmpty(models.CompleteQty)) |
| | | { |
| | | nqty = models.CompleteQty; |
| | | ncomqty = Convert.ToDecimal(models.CompleteQty); |
| | | } |
| | | //新增任务 |
| | | var taskAdd = new WcsTask() |
| | |
| | | //IsSuccess =TaskSuccessEnum.Success, |
| | | Levels = 999, |
| | | Origin = "WMS", |
| | | StartRoadway= models.StartRoadway, |
| | | StartRoadway = models.StartRoadway, |
| | | StartLocate = models.StartLocate, |
| | | EndLocate = models.EndLocate, |
| | | EndRoadway= models.EndRoadway, |
| | | EndRoadway = models.EndRoadway, |
| | | PalletNo = models.PalletNo, |
| | | IsBale = bale, |
| | | |
| | | |
| | | LotNo = models.LotNo, |
| | | SkuName = models.SkuName, |
| | | Qty = int.Parse(nqty), |
| | | CompleteQty = int.Parse(ncomqty) |
| | | Qty = nqty, |
| | | CompleteQty = ncomqty, |
| | | |
| | | OrderNo = models.OrderNo |
| | | }; |
| | | _db.Insertable(taskAdd).ExecuteCommand(); |
| | | |
| | |
| | | /// </summary> |
| | | public string? Origin { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 单据号 |
| | | /// </summary> |
| | | public string? OrderNo { get; set; } |
| | | |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | /// 完成时间 |
| | | /// </summary> |
| | | public DateTime? FinishDate { get; set; } |
| | | |
| | | |
| | | /// <summary> |
| | | /// 单据号 |
| | | /// </summary> |
| | | public string? OrderNo { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 最后写入流程控制字值 |
| | | /// </summary> |
| | |
| | | u.TaskNo.Contains(input.SearchKey) |
| | | ) |
| | | .WhereIF(!string.IsNullOrWhiteSpace(input.TaskNo), u => u.TaskNo.Contains(input.TaskNo.Trim())) |
| | | .WhereIF(!string.IsNullOrWhiteSpace(input.OrderNo), u => u.OrderNo.Contains(input.OrderNo.Trim())) |
| | | .WhereIF(input.TaskType.HasValue, u => u.TaskType == input.TaskType) |
| | | .WhereIF(input.Status.HasValue, u => u.Status == input.Status) |
| | | .WhereIF(!string.IsNullOrWhiteSpace(input.PalletNo), u => u.PalletNo.Contains(input.PalletNo.Trim())) |
| | |
| | | TaskNo = result.TaskList.TaskNo, |
| | | Levels = 999, |
| | | EndLocate = result.TaskList.EndLocate, |
| | | EndRoadway = result.TaskList.EndRoadway |
| | | EndRoadway = result.TaskList.EndRoadway, |
| | | OrderNo=result.TaskList.OrderNo |
| | | }; |
| | | |
| | | _db.Insertable(taskAdd).ExecuteCommand(); |
| | |
| | | </el-col> |
| | | <el-col :xs="24" :sm="12" :md="12" :lg="8" :xl="4" class="mb10" v-if="showAdvanceQueryUI"> |
| | | <el-form-item label="任务号"> |
| | | <el-input v-model="queryParams.taskNo" clearable="" placeholder=" " /> |
| | | <el-input v-model="queryParams.taskNo" clearable="" placeholder="请输入任务号" /> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :xs="24" :sm="12" :md="12" :lg="8" :xl="4" class="mb10" v-if="showAdvanceQueryUI"> |
| | |
| | | <el-col :xs="24" :sm="12" :md="12" :lg="8" :xl="4" class="mb10" v-if="showAdvanceQueryUI"> |
| | | <el-form-item label="托盘号"> |
| | | <el-input v-model="queryParams.palletNo" clearable="" placeholder="请输入托盘号" /> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :xs="24" :sm="12" :md="12" :lg="8" :xl="4" class="mb10" v-if="showAdvanceQueryUI"> |
| | | <el-form-item label="单据号"> |
| | | <el-input v-model="queryParams.orderNo" clearable="" placeholder="请输入单据号" /> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :xs="24" :sm="12" :md="12" :lg="8" :xl="4" class="mb10" v-if="showAdvanceQueryUI"> |
| | |
| | | <el-table-column prop="startLocate" label="起始位置" show-overflow-tooltip="" /> |
| | | <el-table-column prop="endLocate" label="结束位置" show-overflow-tooltip="" /> |
| | | <el-table-column prop="palletNo" label="托盘号" show-overflow-tooltip="" /> |
| | | <el-table-column prop="orderNo" label="单据号" show-overflow-tooltip="" /> |
| | | <el-table-column prop="qty" label="拆垛箱数" show-overflow-tooltip="" /> |
| | | <el-table-column prop="palletQty" label="整跺箱数" show-overflow-tooltip="" /> |
| | | <el-table-column prop="lotNo" label="批次号" show-overflow-tooltip="" /> |
| | | <el-table-column prop="skuNo" label="物料编码" show-overflow-tooltip="" /> |
| | | <el-table-column prop="skuName" label="物料名称" show-overflow-tooltip="" /> |
| | | <el-table-column prop="skuName" label="物料名称" show-overflow-tooltip="" /> |
| | | <el-table-column prop="unstackingMode" width="100" label="拆垛方式" show-overflow-tooltip=""> |
| | | <template #default="scope"> |
| | | <span v-if="scope.row.unstackingMode"> |