Przeglądaj źródła

手续费开票记录清空保险公司还原所有保险机构

@dongkboy 1 miesiąc temu
rodzic
commit
6b826e75ae
1 zmienionych plików z 10 dodań i 3 usunięć
  1. 10 3
      src/views/receivable/handingFee/invoiceRecord.vue

+ 10 - 3
src/views/receivable/handingFee/invoiceRecord.vue

@@ -14,7 +14,8 @@
         </el-col>
         <el-col :span="8">
           <el-form-item prop="companyId" label="保险公司">
-            <el-select v-model="form.companyId" placeholder="请选择" clearable filterable @change="companyChange">
+            <el-select v-model="form.companyId" placeholder="请选择" clearable filterable @change="companyChange"
+              @clear="clearCompany">
               <el-option v-for="item in companyList" :key="item.id" :value="item.id" :label="item.name"></el-option>
             </el-select>
           </el-form-item>
@@ -535,17 +536,23 @@ const initOption = () => {
 }
 // 获取保险公司下的客户
 const companyChange = (e) => {
-  console.log(e)
+  if (!e) {
+    return
+  }
   let name = companyList.value.find(item => item.id == e).name;
   if (name) {
     company(name)
   }
 }
+const clearCompany = () => {
+  company('')
+
+}
 const getSummaries = (param) => {
   const { columns, data } = param
   const sums: (string | VNode)[] = []
   // 指定需要计算的字段列表(可根据需求添加字段名)
-  const specifiedFields = ['taxPoint', 'actualReceivedAmount','receivableAmount'] // 替换为您需要的字段名
+  const specifiedFields = ['taxPoint', 'actualReceivedAmount', 'receivableAmount'] // 替换为您需要的字段名
 
   columns.forEach((column, index) => {
     if (index === 0) {