import { getStorehouse } from "@/api/system.js" export default { data() { return { houseOptions: [] } }, methods: { getHouseOptions(orgId) { console.log('123123123', orgId); this.houseOptions = [] return getStorehouse({ orgId }).then(resp => { if (resp.data) { this.houseOptions = resp.data.map(d => { return { text: d.storehouseName, value: d.storehouseId, raw: d, } }) } }) }, } }