调整喷码贴标
This commit is contained in:
@@ -498,11 +498,12 @@ namespace Tnb.ProductionMgr
|
||||
/// <returns></returns>
|
||||
public async Task<dynamic> OutPackMarkCheck(MarkingLabelInput input)
|
||||
{
|
||||
string[] arr = input.mark_code.Split("/");
|
||||
string[] arr = input.mark_code.Split("(10)");
|
||||
if (arr.Length > 1)
|
||||
{
|
||||
string mo_task_code = arr[0];
|
||||
PrdMoTask prdMoTask = await _db.Queryable<PrdMoTask>().Where(x => x.mo_task_code == mo_task_code).FirstAsync();
|
||||
string batch = arr[1];
|
||||
PrdMoTask prdMoTask = await _db.Queryable<PrdMoTask>().Where(x => x.batch == batch).FirstAsync();
|
||||
string mo_task_code = prdMoTask.mo_task_code;
|
||||
if (prdMoTask == null) throw Oops.Bah("未找到对应任务单");
|
||||
BasMaterial basMaterial = await _db.Queryable<BasMaterial>().Where(x => x.id == prdMoTask.material_id).FirstAsync();
|
||||
DictionaryDataEntity unit = await _db.Queryable<DictionaryTypeEntity>()
|
||||
@@ -567,11 +568,12 @@ namespace Tnb.ProductionMgr
|
||||
/// <returns></returns>
|
||||
public async Task<dynamic> OutPackLabelCheck(MarkingLabelInput input)
|
||||
{
|
||||
string[] arr = input.mark_code.Split("/");
|
||||
string[] arr = input.label_code.Split("(10)");
|
||||
if (arr.Length > 1)
|
||||
{
|
||||
string mo_task_code = arr[0];
|
||||
PrdMoTask prdMoTask = await _db.Queryable<PrdMoTask>().Where(x => x.mo_task_code == mo_task_code).FirstAsync();
|
||||
string batch = arr[1];
|
||||
PrdMoTask prdMoTask = await _db.Queryable<PrdMoTask>().Where(x => x.batch == batch).FirstAsync();
|
||||
string mo_task_code = prdMoTask.mo_task_code;
|
||||
if (prdMoTask == null) throw Oops.Bah("未找到对应任务单");
|
||||
BasMaterial basMaterial = await _db.Queryable<BasMaterial>().Where(x => x.id == prdMoTask.material_id).FirstAsync();
|
||||
DictionaryDataEntity unit = await _db.Queryable<DictionaryTypeEntity>()
|
||||
|
||||
Reference in New Issue
Block a user