| | |
| | | <el-input v-model="form.createuser" style="width: 200px" placeholder="请输入" /> |
| | | </el-form-item> |
| | | <el-form-item label="所属仓库" style=" display: flex;"> |
| | | <el-select v-model="form.stockcode" :popper-append-to-body="false" style="width: 200px" placeholder="请选择"> |
| | | <el-select |
| | | v-model="form.stockcode" |
| | | :popper-append-to-body="false" |
| | | style="width: 200px" |
| | | placeholder="请选择" |
| | | @focus="getWareHouseSelect" |
| | | > |
| | | <el-option |
| | | v-for="item in stockArr" |
| | | :key="item.code" |
| | |
| | | :data="tableData" |
| | | border |
| | | stripe |
| | | :height="tableHeight" |
| | | :height="tableHeight+'px'" |
| | | :style="{width: 100+'%',height:tableHeight+'px',}" |
| | | highlight-current-row |
| | | :header-cell-style="this.$headerCellStyle" |
| | |
| | | <el-form-item label="所属库位" prop="stockcode"> |
| | | <el-select |
| | | v-model="dialogForm.stockcode" |
| | | filterable |
| | | :popper-append-to-body="false" |
| | | style="width: 200px" |
| | | placeholder="请选择" |
| | | @focus="getWareHouseSelect2" |
| | | > |
| | | <el-option |
| | | v-for="item in stockArr" |
| | | v-for="item in stockArr2" |
| | | :key="item.code" |
| | | :label="item.name" |
| | | :value="item.code" |
| | |
| | | }, |
| | | total: 10, |
| | | stockArr: [], // 所属仓库数组 |
| | | stockArr2: [], // 所属仓库数组对话框 |
| | | tableData: [], |
| | | dialogVisible: false, |
| | | dialogForm: { |
| | |
| | | }, |
| | | created() { |
| | | this.getStorageDefSearch() |
| | | this.getWareHouseSelect() |
| | | // this.getWareHouseSelect() |
| | | }, |
| | | mounted() { |
| | | window.addEventListener('resize', this.getHeight) |
| | |
| | | const { data: res } = await WareHouseSelect() |
| | | this.stockArr = res |
| | | }, |
| | | // 对话框中的 |
| | | async getWareHouseSelect2() { |
| | | const { data: res } = await WareHouseSelect() |
| | | this.stockArr2 = res |
| | | }, |
| | | // 排序改变时 |
| | | sortChange({ column, prop, order }) { |
| | | if (order === 'descending') { |