wet 2 years ago
commit 1e8cbf1703

@ -4989,11 +4989,12 @@
<param name="carrierId">船公司ID</param>
<returns>返回适用的路由枚举</returns>
</member>
<member name="M:Myshipping.Application.BookingOrderService.OcrUpFile(Microsoft.AspNetCore.Http.IFormFile)">
<member name="M:Myshipping.Application.BookingOrderService.OcrUpFile(Microsoft.AspNetCore.Http.IFormFile,System.Int64)">
<summary>
上传ocr文件
</summary>
<param name="file"></param>
<param name="bookingId">订舱id</param>
<returns></returns>
</member>
<member name="M:Myshipping.Application.BookingOrderService.OcrGetImg(System.String,System.Single)">

@ -745,7 +745,7 @@ namespace Myshipping.Application
[HttpPost("/BookingOrder/AddFile")]
public async Task AddFile(IFormFile file, [FromForm] BookingFileDto dto)
{
//未上传打印模板文件
//未上传文件
if (file == null || file.Length == 0)
{
throw Oops.Bah(BookingErrorCode.BOOK200);
@ -893,8 +893,8 @@ namespace Myshipping.Application
{
BusinessId = BusinessId,
MBLNO = MBLNO,
YARD = YARD==""?null: YARD,
YardCode = YARDID == ""? null: YARDID,
YARD = YARD == "" ? null : YARD,
YardCode = YARDID == "" ? null : YARDID,
CARRIER = CARRIER == "" ? null : CARRIER,
CARRIERID = CARRIERID == "" ? null : CARRIERID,
isBook = isbook
@ -2807,9 +2807,10 @@ namespace Myshipping.Application
/// 上传ocr文件
/// </summary>
/// <param name="file"></param>
/// <param name="bookingId">订舱id</param>
/// <returns></returns>
[HttpPost("/BookingOrder/OcrUpFile")]
public async Task<string> OcrUpFile(IFormFile file)
public async Task<string> OcrUpFile(IFormFile file, long bookingId)
{
//未上传文件
if (file == null || file.Length == 0)
@ -2817,6 +2818,14 @@ namespace Myshipping.Application
throw Oops.Bah("未上传文件");
}
//保存到订舱
await AddFile(file, new BookingFileDto()
{
BookingId = bookingId,
TypeCode = "other",
TypeName = "其他"
});
var originalFilename = file.FileName; // 文件原始名称
var fileSuffix = Path.GetExtension(file.FileName).ToLower(); // 文件后缀

@ -99,5 +99,38 @@ namespace Myshipping.Core.Entity
/// 备注
/// </summary>
public string Remark { get; set; }
/// <summary>
/// 操作id
/// </summary>
public string OPID { get; set; }
/// <summary>
/// 单证id
/// </summary>
public string DOCID { get; set; }
/// <summary>
/// 操作
/// </summary>
public string OP { get; set; }
/// <summary>
/// 单证
/// </summary>
public string DOC { get; set; }
/// <summary>
/// 销售ID
/// </summary>
public string SALEID { get; set; }
/// <summary>
/// 销售
/// </summary>
public string SALE { get; set; }
/// <summary>
/// 客服ID
/// </summary>
public string CUSTSERVICEID { get; set; }
/// <summary>
/// 客服
/// </summary>
public string CUSTSERVICE { get; set; }
}
}

@ -1704,6 +1704,46 @@
备注
</summary>
</member>
<member name="P:Myshipping.Core.Entity.DjyCustomer.OPID">
<summary>
操作id
</summary>
</member>
<member name="P:Myshipping.Core.Entity.DjyCustomer.DOCID">
<summary>
单证id
</summary>
</member>
<member name="P:Myshipping.Core.Entity.DjyCustomer.OP">
<summary>
操作
</summary>
</member>
<member name="P:Myshipping.Core.Entity.DjyCustomer.DOC">
<summary>
单证
</summary>
</member>
<member name="P:Myshipping.Core.Entity.DjyCustomer.SALEID">
<summary>
销售ID
</summary>
</member>
<member name="P:Myshipping.Core.Entity.DjyCustomer.SALE">
<summary>
销售
</summary>
</member>
<member name="P:Myshipping.Core.Entity.DjyCustomer.CUSTSERVICEID">
<summary>
客服ID
</summary>
</member>
<member name="P:Myshipping.Core.Entity.DjyCustomer.CUSTSERVICE">
<summary>
客服
</summary>
</member>
<member name="T:Myshipping.Core.Entity.DjyCustomerContact">
<summary>
@ -9053,11 +9093,12 @@
<param name="customerId"></param>
<returns></returns>
</member>
<member name="M:Myshipping.Core.Service.DjyCustomerService.Suggest(System.String)">
<member name="M:Myshipping.Core.Service.DjyCustomerService.Suggest(System.String,System.String)">
<summary>
下拉筛选
</summary>
<param name="keyword">关键字</param>
<param name="type">类型参考字典参数客户属性djy_cust_prop</param>
<returns></returns>
</member>
<member name="T:Myshipping.Core.Service.DjyCustomerContactDto">
@ -9550,6 +9591,46 @@
备注
</summary>
</member>
<member name="P:Myshipping.Core.Service.DjyCustomerInput.OPID">
<summary>
操作id
</summary>
</member>
<member name="P:Myshipping.Core.Service.DjyCustomerInput.DOCID">
<summary>
单证id
</summary>
</member>
<member name="P:Myshipping.Core.Service.DjyCustomerInput.OP">
<summary>
操作
</summary>
</member>
<member name="P:Myshipping.Core.Service.DjyCustomerInput.DOC">
<summary>
单证
</summary>
</member>
<member name="P:Myshipping.Core.Service.DjyCustomerInput.SALEID">
<summary>
销售ID
</summary>
</member>
<member name="P:Myshipping.Core.Service.DjyCustomerInput.SALE">
<summary>
销售
</summary>
</member>
<member name="P:Myshipping.Core.Service.DjyCustomerInput.CUSTSERVICEID">
<summary>
客服ID
</summary>
</member>
<member name="P:Myshipping.Core.Service.DjyCustomerInput.CUSTSERVICE">
<summary>
客服
</summary>
</member>
<member name="T:Myshipping.Core.Service.AddDjyCustomerInput">
<summary>
订舱客户新增输入参数

@ -175,13 +175,15 @@ namespace Myshipping.Core.Service
/// 下拉筛选
/// </summary>
/// <param name="keyword">关键字</param>
/// <param name="type">类型参考字典参数客户属性djy_cust_prop</param>
/// <returns></returns>
[HttpGet("/DjyCustomer/Suggest")]
public async Task<dynamic> Suggest(string keyword)
public async Task<dynamic> Suggest(string keyword, string type)
{
List<long> userlist = await DataFilterExtensions.GetDataScopeIdList();
var entities = await _rep.AsQueryable().Filter(null, true)
.Where(x => x.TenantId == UserManager.TENANT_ID)
.WhereIF(!string.IsNullOrWhiteSpace(type), u => u.PropString.Contains(type))
.WhereIF(!string.IsNullOrWhiteSpace(keyword), u => u.CodeName.Contains(keyword) || u.ShortName.Contains(keyword))
.ToPagedListAsync(1, 10);
return entities.XnPagedResult();

@ -125,6 +125,39 @@ namespace Myshipping.Core.Service
/// </summary>
public virtual string Remark { get; set; }
/// <summary>
/// 操作id
/// </summary>
public string OPID { get; set; }
/// <summary>
/// 单证id
/// </summary>
public string DOCID { get; set; }
/// <summary>
/// 操作
/// </summary>
public string OP { get; set; }
/// <summary>
/// 单证
/// </summary>
public string DOC { get; set; }
/// <summary>
/// 销售ID
/// </summary>
public string SALEID { get; set; }
/// <summary>
/// 销售
/// </summary>
public string SALE { get; set; }
/// <summary>
/// 客服ID
/// </summary>
public string CUSTSERVICEID { get; set; }
/// <summary>
/// 客服
/// </summary>
public string CUSTSERVICE { get; set; }
public List<AddDjyCustomerContactInput> Contacts { get; set; }
}

Loading…
Cancel
Save