Explorar o código

平台应收结算不同对接人批量结算禁止结算,加消息提示

@dongkboy hai 1 mes
pai
achega
bd36345f0a
Modificáronse 1 ficheiros con 14 adicións e 3 borrados
  1. 14 3
      src/views/platform/ticket.vue

+ 14 - 3
src/views/platform/ticket.vue

@@ -34,8 +34,8 @@
             <el-option value="不在固定范围" label="不在固定范围"></el-option>
             <el-option value="为空" label="为空"></el-option>
           </el-select>
-          <el-select class="w-350px" v-if="item.name == 'contactPerson'" v-model="item.search" placeholder="请选择"
-            clearable :disabled="item.type == '为空'">
+          <el-select class="w-350px" v-if="item.name == 'contactPerson'" v-model="item.search" placeholder="请选择" filterable
+            clearable :disabled="item.type == '为空'" @change="handleContactPersonChange(index, $event)">
             <el-option v-for="item in options" :key="item.contactPerson" :value="item.contactPerson"
               :label="item.contactPerson"></el-option>
           </el-select>
@@ -289,7 +289,11 @@ const initCompany = () => {
     }
   })
 }
-
+  // 对接人改变时 赋值
+  const handleContactPersonChange = (index: number, val: string) => {
+    contactPerson.value = val
+    searchList.value[index].search = val
+  }
 //保险公司协议
 
 const initData = () => {
@@ -533,6 +537,13 @@ const handleBack = () => {
   }
 }
 const handleSettlement = () => {
+  if (contactPerson.value == '') {
+    ElMessage({
+      message: '请选择对接人!',
+      type: 'warning'
+    })
+    return
+  }
   // 查应收金额
   api.financeApi.getPlatformSettlementReceivableAmount({
     invoiceType: "5",