refactor(入库任务): 入库类型 列修改

This commit is contained in:
Kelvin 2024-11-29 14:24:52 +08:00
parent dce12bd64a
commit f6388a9249

View File

@ -32,7 +32,7 @@
<el-table-column label="目标库位" align="center" prop="cellName"/>
<el-table-column label="出入库类型" align="center" prop="planTypeId">
<template slot-scope="scope">
{{ filterInPlanType(scope.row.planTypeId) }}
{{ filterInPlanType(scope.row.planTypeCode) }}
</template>
</el-table-column>
<el-table-column label="物料" align="center" prop="materialName"/>
@ -224,15 +224,15 @@ export default {
},
/**
* 过滤出入库类型
* @param id 出入库类型ID
* @param code 出入库类型 编码
* @returns {*}
*/
filterInPlanType(id) {
const filter = this.inPlanTypeList.filter(item => item.typeId === id);
filterInPlanType(code) {
const filter = this.inPlanTypeList.filter(item => item.code === code);
if (filter.length) {
return filter[0].name
}
return id
return code
},
/**
* 下发任务至 WCS