table增加剩余数量、总数量

This commit is contained in:
gyq 2024-12-25 14:59:13 +08:00
parent 872c79cc75
commit 1a3b207d4d
1 changed files with 10 additions and 0 deletions

View File

@ -32,6 +32,16 @@
<span>{{ scope.row.number }}</span> <span>{{ scope.row.number }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="剩余数量">
<template slot-scope="scope">
<span>{{ scope.row.surplusNumber }}</span>
</template>
</el-table-column>
<el-table-column label="总数量">
<template slot-scope="scope">
<span>{{ scope.row.totalNumber }}</span>
</template>
</el-table-column>
<el-table-column label="编辑"> <el-table-column label="编辑">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button type="text" size="mini" @click="openAdd(scope.row)" <el-button type="text" size="mini" @click="openAdd(scope.row)"