| | |
| | | import duration from 'dayjs/plugin/duration' |
| | | dayjs.extend(duration) |
| | | import { ywStockPage,ywStockPageEx } from '@/api/store/index' |
| | | import { fetchList as getStoreList } from '@/api/ywWarehouse' |
| | | export default { |
| | | components: { |
| | | Pagination, |
| | |
| | | filed: 'warehouseId', |
| | | type: 'select', |
| | | label: '所在仓库', |
| | | labelCode: 'name', |
| | | valueCode: 'id', |
| | | options: [] |
| | | }, |
| | | { |
| | |
| | | }, |
| | | created() { |
| | | this.getList() |
| | | this.initData() |
| | | }, |
| | | methods: { |
| | | initData() { |
| | | getStoreList({ capacity: 9999, page: 1, model: {} }).then(res => { |
| | | this.queryFormConfig.formItems[0].options = res.records || [] |
| | | }) |
| | | }, |
| | | getList(page) { |
| | | const { pagination, filters } = this |
| | | this.loading = true |