refactor(入库计划): 入库类型 列修改
This commit is contained in:
parent
49c9a4686c
commit
dce12bd64a
@ -70,7 +70,7 @@
|
||||
<el-table-column label="计划编码" align="center" prop="planCode"/>
|
||||
<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="sourceType">
|
||||
@ -408,15 +408,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
|
||||
},
|
||||
/** 入库类型选择器回调 */
|
||||
handlePlanTypeSelectChange(typeId) {
|
||||
|
Loading…
Reference in New Issue
Block a user