✨ feat: 家具初版
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
<template>
|
||||
<el-select filterable v-model="_customerId" remote :remote-method="remoteSearchCustomer" :loading="customerLoading" placeholder="请选择客户">
|
||||
<el-option v-for="item in customerList" :key="item.supplierId" :label="item.name" :value="item.supplierId" />
|
||||
<el-option v-for="item in customerList" :key="item.customerId" :label="item.name" :value="item.customerId" />
|
||||
</el-select>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { listSupplier } from '@/api/oa/supplier';
|
||||
import { listCustomer } from '@/api/wms/customer';
|
||||
|
||||
export default {
|
||||
name: 'CustomerSelect',
|
||||
@@ -37,7 +37,7 @@
|
||||
methods: {
|
||||
remoteSearchCustomer(query) {
|
||||
this.customerLoading = true;
|
||||
listSupplier({ name: query, pageNum: 1, pageSize: 10 }).then(response => {
|
||||
listCustomer({ name: query, pageNum: 1, pageSize: 10 }).then(response => {
|
||||
this.customerList = response.rows;
|
||||
}).finally(() => {
|
||||
this.customerLoading = false;
|
||||
|
||||
Reference in New Issue
Block a user