<script setup lang="ts">
import { useVModel } from "@vueuse/core";
import { httpList } from "/@/api/parameter/finance";
import RemoteSelect from "/@/components/RemoteSelect";

const props = defineProps<{
  modelValue: string;
}>();

const value = useVModel(props, "modelValue");
</script>

<template>
  <RemoteSelect
    v-model:value="value"
    :api="httpList"
    style="width: 95%"
    placeholder="请选择卖方公司"
    request-prop="companyName"
    response-label-prop="company_name"
    response-val-prop="companyNo"
  />
</template>
