| | |
| | | <div class="rightContent"> |
| | | <div class="top"> |
| | | <SearchCommonView |
| | | :showAdd="false" |
| | | :add-title="'新建'" |
| | | :placeholder="'请输入参考'" |
| | | :placeholder="''" |
| | | :amount-view="false" |
| | | @addCommonClick="addBtnClick" |
| | | @searchClick="getList" |
| | |
| | | warehouseListName: "", // 仓库名称 |
| | | stashRadio: "1", |
| | | pageSizes: [15, 30], |
| | | oldRadioBtn: "" |
| | | oldRadioBtn: "", |
| | | metaTitle: this.$route.meta.title |
| | | } |
| | | }, |
| | | created() { |
| | |
| | | checkListHandler(e) { |
| | | this.categoryListId = e |
| | | this.getData() |
| | | console.log(this.categoryListId, e, " 选中的产品id") |
| | | }, |
| | | radioHandleChange(e) { |
| | | this.warehouseListName = e |
| | | this.getData() |
| | | console.log(e, "单选") |
| | | }, |
| | | setTable() { |
| | | if (this.isIconIndex === "1") { |
| | |
| | | } |
| | | this.tableList = { |
| | | tableInfomation: [], |
| | | selectBox: true, |
| | | selectBox: false, |
| | | selectIndex: true, |
| | | showcol: this.showcol, |
| | | countcol: this.countcol, |
| | | allcol: [], |
| | |
| | | }, |
| | | // 历史 |
| | | handleHistoryClick(row) { |
| | | console.log(row) |
| | | this.$router.push("/operate/allot") |
| | | this.$router.push({ |
| | | name: "inboundOutboundDetail", |
| | | params: { |
| | | id: row.produceId, |
| | | name: "报表" |
| | | } |
| | | }) |
| | | }, |
| | | |
| | | // 补货 |
| | | handleAddGoods(row) { |
| | | console.log(row) |
| | |
| | | unit: item.unit //单位 |
| | | } |
| | | this.testArr.push(obj) |
| | | console.log(this.testArr, "this") |
| | | }) |
| | | }, |
| | | |
| | |
| | | async getData() { |
| | | let params = { |
| | | categoryIds: this.categoryListId, |
| | | keyWord:this.productName, |
| | | page: this.pagerOptions.currPage, |
| | | pageSize: this.pagerOptions.pageSize, |
| | | warehouseCode: this.warehouseListName |
| | | } |
| | | await getInventoryData(params).then((res) => { |
| | | if (res.code === 200) { |
| | | console.log(res.data, "接口请求成功") |
| | | const list = res.data |
| | | this.tableList.tableInfomation = list || [] |
| | | this.pagerOptions.totalCount = res.total |
| | |
| | | }).then((res) => { |
| | | if (res.data.code === 200) { |
| | | this.warehouseList = res.data.data |
| | | console.log(this.warehouseList, "warehouseList") |
| | | } |
| | | }) |
| | | } |