货商下拉修改
This commit is contained in:
1 parent
1c9920c314
commit
978176eea5
1 file changed
+2
-2
@@ -11,7 +11,7 @@
|
||||
:loading="state.loading"
|
||||
@visible-change="(e: boolean) => e && getOptions()"
|
||||
>
|
||||
<el-option v-for="v in state.options" :key="v.id" :label="`${v.supplierName}`" :value="v.supplierId">
|
||||
<el-option v-for="v in state.options" :key="v.supplierId" :label="v.supplierName" :value="v.supplierId">
|
||||
<!-- <div class="flex items-center">
|
||||
<div class="color-primary">{{ v.name }}</div>
|
||||
<div class="flex items-center just ml5">
|
||||
@@ -62,7 +62,7 @@ async function getOptions() {
|
||||
...queryForm,
|
||||
}
|
||||
const { data } = await getSupplierSimpleAll(_pa)
|
||||
state.options = data ? data.filter((item: any) => item.id) : []
|
||||
state.options = data ? data.filter((item: any) => item.supplierId) : []
|
||||
} finally {
|
||||
setTimeout(() => (state.loading = false), 500)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user