| | |
| | | <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> |
| | |
| | | fn({ |
| | | capacity: pagination.pageSize, |
| | | page: pagination.page, |
| | | model: {...searchForm} |
| | | model: {...searchForm,status: 0} |
| | | }).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', '') |
| | | } |