import { getWarehouse } from "@/api/system" export default { data() { return { wareOptions: [] } }, methods: { getWareOptions(storehouseId, orgId) { this.wareOptions = [] return getWarehouse({ storehouseId, orgId }).then(resp => { if (resp.data) { this.wareOptions = resp.data.map(d => { return { text: d.warehouseName, value: d.warehouseId, raw: d, } }) } }) }, } }