|
|
|
using IndustrialControl.Models;
|
|
|
|
using IndustrialControl.ViewModels;
|
|
|
|
using System.Net.Http;
|
|
|
|
using System.Text;
|
|
|
|
using System.Text.Json;
|
|
|
|
using System.Text.Json.Nodes;
|
|
|
|
using System.Text.Json.Serialization;
|
|
|
|
|
|
|
|
namespace IndustrialControl.Services;
|
|
|
|
|
|
...
|
...
|
@@ -153,8 +151,8 @@ public sealed class InboundMaterialService : IInboundMaterialService |
|
|
|
orderType: x.orderType ?? "",
|
|
|
|
orderTypeName: x.orderTypeName ?? "",
|
|
|
|
purchaseNo: x.purchaseNo ?? "",
|
|
|
|
arrivalNo: x.arrivalNo ?? "",
|
|
|
|
supplierName: x.supplierName ?? "",
|
|
|
|
arrivalNo: x.arrivalNo ?? "",
|
|
|
|
workOrderNo: x.workOrderNo ?? "",
|
|
|
|
materialName: x.materialName ?? "",
|
|
|
|
instockQty: ToInt(x.instockQty),
|
|
...
|
...
|
@@ -220,8 +218,8 @@ public sealed class InboundMaterialService : IInboundMaterialService |
|
|
|
MaterialName: (x.materialName ?? string.Empty).Trim(),
|
|
|
|
Qty: ToInt(x.qty),
|
|
|
|
Spec: (x.spec ?? string.Empty).Trim(),
|
|
|
|
ScanStatus :x.scanStatus ?? false,
|
|
|
|
WarehouseCode :x.warehouseCode?.Trim()
|
|
|
|
ScanStatus: x.scanStatus ?? false,
|
|
|
|
WarehouseCode: x.warehouseCode?.Trim()
|
|
|
|
)).ToList();
|
|
|
|
|
|
|
|
return list;
|
|
...
|
...
|
@@ -452,25 +450,25 @@ public sealed class InboundMaterialService : IInboundMaterialService |
|
|
|
|
|
|
|
// ====== DTO(按接口示例字段) ======
|
|
|
|
public class GetInStockReq
|
|
|
|
{
|
|
|
|
{
|
|
|
|
public string? createdTime { get; set; }
|
|
|
|
public string? endTime { get; set; }
|
|
|
|
public string? instockNo { get; set; }
|
|
|
|
public string? orderType { get; set; }
|
|
|
|
public string? startTime { get; set; }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public class GetInStockResp
|
|
|
|
{
|
|
|
|
public class GetInStockResp
|
|
|
|
{
|
|
|
|
public int code { get; set; }
|
|
|
|
public long costTime { get; set; }
|
|
|
|
public string? message { get; set; }
|
|
|
|
public bool success { get; set; }
|
|
|
|
public List<GetInStockItem>? result { get; set; }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public class GetInStockItem
|
|
|
|
{
|
|
|
|
public class GetInStockItem
|
|
|
|
{
|
|
|
|
public string? arrivalNo { get; set; }
|
|
|
|
public string? createdTime { get; set; }
|
|
|
|
public string? instockId { get; set; }
|
|
...
|
...
|
@@ -478,7 +476,7 @@ public class GetInStockReq |
|
|
|
public string? orderType { get; set; }
|
|
|
|
public string? purchaseNo { get; set; }
|
|
|
|
public string? supplierName { get; set; }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
public sealed class GetInStockDetailResp
|
|
|
|
{
|
|
|
|
public bool success { get; set; }
|
|
...
|
...
|
@@ -504,55 +502,55 @@ public sealed class GetInStockDetailItem |
|
|
|
|
|
|
|
|
|
|
|
public class ScanRow
|
|
|
|
{
|
|
|
|
{
|
|
|
|
public string? barcode { get; set; }
|
|
|
|
public string? instockId { get; set; }
|
|
|
|
public string? location { get; set; }
|
|
|
|
public string? materialName { get; set; }
|
|
|
|
public string? qty { get; set; }
|
|
|
|
public string? spec { get; set; }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public class ScanByBarcodeResp
|
|
|
|
{
|
|
|
|
public class ScanByBarcodeResp
|
|
|
|
{
|
|
|
|
public int code { get; set; }
|
|
|
|
public long costTime { get; set; }
|
|
|
|
public string? message { get; set; }
|
|
|
|
public object? result { get; set; } // 文档里 result 只是 bool/无结构,这里占位
|
|
|
|
public bool success { get; set; }
|
|
|
|
}
|
|
|
|
public class ScanConfirmResp
|
|
|
|
{
|
|
|
|
}
|
|
|
|
public class ScanConfirmResp
|
|
|
|
{
|
|
|
|
public int code { get; set; }
|
|
|
|
public long costTime { get; set; }
|
|
|
|
public string? message { get; set; }
|
|
|
|
public object? result { get; set; }
|
|
|
|
public bool success { get; set; }
|
|
|
|
}
|
|
|
|
public class CancelScanResp
|
|
|
|
{
|
|
|
|
}
|
|
|
|
public class CancelScanResp
|
|
|
|
{
|
|
|
|
public int code { get; set; }
|
|
|
|
public long costTime { get; set; }
|
|
|
|
public string? message { get; set; }
|
|
|
|
public object? result { get; set; }
|
|
|
|
public bool success { get; set; }
|
|
|
|
}
|
|
|
|
public class ConfirmResp
|
|
|
|
{
|
|
|
|
}
|
|
|
|
public class ConfirmResp
|
|
|
|
{
|
|
|
|
public int code { get; set; }
|
|
|
|
public long costTime { get; set; }
|
|
|
|
public string? message { get; set; }
|
|
|
|
public bool? result { get; set; }
|
|
|
|
public bool? success { get; set; }
|
|
|
|
}
|
|
|
|
public class JudgeScanAllResp
|
|
|
|
{
|
|
|
|
}
|
|
|
|
public class JudgeScanAllResp
|
|
|
|
{
|
|
|
|
public int code { get; set; }
|
|
|
|
public long costTime { get; set; }
|
|
|
|
public string? message { get; set; }
|
|
|
|
public bool success { get; set; }
|
|
|
|
public bool? result { get; set; } // 文档中为布尔
|
|
|
|
}
|
|
|
|
}
|
|
|
|
public class GetInStockPageResp
|
|
|
|
{
|
|
|
|
public int code { get; set; }
|
...
|
...
|
|