| | |
| | | <template> |
| | | <GlobalWindow title="选择物料" :visible.sync="isShowModal" :confirm-working="isLoading" width="900px" @close="close" |
| | | <GlobalWindow title="选择物料" :visible.sync="isShowModal" :confirm-working="isLoading" width="1000px" @close="close" |
| | | @confirm="confirm"> |
| | | <el-form ref="searchForm" :model="searchForm" label-width="100px" inline> |
| | | <el-form-item prop="code" label="物料信息"> |
| | |
| | | :options="cateList" :props="{ |
| | | label: 'name', |
| | | value: 'id', |
| | | children: 'childCategoryList' |
| | | children: 'childCategoryList', |
| | | checkStrictly: true |
| | | }"></el-cascader> |
| | | </el-form-item> |
| | | <span> |
| | |
| | | total: 0 |
| | | }, |
| | | isOut: false, |
| | | warehouseId: false, |
| | | list: [], |
| | | selList: [], |
| | | cateList: [], |
| | |
| | | this.selList = val |
| | | }, |
| | | getList(page) { |
| | | const { pagination, searchForm, isOut } = this |
| | | const { pagination, searchForm, isOut, warehouseId } = this |
| | | this.listLoading = true |
| | | if(page){pagination.page = page} |
| | | console.log('isOut', isOut); |
| | |
| | | fn({ |
| | | capacity: pagination.pageSize, |
| | | page: pagination.page, |
| | | model: {...searchForm} |
| | | model: {...searchForm,status: 0, warehouseId} |
| | | }).then((res) => { |
| | | this.listLoading = false |
| | | this.list = res.records |
| | |
| | | changeSel(e) { |
| | | if (e && e.length == 2) { |
| | | this.$set(this.searchForm, 'cateId', e[1]) |
| | | this.$set(this.searchForm, 'parentCateId', '') |
| | | }else if((e && e.length == 1)){ |
| | | this.$set(this.searchForm, 'parentCateId', e[0]) |
| | | this.$set(this.searchForm, 'cateId', '') |
| | | } else { |
| | | this.$set(this.searchForm, 'cateId', '') |
| | | } |