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

仓库、储位改成模糊搜索

parent f5cf2960
......@@ -13,11 +13,12 @@
:placeholder="$t('请输入新增数')" />
</uni-forms-item>
<uni-forms-item :label="`${$t('选择仓库')}:`">
<uni-data-select v-model="formData.warehouse" :localdata="warehouseRange"
@change="handleChange"></uni-data-select>
<zxz-uni-data-select filterable v-model="formData.warehouse" dataKey="text" dataValue="value"
:localdata="warehouseRange" @change="handleChange" />
</uni-forms-item>
<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>
</view>
......@@ -78,7 +79,7 @@
return {
...item,
value: item.ni002,
text: item.ni003,
text: item.ni002,
}
})
})
......
......@@ -16,11 +16,12 @@
:placeholder="$t('请输入调拨数')" @change="handleChangeNum" />
</uni-forms-item>
<uni-forms-item :label="`${$t('调入仓库')}:`">
<uni-data-select v-model="info.allocateWarehouse" :localdata="warehouseRange"
@change="handleChange"></uni-data-select>
<zxz-uni-data-select filterable v-model="info.allocateWarehouse" dataKey="text" dataValue="value"
:localdata="warehouseRange" @change="handleChange" />
</uni-forms-item>
<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>
</view>
......@@ -33,10 +34,10 @@
info: {
type: Object,
default: () => {}
},
i: {
type: Number,
default: 0
},
i: {
type: Number,
default: 0
}
},
data() {
......@@ -46,9 +47,9 @@
}
},
created() {
this.getWarehouseList();
if(this.info.allocateWarehouse) {
this.getStorageList();
this.getWarehouseList();
if(this.info.allocateWarehouse) {
this.getStorageList();
}
},
methods: {
......@@ -74,7 +75,7 @@
return {
...item,
value: item.ni002,
text: item.ni003,
text: item.ni002,
}
})
})
......@@ -90,7 +91,7 @@
this.$u.toast(i18n.t('调拨数不能大于库存数'));
}
},
handleChange() {
handleChange() {
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