Explorar el Código

平台应收订单-批量结算增加对接人数据检验

@dongkboy hace 1 semana
padre
commit
9bc9729b9e
Se han modificado 1 ficheros con 8 adiciones y 1 borrados
  1. 8 1
      src/views/platform/ticket.vue

+ 8 - 1
src/views/platform/ticket.vue

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