data.ts
655 Bytes
import { ref } from 'vue';
import { queryNoOptions } from '../../../api/project/order';
export function getFormConfig() {
const innerNoOptions = ref([]);
return {
labelWidth: 100,
schemas: [
{
field: `innerNo`,
label: `内部编号`,
component: 'Select',
colProps: {
span: 8,
},
labelWidth: 70,
componentProps: {
options: innerNoOptions,
showSearch: true,
mode: 'multiple',
onSearch: async (value: any) => {
innerNoOptions.value = await queryNoOptions('innerNo', value);
},
},
},
],
};
}