代码更新
This commit is contained in:
@@ -81,22 +81,25 @@
|
||||
<!--如果想在工具栏加入更多按钮,可以使用插槽方式, slot = 'left' or 'right'-->
|
||||
<crudOperation :permission="permission"/>
|
||||
<!--表格渲染-->
|
||||
<el-table ref="table" show-summary :summary-method="getSum" :max-height="590" v-loading="crud.loading" :data="crud.data" size="mini"
|
||||
style="width: 100%;" @selection-change="crud.selectionChangeHandler">
|
||||
<el-table-column prop="class_name" label="物料分类"/>
|
||||
<el-table ref="table" :cell-style="cellStyleMst" show-summary :summary-method="getSum" :max-height="590" v-loading="crud.loading" :data="crud.data" size="mini" style="width: 100%;" @selection-change="crud.selectionChangeHandler">
|
||||
<el-table-column prop="stor_name" label="仓库"/>
|
||||
<el-table-column prop="class_code" label="物料分类编码" width="100px" />
|
||||
<el-table-column prop="class_name" label="物料分类名称" width="100px" />
|
||||
<el-table-column prop="material_code" label="物料编码" min-width="150" show-overflow-tooltip/>
|
||||
<el-table-column prop="material_name" label="物料名称" min-width="150" show-overflow-tooltip/>
|
||||
<el-table-column prop="pcsn" label="批次" min-width="120" show-overflow-tooltip/>
|
||||
<el-table-column prop="quality_scode" label="品质类型" :formatter="formatQualityName" />
|
||||
<el-table-column prop="ivt_level" label="库存等级" :formatter="formatIvtName" />
|
||||
<el-table-column prop="is_active" label="是否可用" :formatter="formatIsName" />
|
||||
<el-table-column prop="unit_name" label="单位"/>
|
||||
<el-table-column prop="start_num" label="期初数" :formatter="crud.formatNum3"/>
|
||||
<el-table-column prop="in_num" label="入库数" :formatter="crud.formatNum3"/>
|
||||
<el-table-column prop="out_num" label="出库数" :formatter="crud.formatNum3"/>
|
||||
<el-table-column prop="less_num" label="其他出" :formatter="crud.formatNum3"/>
|
||||
<el-table-column prop="more_num" label="其他入" :formatter="crud.formatNum3"/>
|
||||
<el-table-column prop="end_num" label="结存" :formatter="crud.formatNum3"/>
|
||||
<el-table-column prop="material_model" label="型号/牌号" min-width="150" show-overflow-tooltip/>
|
||||
<el-table-column prop="unit_name" label="主单位"/>
|
||||
<el-table-column prop="pcsn" label="批次号" min-width="120" show-overflow-tooltip/>
|
||||
<el-table-column prop="dept_name" label="所属组织" min-width="120" show-overflow-tooltip/>
|
||||
<!-- <el-table-column prop="quality_scode" label="品质类型" :formatter="formatQualityName" />-->
|
||||
<el-table-column prop="ivt_level" label="质量等级" :formatter="formatIvtName" />
|
||||
<!-- <el-table-column prop="is_active" label="是否可用" :formatter="formatIsName" />-->
|
||||
<el-table-column prop="start_num" label="期初主数量" :formatter="crud.formatNum3" width="100px" />
|
||||
<el-table-column prop="in_num" label="入库主数量" :formatter="crud.formatNum3" width="100px" />
|
||||
<el-table-column prop="out_num" label="出库主数量" :formatter="crud.formatNum3" width="100px" />
|
||||
<!-- <el-table-column prop="less_num" label="其他出" :formatter="crud.formatNum3"/>-->
|
||||
<!-- <el-table-column prop="more_num" label="其他入" :formatter="crud.formatNum3"/>-->
|
||||
<el-table-column prop="end_num" label="结存主数量" :formatter="crud.formatNum3" width="100px" />
|
||||
</el-table>
|
||||
<!--分页组件-->
|
||||
<pagination/>
|
||||
@@ -324,6 +327,13 @@ export default {
|
||||
}
|
||||
})
|
||||
return sums
|
||||
},
|
||||
cellStyleMst({ row, column, rowIndex, columnIndex }) {
|
||||
if (column.property === 'dept_name') {
|
||||
if (row.is_yellow !== undefined) {
|
||||
return 'background: yellow'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user