12345678910111213141516171819202122232425262728 |
- 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,
- }
- })
- }
- })
- },
- }
- }
|