zy-asrs-admin/src/components/orderDetl/edit.vue
@@ -156,6 +156,7 @@
const matChecked = ref([]);
const matQueryList = ref(null);
const matFetching = ref(false);
const searchText = ref('')
const matSelectList = ref([]);
const addDetl = () => {
    openAddDetl.value = true;
@@ -193,6 +194,7 @@
}
const handleSearch = debounce(val => {
    searchText.value = val
    matQuery(val);
}, 600)
@@ -221,6 +223,7 @@
}
matQuery(null);
function matQuery(condition) {
    matFetching.value = true;
    post('/api/mat/page', {
@@ -334,10 +337,10 @@
        <a-modal v-model:open="openAddDetl" :title="formatMessage('component.orderDetl.edit.addDetl', '添加明细')"
            @ok="handleAddDetlOk" @cancel="handleAddDetlCancel">
            <a-select v-model:value="matChecked" :options="matQueryList" mode="multiple"
            <a-select v-model:value="matChecked" :options="matQueryList" mode="multiple" :searchValue="searchText"
                :placeholder="formatMessage('component.orderDetl.edit.selectMat', '请选择物料')" @search="handleSearch"
                :filter-option="false" :not-found-content="matFetching ? undefined : null" @select="handleSelect"
                @deselect="handleDeselect"></a-select>
                :filter-option="false" :not-found-content="matFetching ? undefined : null"  @select="handleSelect" allowClear
                @deselect="handleDeselect" ></a-select>
        </a-modal>
    </div>
</template>