| | |
| | | data() { |
| | | return { |
| | | tableList: {}, |
| | | showcol: ["产品类别","价值",], |
| | | showcol: ["存储类别", "产品类别", "预留数量", "价值"], |
| | | // countcol: [ |
| | | // { label: "在库数量", unit: "" }, |
| | | // { label: "预留数量", unit: "" }, |
| | |
| | | }, |
| | | productId: this.$route.params.id, |
| | | productName: this.$route.params.name, |
| | | metaTitle: this.$route.meta.title |
| | | metaTitle: this.$route.meta.title, |
| | | keyWord:'' |
| | | } |
| | | }, |
| | | created() { |
| | |
| | | { |
| | | label: "预留数量", |
| | | prop: "availableStore", |
| | | default: false, |
| | | isShowColumn: showcol.includes("预留数量"), |
| | | isShowColumn: true, |
| | | default: true, |
| | | unit: "", |
| | | textAlign:"right" |
| | | }, |
| | |
| | | { |
| | | label: "价值", |
| | | prop: "value", |
| | | width: 120, |
| | | default: false, |
| | | isShowColumn: showcol.includes("价值"), |
| | | textAlign:"right", |
| | |
| | | pageSize: this.pagerOptions.pageSize |
| | | }) |
| | | }else{ |
| | | this.getLocationData({ |
| | | let params={ |
| | | page: this.pagerOptions.currPage, |
| | | pageSize: this.pagerOptions.pageSize |
| | | }) |
| | | pageSize: this.pagerOptions.pageSize, |
| | | keyWord:this.keyWord, |
| | | } |
| | | if(this.$route.params.locationId){ |
| | | params.locationId=this.$route.params.locationId |
| | | } |
| | | this.getLocationData(params) |
| | | } |
| | | }, |
| | | |
| | | // 搜索 |
| | | getList(val) { |
| | | this.getLocationData({ |
| | | page: 1, |
| | | pageSize: this.pagerOptions.pageSize, |
| | | keyWord: val |
| | | }) |
| | | this.keyWord=val |
| | | this.getData() |
| | | }, |
| | | // 行点击 |
| | | tableRowClick(row) { |