|
|
@@ -78,9 +78,9 @@
|
|
|
activeindex: activeindex
|
|
|
}
|
|
|
})">取消</el-button>
|
|
|
- <el-button plain type="primary" :disabled="selectedList.some(item => item.receivablePremium <= 0)"
|
|
|
+ <el-button plain type="primary" :disabled="selectedList.some(item => item.receivablePremium <= 0) || (selectedList.length > 1 && !selectedList.every(item => item.companyId === selectedList[0]?.companyId))"
|
|
|
@click="handleTicket(true)">开票并结算</el-button>
|
|
|
- <el-button type="primary" :disabled="selectedList.some(item => item.receivablePremium <= 0)"
|
|
|
+ <el-button type="primary" :disabled="selectedList.some(item => item.receivablePremium <= 0) || (selectedList.length > 1 && !selectedList.every(item => item.companyId === selectedList[0]?.companyId))"
|
|
|
@click="handleTicket(false)">开票</el-button>
|
|
|
</div>
|
|
|
<el-dialog :close-on-click-modal="false" v-model="countShow" width="600" :title="isSettlement ? '开票并结算' : '开票'">
|
|
|
@@ -607,4 +607,4 @@ onMounted(() => {
|
|
|
color: #ccc;
|
|
|
}
|
|
|
}
|
|
|
-</style>
|
|
|
+</style>
|