Commit 6df39096 authored by 沈翠玲's avatar 沈翠玲

仓库、储位改成模糊搜索

parent f5cf2960
...@@ -13,11 +13,12 @@ ...@@ -13,11 +13,12 @@
:placeholder="$t('请输入新增数')" /> :placeholder="$t('请输入新增数')" />
</uni-forms-item> </uni-forms-item>
<uni-forms-item :label="`${$t('选择仓库')}:`"> <uni-forms-item :label="`${$t('选择仓库')}:`">
<uni-data-select v-model="formData.warehouse" :localdata="warehouseRange" <zxz-uni-data-select filterable v-model="formData.warehouse" dataKey="text" dataValue="value"
@change="handleChange"></uni-data-select> :localdata="warehouseRange" @change="handleChange" />
</uni-forms-item> </uni-forms-item>
<uni-forms-item :label="`${$t('选择储位')}:`"> <uni-forms-item :label="`${$t('选择储位')}:`">
<uni-data-select v-model="formData.location" :localdata="storageRange"></uni-data-select> <zxz-uni-data-select filterable v-model="formData.location" dataKey="text" dataValue="value"
:localdata="storageRange" />
</uni-forms-item> </uni-forms-item>
</uni-forms> </uni-forms>
</view> </view>
...@@ -78,7 +79,7 @@ ...@@ -78,7 +79,7 @@
return { return {
...item, ...item,
value: item.ni002, value: item.ni002,
text: item.ni003, text: item.ni002,
} }
}) })
}) })
......
...@@ -16,11 +16,12 @@ ...@@ -16,11 +16,12 @@
:placeholder="$t('请输入调拨数')" @change="handleChangeNum" /> :placeholder="$t('请输入调拨数')" @change="handleChangeNum" />
</uni-forms-item> </uni-forms-item>
<uni-forms-item :label="`${$t('调入仓库')}:`"> <uni-forms-item :label="`${$t('调入仓库')}:`">
<uni-data-select v-model="info.allocateWarehouse" :localdata="warehouseRange" <zxz-uni-data-select filterable v-model="info.allocateWarehouse" dataKey="text" dataValue="value"
@change="handleChange"></uni-data-select> :localdata="warehouseRange" @change="handleChange" />
</uni-forms-item> </uni-forms-item>
<uni-forms-item :label="`${$t('调入储位')}:`"> <uni-forms-item :label="`${$t('调入储位')}:`">
<uni-data-select v-model="info.allocateLocation" :localdata="storageRange"></uni-data-select> <zxz-uni-data-select filterable v-model="info.allocateLocation" dataKey="text" dataValue="value"
:localdata="storageRange" />
</uni-forms-item> </uni-forms-item>
</uni-forms> </uni-forms>
</view> </view>
...@@ -33,10 +34,10 @@ ...@@ -33,10 +34,10 @@
info: { info: {
type: Object, type: Object,
default: () => {} default: () => {}
}, },
i: { i: {
type: Number, type: Number,
default: 0 default: 0
} }
}, },
data() { data() {
...@@ -46,9 +47,9 @@ ...@@ -46,9 +47,9 @@
} }
}, },
created() { created() {
this.getWarehouseList(); this.getWarehouseList();
if(this.info.allocateWarehouse) { if(this.info.allocateWarehouse) {
this.getStorageList(); this.getStorageList();
} }
}, },
methods: { methods: {
...@@ -74,7 +75,7 @@ ...@@ -74,7 +75,7 @@
return { return {
...item, ...item,
value: item.ni002, value: item.ni002,
text: item.ni003, text: item.ni002,
} }
}) })
}) })
...@@ -90,7 +91,7 @@ ...@@ -90,7 +91,7 @@
this.$u.toast(i18n.t('调拨数不能大于库存数')); this.$u.toast(i18n.t('调拨数不能大于库存数'));
} }
}, },
handleChange() { handleChange() {
this.getStorageList(); this.getStorageList();
}, },
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment