更新工序工价、库存查询、库位、领料、出库明细、入库等仓储模块,新增采购合同入库单移动端设计及SQL脚本

This commit is contained in:
Developer
2026-07-23 08:45:50 +08:00
parent 2b9058c69c
commit 33549c3787
17 changed files with 1124 additions and 46 deletions

View File

@@ -0,0 +1,73 @@
CREATE PROCEDURE [dbo].[_零件工序_取消派工]
@ int = null,
@ int = null,
@ int = null,
@退 int =null,
@ int = null
AS
declare @ int
declare @n int = 0
declare @ nvarchar(50)
declare @ nvarchar(50)
declare @ int
select @= from _零件工序 where =@
select @=+'MP',@ = +'MP' from _零件工艺计划_视图 where = @
select @ = from _出库记录_视图 where = @ AND = @ AND = @
if(@>0)
begin
EXEC _退料入库_执行 @,@,@退
end
update _零件工序 set = ISNULL(,0) - @ where =@
delete from _零件工序_任务分配 where =@
select @n=count(*) from _零件工序_任务分配 where in (select from _零件工序 where =@)
if @n = 0
begin
update _零件工艺计划 set = NULL where =@
end