|
@@ -6,7 +6,7 @@
|
|
width="1200px"
|
|
width="1200px"
|
|
:close-on-click-modal="false"
|
|
: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">
|
|
<div class="flex-1 fit-size">
|
|
<el-table
|
|
<el-table
|
|
ref="table"
|
|
ref="table"
|
|
@@ -69,7 +69,7 @@
|
|
header-align="center"
|
|
header-align="center"
|
|
align="center"
|
|
align="center"
|
|
></el-table-column>
|
|
></el-table-column>
|
|
- <el-table-column
|
|
|
|
|
|
+ <!-- <el-table-column
|
|
label="单价(元)"
|
|
label="单价(元)"
|
|
prop="unitPrice"
|
|
prop="unitPrice"
|
|
align="right"
|
|
align="right"
|
|
@@ -86,7 +86,7 @@
|
|
header-align="right"
|
|
header-align="right"
|
|
><template slot-scope="scope">
|
|
><template slot-scope="scope">
|
|
{{ parseFloat(scope.row.amount).toFixed(2) }}
|
|
{{ parseFloat(scope.row.amount).toFixed(2) }}
|
|
- </template></el-table-column>
|
|
|
|
|
|
+ </template></el-table-column> -->
|
|
<el-table-column
|
|
<el-table-column
|
|
label="标签类型"
|
|
label="标签类型"
|
|
prop="tagTypeName"
|
|
prop="tagTypeName"
|
|
@@ -155,7 +155,7 @@
|
|
>
|
|
>
|
|
<template v-slot="{ row }">
|
|
<template v-slot="{ row }">
|
|
<div class="flex center layout-gap">
|
|
<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>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
@@ -235,7 +235,7 @@ export default {
|
|
onMergeCellsMethod ({ row, column, rowIndex, columnIndex }) {
|
|
onMergeCellsMethod ({ row, column, rowIndex, columnIndex }) {
|
|
let rowspan = 1
|
|
let rowspan = 1
|
|
|
|
|
|
- if (columnIndex === 17) { // 操作栏的列索引
|
|
|
|
|
|
+ if (columnIndex === 15) { // 操作栏的列索引
|
|
const spanData = this.colspanMap[`${row.address}|${row.applicantName}|${row.phone}|${row.isSend}`]
|
|
const spanData = this.colspanMap[`${row.address}|${row.applicantName}|${row.phone}|${row.isSend}`]
|
|
rowspan = -(spanData.index === rowIndex) & spanData.span
|
|
rowspan = -(spanData.index === rowIndex) & spanData.span
|
|
}
|
|
}
|
|
@@ -280,6 +280,21 @@ export default {
|
|
}
|
|
}
|
|
}).catch(console.error).finally(() => {})
|
|
}).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
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|