feat: 完善材料条码与焊接业务功能

This commit is contained in:
2026-08-12 23:10:22 +08:00
parent 5d0501806b
commit 67206a28ee
26 changed files with 800 additions and 814 deletions
@@ -0,0 +1,16 @@
IF COL_LENGTH('dbo.Tw_InputDetailBarCode', 'Quantity') IS NULL
BEGIN
ALTER TABLE dbo.Tw_InputDetailBarCode
ADD Quantity DECIMAL(18, 4) NULL;
END;
GO
-- 历史非管材条码每个代表1件;按米计量的管材数量由扫码业务录入,保持为空。
UPDATE barCode
SET barCode.Quantity = 1
FROM dbo.Tw_InputDetailBarCode AS barCode
LEFT JOIN dbo.HJGL_MaterialCodeLib AS material
ON material.MaterialCode = barCode.MaterialCode
WHERE barCode.Quantity IS NULL
AND ISNULL(LTRIM(RTRIM(material.MaterialUnit)), N'') <> N'';
GO