物资字典维护 页面调整

ywj_dev
wangwei 2 years ago
parent 2c5c98863e
commit 1416eae44d

@ -143,12 +143,16 @@
<el-table-column label="生产企业" prop="ylqxzcrbarmc" width="180" show-overflow-tooltip></el-table-column> <el-table-column label="生产企业" prop="ylqxzcrbarmc" width="180" show-overflow-tooltip></el-table-column>
<el-table-column label="集采状态" prop="groupBuy" width="120" show-overflow-tooltip> <el-table-column label="集采状态" prop="groupBuy" width="120" show-overflow-tooltip>
<template slot-scope="scope"> <template slot-scope="scope">
<el-tag :type="(scope.row.groupBuy) | statusFilterType">
{{ groupBuyMap[scope.row.groupBuy] }} {{ groupBuyMap[scope.row.groupBuy] }}
</el-tag>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="可配送状态" prop="dispatch" width="120" show-overflow-tooltip> <el-table-column label="可配送状态" prop="dispatch" width="120" show-overflow-tooltip>
<template slot-scope="scope"> <template slot-scope="scope">
<el-tag :type="(scope.row.dispatch) | statusFilterType">
{{ dispatchMap[scope.row.dispatch] }} {{ dispatchMap[scope.row.dispatch] }}
</el-tag>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column width="180" label="操作" fixed="right"> <el-table-column width="180" label="操作" fixed="right">
@ -1282,6 +1286,16 @@ export default {
useNumEnable: true, useNumEnable: true,
}; };
}, },
filters: {
statusFilterType(status) {
const statusMap = {
false: "warning",
true: "success",
};
return statusMap[status];
},
},
methods: { methods: {
onReset() { onReset() {

Loading…
Cancel
Save