diff --git a/WarehouseMgr/Tnb.WarehouseMgr/WmsBindService.cs b/WarehouseMgr/Tnb.WarehouseMgr/WmsBindService.cs
index 4d26d13a..6286a05b 100644
--- a/WarehouseMgr/Tnb.WarehouseMgr/WmsBindService.cs
+++ b/WarehouseMgr/Tnb.WarehouseMgr/WmsBindService.cs
@@ -52,7 +52,6 @@ namespace Tnb.WarehouseMgr
///
///
///
- [HttpPost]
public async Task WmsBind(VisualDevModelDataCrInput input)
{
var isOk = false;
diff --git a/WarehouseMgr/Tnb.WarehouseMgr/WmsCarryUnbindService.cs b/WarehouseMgr/Tnb.WarehouseMgr/WmsCarryUnbindService.cs
index 2635baee..5ad45372 100644
--- a/WarehouseMgr/Tnb.WarehouseMgr/WmsCarryUnbindService.cs
+++ b/WarehouseMgr/Tnb.WarehouseMgr/WmsCarryUnbindService.cs
@@ -51,7 +51,6 @@ namespace Tnb.WarehouseMgr
_wareHouseService = wareHouseService;
OverideFuncs.CreateAsync = CarryUnbind;
}
- [HttpPost]
private async Task CarryUnbind(VisualDevModelDataCrInput input)
{
var isOk = false;
diff --git a/WarehouseMgr/Tnb.WarehouseMgr/WmsPDACarryReplaceService.cs b/WarehouseMgr/Tnb.WarehouseMgr/WmsPDACarryReplaceService.cs
index 9ada5a0b..1a3c8042 100644
--- a/WarehouseMgr/Tnb.WarehouseMgr/WmsPDACarryReplaceService.cs
+++ b/WarehouseMgr/Tnb.WarehouseMgr/WmsPDACarryReplaceService.cs
@@ -140,6 +140,12 @@ namespace Tnb.WarehouseMgr
carryObj.source_id = null;
carryObj.source_code = null;
row = await _db.Updateable(carryObj).ExecuteCommandAsync();
+ //删除载具明细
+ await _db.Deleteable().Where(it => it.carry_id == carryObj.id).ExecuteCommandHasChangeAsync();
+ //删除载具分拣物料明细
+ await _db.Deleteable().Where(it => it.carry_id == carryObj.id).ExecuteCommandHasChangeAsync();
+ //删除载具条码
+ await _db.Deleteable().Where(it => it.carry_id == carryObj.id).ExecuteCommandHasChangeAsync();
}
catch (Exception ex)
{
diff --git a/WarehouseMgr/Tnb.WarehouseMgr/WmsPDAFeedingService.cs b/WarehouseMgr/Tnb.WarehouseMgr/WmsPDAFeedingService.cs
index c38cd6f9..eb6ecc23 100644
--- a/WarehouseMgr/Tnb.WarehouseMgr/WmsPDAFeedingService.cs
+++ b/WarehouseMgr/Tnb.WarehouseMgr/WmsPDAFeedingService.cs
@@ -43,7 +43,7 @@ namespace Tnb.WarehouseMgr
_wmsCarryService = wmsCarryService;
OverideFuncs.CreateAsync = WmsPDAFeeding;
}
- [HttpPost]
+
private async Task WmsPDAFeeding(VisualDevModelDataCrInput input)
{
var isOk = false;
@@ -131,6 +131,12 @@ namespace Tnb.WarehouseMgr
carryObj.source_id = null;
carryObj.source_code = null;
row = await _db.Updateable(carryObj).ExecuteCommandAsync();
+ //删除载具明细
+ await _db.Deleteable().Where(it => it.carry_id == carryObj.id).ExecuteCommandHasChangeAsync();
+ //删除载具分拣物料明细
+ await _db.Deleteable().Where(it => it.carry_id == carryObj.id).ExecuteCommandHasChangeAsync();
+ //删除载具条码
+ await _db.Deleteable().Where(it => it.carry_id == carryObj.id).ExecuteCommandHasChangeAsync();
}
catch (Exception ex)
{
@@ -171,7 +177,7 @@ namespace Tnb.WarehouseMgr
///
///
///
-
+ [HttpGet]
public async Task GetCarryCodeList([FromRoute] string carryId)
{
if (dicMaterial.Count < 1)