| | |
| | | } |
| | | }, |
| | | created() { |
| | | this.getInventoryFileSelect() |
| | | this.getStockTypeSelect() |
| | | this.getWareHouseSelect() |
| | | this.handleRequest() |
| | | }, |
| | | mounted() { |
| | | window.addEventListener('resize', this.getHeight) |
| | | this.getHeight() |
| | | }, |
| | | methods: { |
| | | handleRequest() { |
| | | this.getInventoryFileSelect().then(res => { |
| | | if (res.code === '200') { |
| | | this.getStockTypeSelect() |
| | | this.getWareHouseSelect() |
| | | } |
| | | }) |
| | | }, |
| | | |
| | | // 同步计量单位 |
| | | async syncSeaveSearchUnit() { |
| | | const loading = this.$loading({ |
| | |
| | | const res = await InventoryFileSelect(this.form) |
| | | this.tableData = res.data |
| | | this.total = res.count |
| | | return { code: res.code } |
| | | }, |
| | | async getStockTypeSelect() { |
| | | const { data: res } = await StockTypeSelect() |