| | |
| | | <i class="el-icon-setting"></i> |
| | | <span>设置</span> |
| | | </span> --> |
| | | <template v-if="scope.row.status === 3"> |
| | | <span @click.stop="handleUseClick(scope.row)" class="margin_left_5px"> |
| | | <template v-if="scope.row.status == 3"> |
| | | <span @click.stop="handleUseClick(scope.row)" class="margin_left_5px cursor_pointer"> |
| | | <i class="el-icon-document"></i> |
| | | <span>应用</span> |
| | | </span> |
| | |
| | | async getData() { |
| | | await getInventoryAdjustmentList({ |
| | | page: this.pagerOptions.currPage, |
| | | pageSize: this.pagerOptions.pageSize |
| | | pageSize: this.pagerOptions.pageSize, |
| | | keyword:this.keyword, |
| | | }).then((res) => { |
| | | if (res.code === 200) { |
| | | console.log(res) |
| | |
| | | }, |
| | | // 新增 |
| | | addProductClick() { |
| | | console.log(this.tableData) |
| | | console.log(this.addTitle) |
| | | this.isSel() |
| | | if (this.isNoProduct && this.addTitle === "新建") { |
| | | this.$refs.tablelistRef.getLocationList() |
| | |
| | | }, |
| | | // 行点击 |
| | | tableRowClick(row, rowIndex) { |
| | | this.locationId = row.locationId |
| | | this.rowIndex = rowIndex |
| | | this.isSel() |
| | | //!this.isNoProduct && this.currentRowId == 0 |
| | | if (!this.isNoProduct) { |
| | | this.$message.error("请完成当前保存或取消保存!") |
| | | } else { |
| | | this.locationId = row.locationId |
| | | this.rowIndex = rowIndex |
| | | this.currentRowId = row.id |
| | | this.addTitle = "保存" |
| | | this.showDiscard = true |
| | |
| | | getList(val) { |
| | | this.keyword = val |
| | | this.pagerOptions.currPage = 1 |
| | | this.addTitle = "新建" |
| | | this.showDiscard = false |
| | | this.getData() |
| | | }, |
| | | // 选择位置方法 |