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