| | |
| | | data () { |
| | | return { |
| | | model:{ |
| | | }, |
| | | warehouseId: '', |
| | | goodsShelves: '', |
| | | storey: '', |
| | | variety: '' |
| | | }, |
| | | labelCol: { |
| | | xs: { span: 24 }, |
| | | sm: { span: 5 }, |
| | |
| | | editDisabled: false, |
| | | warehouseOptions: [], |
| | | goodsShelvesOptions: [], |
| | | storeyOptions: [] |
| | | storeyOptions: [], |
| | | warehouseId: '' |
| | | } |
| | | }, |
| | | computed: { |
| | |
| | | }) |
| | | }, |
| | | warehouseChange(warehouseId) { |
| | | this.model.goodsShelves = '' |
| | | this.model.storey = '' |
| | | this.goodsShelvesOptions = [] |
| | | this.storeyOptions = [] |
| | | this.warehouseId = warehouseId |
| | |
| | | }, |
| | | goodsShelvesChange(shelfNumber) { |
| | | this.storeyOptions = [] |
| | | this.model.storey = '' |
| | | getAction(this.url.queryGoodsShelvesStoreyDictList, { |
| | | warehouseId: this.warehouseId, |
| | | shelfNumber: shelfNumber |
| | |
| | | this.warehouseOptions = res.result |
| | | } |
| | | }) |
| | | getAction(this.url.queryGoodsShelvesDictList, { warehouseId: record.warehouseId }).then(res => { |
| | | if (res.success) { |
| | | this.goodsShelvesOptions = res.result |
| | | } |
| | | }) |
| | | getAction(this.url.queryGoodsShelvesStoreyDictList, { warehouseId: record.warehouseId, shelfNumber: record.goodsShelves }).then(res => { |
| | | if (res.success) { |
| | | this.storeyOptions = res.result |
| | | } |
| | | }) |
| | | if (record.warehouseId) { |
| | | getAction(this.url.queryGoodsShelvesDictList, { warehouseId: record.warehouseId }).then(res => { |
| | | if (res.success) { |
| | | this.goodsShelvesOptions = res.result |
| | | } |
| | | }) |
| | | getAction(this.url.queryGoodsShelvesStoreyDictList, { warehouseId: record.warehouseId, shelfNumber: record.goodsShelves }).then(res => { |
| | | if (res.success) { |
| | | this.storeyOptions = res.result |
| | | } |
| | | }) |
| | | } |
| | | if (this.title === '新增' || this.title === '详情') { |
| | | this.editDisabled = false |
| | | } |