feat: 打通出库作业链路

This commit is contained in:
zgw
2026-06-24 09:13:18 +08:00
parent a3c023a8d3
commit 1af5b3cbd3
141 changed files with 17337 additions and 1065 deletions

View File

@@ -250,6 +250,7 @@
<el-table-column label="批次" align="center" prop="lotNo" width="150"/>
<el-table-column label="物料编码" align="center" prop="productId" width="150"/>
<el-table-column label="物料名称" align="center" prop="productName" min-width="150" show-overflow-tooltip/>
<el-table-column label="库存明细" align="center" prop="stockDetailId" width="160" show-overflow-tooltip/>
<el-table-column label="计划数量" align="center" prop="quantity" width="100"/>
<el-table-column label="扫码数量" align="center" prop="allotNum" width="100"/>
<el-table-column label="实际数量" align="center" prop="assignNum" width="100"/>
@@ -288,12 +289,13 @@
>
<el-table-column type="selection" width="55" align="center"/>
<el-table-column label="库存ID" prop="stockId" align="center"/>
<el-table-column label="明细ID" prop="detailId" align="center" width="160" show-overflow-tooltip/>
<el-table-column label="物料编码" prop="productId" align="center"/>
<el-table-column label="物料名称" prop="productName" align="center"/>
<el-table-column label="批次" prop="lotNo" align="center"/>
<el-table-column label="货位" prop="cargoSpaceName" align="center"/>
<el-table-column label="托盘号" prop="trayCode" align="center"/>
<el-table-column label="可用数量" prop="quantity" align="center"/>
<el-table-column label="可用数量" prop="availableQuantity" align="center"/>
</el-table>
<div slot="footer" class="dialog-footer">
@@ -314,7 +316,7 @@ import {
manualAssignStockout
} from "@/api/out/stockout"
import { listStockoutdetail } from "@/api/out/stockoutdetail"
import { listStock } from "@/api/bas/stock"
import { listStockDetail } from "@/api/bas/stock"
export default {
name: "Stockout",
@@ -445,8 +447,12 @@ export default {
const detail = this.detailList.find(item => item.stockoutDetailId === this.detailIds[0])
this.assignDialogVisible = true
this.stockLoading = true
// 根据物料编码查询可用库存
listStock({ productId: detail.productId }).then(res => {
// 根据物料编码查询可用库存明细
listStockDetail({
productId: detail.productId,
warehouseId: this.currentStockout ? this.currentStockout.warehouseId : null,
stockStatus: '1'
}).then(res => {
this.stockList = res.rows
this.stockLoading = false
})
@@ -463,7 +469,7 @@ export default {
this.$modal.msgWarning("请选择要出库的库存")
return
}
const stockIdList = this.selectedStockList.map(item => item.stockId)
const stockIdList = Array.from(new Set(this.selectedStockList.map(item => item.detailId || item.stockDetailId || item.stockId)))
const detailId = this.detailIds[0]
this.$modal.confirm("确认选中库存进行分配?").then(() => {