chenrui  2 жил өмнө
parent
commit
88eacd280f

+ 25 - 0
src/views/system/securityCheck/components/securityCheckHeader.vue

@@ -110,6 +110,7 @@
           </a-select>
         </a-form-item> -->
         <a-select
+          v-if="agentShow"
           :placeholder="searchPlaceholder"
           v-model="formData.searchTexts"
           allowClear
@@ -129,6 +130,22 @@
           </a-select-option>
         </a-select>
       </template>
+      <template v-if="withInputer">
+        <a-form-item prop="searchText" style="margin-right: 8px">
+          <a-auto-complete
+            ref="autocomplete"
+            v-model="formData.searchText"
+            size="small"
+            prefix-icon="el-icon-search"
+            :trigger-on-focus="false"
+            :fetch-suggestions="querySearch"
+            value-key="name"
+            :placeholder="searchPlaceholder"
+            clearable
+            @clear="inputClearHandler"
+          />
+        </a-form-item>
+      </template>
       <template v-if="withSearchButton">
         <a-form-item style="margin-right: 16px">
           <a-button size="small" type="primary" @click="search">查询</a-button>
@@ -186,6 +203,10 @@ export default {
       type: Boolean,
       default: true,
     },
+    withInputer: {
+      type: Boolean,
+      default: false,
+    },
     searchPlaceholder: {
       type: String,
       default: '请输入代理人名称',
@@ -203,6 +224,10 @@ export default {
       type: Boolean,
       default: true,
     },
+    agentShow: {
+      type: Boolean,
+      default: true,
+    },
     optionLists: {
       type: Array,
       default: () => [

+ 1 - 1
src/views/system/securityCheck/views/agentHome.vue

@@ -263,7 +263,7 @@ export default {
       this.queryData.agentLevel = agentLevel
       this.queryData.agentCode = agentCode
     }
-    this.getData()
+    // this.getData()
   },
   methods: {
     search(data) {

+ 1 - 1
src/views/system/securityCheck/views/cargoStatisticsHome.vue

@@ -425,7 +425,7 @@ export default {
       this.queryData.agentLevel = this.$route.params.agentLevel
       this.queryData.agentCode = this.$route.params.agentCode
     }
-    this.getData()
+    // this.getData()
   },
   methods: {
     search(data) {

+ 2 - 0
src/views/system/securityCheck/views/waybillTable.vue

@@ -7,6 +7,8 @@
         :with-date-picker="false"
         :with-select="false"
         :with-input="true"
+        :agentShow="false"
+        :withInputer="true"
         searchPlaceholder="请输入运单编号查询"
         @search="searchHandler"
         @exportex="exportex"