|
@@ -6,7 +6,7 @@
|
|
|
width="1200px"
|
|
|
:close-on-click-modal="false"
|
|
|
>
|
|
|
- <div class="flex column" style="padding-bottom:20px;height:600px">
|
|
|
+ <div class="flex column" style="padding-bottom:20px;height:590px">
|
|
|
<div class="flex-1 fit-size">
|
|
|
<el-table
|
|
|
ref="table"
|
|
@@ -69,7 +69,7 @@
|
|
|
header-align="center"
|
|
|
align="center"
|
|
|
></el-table-column>
|
|
|
- <el-table-column
|
|
|
+ <!-- <el-table-column
|
|
|
label="单价(元)"
|
|
|
prop="unitPrice"
|
|
|
align="right"
|
|
@@ -86,7 +86,7 @@
|
|
|
header-align="right"
|
|
|
><template slot-scope="scope">
|
|
|
{{ parseFloat(scope.row.amount).toFixed(2) }}
|
|
|
- </template></el-table-column>
|
|
|
+ </template></el-table-column> -->
|
|
|
<el-table-column
|
|
|
label="标签类型"
|
|
|
prop="tagTypeName"
|
|
@@ -155,7 +155,7 @@
|
|
|
>
|
|
|
<template v-slot="{ row }">
|
|
|
<div class="flex center layout-gap">
|
|
|
- <edit-button :data="row" :on-click="onTagDistributeBtnClick" :disabled="row.isSend" icon="el-icon-share">发放</edit-button>
|
|
|
+ <edit-button :data="row" :on-click="onTagDistributeBtnClick" :disabled="distributeBtnDisabled(row)" icon="el-icon-share">发放</edit-button>
|
|
|
</div>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
@@ -235,7 +235,7 @@ export default {
|
|
|
onMergeCellsMethod ({ row, column, rowIndex, columnIndex }) {
|
|
|
let rowspan = 1
|
|
|
|
|
|
- if (columnIndex === 17) { // 操作栏的列索引
|
|
|
+ if (columnIndex === 15) { // 操作栏的列索引
|
|
|
const spanData = this.colspanMap[`${row.address}|${row.applicantName}|${row.phone}|${row.isSend}`]
|
|
|
rowspan = -(spanData.index === rowIndex) & spanData.span
|
|
|
}
|
|
@@ -280,6 +280,21 @@ export default {
|
|
|
}
|
|
|
}).catch(console.error).finally(() => {})
|
|
|
}
|
|
|
+ },
|
|
|
+ distributeBtnDisabled (row) {
|
|
|
+ if (row.isSend) {
|
|
|
+ return true
|
|
|
+ }
|
|
|
+ const spanData = this.colspanMap[`${row.address}|${row.applicantName}|${row.phone}|${row.isSend}`]
|
|
|
+ if (spanData) {
|
|
|
+ const ids = new Set(spanData.ids)
|
|
|
+ this.list.forEach(item => {
|
|
|
+ if (ids.has(item.id)) {
|
|
|
+ if (!item.isReprinting) { return true }
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+ return false
|
|
|
}
|
|
|
}
|
|
|
}
|