|
|
@@ -154,10 +154,11 @@
|
|
|
:label="costitem.productName" :name="costitem.productName">
|
|
|
<div class="flex justify-between items-center m-b-10px">
|
|
|
<div class="">
|
|
|
- <span class="strong">{{ costitem.productName }}费用({{
|
|
|
- showCostVoList(costitem.ptlAgreementCostVoList,
|
|
|
- item).length
|
|
|
- }}条)</span>
|
|
|
+ <span class="strong">{{ costitem.productName }}费用(
|
|
|
+ {{
|
|
|
+ costitem.total ?? showCostVoList(costitem.ptlAgreementCostVoList,
|
|
|
+ item).length
|
|
|
+ }}条)</span>
|
|
|
<el-button type="primary" link @click="handleUpdateValidDate()"> 批量设置有效期
|
|
|
</el-button>
|
|
|
<el-button type="primary" link @click="handleUpdateCostRatio()"> 批量设置比例
|
|
|
@@ -174,7 +175,8 @@
|
|
|
</div>
|
|
|
<ComplexTable showSelect :tableData="showCostVoList(costitem.ptlAgreementCostVoList, item)"
|
|
|
:columns="columns" :showIndex="false" maxHeight="calc(100vh - 300px)" :columnwidth="200"
|
|
|
- @selectionChange="(arr) => costIds = arr" @select-all="(arr) => costIds = arr">
|
|
|
+ @selectionChange="(arr) => costIds = arr" @select-all="(arr) => costIds = arr"
|
|
|
+ @changeShowTotal="(total) => costitem.total = total">
|
|
|
<template #costDescribe="{ data, bodyCell }">
|
|
|
<div class="whitespace-normal">{{ data.costDescribe }}</div>
|
|
|
</template>
|
|
|
@@ -701,7 +703,7 @@ const showCostVoList = (list, item) => {
|
|
|
let showList = list
|
|
|
if (item.searchInput) {
|
|
|
showList = showList.filter(v => {
|
|
|
- return item.searchInput.every(k => v.costDescribe?.includes(k) || v.costRules?.includes(k))
|
|
|
+ return item.searchInput.every(k => v.costDescribe?.includes(k))
|
|
|
})
|
|
|
}
|
|
|
if (item.date) {
|