add:出库管理区分仓库,部装半成品调拨线边回传eas增加跟踪号

This commit is contained in:
zhaoyf
2026-09-20 10:01:17 +08:00
parent 9a569e9ee1
commit 09130bdc24
6 changed files with 32 additions and 19 deletions

View File

@@ -721,6 +721,7 @@ public class MesToWmsServiceImpl implements MesToWmsService {
entry.put("unitNo", "PCS");
entry.put("qty", loadMatDto.getLoadQty()); // 数量
entry.put("materialNo", materialCode);
entry.put("trackNo", item.getTrack_no());
entry.put("issueWarehouseNo", storCode1);//部装半成品库
entry.put("receiptWarehouseNo", storCode2);//到装配线边
entrys.add(entry);
@@ -945,6 +946,7 @@ public class MesToWmsServiceImpl implements MesToWmsService {
entry.put("unitNo", "PCS");
entry.put("qty", param.getUnloadQty()); // 数量
entry.put("materialNo", materialCode);
entry.put("trackNo", workOrder.getTrack_no());
entry.put("issueWarehouseNo", storCode1);//喷涂半成品库
entry.put("receiptWarehouseNo", storCode2);//到装配半成品
entrys.add(entry);

View File

@@ -32,8 +32,8 @@ public class OutBillController {
@GetMapping
@Log("查询出库单")
public ResponseEntity<Object> query(@RequestParam Map whereJson, PageQuery page, String[] stor_id, String[] bill_status, String[] bill_type) {
return ResponseData.build(iOutBillService.pageQuery(whereJson, page, stor_id, bill_status, bill_type), HttpStatus.OK);
public ResponseEntity<Object> query(@RequestParam Map whereJson, PageQuery page, String[] stor_code, String[] bill_status, String[] bill_type) {
return ResponseData.build(iOutBillService.pageQuery(whereJson, page, stor_code, bill_status, bill_type), HttpStatus.OK);
}
@GetMapping("/getCanuseIvt")

View File

@@ -31,7 +31,7 @@ public interface IOutBillService extends IService<IOStorInv> {
* @param page 分页参数
* @return Map<String, Object>
*/
IPage<IOStorInv> pageQuery(Map whereJson, PageQuery page, String[] stor_id, String[] bill_status, String[] bill_type);
IPage<IOStorInv> pageQuery(Map whereJson, PageQuery page, String[] stor_code, String[] bill_status, String[] bill_type);
/**
* 获取可用库存物料

View File

@@ -149,9 +149,11 @@
ios.is_upload = #{params.is_upload}
</if>
<if test="params.stor_id != null">
AND
ios.stor_id = #{params.stor_id}
<if test="params.storCodes != null and params.storCodes.size() > 0">
AND ios.stor_code IN
<foreach collection="params.storCodes" item="storCode" open="(" close=")" separator=",">
#{storCode}
</foreach>
</if>
<if test="params.bill_status != null">

View File

@@ -109,23 +109,23 @@ public class OutBillServiceImpl extends ServiceImpl<IOStorInvMapper,IOStorInv> i
@Override
public IPage<IOStorInv> pageQuery(Map whereJson, PageQuery page, String[] stor_id, String[] bill_status, String[] bill_type) {
HashMap<String, String> map = new HashMap<>(whereJson);
public IPage<IOStorInv> pageQuery(Map whereJson, PageQuery page, String[] stor_code, String[] bill_status, String[] bill_type) {
HashMap<String, Object> map = new HashMap<>(whereJson);
if (StrUtil.isNotEmpty(map.get("bill_code"))) {
if (StrUtil.isNotEmpty((String) map.get("bill_code"))) {
map.put("bill_code", "%" + map.get("bill_code") + "%");
}
if (StrUtil.isNotEmpty(map.get("is_upload"))) {
if (StrUtil.isNotEmpty((String) map.get("is_upload"))) {
map.put("is_upload", map.get("is_upload"));
}
// 空格查询
if (StrUtil.isNotEmpty(map.get("pcsn"))) {
if (StrUtil.isNotEmpty((String) map.get("pcsn"))) {
map.put("pcsn", map.get("pcsn"));
}
if (ObjectUtil.isNotEmpty(stor_id)) {
map.put("stor_id", map.get("stor_id"));
if (ObjectUtil.isNotEmpty(stor_code)) {
map.put("storCodes", Arrays.asList(stor_code));
}
if (ObjectUtil.isNotEmpty(bill_status)) {

View File

@@ -31,18 +31,20 @@
</el-form-item>
<el-form-item label="所属仓库">
<el-select
v-model="query.stor_id"
v-model="query.stor_code"
multiple
collapse-tags
clearable
filterable
size="mini"
placeholder="全部"
class="filter-item"
>
<el-option
v-for="item in storlist"
:key="item.stor_id"
:key="item.stor_code"
:label="item.stor_name"
:value="item.stor_id"
:value="item.stor_code"
/>
</el-select>
</el-form-item>
@@ -247,11 +249,8 @@ import AddDialog from '@/views/wms/st/outbill/AddDialog'
import DivDialog from '@/views/wms/st/outbill/DivDialog'
import ViewDialog from '@/views/wms/st/outbill/ViewDialog'
import crudBsrealstorattr from '@/views/wms/basedata/bsrealstorattr/bsrealstorattr'
import crudPurchase from '@/views/wms/pm_manage/otherIn/purchase'
import QRCode from 'qrcode'
const start = new Date()
export default {
name: 'Checkoutbill',
components: { ViewDialog, AddDialog, crudOperation, rrOperation, udOperation, pagination, DivDialog },
@@ -313,6 +312,7 @@ export default {
methods: {
/* 搜索框创建时间默认最近一周*/
initQuery() {
this.$set(this.query, 'stor_code', this.getRouteStorCodes())
const end = new Date()
const start = new Date()
const endYear = end.getFullYear()
@@ -339,6 +339,15 @@ export default {
this.$set(this.query, 'createTime', [startDate, endDate])
this.crud.toQuery()
},
getRouteStorCodes() {
const pathParts = this.$route.path.split('/').filter(Boolean)
const routeIndex = pathParts.findIndex(item => item.toLowerCase() === 'checkoutbill')
const routeValue = pathParts[routeIndex + 1]
if (routeIndex === -1 || !routeValue) {
return []
}
return [...new Set(decodeURIComponent(routeValue).split('_').filter(Boolean))]
},
canUd(row) {
return row.bill_status !== '10'
},