库存更新
This commit is contained in:
@@ -163,6 +163,11 @@
|
|||||||
<version>20.0</version>
|
<version>20.0</version>
|
||||||
<scope>compile</scope>
|
<scope>compile</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.hynnet</groupId>
|
||||||
|
<artifactId>jxl</artifactId>
|
||||||
|
<version>2.6.12.1</version>
|
||||||
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
<!-- 打包 -->
|
<!-- 打包 -->
|
||||||
|
|||||||
@@ -97,8 +97,11 @@ public class DumpInvTask extends AbstractAcsTask {
|
|||||||
ivtObj.put("weight_unit_uuid", turnOutIvtObj.optString("weight_unit_uuid"));
|
ivtObj.put("weight_unit_uuid", turnOutIvtObj.optString("weight_unit_uuid"));
|
||||||
|
|
||||||
//转出仓位扣减库存
|
//转出仓位扣减库存
|
||||||
ivtService.addIvtFlow(ivtObj, IvtChangeTypeEnum.SUB_IVT_AND_CAN_USE);
|
/*ivtService.addIvtFlow(ivtObj, IvtChangeTypeEnum.SUB_IVT_AND_CAN_USE);
|
||||||
ivtObj.put("struct_uuid", dumpObj.optString("turnin_struct_uuid"));
|
ivtObj.put("struct_uuid", dumpObj.optString("turnin_struct_uuid"));*/
|
||||||
|
WQLObject.getWQLObject("st_ivt_structIvt").delete("struct_uuid = '"+startPoint.getString("point_uuid")+"'");
|
||||||
|
|
||||||
|
|
||||||
//转入仓位加库存
|
//转入仓位加库存
|
||||||
ivtService.addIvtFlow(ivtObj, IvtChangeTypeEnum.ADD_IVT_AND_CAN_USE);
|
ivtService.addIvtFlow(ivtObj, IvtChangeTypeEnum.ADD_IVT_AND_CAN_USE);
|
||||||
|
|
||||||
|
|||||||
@@ -85,7 +85,7 @@ public class OutTask extends AbstractAcsTask {
|
|||||||
throw new BadRequestException("未找到可用点位:" + start_point_code);
|
throw new BadRequestException("未找到可用点位:" + start_point_code);
|
||||||
}
|
}
|
||||||
paramIvt.put("struct_uuid", startPointDto.getPoint_uuid());
|
paramIvt.put("struct_uuid", startPointDto.getPoint_uuid());
|
||||||
ivtService.addIvtFlow(paramIvt, IvtChangeTypeEnum.SUB_IVT);
|
/* ivtService.addIvtFlow(paramIvt, IvtChangeTypeEnum.SUB_IVT);*/
|
||||||
//改变明细表的状态
|
//改变明细表的状态
|
||||||
String billdtl_uuid = disObj.optString("billdtl_uuid");
|
String billdtl_uuid = disObj.optString("billdtl_uuid");
|
||||||
JSONObject dtljson = dtltable.query("billdtl_uuid='" + billdtl_uuid + "'").uniqueResult(0);
|
JSONObject dtljson = dtltable.query("billdtl_uuid='" + billdtl_uuid + "'").uniqueResult(0);
|
||||||
@@ -123,7 +123,7 @@ public class OutTask extends AbstractAcsTask {
|
|||||||
nextpointObj.put("vehicle_code", taskjo.optString("vehicle_code"));
|
nextpointObj.put("vehicle_code", taskjo.optString("vehicle_code"));
|
||||||
nextpointObj.put("label_uuid", disja.getJSONObject(0).optString("label_uuid"));
|
nextpointObj.put("label_uuid", disja.getJSONObject(0).optString("label_uuid"));
|
||||||
|
|
||||||
nextpointObj.put("lock_type", taskjo.optString("00"));
|
nextpointObj.put("lock_type", "00");
|
||||||
pointTab.update(nextpointObj);
|
pointTab.update(nextpointObj);
|
||||||
|
|
||||||
startPoint.put("lock_type", "00");
|
startPoint.put("lock_type", "00");
|
||||||
@@ -131,6 +131,9 @@ public class OutTask extends AbstractAcsTask {
|
|||||||
startPoint.put("vehicle_code", "");
|
startPoint.put("vehicle_code", "");
|
||||||
pointTab.update(startPoint);
|
pointTab.update(startPoint);
|
||||||
|
|
||||||
|
//刪除庫存
|
||||||
|
WQLObject.getWQLObject("st_ivt_structIvt").delete("struct_uuid = '"+startPoint.getString("point_uuid")+"'");
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
WQLObject.getWQLObject("sch_base_task").update(taskjo);
|
WQLObject.getWQLObject("sch_base_task").update(taskjo);
|
||||||
|
|||||||
@@ -143,8 +143,8 @@
|
|||||||
label="加工托数"
|
label="加工托数"
|
||||||
:precision="0"
|
:precision="0"
|
||||||
:step="1"
|
:step="1"
|
||||||
:min="1"
|
:min="0"
|
||||||
:max="99"
|
:max="form.ivt_qty"
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
|
|||||||
Reference in New Issue
Block a user