|
@@ -1,14 +1,7 @@
|
|
|
<template>
|
|
|
<div style="padding: 20px 2vw 0 2vw">
|
|
|
<el-form ref="ruleForm" :model="form" label-width="0">
|
|
|
- <el-table
|
|
|
- :data="form.products"
|
|
|
- size="small"
|
|
|
- :cell-style="{ padding: '0' }"
|
|
|
- header-row-class-name="tableHeader"
|
|
|
- show-summary
|
|
|
- :summary-method="getSummaries"
|
|
|
- >
|
|
|
+ <el-table :data="form.products" size="small" :cell-style="{ padding: '0' }" header-row-class-name="tableHeader" show-summary>
|
|
|
<el-table-column label="盈亏计算器" align="center" width="100">
|
|
|
<template slot-scope="scope">
|
|
|
<div v-if="scope.row.calculators && scope.row.calculators.length > 0">
|
|
@@ -95,7 +88,7 @@
|
|
|
<el-table-column label="交接单" align="center" width="150">
|
|
|
<template slot-scope="scope">
|
|
|
<el-button type="text" @click="clickRemark(scope.row)">查看</el-button>
|
|
|
- <el-button type="text" v-if="scope.row.attachments.length > 0" @click="clickFilePriview(scope.row)">查看附件</el-button>
|
|
|
+ <el-button type="text" v-if="scope.row.attachments && scope.row.attachments.length > 0" @click="clickFilePriview(scope.row)">查看附件</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|