|
@@ -138,6 +138,13 @@
|
|
|
<el-table :data="filteredProducts.data" style="width: 100%" height="400" @selection-change="handleProductSelectionChange" v-loading="loading">
|
|
|
<el-table-column type="selection" width="55"></el-table-column>
|
|
|
<el-table-column prop="name" label="商品名称" min-width="200"></el-table-column>
|
|
|
+ <el-table-column label="是否可用" prop="enabled" width="100">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <el-tag :type="scope.row.enabled ? 'success' : 'danger'" size="mini" effect="dark">
|
|
|
+ {{ scope.row.enabled ? '可用' : '不可用' }}
|
|
|
+ </el-tag>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
<el-table-column prop="no" label="生产型号" width="160"></el-table-column>
|
|
|
<el-table-column prop="type" label="类型" width="120"></el-table-column>
|
|
|
</el-table>
|
|
@@ -206,7 +213,7 @@ export default {
|
|
|
goodParams: {
|
|
|
page_no: 1,
|
|
|
page_size: 20,
|
|
|
- fixedCondition: ' enabled = 1 ',
|
|
|
+ // fixedCondition: ' enabled = 1 ',
|
|
|
sort: 'create_time',
|
|
|
dir: 'desc'
|
|
|
},
|