opt:优化
This commit is contained in:
@@ -180,6 +180,7 @@ public class SectattrServiceImpl extends ServiceImpl<SectattrMapper, Sectattr> i
|
|||||||
|
|
||||||
List<Sectattr> sectattrList = sectattrMapper.selectList(new LambdaQueryWrapper<>(Sectattr.class)
|
List<Sectattr> sectattrList = sectattrMapper.selectList(new LambdaQueryWrapper<>(Sectattr.class)
|
||||||
.select(Sectattr::getSect_id,Sectattr::getSect_name)
|
.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(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(StrUtil.isNotEmpty(sect_type_attr),Sectattr::getSect_type_attr,sect_type_attr)
|
||||||
.eq(Sectattr::getIs_delete,BaseDataEnum.IS_YES_NOT.code("否"))
|
.eq(Sectattr::getIs_delete,BaseDataEnum.IS_YES_NOT.code("否"))
|
||||||
|
|||||||
@@ -21,6 +21,7 @@ public class AcsTaskDto {
|
|||||||
*/
|
*/
|
||||||
private String task_code;
|
private String task_code;
|
||||||
|
|
||||||
|
private String floor_code;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 取货点1
|
* 取货点1
|
||||||
|
|||||||
@@ -69,6 +69,8 @@ public class StOutTask extends AbstractTask {
|
|||||||
AcsTaskDto acsTaskDto = new AcsTaskDto();
|
AcsTaskDto acsTaskDto = new AcsTaskDto();
|
||||||
acsTaskDto.setExt_task_uuid(taskDao.getTask_id());
|
acsTaskDto.setExt_task_uuid(taskDao.getTask_id());
|
||||||
acsTaskDto.setTask_code(taskDao.getTask_code());
|
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.setStart_device_code(taskDao.getPoint_code1());
|
||||||
acsTaskDto.setNext_device_code(taskDao.getPoint_code2());
|
acsTaskDto.setNext_device_code(taskDao.getPoint_code2());
|
||||||
if (taskDao.getPoint_code2().contains("-")) {
|
if (taskDao.getPoint_code2().contains("-")) {
|
||||||
|
|||||||
@@ -128,4 +128,6 @@ public class IOStorInvDis implements Serializable {
|
|||||||
*/
|
*/
|
||||||
private String point_code;
|
private String point_code;
|
||||||
|
|
||||||
|
private String floor_code;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -446,7 +446,7 @@ public class OutBillServiceImpl extends ServiceImpl<IOStorInvMapper,IOStorInv> i
|
|||||||
ioStorInvDisMapper.insert(ioStorInvDis);
|
ioStorInvDisMapper.insert(ioStorInvDis);
|
||||||
allocation_canuse_qty = allocation_canuse_qty.add(outAllocation.getFrozen_qty());
|
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){
|
if (unassign_qty.doubleValue() <= 0){
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@@ -577,6 +577,7 @@ public class OutBillServiceImpl extends ServiceImpl<IOStorInvMapper,IOStorInv> i
|
|||||||
}
|
}
|
||||||
for (int i = 0; i < dtls.size(); i++) {
|
for (int i = 0; i < dtls.size(); i++) {
|
||||||
IOStorInvDtlDto dtl = dtls.get(i);
|
IOStorInvDtlDto dtl = dtls.get(i);
|
||||||
|
//未分配数
|
||||||
BigDecimal unassign_qty = dtl.getUnassign_qty();
|
BigDecimal unassign_qty = dtl.getUnassign_qty();
|
||||||
String pcsn = dtl.getPcsn();
|
String pcsn = dtl.getPcsn();
|
||||||
String material_id = dtl.getMaterial_id();
|
String material_id = dtl.getMaterial_id();
|
||||||
@@ -591,7 +592,7 @@ public class OutBillServiceImpl extends ServiceImpl<IOStorInvMapper,IOStorInv> i
|
|||||||
.build()
|
.build()
|
||||||
);
|
);
|
||||||
int seq_no = 1;
|
int seq_no = 1;
|
||||||
BigDecimal allocation_canuse_qty=BigDecimal.ZERO;
|
BigDecimal allocation_canuse_qty = BigDecimal.ZERO;
|
||||||
for (StrategyStructMaterialVO outAllocation : structMaterials) {
|
for (StrategyStructMaterialVO outAllocation : structMaterials) {
|
||||||
//分配明细
|
//分配明细
|
||||||
IOStorInvDis ioStorInvDis = new IOStorInvDis();
|
IOStorInvDis ioStorInvDis = new IOStorInvDis();
|
||||||
@@ -632,6 +633,7 @@ public class OutBillServiceImpl extends ServiceImpl<IOStorInvMapper,IOStorInv> i
|
|||||||
//生成分配明细
|
//生成分配明细
|
||||||
ioStorInvDisMapper.insert(ioStorInvDis);
|
ioStorInvDisMapper.insert(ioStorInvDis);
|
||||||
allocation_canuse_qty = allocation_canuse_qty.add(outAllocation.getFrozen_qty());
|
allocation_canuse_qty = allocation_canuse_qty.add(outAllocation.getFrozen_qty());
|
||||||
|
unassign_qty = unassign_qty.subtract(outAllocation.getFrozen_qty());
|
||||||
//分配完成 结束分配
|
//分配完成 结束分配
|
||||||
if (unassign_qty.doubleValue() <= 0){
|
if (unassign_qty.doubleValue() <= 0){
|
||||||
break;
|
break;
|
||||||
@@ -946,10 +948,13 @@ public class OutBillServiceImpl extends ServiceImpl<IOStorInvMapper,IOStorInv> i
|
|||||||
public void allSetPoint(JSONObject whereJson) {
|
public void allSetPoint(JSONObject whereJson) {
|
||||||
//出库点
|
//出库点
|
||||||
String point_code = whereJson.getString("point_code");
|
String point_code = whereJson.getString("point_code");
|
||||||
|
String floor_code = whereJson.getString("floor_code");
|
||||||
if (StrUtil.isBlank(point_code)){
|
if (StrUtil.isBlank(point_code)){
|
||||||
throw new BadRequestException("未选择出库点");
|
throw new BadRequestException("未选择出库点");
|
||||||
}
|
}
|
||||||
|
if (StrUtil.isBlank(floor_code)){
|
||||||
|
throw new BadRequestException("未选择楼层");
|
||||||
|
}
|
||||||
String iostorinv_id = whereJson.getString("iostorinv_id");
|
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("TaskCode",CodeUtil.getNewCode("TASK_CODE"));
|
||||||
task_form.put("PickingLocation", ioStorInvDis.getStruct_code());
|
task_form.put("PickingLocation", ioStorInvDis.getStruct_code());
|
||||||
task_form.put("PlacedLocation", point_code);
|
task_form.put("PlacedLocation", point_code);
|
||||||
|
task_form.put("floor_code",floor_code);
|
||||||
task_form.put("vehicle_code", ioStorInvDis.getStoragevehicle_code());
|
task_form.put("vehicle_code", ioStorInvDis.getStoragevehicle_code());
|
||||||
|
|
||||||
StOutTask stOutTask = SpringContextHolder.getBean("STOutTask");
|
StOutTask stOutTask = SpringContextHolder.getBean("STOutTask");
|
||||||
@@ -987,6 +993,7 @@ public class OutBillServiceImpl extends ServiceImpl<IOStorInvMapper,IOStorInv> i
|
|||||||
dis.setTask_id(task_id);
|
dis.setTask_id(task_id);
|
||||||
dis.setIs_issued(BaseDataEnum.IS_YES_NOT.code("是"));
|
dis.setIs_issued(BaseDataEnum.IS_YES_NOT.code("是"));
|
||||||
dis.setPoint_code(point_code);
|
dis.setPoint_code(point_code);
|
||||||
|
dis.setFloor_code(floor_code);
|
||||||
ioStorInvDisMapper.updateById(dis);
|
ioStorInvDisMapper.updateById(dis);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -172,6 +172,22 @@
|
|||||||
/>
|
/>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</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>
|
</el-form>
|
||||||
</div>
|
</div>
|
||||||
</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="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="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="point_code" width="150px" label="出库点" align="center" />
|
||||||
|
<el-table-column show-overflow-tooltip prop="floor_code" width="150px" label="目的楼层" align="center" />
|
||||||
</el-table>
|
</el-table>
|
||||||
</el-card>
|
</el-card>
|
||||||
<StructIvt :dialog-show.sync="structshow" :stor-id="storId" :open-array="openParam" :rowmst="openRow" @StructIvtClosed="queryTableDtl2" />
|
<StructIvt :dialog-show.sync="structshow" :stor-id="storId" :open-array="openParam" :rowmst="openRow" @StructIvtClosed="queryTableDtl2" />
|
||||||
@@ -237,7 +254,7 @@ export default {
|
|||||||
name: 'DivDialog',
|
name: 'DivDialog',
|
||||||
components: { StructIvt },
|
components: { StructIvt },
|
||||||
mixins: [crud()],
|
mixins: [crud()],
|
||||||
dicts: ['io_bill_status', 'work_status'],
|
dicts: ['io_bill_status', 'work_status', 'floor_code'],
|
||||||
props: {
|
props: {
|
||||||
dialogShow: {
|
dialogShow: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
@@ -281,7 +298,8 @@ export default {
|
|||||||
form2: {
|
form2: {
|
||||||
unassign_qty: '0',
|
unassign_qty: '0',
|
||||||
assign_qty: '0',
|
assign_qty: '0',
|
||||||
point_code: ''
|
point_code: '',
|
||||||
|
floor_code: ''
|
||||||
},
|
},
|
||||||
sects: [],
|
sects: [],
|
||||||
pointList: [],
|
pointList: [],
|
||||||
@@ -444,9 +462,14 @@ export default {
|
|||||||
this.crud.notify('请先选择站点!', CRUD.NOTIFICATION_TYPE.INFO)
|
this.crud.notify('请先选择站点!', CRUD.NOTIFICATION_TYPE.INFO)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
if (this.form2.floor_code === '') {
|
||||||
|
this.crud.notify('请先选择楼层!', CRUD.NOTIFICATION_TYPE.INFO)
|
||||||
|
return
|
||||||
|
}
|
||||||
this.loadingSetAllPoint = true
|
this.loadingSetAllPoint = true
|
||||||
const data = {
|
const data = {
|
||||||
'point_code': this.form2.point_code,
|
'point_code': this.form2.point_code,
|
||||||
|
'floor_code': this.form2.floor_code,
|
||||||
'iostorinv_id': this.mstrow.iostorinv_id,
|
'iostorinv_id': this.mstrow.iostorinv_id,
|
||||||
'bill_code': this.mstrow.bill_code,
|
'bill_code': this.mstrow.bill_code,
|
||||||
'checked': this.checked
|
'checked': this.checked
|
||||||
|
|||||||
@@ -158,7 +158,8 @@
|
|||||||
<el-table-column prop="plan_qty" :formatter="crud.formatNum3" label="重量" align="center" />
|
<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="struct_code" label="仓位" align="center" show-overflow-tooltip />
|
||||||
<el-table-column prop="sect_name" 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_code" label="任务号" align="center" />
|
||||||
<el-table-column prop="task_status" label="状态" align="center" width="110px" :formatter="task_statusFormat" />
|
<el-table-column prop="task_status" label="状态" align="center" width="110px" :formatter="task_statusFormat" />
|
||||||
</el-table>
|
</el-table>
|
||||||
|
|||||||
Reference in New Issue
Block a user