feat:光芯出入库记录添加标记项

This commit is contained in:
shijing 2026-05-12 16:11:59 +08:00
parent 140fe1668a
commit 275619fd30
1 changed files with 17 additions and 0 deletions

View File

@ -170,6 +170,10 @@
<el-table-column label="仓库" prop="warehouse_name">
</el-table-column>
<el-table-column label="数量" prop="count">
<template #default="scope">
{{ scope.row.count }}
<el-tag :type="getType(scope.row.okcate)" v-if="scope.row.defect_name">{{ scope.row.defect_name }}</el-tag>
</template>
</el-table-column>
<el-table-column label="操作" width="90">
<template #default="scope">
@ -237,6 +241,10 @@
<el-table-column label="仓库" prop="warehouse_name">
</el-table-column>
<el-table-column label="数量" prop="count">
<template #default="scope">
{{ scope.row.count }}
<el-tag :type="getType(scope.row.okcate)" v-if="scope.row.defect_name">{{ scope.row.defect_name }}</el-tag>
</template>
</el-table-column>
<el-table-column
label="组合件信息"
@ -417,6 +425,15 @@ export default {
}
Object.assign(this.form, data);
},
getType(type){
if(type==10){
return 'success'
}else if(type==20){
return 'danger'
}else if(type==30){
return 'warning'
}
},
getTableData() {
let that = this;
let obj = {};