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