rev:1.出库分配逻辑修改,组盘页面批次下拉框修改

This commit is contained in:
2025-12-26 14:50:31 +08:00
parent 499eaf4099
commit c057cffea9
9 changed files with 73 additions and 6 deletions

View File

@@ -98,6 +98,12 @@ public class GroupController {
return new ResponseEntity<>(HttpStatus.OK); return new ResponseEntity<>(HttpStatus.OK);
} }
@PostMapping("/getPcsn")
@Log("获取批次下拉框")
public ResponseEntity<Object> getPcsn() {
return new ResponseEntity<>(iMdPbGroupplateService.getPcsn(),HttpStatus.OK);
}
@PostMapping("/printDelete") @PostMapping("/printDelete")
@Log("打印物料标签后删除") @Log("打印物料标签后删除")
public ResponseEntity<Object> printDelete(@RequestBody GroupPlate dto) { public ResponseEntity<Object> printDelete(@RequestBody GroupPlate dto) {

View File

@@ -133,6 +133,7 @@
late.quality_type, late.quality_type,
late.quality_type AS old_quality_type, late.quality_type AS old_quality_type,
late.bake_num, late.bake_num,
late.is_return,
false AS edit, false AS edit,
( (
CASE late.quality_type CASE late.quality_type
@@ -304,7 +305,7 @@
late.device_code = #{device_code} late.device_code = #{device_code}
</if> </if>
</where> </where>
ORDER BY quality_day,late.produce_time,ex.canuse_qty ORDER BY late.is_return DESC,late.produce_time,ex.canuse_qty
</select> </select>
<select id="erpQueryIvt" resultType="com.alibaba.fastjson.JSONObject"> <select id="erpQueryIvt" resultType="com.alibaba.fastjson.JSONObject">

View File

@@ -6,6 +6,7 @@ import com.baomidou.mybatisplus.extension.service.IService;
import org.nl.common.domain.query.PageQuery; import org.nl.common.domain.query.PageQuery;
import org.nl.wms.basedata_manage.service.dao.MdCsSupplierbase; import org.nl.wms.basedata_manage.service.dao.MdCsSupplierbase;
import org.nl.wms.basedata_manage.service.dao.MdMeMaterialbase; import org.nl.wms.basedata_manage.service.dao.MdMeMaterialbase;
import org.nl.wms.pda.util.PdaResponse;
import org.nl.wms.warehouse_management.service.dao.GroupPlate; import org.nl.wms.warehouse_management.service.dao.GroupPlate;
import org.springframework.web.multipart.MultipartFile; import org.springframework.web.multipart.MultipartFile;
@@ -104,4 +105,10 @@ public interface IMdPbGroupplateService extends IService<GroupPlate> {
* @param request post请求 * @param request post请求
*/ */
void importExcel(MultipartFile file, HttpServletRequest request); void importExcel(MultipartFile file, HttpServletRequest request);
/**
* 获取批次下拉框
* @return PdaResponse
*/
PdaResponse getPcsn();
} }

View File

@@ -134,4 +134,9 @@ public class GroupPlate implements Serializable {
* 机台编码 * 机台编码
*/ */
private String device_code; private String device_code;
/**
* 是否退料
*/
private String is_return;
} }

View File

@@ -23,6 +23,8 @@ import org.nl.wms.basedata_manage.service.dao.MdCsSupplierbase;
import org.nl.wms.basedata_manage.service.dao.MdMeMaterialbase; import org.nl.wms.basedata_manage.service.dao.MdMeMaterialbase;
import org.nl.wms.basedata_manage.service.dao.MdPbMeasureunit; import org.nl.wms.basedata_manage.service.dao.MdPbMeasureunit;
import org.nl.wms.basedata_manage.service.dao.MdPbStoragevehicleinfo; import org.nl.wms.basedata_manage.service.dao.MdPbStoragevehicleinfo;
import org.nl.wms.pda.general_management.service.PdaInGroupBoxService;
import org.nl.wms.pda.util.PdaResponse;
import org.nl.wms.warehouse_management.enums.IOSConstant; import org.nl.wms.warehouse_management.enums.IOSConstant;
import org.nl.wms.warehouse_management.enums.IOSEnum; import org.nl.wms.warehouse_management.enums.IOSEnum;
import org.nl.wms.warehouse_management.service.IMdPbGroupplateService; import org.nl.wms.warehouse_management.service.IMdPbGroupplateService;
@@ -75,6 +77,12 @@ public class MdPbGroupplateServiceImpl extends ServiceImpl<MdPbGroupplateMapper,
@Autowired @Autowired
private IMdPbMeasureunitService iMdPbMeasureunitService; private IMdPbMeasureunitService iMdPbMeasureunitService;
/**
* 手持组盘服务
*/
@Autowired
private PdaInGroupBoxService pdaInGroupBoxService;
@Override @Override
public IPage<JSONObject> queryAll(Map whereJson, PageQuery page) { public IPage<JSONObject> queryAll(Map whereJson, PageQuery page) {
return this.baseMapper.queryAllByPage(new Page<>(page.getPage() + 1, page.getSize()), return this.baseMapper.queryAllByPage(new Page<>(page.getPage() + 1, page.getSize()),
@@ -194,4 +202,9 @@ public class MdPbGroupplateServiceImpl extends ServiceImpl<MdPbGroupplateMapper,
throw new BadRequestException("导入失败!" + e.getMessage()); throw new BadRequestException("导入失败!" + e.getMessage());
} }
} }
@Override
public PdaResponse getPcsn() {
return pdaInGroupBoxService.queryPcsn();
}
} }

