add:pc海柔半成品出库
This commit is contained in:
@@ -41,6 +41,7 @@ public enum AcsTaskEnum {
|
|||||||
TASK_STRUCT_CP_IN("11","入库-成品-生产入库"),
|
TASK_STRUCT_CP_IN("11","入库-成品-生产入库"),
|
||||||
TASK_STRUCT_CP_OUT("12","出库-成品-生产出库"),
|
TASK_STRUCT_CP_OUT("12","出库-成品-生产出库"),
|
||||||
TASK_STRUCT_HR_IN("26","入库-海柔半成品-生产入库"),
|
TASK_STRUCT_HR_IN("26","入库-海柔半成品-生产入库"),
|
||||||
|
TASK_STRUCT_HR_OUT("27","出库-海柔半成品-生产出库"),
|
||||||
TASK_STRUCT_CP_CHECK("13","-盘点"),
|
TASK_STRUCT_CP_CHECK("13","-盘点"),
|
||||||
TASK_WASH_LACK("20","清洗机-缺料请求"),
|
TASK_WASH_LACK("20","清洗机-缺料请求"),
|
||||||
TASK_WASH_EMP("21","清洗机-空框请求"),
|
TASK_WASH_EMP("21","清洗机-空框请求"),
|
||||||
|
|||||||
@@ -16,6 +16,7 @@ import org.nl.wms.storage_manage.semimanage.service.iostorInv.IStIvtIostorinvBcp
|
|||||||
import org.nl.wms.storage_manage.semimanage.service.iostorInv.IStIvtIostorinvBcpService;
|
import org.nl.wms.storage_manage.semimanage.service.iostorInv.IStIvtIostorinvBcpService;
|
||||||
import org.nl.wms.storage_manage.semimanage.service.shutFrame.IStIvtShutframeinvBcpService;
|
import org.nl.wms.storage_manage.semimanage.service.shutFrame.IStIvtShutframeinvBcpService;
|
||||||
import org.nl.wms.storage_manage.semimanagehr.service.iostorInv.IStIvtIostorinvHrBcpInService;
|
import org.nl.wms.storage_manage.semimanagehr.service.iostorInv.IStIvtIostorinvHrBcpInService;
|
||||||
|
import org.nl.wms.storage_manage.semimanagehr.service.iostorInv.IStIvtIostorinvHrBcpOutService;
|
||||||
|
|
||||||
import java.util.function.Consumer;
|
import java.util.function.Consumer;
|
||||||
import java.util.function.Predicate;
|
import java.util.function.Predicate;
|
||||||
@@ -71,6 +72,10 @@ public enum TASKEnum implements FunctionStrategy<String, JSONObject> {
|
|||||||
IStIvtIostorinvHrBcpInService bean = SpringContextHolder.getBean(IStIvtIostorinvHrBcpInService.class);
|
IStIvtIostorinvHrBcpInService bean = SpringContextHolder.getBean(IStIvtIostorinvHrBcpInService.class);
|
||||||
bean.taskOperate(form);
|
bean.taskOperate(form);
|
||||||
}),
|
}),
|
||||||
|
HR_CP_OUT_TASK(type -> AcsTaskEnum.TASK_STRUCT_HR_OUT.getCode().equals(type), form -> {
|
||||||
|
IStIvtIostorinvHrBcpOutService bean = SpringContextHolder.getBean(IStIvtIostorinvHrBcpOutService.class);
|
||||||
|
bean.taskOperate(form);
|
||||||
|
}),
|
||||||
|
|
||||||
;
|
;
|
||||||
|
|
||||||
|
|||||||
@@ -66,15 +66,6 @@ public class StIvtIostorinvHrBcpOutController {
|
|||||||
return new ResponseEntity<>(HttpStatus.NO_CONTENT);
|
return new ResponseEntity<>(HttpStatus.NO_CONTENT);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@PostMapping("/commit")
|
|
||||||
@Log("出入单提交")
|
|
||||||
//("出入单提交")
|
|
||||||
public ResponseEntity<Object> commit(@RequestBody Map<String,Object> whereJson) {
|
|
||||||
//semiProductInService.commit(whereJson);
|
|
||||||
return new ResponseEntity<>(HttpStatus.NO_CONTENT);
|
|
||||||
}
|
|
||||||
|
|
||||||
@PostMapping("/getIODtl")
|
@PostMapping("/getIODtl")
|
||||||
@Log("查询入库分配明细")
|
@Log("查询入库分配明细")
|
||||||
//("查询入库分配明细")
|
//("查询入库分配明细")
|
||||||
@@ -82,7 +73,6 @@ public class StIvtIostorinvHrBcpOutController {
|
|||||||
return new ResponseEntity<>(bcpOutService.getIoDtl(whereJson.toJavaObject(HrBcpIostorInvQuery.class)), HttpStatus.OK);
|
return new ResponseEntity<>(bcpOutService.getIoDtl(whereJson.toJavaObject(HrBcpIostorInvQuery.class)), HttpStatus.OK);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@PostMapping("/confirm")
|
@PostMapping("/confirm")
|
||||||
@Log("完成单据")
|
@Log("完成单据")
|
||||||
//("完成单据")
|
//("完成单据")
|
||||||
|
|||||||
@@ -52,6 +52,9 @@ import org.nl.wms.storage_manage.semimanagehr.service.iostorInv.IStIvtIostorinvH
|
|||||||
import org.nl.wms.storage_manage.semimanagehr.service.iostorInv.dao.StIvtIostorinvHrBcp;
|
import org.nl.wms.storage_manage.semimanagehr.service.iostorInv.dao.StIvtIostorinvHrBcp;
|
||||||
import org.nl.wms.storage_manage.semimanagehr.service.iostorInv.dao.mapper.StIvtIostorinvHrBcpMapper;
|
import org.nl.wms.storage_manage.semimanagehr.service.iostorInv.dao.mapper.StIvtIostorinvHrBcpMapper;
|
||||||
import org.nl.wms.storage_manage.semimanagehr.service.iostorInv.dto.HrBcpIostorInvQuery;
|
import org.nl.wms.storage_manage.semimanagehr.service.iostorInv.dto.HrBcpIostorInvQuery;
|
||||||
|
import org.nl.wms.storage_manage.semimanagehr.service.structIvt.IStIvtStructivtHrBcpService;
|
||||||
|
import org.nl.wms.storage_manage.semimanagehr.service.structIvt.IStIvtStructivtflowHrService;
|
||||||
|
import org.nl.wms.storage_manage.semimanagehr.service.structIvt.dao.StIvtStructivtHrBcp;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
import org.springframework.transaction.annotation.Propagation;
|
import org.springframework.transaction.annotation.Propagation;
|
||||||
@@ -74,21 +77,21 @@ import java.util.function.Consumer;
|
|||||||
public class StIvtIostorinvHrBcpOutServiceImpl extends ServiceImpl<StIvtIostorinvHrBcpMapper, StIvtIostorinvHrBcp> implements IStIvtIostorinvHrBcpOutService {
|
public class StIvtIostorinvHrBcpOutServiceImpl extends ServiceImpl<StIvtIostorinvHrBcpMapper, StIvtIostorinvHrBcp> implements IStIvtIostorinvHrBcpOutService {
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private IStIvtBsrealstorattrService storattrService;
|
private IStIvtBsrealstorattrService storattrService; // 仓库服务
|
||||||
@Autowired
|
@Autowired
|
||||||
private IStIvtStructivtBcpService structivtBcpService;
|
private IStIvtStructivtHrBcpService structivtBcpService; // 海柔半成品服务
|
||||||
@Autowired
|
@Autowired
|
||||||
private IStIvtStructattrService structattrService;
|
private IStIvtStructattrService structattrService; // 仓位服务
|
||||||
@Autowired
|
@Autowired
|
||||||
private DivRuleCpService divRuleCpService;
|
private DivRuleCpService divRuleCpService; // 分配规则服务
|
||||||
@Autowired
|
@Autowired
|
||||||
private IStIvtSectattrService sectattrService;
|
private IStIvtSectattrService sectattrService; // 库区服务
|
||||||
@Autowired
|
@Autowired
|
||||||
private ISchBaseTaskService iSchBaseTaskService; // 任务表服务
|
private ISchBaseTaskService iSchBaseTaskService; // 任务服务
|
||||||
@Autowired
|
@Autowired
|
||||||
private IMdMeMaterialbaseService materialbaseService;
|
private IMdMeMaterialbaseService materialbaseService; // 物料服务
|
||||||
@Autowired
|
@Autowired
|
||||||
private IStIvtStructivtflowService iStIvtStructivtflowService; // 库存变动服务
|
private IStIvtStructivtflowHrService iStIvtStructivtflowService; // 海柔库存变动服务
|
||||||
@Autowired
|
@Autowired
|
||||||
protected IMdPbStoragevehicleextService iMdPbStoragevehicleextService; // 载具扩展属性信息表服务
|
protected IMdPbStoragevehicleextService iMdPbStoragevehicleextService; // 载具扩展属性信息表服务
|
||||||
|
|
||||||
@@ -193,9 +196,9 @@ public class StIvtIostorinvHrBcpOutServiceImpl extends ServiceImpl<StIvtIostorin
|
|||||||
mst.setUpdate_name(SecurityUtils.getCurrentNickName());
|
mst.setUpdate_name(SecurityUtils.getCurrentNickName());
|
||||||
this.updateById(mst);
|
this.updateById(mst);
|
||||||
|
|
||||||
StIvtStructivtBcp ivtDao = structivtBcpService.getById(mst.getStruct_id());
|
StIvtStructivtHrBcp ivtDao = structivtBcpService.getById(mst.getStruct_id());
|
||||||
//删除库存
|
//删除库存
|
||||||
structivtBcpService.remove(new QueryWrapper<StIvtStructivtBcp>().eq("struct_id", mst.getStruct_id()));
|
structivtBcpService.remove(new QueryWrapper<StIvtStructivtHrBcp>().eq("struct_id", mst.getStruct_id()));
|
||||||
|
|
||||||
// 插入库存变动记录
|
// 插入库存变动记录
|
||||||
JSONObject param = JSONObject.parseObject(JSON.toJSONString(ivtDao));
|
JSONObject param = JSONObject.parseObject(JSON.toJSONString(ivtDao));
|
||||||
@@ -238,10 +241,10 @@ public class StIvtIostorinvHrBcpOutServiceImpl extends ServiceImpl<StIvtIostorin
|
|||||||
@Transactional
|
@Transactional
|
||||||
public void onlyConfirm(JSONObject form) {
|
public void onlyConfirm(JSONObject form) {
|
||||||
|
|
||||||
StIvtStructivtBcp ivtDao = structivtBcpService.getById(form.getString("struct_id"));
|
StIvtStructivtHrBcp ivtDao = structivtBcpService.getById(form.getString("struct_id"));
|
||||||
if (ivtDao!=null){
|
if (ivtDao!=null){
|
||||||
//删除库存
|
//删除库存
|
||||||
structivtBcpService.remove(new QueryWrapper<StIvtStructivtBcp>().eq("struct_id", form.getString("struct_id")));
|
structivtBcpService.remove(new QueryWrapper<StIvtStructivtHrBcp>().eq("struct_id", form.getString("struct_id")));
|
||||||
|
|
||||||
// 插入库存变动记录
|
// 插入库存变动记录
|
||||||
JSONObject param = JSONObject.parseObject(JSON.toJSONString(ivtDao));
|
JSONObject param = JSONObject.parseObject(JSON.toJSONString(ivtDao));
|
||||||
@@ -433,7 +436,7 @@ public class StIvtIostorinvHrBcpOutServiceImpl extends ServiceImpl<StIvtIostorin
|
|||||||
checkParam(mst);
|
checkParam(mst);
|
||||||
|
|
||||||
PointEvent event = PointEvent.builder()
|
PointEvent event = PointEvent.builder()
|
||||||
.type(AcsTaskEnum.TASK_STRUCT_OUT)
|
.type(AcsTaskEnum.TASK_STRUCT_HR_OUT)
|
||||||
.acs_task_type("7")
|
.acs_task_type("7")
|
||||||
.task_group_id(IdUtil.getStringId())
|
.task_group_id(IdUtil.getStringId())
|
||||||
.point_code3(mst.getPoint_code())
|
.point_code3(mst.getPoint_code())
|
||||||
|
|||||||
@@ -95,7 +95,7 @@
|
|||||||
:disabled="crud.status.view > 0"
|
:disabled="crud.status.view > 0"
|
||||||
>
|
>
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in dict.ST_INV_BCP_OUT_TYPE"
|
v-for="item in dict.ST_INV_HR_BCP_OUT_TYPE"
|
||||||
:key="item.value"
|
:key="item.value"
|
||||||
:label="item.label"
|
:label="item.label"
|
||||||
:value="item.value"
|
:value="item.value"
|
||||||
@@ -211,7 +211,7 @@ import crudPoint from '@/views/wms/scheduler_manage/point/point'
|
|||||||
|
|
||||||
const defaultForm = {
|
const defaultForm = {
|
||||||
bill_code: '',
|
bill_code: '',
|
||||||
product_code: 'A1',
|
product_code: 'A3',
|
||||||
bill_status: '10',
|
bill_status: '10',
|
||||||
total_qty: '0',
|
total_qty: '0',
|
||||||
detail_count: '0',
|
detail_count: '0',
|
||||||
@@ -226,7 +226,7 @@ export default {
|
|||||||
name: 'AddDialog',
|
name: 'AddDialog',
|
||||||
components: { MaterDtl },
|
components: { MaterDtl },
|
||||||
mixins: [crud(), form(defaultForm)],
|
mixins: [crud(), form(defaultForm)],
|
||||||
dicts: ['IO_BILL_STATUS', 'ST_QUALITY_SCODE', 'ST_INV_BCP_OUT_TYPE', 'product_area'],
|
dicts: ['IO_BILL_STATUS', 'ST_QUALITY_SCODE', 'ST_INV_HR_BCP_OUT_TYPE', 'product_area'],
|
||||||
cruds() {
|
cruds() {
|
||||||
return CRUD({ title: '入库新增', crudMethod: { ...crudsemiproductOut }})
|
return CRUD({ title: '入库新增', crudMethod: { ...crudsemiproductOut }})
|
||||||
},
|
},
|
||||||
@@ -277,11 +277,11 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
open() {
|
open() {
|
||||||
crudStorattr.getStor({ 'stor_type': '2' }).then(res => {
|
crudStorattr.getStor({ 'stor_type': '5' }).then(res => {
|
||||||
this.storlist = res.content
|
this.storlist = res.content
|
||||||
})
|
})
|
||||||
//A1_BCPCK01
|
// A3_BCPCK01
|
||||||
const area_type = 'A1_BCPRK01'
|
const area_type = 'A3_BCPCK01'
|
||||||
crudPoint.getPoint({ 'area_type': area_type }).then(res => {
|
crudPoint.getPoint({ 'area_type': area_type }).then(res => {
|
||||||
this.pointList = res
|
this.pointList = res
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -91,8 +91,8 @@ export default {
|
|||||||
components: { crudOperation, rrOperation, pagination, DateRangePicker },
|
components: { crudOperation, rrOperation, pagination, DateRangePicker },
|
||||||
cruds() {
|
cruds() {
|
||||||
return CRUD({
|
return CRUD({
|
||||||
title: '半成品可用库存',
|
title: '海柔半成品可用库存',
|
||||||
url: '/api/bcp/getBcpIvt',
|
url: '/api/bcp/hr/getBcpIvt',
|
||||||
crudMethod: {},
|
crudMethod: {},
|
||||||
optShow: {
|
optShow: {
|
||||||
reset: true
|
reset: true
|
||||||
|
|||||||
@@ -40,7 +40,7 @@
|
|||||||
@change="crud.toQuery"
|
@change="crud.toQuery"
|
||||||
>
|
>
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in dict.ST_INV_BCP_OUT_TYPE"
|
v-for="item in dict.ST_INV_HR_BCP_OUT_TYPE"
|
||||||
:key="item.value"
|
:key="item.value"
|
||||||
:label="item.label"
|
:label="item.label"
|
||||||
:value="item.value"
|
:value="item.value"
|
||||||
@@ -218,7 +218,7 @@ export default {
|
|||||||
},
|
},
|
||||||
mixins: [presenter(), header(), crud()],
|
mixins: [presenter(), header(), crud()],
|
||||||
// 数据字典
|
// 数据字典
|
||||||
dicts: ['IO_BILL_STATUS', 'bill_type', 'product_area', 'ST_INV_BCP_OUT_TYPE', 'ST_INV_CREATE'],
|
dicts: ['IO_BILL_STATUS', 'bill_type', 'product_area', 'ST_INV_HR_BCP_OUT_TYPE', 'ST_INV_CREATE'],
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
height: document.documentElement.clientHeight - 180 + 'px;',
|
height: document.documentElement.clientHeight - 180 + 'px;',
|
||||||
@@ -249,7 +249,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
crudStorattr.getStor({ 'stor_type': '2' }).then(res => {
|
crudStorattr.getStor({ 'stor_type': '5' }).then(res => {
|
||||||
this.storlist = res.content
|
this.storlist = res.content
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
@@ -298,7 +298,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
bill_typeFormat(row, column) {
|
bill_typeFormat(row, column) {
|
||||||
return this.dict.label.ST_INV_BCP_OUT_TYPE[row.bill_type]
|
return this.dict.label.ST_INV_HR_BCP_OUT_TYPE[row.bill_type]
|
||||||
},
|
},
|
||||||
toView(row) {
|
toView(row) {
|
||||||
this.mstrow = row
|
this.mstrow = row
|
||||||
|
|||||||
Reference in New Issue
Block a user