opt:优化

This commit is contained in:
DESKTOP-5DIJMF9\admin
2025-08-06 15:58:41 +08:00
parent a6d51dd827
commit d999a4a33c
7 changed files with 43 additions and 6 deletions

View File

@@ -180,6 +180,7 @@ public class SectattrServiceImpl extends ServiceImpl<SectattrMapper, Sectattr> i
List<Sectattr> sectattrList = sectattrMapper.selectList(new LambdaQueryWrapper<>(Sectattr.class)
.select(Sectattr::getSect_id,Sectattr::getSect_name)
.ne(Sectattr::getSect_type_attr,"09")
.eq(StrUtil.isNotEmpty(stor_jo.getStor_id()),Sectattr::getStor_id,stor_jo.getStor_id())
.eq(StrUtil.isNotEmpty(sect_type_attr),Sectattr::getSect_type_attr,sect_type_attr)
.eq(Sectattr::getIs_delete,BaseDataEnum.IS_YES_NOT.code(""))

View File

@@ -21,6 +21,7 @@ public class AcsTaskDto {
*/
private String task_code;
private String floor_code;
/**
* 取货点1

View File

@@ -69,6 +69,8 @@ public class StOutTask extends AbstractTask {
AcsTaskDto acsTaskDto = new AcsTaskDto();
acsTaskDto.setExt_task_uuid(taskDao.getTask_id());
acsTaskDto.setTask_code(taskDao.getTask_code());
JSONObject param = JSONObject.parseObject(taskDao.getRequest_param());
acsTaskDto.setFloor_code(param.getString("floor_code"));
acsTaskDto.setStart_device_code(taskDao.getPoint_code1());
acsTaskDto.setNext_device_code(taskDao.getPoint_code2());
if (taskDao.getPoint_code2().contains("-")) {

View File

@@ -128,4 +128,6 @@ public class IOStorInvDis implements Serializable {
*/
private String point_code;
private String floor_code;
}

View File

@@ -446,7 +446,7 @@ public class OutBillServiceImpl extends ServiceImpl<IOStorInvMapper,IOStorInv> i
ioStorInvDisMapper.insert(ioStorInvDis);
allocation_canuse_qty = allocation_canuse_qty.add(outAllocation.getFrozen_qty());
//分配完成 结束分配
unassign_qty=unassign_qty.subtract(allocation_canuse_qty);
unassign_qty=unassign_qty.subtract(outAllocation.getFrozen_qty());
if (unassign_qty.doubleValue() <= 0){
break;
}
@@ -577,6 +577,7 @@ public class OutBillServiceImpl extends ServiceImpl<IOStorInvMapper,IOStorInv> i
}
for (int i = 0; i < dtls.size(); i++) {
IOStorInvDtlDto dtl = dtls.get(i);
//未分配数
BigDecimal unassign_qty = dtl.getUnassign_qty();
String pcsn = dtl.getPcsn();
String material_id = dtl.getMaterial_id();
@@ -591,7 +592,7 @@ public class OutBillServiceImpl extends ServiceImpl<IOStorInvMapper,IOStorInv> i
.build()
);
int seq_no = 1;
BigDecimal allocation_canuse_qty=BigDecimal.ZERO;
BigDecimal allocation_canuse_qty = BigDecimal.ZERO;
for (StrategyStructMaterialVO outAllocation : structMaterials) {
//分配明细
IOStorInvDis ioStorInvDis = new IOStorInvDis();
@@ -632,6 +633,7 @@ public class OutBillServiceImpl extends ServiceImpl<IOStorInvMapper,IOStorInv> i
//生成分配明细
ioStorInvDisMapper.insert(ioStorInvDis);
allocation_canuse_qty = allocation_canuse_qty.add(outAllocation.getFrozen_qty());
unassign_qty = unassign_qty.subtract(outAllocation.getFrozen_qty());
//分配完成 结束分配
if (unassign_qty.doubleValue() <= 0){
break;
@@ -946,10 +948,13 @@ public class OutBillServiceImpl extends ServiceImpl<IOStorInvMapper,IOStorInv> i
public void allSetPoint(JSONObject whereJson) {
//出库点
String point_code = whereJson.getString("point_code");
String floor_code = whereJson.getString("floor_code");
if (StrUtil.isBlank(point_code)){
throw new BadRequestException("未选择出库点");
}
if (StrUtil.isBlank(floor_code)){
throw new BadRequestException("未选择楼层");
}
String iostorinv_id = whereJson.getString("iostorinv_id");
//查询主表信息
@@ -974,6 +979,7 @@ public class OutBillServiceImpl extends ServiceImpl<IOStorInvMapper,IOStorInv> i
task_form.put("TaskCode",CodeUtil.getNewCode("TASK_CODE"));
task_form.put("PickingLocation", ioStorInvDis.getStruct_code());
task_form.put("PlacedLocation", point_code);
task_form.put("floor_code",floor_code);
task_form.put("vehicle_code", ioStorInvDis.getStoragevehicle_code());
StOutTask stOutTask = SpringContextHolder.getBean("STOutTask");
@@ -987,6 +993,7 @@ public class OutBillServiceImpl extends ServiceImpl<IOStorInvMapper,IOStorInv> i
dis.setTask_id(task_id);
dis.setIs_issued(BaseDataEnum.IS_YES_NOT.code(""));
dis.setPoint_code(point_code);
dis.setFloor_code(floor_code);
ioStorInvDisMapper.updateById(dis);
}
}

View File

@@ -172,6 +172,22 @@
/>
</el-select>
</el-form-item>
<el-form-item label="目的楼层" prop="floor_code">
<el-select
v-model="form2.floor_code"
clearable
placeholder="请选择"
class="filter-item"
style="width: 150px;"
>
<el-option
v-for="item in dict.floor_code"
:key="item.value"
:label="item.label"
:value="item.value"
/>
</el-select>
</el-form-item>
</el-form>
</div>
</div>
@@ -220,6 +236,7 @@
<el-table-column show-overflow-tooltip prop="insert_time" width="150px" label="入库时间" align="center" />
<el-table-column show-overflow-tooltip prop="task_code" width="150px" label="任务号" align="center" />
<el-table-column show-overflow-tooltip prop="point_code" width="150px" label="出库点" align="center" />
<el-table-column show-overflow-tooltip prop="floor_code" width="150px" label="目的楼层" align="center" />
</el-table>
</el-card>
<StructIvt :dialog-show.sync="structshow" :stor-id="storId" :open-array="openParam" :rowmst="openRow" @StructIvtClosed="queryTableDtl2" />
@@ -237,7 +254,7 @@ export default {
name: 'DivDialog',
components: { StructIvt },
mixins: [crud()],
dicts: ['io_bill_status', 'work_status'],
dicts: ['io_bill_status', 'work_status', 'floor_code'],
props: {
dialogShow: {
type: Boolean,
@@ -281,7 +298,8 @@ export default {
form2: {
unassign_qty: '0',
assign_qty: '0',
point_code: ''
point_code: '',
floor_code: ''
},
sects: [],
pointList: [],
@@ -444,9 +462,14 @@ export default {
this.crud.notify('请先选择站点!', CRUD.NOTIFICATION_TYPE.INFO)
return
}
if (this.form2.floor_code === '') {
this.crud.notify('请先选择楼层!', CRUD.NOTIFICATION_TYPE.INFO)
return
}
this.loadingSetAllPoint = true
const data = {
'point_code': this.form2.point_code,
'floor_code': this.form2.floor_code,
'iostorinv_id': this.mstrow.iostorinv_id,
'bill_code': this.mstrow.bill_code,
'checked': this.checked

View File

@@ -158,7 +158,8 @@
<el-table-column prop="plan_qty" :formatter="crud.formatNum3" label="重量" align="center" />
<el-table-column prop="struct_code" label="仓位" align="center" show-overflow-tooltip />
<el-table-column prop="sect_name" label="区域" align="center" show-overflow-tooltip />
<el-table-column prop="point_code" label="目的位" align="center" />
<el-table-column prop="point_code" label="目的提升机点位" align="center" />
<el-table-column prop="floor_code" label="目的楼层" align="center" />
<el-table-column prop="task_code" label="任务号" align="center" />
<el-table-column prop="task_status" label="状态" align="center" width="110px" :formatter="task_statusFormat" />
</el-table>