View File

@@ -621,6 +621,7 @@ public class RawAssistIStorServiceImpl extends ServiceImpl<IOStorInvMapper, IOSt
//更新组盘记录表 //更新组盘记录表
groupPlateMapper.update(new GroupPlate(), new LambdaUpdateWrapper<>(GroupPlate.class) groupPlateMapper.update(new GroupPlate(), new LambdaUpdateWrapper<>(GroupPlate.class)
.set(GroupPlate::getStatus, IOSEnum.GROUP_PLATE_STATUS.code("入库")) .set(GroupPlate::getStatus, IOSEnum.GROUP_PLATE_STATUS.code("入库"))
.set(ioStorInv.getBill_type().equals(IOSEnum.IN_BILL_TYPE.code("退料入库")),GroupPlate::getIs_return, IOSConstant.ONE)
.eq(GroupPlate::getPcsn, ioStorInvDis.getPcsn()) .eq(GroupPlate::getPcsn, ioStorInvDis.getPcsn())
.eq(GroupPlate::getStoragevehicle_code, ioStorInvDis.getStoragevehicle_code()) .eq(GroupPlate::getStoragevehicle_code, ioStorInvDis.getStoragevehicle_code())
.eq(GroupPlate::getMaterial_id, ioStorInvDis.getMaterial_id()) .eq(GroupPlate::getMaterial_id, ioStorInvDis.getMaterial_id())
@@ -659,6 +660,7 @@ public class RawAssistIStorServiceImpl extends ServiceImpl<IOStorInvMapper, IOSt
if (ObjectUtil.isEmpty(ioStorInvDis)) { if (ObjectUtil.isEmpty(ioStorInvDis)) {
throw new BadRequestException("未找到任务对应的分配明细"); throw new BadRequestException("未找到任务对应的分配明细");
} }
IOStorInv ioStorInv = ioStorInvMapper.selectById(ioStorInvDis.getIostorinv_id());
// 完成当前分配明细 // 完成当前分配明细
ioStorInvDisMapper.update(ioStorInvDis, new LambdaUpdateWrapper<>(IOStorInvDis.class) ioStorInvDisMapper.update(ioStorInvDis, new LambdaUpdateWrapper<>(IOStorInvDis.class)
@@ -692,6 +694,7 @@ public class RawAssistIStorServiceImpl extends ServiceImpl<IOStorInvMapper, IOSt
//更新组盘记录表 //更新组盘记录表
groupPlateMapper.update(new GroupPlate(), new LambdaUpdateWrapper<>(GroupPlate.class) groupPlateMapper.update(new GroupPlate(), new LambdaUpdateWrapper<>(GroupPlate.class)
.set(GroupPlate::getStatus, IOSEnum.GROUP_PLATE_STATUS.code("入库")) .set(GroupPlate::getStatus, IOSEnum.GROUP_PLATE_STATUS.code("入库"))
.set(ioStorInv.getBill_type().equals(IOSEnum.IN_BILL_TYPE.code("退料入库")),GroupPlate::getIs_return, IOSConstant.ONE)
.eq(GroupPlate::getPcsn, ioStorInvDis.getPcsn()) .eq(GroupPlate::getPcsn, ioStorInvDis.getPcsn())
.eq(GroupPlate::getStoragevehicle_code, ioStorInvDis.getStoragevehicle_code()) .eq(GroupPlate::getStoragevehicle_code, ioStorInvDis.getStoragevehicle_code())
.eq(GroupPlate::getMaterial_id, ioStorInvDis.getMaterial_id()) .eq(GroupPlate::getMaterial_id, ioStorInvDis.getMaterial_id())

View File

@@ -80,4 +80,12 @@ export function excelImport(data) {
}) })
} }
export default { add, edit, del, queryMater, queryMaterList, checkVehicle, querySupp, copySave, printDelete, excelImport } export function getPcsn(data) {
return request({
url: 'api/group/getPcsn',
method: 'post',
data
})
}
export default { add, edit, del, queryMater, queryMaterList, checkVehicle, querySupp, copySave, printDelete, excelImport, getPcsn }

View File

@@ -145,7 +145,22 @@
<el-col :span="8"> <el-col :span="8">
<el-form-item label="焊材批号" prop="pcsn"> <el-form-item label="焊材批号" prop="pcsn">
<el-input v-model="form.pcsn" style="width: 200px;" /> <el-select
v-model="form.pcsn"
size="mini"
placeholder="全部"
style="width: 200px"
class="filter-item"
filterable
allow-create
>
<el-option
v-for="item in pcsnList"
:key="item.value"
:label="item.label"
:value="item.value"
/>
</el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
@@ -410,6 +425,7 @@ export default {
suppList: [], suppList: [],
deviceList: [], deviceList: [],
materList: [], materList: [],
pcsnList: [],
formPrint: { formPrint: {
print_num: 1 print_num: 1
}, },
@@ -445,6 +461,9 @@ export default {
crudDeviceinfo.getDevice({}).then(res => { crudDeviceinfo.getDevice({}).then(res => {
this.deviceList = res this.deviceList = res
}) })
crudGroup.getPcsn({}).then(res => {
this.pcsnList = res.data
})
}, },
methods: { methods: {
// 钩子在获取表格数据之前执行false 则代表不获取数据 // 钩子在获取表格数据之前执行false 则代表不获取数据

View File

@@ -108,8 +108,9 @@
<el-table-column prop="produce_time" label="生产日期" :min-width="flexWidth('produce_time',crud.data,'生产日期')" /> <el-table-column prop="produce_time" label="生产日期" :min-width="flexWidth('produce_time',crud.data,'生产日期')" />
<el-table-column prop="quality_time" label="有效日期" :min-width="flexWidth('quality_time',crud.data,'有效日期')" /> <el-table-column prop="quality_time" label="有效日期" :min-width="flexWidth('quality_time',crud.data,'有效日期')" />
<el-table-column prop="bake_num" label="烘干次数" :min-width="flexWidth('bake_num',crud.data,'烘干次数')" /> <el-table-column prop="bake_num" label="烘干次数" :min-width="flexWidth('bake_num',crud.data,'烘干次数')" />
<el-table-column prop="remark" label="备注" :min-width="flexWidth('remark',crud.data,'备注')" />
<el-table-column prop="insert_time" label="入库时间" :min-width="flexWidth('insert_time',crud.data,'入库时间')" /> <el-table-column prop="insert_time" label="入库时间" :min-width="flexWidth('insert_time',crud.data,'入库时间')" />
<el-table-column prop="is_return" label="是否退料" :min-width="flexWidth('is_return',crud.data,'是否退料')" :formatter="isReturn" />
<el-table-column prop="remark" label="备注" :min-width="flexWidth('remark',crud.data,'备注')" />
</el-table> </el-table>
<!--分页组件--> <!--分页组件-->
<pagination /> <pagination />
@@ -133,6 +134,7 @@ export default {
name: 'Structivt', name: 'Structivt',
components: { pagination, crudOperation, rrOperation, imageModal }, components: { pagination, crudOperation, rrOperation, imageModal },
mixins: [presenter(), header(), crud()], mixins: [presenter(), header(), crud()],
dicts: ['IS_OR_NOT'],
cruds() { cruds() {
return CRUD({ return CRUD({
title: '库存管理', url: 'api/structivt', idField: 'stockrecord_id', sort: 'stockrecord_id,desc', title: '库存管理', url: 'api/structivt', idField: 'stockrecord_id', sort: 'stockrecord_id,desc',
@@ -195,6 +197,9 @@ export default {
querytable() { querytable() {
this.crud.toQuery() this.crud.toQuery()
}, },
isReturn(row, column) {
return this.dict.label.IS_OR_NOT[row.is_return]
},
downdtl() { downdtl() {
if (this.currentRow !== null) { if (this.currentRow !== null) {
this.showDtlLoading = true this.showDtlLoading = true