完善销售单

This commit is contained in:
2024-08-21 13:36:56 +08:00
parent 6d7958d165
commit 6cb238331c
2 changed files with 16 additions and 4 deletions

View File

@@ -144,7 +144,7 @@
<el-button style="margin-left: 10px" type="primary" class="btntopblueline" size="small" @click="chooseCommodity">选择商品</el-button> <el-button style="margin-left: 10px" type="primary" class="btntopblueline" size="small" @click="chooseCommodity">选择商品</el-button>
</div> </div>
</div> </div>
<el-table :key="commodityKey" :data="formobj.goodsList" :index="index" border style="width: 100%" show-summary :summary-method="getSummaries"> <el-table class="table" :key="commodityKey" :data="formobj.goodsList" :index="index" border style="width: 100%" show-summary :summary-method="getSummaries">
<el-table-column fixed width="60" label="序号" type="index" :index="index + 1" align="center" /> <el-table-column fixed width="60" label="序号" type="index" :index="index + 1" align="center" />
<el-table-column label="操作" align="center" width="80"> <el-table-column label="操作" align="center" width="80">
<template slot-scope="scope"> <template slot-scope="scope">
@@ -795,7 +795,7 @@ export default {
const sums = [] const sums = []
columns.forEach((column, index) => { columns.forEach((column, index) => {
if (index === 0) { if (index === 0) {
sums[index] = '合计' sums[index] = '合计:'
return return
} }
const values = data.map(item => Number(item[column.property])) const values = data.map(item => Number(item[column.property]))
@@ -1141,4 +1141,10 @@ export default {
.rowStyle .el-col .span-sty { .rowStyle .el-col .span-sty {
border-right: 0; border-right: 0;
} }
/deep/ .table .el-table__footer-wrapper .el-table__footer tr td {
border: 0 !important;
}
/deep/ .table .el-table__fixed-footer-wrapper .el-table__footer tr td {
border: 0 !important;
}
</style> </style>

View File

@@ -87,7 +87,7 @@
</el-col> </el-col>
</el-row> </el-row>
<div class="title">商品</div> <div class="title">商品</div>
<el-table :key="commodityKey" :data="formobj.goodsList" :index="index" border style="width: 100%" show-summary :summary-method="getSummaries"> <el-table class="table" :key="commodityKey" :data="formobj.goodsList" :index="index" border style="width: 100%" show-summary :summary-method="getSummaries">
<el-table-column fixed width="60" label="序号" type="index" :index="index + 1" align="center" /> <el-table-column fixed width="60" label="序号" type="index" :index="index + 1" align="center" />
<el-table-column prop="goodsSpuName" label="商品名称" align="center" min-width="200" /> <el-table-column prop="goodsSpuName" label="商品名称" align="center" min-width="200" />
<el-table-column prop="goodsSkuOwnSpec" label="规格" align="center" min-width="200" /> <el-table-column prop="goodsSkuOwnSpec" label="规格" align="center" min-width="200" />
@@ -255,7 +255,7 @@ export default {
const sums = [] const sums = []
columns.forEach((column, index) => { columns.forEach((column, index) => {
if (index === 0) { if (index === 0) {
sums[index] = '合计' sums[index] = '合计:'
return return
} }
const values = data.map(item => Number(item[column.property])) const values = data.map(item => Number(item[column.property]))
@@ -383,4 +383,10 @@ export default {
.rowStyle .el-col .span-sty { .rowStyle .el-col .span-sty {
border-right: 0; border-right: 0;
} }
/deep/ .table .el-table__footer-wrapper .el-table__footer tr td {
border: 0 !important;
}
/deep/ .table .el-table__fixed-footer-wrapper .el-table__footer tr td {
border: 0 !important;
}
</style> </style>