Browse Source

提交代码

Lijy 8 months ago
parent
commit
fd8f3697e9

+ 5 - 1
fhKeeper/formulahousekeeper/timesheet/src/views/contract/components/customContract.vue

@@ -61,7 +61,7 @@
         </el-form-item> -->
         <el-form-item>
           <span style="margin-left:5px;margin-right:5px;color:#606266;">对方单位</span>
-          <el-input v-model.trim="customerOrgs" placeholder="请输入" size="small" style="width: 150px" clearable @change="searchFilter"></el-input>
+          <el-input v-model.trim="customerOrgs" placeholder="请输入" size="small" style="width: 150px" clearable @input="onCustomerOrgsInput"></el-input>
         </el-form-item>
         <el-form-item>
           <span style="margin-left:5px;margin-right:5px;color:#606266;">合同状态</span>
@@ -627,6 +627,7 @@
 </template>
 
 <script>
+import { debounce } from 'lodash';
 export default {
   data() {
     return {
@@ -718,6 +719,9 @@ export default {
     //   console.log('test',row);
     //   // this.$refs.uploadFile.submit()
     // },
+    onCustomerOrgsInput: debounce(function() {
+      this.searchFilter();
+    }, 500),
     processingContractAmount() {
       console.log(this.contractForm.isAmountFixed, '<====== 开始执行')
       if(this.contractForm.isAmountFixed) {