出库,散料 箱子回库逻辑
分解订单 排除入库锁定库存
This commit is contained in:
1 parent
1365920fee
commit
0269655891
5 files changed
+34
-16
No files matched your search
@@ -93,7 +93,7 @@ public class ShipOutController : BaseController
|
||||
if (list.Count() == 0)
|
||||
{
|
||||
var Sation = _unitWork.Find<Location>(x => x.Code == station).FirstOrDefault();
|
||||
if (Sation != null)
|
||||
if (Sation != null && Sation.Type == "L")
|
||||
{
|
||||
Sation.ContainerCode = "";
|
||||
Sation.Height = 0;
|
||||
@@ -125,8 +125,12 @@ public class ShipOutController : BaseController
|
||||
{
|
||||
return JsonMore(null, 500, $"站台{boxCode}不存在,无法回库!");
|
||||
}
|
||||
if (string.IsNullOrEmpty(station.ContainerCode))
|
||||
{
|
||||
return JsonMore(null, 500, $"{boxCode}站台没有料箱,无法入库!");
|
||||
}
|
||||
//判断是否拣货完成
|
||||
if(_unitWork.IsExit<Inventory>(x => x.LocationCode.Equals(station.Code)))
|
||||
if (_unitWork.IsExit<Inventory>(x => x.LocationCode.Equals(station.Code)))
|
||||
{
|
||||
return JsonMore(null, 500, $"站台{boxCode}存在未拣货物料,无法回库!");
|
||||
}
|
||||
@@ -152,7 +156,7 @@ public class ShipOutController : BaseController
|
||||
ZoneCode = ZoneCodeEnum.散料库,
|
||||
TaskNo = _unitWork.GetSerialNumber("CIn"),
|
||||
TaskType = TaskTypeEnum.散料盒入库,
|
||||
ContainerCode = station.ContainerCode,
|
||||
ContainerCode = toLocation.Code,
|
||||
FromLocation = station.Code,
|
||||
ToLocation = toLocation.Code,
|
||||
Status = TaskStatusEnum.待下发,
|
||||
|
||||
@@ -39,7 +39,7 @@
|
||||
<el-row :gutter="20">
|
||||
<el-col :span="24">
|
||||
<el-form-item label="唯一码" prop="uniqueCode">
|
||||
<el-input v-model="form.uniqueCode" ref="uniqueCode"></el-input>
|
||||
<el-input v-model="form.uniqueCode" ref="uniqueCode" readonly></el-input>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
@@ -67,7 +67,7 @@
|
||||
</el-form-item>
|
||||
</el-row>
|
||||
|
||||
<el-row v-show="form.type=='slbox'">
|
||||
<el-row v-show="showBack">
|
||||
<el-divider></el-divider>
|
||||
<el-form-item style="float: right">
|
||||
<el-button type="primary" @@click="back">回库</el-button>
|
||||
@@ -98,8 +98,8 @@
|
||||
{ label: "唯一码", value: "uniqueCode" },
|
||||
],
|
||||
invTable:[],
|
||||
showTable: false
|
||||
|
||||
showTable: false,
|
||||
showBack: false
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
@@ -114,6 +114,10 @@
|
||||
select(data) {
|
||||
this.form.code = "";
|
||||
this.form.type = data;
|
||||
if (data == "slbox")
|
||||
this.showBack = true;
|
||||
else
|
||||
this.showBack = fasle;
|
||||
},
|
||||
// 扫描料塔站台号
|
||||
scanCode(data) {
|
||||
|
||||
Reference in new issue
Block a user