|
@@ -78,12 +78,15 @@
|
|
|
activeindex: activeindex
|
|
activeindex: activeindex
|
|
|
}
|
|
}
|
|
|
})">取消</el-button>
|
|
})">取消</el-button>
|
|
|
- <el-button plain type="primary" :disabled="selectedList.some(item => item.receivablePremium <= 0) || (selectedList.length > 1 && !selectedList.every(item => item.companyId === selectedList[0]?.companyId))"
|
|
|
|
|
|
|
+ <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>
|
|
@click="handleTicket(true)">开票并结算</el-button>
|
|
|
- <el-button type="primary" :disabled="selectedList.some(item => item.receivablePremium <= 0) || (selectedList.length > 1 && !selectedList.every(item => item.companyId === selectedList[0]?.companyId))"
|
|
|
|
|
|
|
+ <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>
|
|
@click="handleTicket(false)">开票</el-button>
|
|
|
</div>
|
|
</div>
|
|
|
- <el-dialog :close-on-click-modal="false" v-model="countShow" width="600" :title="isSettlement ? '开票并结算' : '开票'">
|
|
|
|
|
|
|
+ <el-dialog :close-on-click-modal="false" v-model="countShow" width="600" :title="isSettlement ? '开票并结算' : '开票'"
|
|
|
|
|
+ @close="handleClose">
|
|
|
<el-form ref="CountForm" :model="countForm" :rules="countRules" label-width="120">
|
|
<el-form ref="CountForm" :model="countForm" :rules="countRules" label-width="120">
|
|
|
<el-form-item prop="invoiceParty" label="开票方">
|
|
<el-form-item prop="invoiceParty" label="开票方">
|
|
|
<el-select v-model="countForm.invoiceParty" placeholder="请选择开票方">
|
|
<el-select v-model="countForm.invoiceParty" placeholder="请选择开票方">
|
|
@@ -114,10 +117,12 @@
|
|
|
<el-input-number v-model="countForm.actualReceivedAmount" style="width: 100%;" :min="0" :precision="2"
|
|
<el-input-number v-model="countForm.actualReceivedAmount" style="width: 100%;" :min="0" :precision="2"
|
|
|
controls-position="right" @change="handleChange" />
|
|
controls-position="right" @change="handleChange" />
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
- <el-form-item v-if="isSettlement && countForm.actualReceivedAmount >= countForm.receivableSupervisePremium" prop="settlementPaymentDifference" label="回款差额" >
|
|
|
|
|
|
|
+ <el-form-item v-if="isSettlement && countForm.actualReceivedAmount >= countForm.receivableSupervisePremium"
|
|
|
|
|
+ prop="settlementPaymentDifference" label="回款差额">
|
|
|
<el-input v-model="countForm.settlementPaymentDifference" disabled></el-input>
|
|
<el-input v-model="countForm.settlementPaymentDifference" disabled></el-input>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
- <el-form-item v-if="isSettlement && countForm.actualReceivedAmount > countForm.receivableSupervisePremium" prop="settlementPaymentReason" label="差额原因">
|
|
|
|
|
|
|
+ <el-form-item v-if="isSettlement && countForm.actualReceivedAmount > countForm.receivableSupervisePremium"
|
|
|
|
|
+ prop="settlementPaymentReason" label="差额原因">
|
|
|
<el-input v-model="countForm.settlementPaymentReason" placeholder="请输入"></el-input>
|
|
<el-input v-model="countForm.settlementPaymentReason" placeholder="请输入"></el-input>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
<el-form-item prop="invoiceTime" label="开票日期">
|
|
<el-form-item prop="invoiceTime" label="开票日期">
|
|
@@ -488,6 +493,13 @@ const handelComfirmEdit = () => {
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
|
|
|
+/** 关闭弹窗 */
|
|
|
|
|
+const handleClose = () => {
|
|
|
|
|
+ countForm.value = {
|
|
|
|
|
+ attachmentIds: []
|
|
|
|
|
+ }
|
|
|
|
|
+ countShow.value = false
|
|
|
|
|
+}
|
|
|
onMounted(() => {
|
|
onMounted(() => {
|
|
|
initData()
|
|
initData()
|
|
|
initCompany()
|
|
initCompany()
|