Browse Source

update

Branch_JinYang
shiqian.wang 6 months ago
parent
commit
4420c442cb
  1. 11
      src/vue/src/app/ics-inventory/create-or-edit-ics-inventory/create-or-edit-ics-inventory.vue

11
src/vue/src/app/ics-inventory/create-or-edit-ics-inventory/create-or-edit-ics-inventory.vue

@ -60,9 +60,10 @@
<a-col :span="12">
<a-form-item :label="l('ItemMainCategory')" name="itemMainCategoryCode">
<!-- <a-input v-model:value="entity.itemMainCategoryCode" type="text" /> -->
<a-select v-model:value="entity.itemMainCategoryCode" style="width: 100%">
<a-select-option :value="item.value" :disabled="item.disabled" v-for="item in categoryCodeList"
:key="item.value">{{ item.text }}
<a-select v-model:value="entity.itemMainCategoryCode" :filter-option="opFilterOption" show-search style="width: 100%">
<a-select-option :value="item.value"
:disabled="item.disabled" v-for="item in categoryCodeList"
:key="item.value" :text="item.text">{{ item.text }}
</a-select-option>
</a-select>
</a-form-item>
@ -247,6 +248,7 @@
<script lang="ts">
import { ModalComponentBase } from '/@/shared/component-base';
import {
SelectItemExt,
CreateOrUpdateIcsInventoryInput,
IcsInventoryEditDto,
ExtensionServiceProxy,
@ -322,6 +324,9 @@ export default defineComponent({
this.getPageData(this.id);
},
methods: {
opFilterOption(inputValue: string, option: SelectItemExt) {
return option.text.indexOf(inputValue) > -1 || option.value.indexOf(inputValue) > -1;
},
getitemTypeList() {
this.extService.getEnumList('ItemTypeEnum', '')
.then((res) => {

Loading…
Cancel
Save