| | |
| | | <div class="rightContent"> |
| | | <div class="top"> |
| | | <SearchCommonView |
| | | :showAdd="false" |
| | | :add-title="'新建'" |
| | | :placeholder="'请输入参考'" |
| | | :placeholder="''" |
| | | :amount-view="false" |
| | | @addCommonClick="addBtnClick" |
| | | @searchClick="getList" |
| | |
| | | stashRadio: "1", |
| | | pageSizes: [15, 30], |
| | | oldRadioBtn: "", |
| | | metaTitle: this.$route.meta.title, |
| | | }; |
| | | metaTitle: this.$route.meta.title |
| | | } |
| | | }, |
| | | created() { |
| | | this.setTable() |
| | |
| | | }, |
| | | methods: { |
| | | checkListHandler(e) { |
| | | this.categoryListId = e; |
| | | this.getData(); |
| | | this.categoryListId = e |
| | | this.getData() |
| | | }, |
| | | radioHandleChange(e) { |
| | | this.warehouseListName = e; |
| | | this.getData(); |
| | | this.warehouseListName = e |
| | | this.getData() |
| | | }, |
| | | setTable() { |
| | | if (this.isIconIndex === "1") { |
| | | this.pageSizes = [30, 60]; |
| | | this.pagerOptions.pageSize = 30; |
| | | this.pageSizes = [30, 60] |
| | | this.pagerOptions.pageSize = 30 |
| | | } |
| | | this.tableList = { |
| | | tableInfomation: [], |
| | | selectBox: true, |
| | | selectBox: false, |
| | | selectIndex: true, |
| | | showcol: this.showcol, |
| | | countcol: this.countcol, |
| | | allcol: [], |
| | |
| | | this.$router.push({ |
| | | name: "inboundOutboundDetail", |
| | | params: { |
| | | name: this.metaTitle, |
| | | product: { |
| | | page: this.pagerOptions.currPage, |
| | | pageSize: this.pagerOptions.pageSize, |
| | | produceId: row.produceId, |
| | | productName: row.productName, |
| | | unit: row.unit, |
| | | }, |
| | | pageName:"报表", |
| | | paramsKey: { |
| | | amount: "amount", |
| | | status: "status", //状态 |
| | | productName:"productName", //产品名称 |
| | | contactedName: "contactedName", |
| | | date: "date", |
| | | fromLocation: "fromLocation", |
| | | number: "number", |
| | | toLocation: "toLocation", |
| | | unit: "unit", |
| | | }, |
| | | }, |
| | | }); |
| | | id: row.produceId, |
| | | name: "报表" |
| | | } |
| | | }) |
| | | }, |
| | | |
| | | // 补货 |
| | | handleAddGoods(row) { |
| | | console.log(row); |
| | | console.log(row) |
| | | }, |
| | | // 位置 |
| | | handleLocation() { |
| | |
| | | inStorage: item.inStorage, // 入库 |
| | | toStore: item.toStore, // 出库 |
| | | forecast: item.forecast, //预测 |
| | | unit: item.unit, //单位 |
| | | }; |
| | | this.testArr.push(obj); |
| | | }); |
| | | unit: item.unit //单位 |
| | | } |
| | | this.testArr.push(obj) |
| | | }) |
| | | }, |
| | | |
| | | //接口请求----------------------------------------------------------------------------------------------- |
| | |
| | | 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) { |
| | | const list = res.data; |
| | | this.tableList.tableInfomation = list || []; |
| | | this.pagerOptions.totalCount = res.total; |
| | | const list = res.data |
| | | this.tableList.tableInfomation = list || [] |
| | | this.pagerOptions.totalCount = res.total |
| | | } |
| | | }) |
| | | }, |
| | |
| | | await getProductCategoryList({ |
| | | keyWord: "", |
| | | page: this.pagerOptions.currPage, |
| | | pageSize: this.pagerOptions.pageSize, |
| | | pageSize: this.pagerOptions.pageSize |
| | | }).then((res) => { |
| | | if (res.code === 200) { |
| | | this.categoryList = res.data |
| | |
| | | await getWarehouseList({ |
| | | keyword: "", |
| | | page: this.pagerOptions.currPage, |
| | | pageSize: this.pagerOptions.pageSize, |
| | | pageSize: this.pagerOptions.pageSize |
| | | }).then((res) => { |
| | | if (res.data.code === 200) { |
| | | this.warehouseList = res.data.data; |
| | | this.warehouseList = res.data.data |
| | | } |
| | | }) |
| | | } |