完成出库计划执行时自动匹配库位

This commit is contained in:
刘名喜 2024-12-10 16:31:00 +08:00
parent 7b023cdc5d
commit ae39ff817a

View File

@ -257,20 +257,20 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="库位编码" prop="wmStorageAreaCode" min-width="150"> <!-- <el-table-column label="库位编码" prop="wmStorageAreaCode" min-width="150">-->
<template slot-scope="scope"> <!-- <template slot-scope="scope">-->
<!-- <el-input v-model="scope.row.wmStorageAreaCode" placeholder="请输入库位编码"/>--> <!-- &lt;!&ndash; <el-input v-model="scope.row.wmStorageAreaCode" placeholder="请输入库位编码"/>&ndash;&gt;-->
<el-input v-model="scope.row.wmStorageAreaCode" readonly="readonly" placeholder="请输入库位编码"> <!-- <el-input v-model="scope.row.wmStorageAreaCode" readonly="readonly" placeholder="请输入库位编码">-->
<el-button slot="append" @click="handleSelecArea(scope.row.index)" <!-- <el-button slot="append" @click="handleSelecArea(scope.row.index)"-->
icon="el-icon-search"></el-button> <!-- icon="el-icon-search"></el-button>-->
</el-input> <!-- </el-input>-->
</template> <!-- </template>-->
</el-table-column> <!-- </el-table-column>-->
<el-table-column label="库位名称" prop="wmStorageAreaName" min-width="150"> <!-- <el-table-column label="库位名称" prop="wmStorageAreaName" min-width="150">-->
<template slot-scope="scope"> <!-- <template slot-scope="scope">-->
<el-input v-model="scope.row.wmStorageAreaName" readonly="readonly" placeholder="请输入库位名称"/> <!-- <el-input v-model="scope.row.wmStorageAreaName" readonly="readonly" placeholder="请输入库位名称"/>-->
</template> <!-- </template>-->
</el-table-column> <!-- </el-table-column>-->
<!-- <el-table-column label="明细状态" prop="detailState" width="150">--> <!-- <el-table-column label="明细状态" prop="detailState" width="150">-->
<!-- <template slot-scope="scope">--> <!-- <template slot-scope="scope">-->
<!-- <el-select v-model="scope.row.detailState" placeholder="请选择明细状态">--> <!-- <el-select v-model="scope.row.detailState" placeholder="请选择明细状态">-->
@ -370,19 +370,19 @@
<el-input v-model="scope.row.detailBatchNum" placeholder="请输入明细批次" readonly="readonly"/> <el-input v-model="scope.row.detailBatchNum" placeholder="请输入明细批次" readonly="readonly"/>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="库位编码" prop="wmStorageAreaCode" min-width="150"> <!-- <el-table-column label="库位编码" prop="wmStorageAreaCode" min-width="150">-->
<template slot-scope="scope"> <!-- <template slot-scope="scope">-->
<el-input v-model="scope.row.wmStorageAreaCode" readonly="readonly" placeholder="请输入库位编码"> <!-- <el-input v-model="scope.row.wmStorageAreaCode" readonly="readonly" placeholder="请输入库位编码">-->
<el-button slot="append" @click="handleSelecArea(scope.row.index)" <!-- <el-button slot="append" @click="handleSelecArea(scope.row.index)"-->
icon="el-icon-search"></el-button> <!-- icon="el-icon-search"></el-button>-->
</el-input> <!-- </el-input>-->
</template> <!-- </template>-->
</el-table-column> <!-- </el-table-column>-->
<el-table-column label="库位名称" prop="wmStorageAreaName" min-width="150"> <!-- <el-table-column label="库位名称" prop="wmStorageAreaName" min-width="150">-->
<template slot-scope="scope"> <!-- <template slot-scope="scope">-->
<el-input v-model="scope.row.wmStorageAreaName" readonly="readonly" placeholder="请输入库位名称"/> <!-- <el-input v-model="scope.row.wmStorageAreaName" readonly="readonly" placeholder="请输入库位名称"/>-->
</template> <!-- </template>-->
</el-table-column> <!-- </el-table-column>-->
<el-table-column label="明细状态" prop="detailState" width="150"> <el-table-column label="明细状态" prop="detailState" width="150">
<template slot-scope="scope"> <template slot-scope="scope">
<el-select v-model="scope.row.detailState" placeholder="请选择明细状态" readonly="readonly" disabled> <el-select v-model="scope.row.detailState" placeholder="请选择明细状态" readonly="readonly" disabled>
@ -613,7 +613,7 @@ export default {
if (valid) { if (valid) {
let sign = true; let sign = true;
this.wmsOutPlanDetailList.forEach(item => { this.wmsOutPlanDetailList.forEach(item => {
if (!item.mdItemId || !item.wmStorageAreaId || !item.plannedQuantity || !item.detailState) { if (!item.mdItemId || !item.plannedQuantity || !item.detailState) {
this.$modal.msgWarning("请将出库计划明细信息填写完整后保存"); this.$modal.msgWarning("请将出库计划明细信息填写完整后保存");
sign = false; sign = false;
} }