Commit 0a922691 by zhangtw

批量入库添加入库日期

入库库位组件调整
parent 1fdb55bc
...@@ -80,7 +80,7 @@ ...@@ -80,7 +80,7 @@
readonly readonly
@focus="openLocationSelector" @focus="openLocationSelector"
:suffix-icon="''" :suffix-icon="''"
:disabled="!queryParams.warehouseId"
> >
<template v-if="queryLocationName" #suffix> <template v-if="queryLocationName" #suffix>
<i <i
...@@ -114,10 +114,10 @@ ...@@ -114,10 +114,10 @@
> >
<el-table-column label="物料SAPNO" align="center" prop="sapNo" width="200"/> <el-table-column label="物料SAPNO" align="center" prop="sapNo" width="200"/>
<el-table-column label="物料名称" align="center" prop="materialName" width="200"/> <el-table-column label="物料名称" align="center" prop="materialName" width="200"/>
<el-table-column label="关联入库单ID" align="center" prop="orderId" :show-overflow-tooltip="true" width="200"/> <el-table-column label="关联入库单" align="center" prop="orderId" :show-overflow-tooltip="true" width="200"/>
<el-table-column label="批次ID" align="center" prop="batchId" :show-overflow-tooltip="true" width="200"/> <el-table-column label="批次" align="center" prop="batchId" :show-overflow-tooltip="true" width="200"/>
<el-table-column label="所在仓库" align="center" prop="warehousesName" width="200"/> <el-table-column label="仓库" align="center" prop="warehousesName" width="200"/>
<el-table-column label="库位ID" align="center" prop="locationName" width="200"/> <el-table-column label="库位" align="center" prop="locationName" width="200"/>
<el-table-column label="入库数量" align="center" prop="actualQuantity" width="200"/> <el-table-column label="入库数量" align="center" prop="actualQuantity" width="200"/>
<el-table-column label="件数" align="center" prop="actualPackages" width="200"/> <el-table-column label="件数" align="center" prop="actualPackages" width="200"/>
<el-table-column label="单价" align="center" prop="unitPrice" width="200"/> <el-table-column label="单价" align="center" prop="unitPrice" width="200"/>
...@@ -159,7 +159,7 @@ ...@@ -159,7 +159,7 @@
<!-- 库位选择组件 --> <!-- 库位选择组件 -->
<LocationSelector <LocationSelector
v-model="locationSelectorVisible" v-model="locationSelectorVisible"
:warehousesId="queryParams.warehouseId"
@selected="handleLocationSelected" @selected="handleLocationSelected"
/> />
</div> </div>
...@@ -303,10 +303,10 @@ export default { ...@@ -303,10 +303,10 @@ export default {
/** 打开库位选择器 */ /** 打开库位选择器 */
openLocationSelector() { openLocationSelector() {
if (!this.queryParams.warehouseId) { // if (!this.queryParams.warehouseId) {
this.$message.warning("请先选择仓库") // this.$message.warning("请先选择仓库")
return // return
} // }
this.locationSelectorVisible = true this.locationSelectorVisible = true
}, },
......
...@@ -461,7 +461,6 @@ ...@@ -461,7 +461,6 @@
<!-- 库位选择组件 --> <!-- 库位选择组件 -->
<LocationSelector <LocationSelector
v-model="locationSelectorVisible" v-model="locationSelectorVisible"
:warehousesId="currentEditRowWarehousesId"
@selected="handleLocationSelected" @selected="handleLocationSelected"
/> />
</div> </div>
...@@ -813,7 +812,7 @@ export default { ...@@ -813,7 +812,7 @@ export default {
// 打开库位选择器 // 打开库位选择器
openLocationSelector(row) { openLocationSelector(row) {
this.currentEditRow = row this.currentEditRow = row
this.currentEditRowWarehousesId = row.warehouseId // 传递仓库ID给库位选择器 // this.currentEditRowWarehousesId = row.warehouseId // 传递仓库ID给库位选择器
this.locationSelectorVisible = true this.locationSelectorVisible = true
}, },
// 库位选择回调 // 库位选择回调
......
...@@ -157,7 +157,7 @@ ...@@ -157,7 +157,7 @@
v-model="scope.row.warehousesName" v-model="scope.row.warehousesName"
size="small" size="small"
readonly readonly
placeholder="请选择仓库" placeholder="请选择仓库"
@focus="$emit('open-warehouse-selector', scope.row)" @focus="$emit('open-warehouse-selector', scope.row)"
:suffix-icon="''" :suffix-icon="''"
> >
...@@ -179,7 +179,6 @@ ...@@ -179,7 +179,6 @@
placeholder="请选择库位" placeholder="请选择库位"
@focus="$emit('open-location-selector', scope.row)" @focus="$emit('open-location-selector', scope.row)"
:suffix-icon="''" :suffix-icon="''"
:disabled="!scope.row.warehouseId"
> >
<template v-if="scope.row.locationName" #suffix> <template v-if="scope.row.locationName" #suffix>
<i <i
...@@ -343,7 +342,7 @@ export default { ...@@ -343,7 +342,7 @@ export default {
{ prop: 'materialName', label: '货物名称', width: '150', editable: false }, { prop: 'materialName', label: '货物名称', width: '150', editable: false },
{ {
prop: 'warehousesName', prop: 'warehousesName',
label: '仓库', label: '仓库',
width: '150', width: '150',
editable: true, editable: true,
idProp: 'warehouseId' idProp: 'warehouseId'
...@@ -498,8 +497,6 @@ export default { ...@@ -498,8 +497,6 @@ export default {
if (!inboundOrderId) return if (!inboundOrderId) return
this.loading = true this.loading = true
this.queryParams.inboundOrderId = inboundOrderId this.queryParams.inboundOrderId = inboundOrderId
// 重置分页页码,避免切换入库单时使用之前的分页位置
this.queryParams.pageNum = 1
listInbound_itemsAndMname(this.queryParams).then(response => { listInbound_itemsAndMname(this.queryParams).then(response => {
this.displayData = response.rows.map(item => ({ this.displayData = response.rows.map(item => ({
...item, ...item,
......
...@@ -316,6 +316,7 @@ public class InboundOrdersServiceImpl implements IInboundOrdersService ...@@ -316,6 +316,7 @@ public class InboundOrdersServiceImpl implements IInboundOrdersService
"plannedPackages", "materialUnit", "materialRemark"); // 排除子表字段 "plannedPackages", "materialUnit", "materialRemark"); // 排除子表字段
// 填充主表必填字段 // 填充主表必填字段
mainDO.setId(UUID.randomUUID().toString()); mainDO.setId(UUID.randomUUID().toString());
mainDO.setInboundDate(now);
mainDO.setOrderId(orderId); mainDO.setOrderId(orderId);
mainDO.setCreateBy(operId); mainDO.setCreateBy(operId);
mainDO.setCreateTime(now); mainDO.setCreateTime(now);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论