|
@@ -604,13 +604,20 @@ const handleBack = () => {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
const handleSettlement = () => {
|
|
const handleSettlement = () => {
|
|
|
- if (contactPerson.value == '') {
|
|
|
|
|
|
|
+ if (!contactPerson.value) {
|
|
|
ElMessage({
|
|
ElMessage({
|
|
|
message: '请选择对接人!',
|
|
message: '请选择对接人!',
|
|
|
type: 'warning'
|
|
type: 'warning'
|
|
|
})
|
|
})
|
|
|
return
|
|
return
|
|
|
}
|
|
}
|
|
|
|
|
+ if (tableData.value.some(item => item.contactPerson != contactPerson.value)) {
|
|
|
|
|
+ ElMessage({
|
|
|
|
|
+ message: '存在多个对接人,无法结算!',
|
|
|
|
|
+ type: 'warning'
|
|
|
|
|
+ })
|
|
|
|
|
+ return
|
|
|
|
|
+ }
|
|
|
// 查应收金额
|
|
// 查应收金额
|
|
|
api.financeApi.getPlatformSettlementReceivableAmount({
|
|
api.financeApi.getPlatformSettlementReceivableAmount({
|
|
|
invoiceType: "5",
|
|
invoiceType: "5",
|