|
|
@ -674,19 +674,23 @@ const buttonBaseClick = (val, item) => { |
|
|
|
// 获取供应商列表 |
|
|
|
const getFormSupplierList = async () => { |
|
|
|
|
|
|
|
options.originSupplierList = await getSupplierList() |
|
|
|
options.originSupplierList = await getSupplierList(null) |
|
|
|
options.supplierList = [...options.originSupplierList] |
|
|
|
} |
|
|
|
// 获取客户列表 |
|
|
|
const getFormCustomerList = async () => { |
|
|
|
|
|
|
|
options.originSupplierList = await getCustomerList() |
|
|
|
options.originSupplierList = await getCustomerList(null) |
|
|
|
options.supplierList = [...options.originSupplierList] |
|
|
|
} |
|
|
|
const filterMethod = (query: string) => { |
|
|
|
if (query) { |
|
|
|
options.supplierList = options.originSupplierList.filter((item) => { |
|
|
|
return item.name.includes(query) |
|
|
|
if(item.name==''){ |
|
|
|
return item.code.includes(query) |
|
|
|
}else{ |
|
|
|
return item.name.includes(query) |
|
|
|
} |
|
|
|
}) |
|
|
|
} else { |
|
|
|
options.supplierList = [...options.originSupplierList] |
|
|
|