lilei 4 anos atrás
pai
commit
061f02ffa7
1 arquivos alterados com 3 adições e 25 exclusões
  1. 3 25
      src/views/salesManagement/outboundOrder/list.vue

+ 3 - 25
src/views/salesManagement/outboundOrder/list.vue

@@ -18,16 +18,7 @@
           </a-col>
           <a-col :md="6" :sm="24">
             <a-form-item label="客户名称">
-              <a-select
-                id="outboundOrderList-demanderName"
-                placeholder="请选择"
-                allowClear
-                v-model="queryParam.demanderName"
-                :showSearch="true"
-                option-filter-prop="children"
-                :filter-option="filterOption">
-                <a-select-option v-for="item in custAllList" :key="item.customerSn" :value="item.customerName">{{ item.customerName }}</a-select-option>
-              </a-select>
+              <custList id="outboundOrderList-demanderName" v-model="queryParam.demanderName"></custList>
             </a-form-item>
           </a-col>
           <a-col :md="6" :sm="24">
@@ -116,10 +107,10 @@
 <script>
 import moment from 'moment'
 import { STable, VSelect } from '@/components'
-import { custAllList } from '@/api/customer'
+import custList from '@/views/common/custList.js'
 import { stockOutList, stockOutOut } from '@/api/stockOut'
 export default {
-  components: { STable, VSelect },
+  components: { STable, VSelect, custList },
   data () {
     return {
       advanced: false, // 高级搜索 展开/关闭
@@ -132,7 +123,6 @@ export default {
       disabled: false, //  查询、重置按钮是否可操作
       dateFormat: 'YYYY-MM-DD',
       time: [], //  审核时间
-      custAllList: [], //  客户下拉数据
       columns: [
         { title: '序号', dataIndex: 'no', width: 80, align: 'center' },
         { title: '创建时间', dataIndex: 'createDate', width: 160, align: 'center' },
@@ -270,22 +260,10 @@ export default {
     onSelectChange (selectedRowKeys) {
       console.log('selectedRowKeys changed: ', selectedRowKeys)
       this.selectedRowKeys = selectedRowKeys
-    },
-    // 客户无分页列表数据
-    getCustAllList () {
-      const _this = this
-      custAllList().then(res => {
-        if (res.status == 200) {
-          _this.custAllList = res.data || []
-        } else {
-          _this.custAllList = []
-        }
-      })
     }
   },
   beforeRouteEnter (to, from, next) {
     next(vm => {
-      vm.getCustAllList()
     })
   }
 }