From 7b6a3fab34e4867f011246248ae66b4d75a6eb72 Mon Sep 17 00:00:00 2001
From: yl <ykxkd@outlook.com>
Date: 星期四, 01 六月 2023 20:49:58 +0800
Subject: [PATCH] 1.生产开包工末道工序传入入库条码 2.App工序检验提交接口修改 3.基本资料增加ERP接口:车间部门、仓库查询、用户信息 4.PC端报工、收料、工序检验提交接口增加入库条码字段 5.系统设置新增:条码规则生成(固定条码)接口 6.DapperHelper增加方法 7.增加App图标图片
---
VueWebApi/Tools/LabCodeStatusMessage.cs | 16 +++++++++++++++-
1 files changed, 15 insertions(+), 1 deletions(-)
diff --git a/VueWebApi/Tools/LabCodeStatusMessage.cs b/VueWebApi/Tools/LabCodeStatusMessage.cs
index fde90e8..b5337de 100644
--- a/VueWebApi/Tools/LabCodeStatusMessage.cs
+++ b/VueWebApi/Tools/LabCodeStatusMessage.cs
@@ -28,7 +28,21 @@
mes.code = "200";
try
{
-
+ //0.鍒ゆ柇鏉$爜鏄惁涓哄綋鍓嶅姛鑳芥壂鎻忔潯鐮�
+ sql = @"select rightcode,hbilltype from T_BarCodeBill where hbarcode=@hbarcode";
+ dynamicParams.Add("@hbarcode", hbarcode);
+ dt = DapperHelper.selectdata(sql, dynamicParams);
+ if (dt.Rows.Count>0)
+ {
+ if (dt.Rows[0]["rightcode"].ToString() != rightcode && dt.Rows[0]["hbilltype"].ToString() != hbilltype)
+ {
+ mes.code = "300";
+ mes.count = 0;
+ mes.Message = "褰撳墠鏉$爜鐘舵�佷笉婊¤冻姝ゅ姛鑳�!";
+ mes.data = null;
+ return mes;
+ }
+ }
//1.鍒ゆ柇褰撳墠鍔熻兘鏉$爜鏄惁涓虹郴缁熺敓鎴愭湁鏁堟潯鐮�
sql = @"select * from T_BarCodeBill where hbarcode=@hbarcode";
dynamicParams.Add("@hbarcode", hbarcode);
--
Gitblit v1.9.3