| | |
| | | :table-list="tableList" |
| | | @selTableCol="selTableCol" |
| | | @tableRowClick="tableRowClick" |
| | | :showSummary="true" |
| | | > |
| | | <template slot="tableButton"> |
| | | <el-table-column |
| | |
| | | ], |
| | | tableList: {}, |
| | | showcol: ["产品类别", "单位成本", "总价值", "入库", "出库"], |
| | | countcol:["总价值","在库","可用库存","入库","出库","预测"], |
| | | searchOptions: [], |
| | | commonDetail: { |
| | | visible: false, |
| | |
| | | tableInfomation: [], |
| | | selectBox: true, |
| | | showcol: this.showcol, |
| | | countcol:this.countcol, |
| | | allcol: [], |
| | | tableColumn: this.setTableColumn(this.showcol), |
| | | }; |
| | |
| | | { |
| | | label: "产品", |
| | | prop: "product", |
| | | isShowColumn: true, |
| | | default: true, |
| | | width:300, |
| | | |
| | |
| | | { |
| | | label: "产品类别", |
| | | prop: "category", |
| | | isShowColumn: true, |
| | | default: true, |
| | | isShowColumn: showcol.includes("产品类别"), |
| | | }, |
| | | { |
| | | label: "单位成本", |
| | | prop: "cost", |
| | | isShowColumn: true, |
| | | default: false, |
| | | isShowColumn: showcol.includes("单位成本"), |
| | | }, |
| | | { |
| | | label: "总价值", |
| | | prop: "totalPrices", |
| | | isShowColumn: true, |
| | | default: false, |
| | | isShowColumn: showcol.includes("总价值"), |
| | | }, |
| | | { |
| | | label: "在库", |
| | | prop: "inStore", |
| | | isShowColumn: true, |
| | | default: true, |
| | | }, |
| | | { |
| | | label: "可用库存", |
| | | prop: "availableStore", |
| | | isShowColumn: true, |
| | | default: true, |
| | | }, |
| | | { |
| | | label: "入库", |
| | | prop: "inStorage", |
| | | isShowColumn: true, |
| | | default: false, |
| | | isShowColumn: showcol.includes("入库"), |
| | | }, |
| | | { |
| | | label: "出库", |
| | | prop: "toStore", |
| | | isShowColumn: true, |
| | | isShowColumn: showcol.includes("出库"), |
| | | default: false, |
| | | }, |
| | | { |
| | | label: "预测", |
| | | prop: "forecast", |
| | | isShowColumn: false, |
| | | isShowColumn: showcol.includes("预测"), |
| | | default: false, |
| | | }, |
| | | { |
| | | label: "单位", |
| | | prop: "unit", |
| | | isShowColumn: true, |
| | | default: true, |
| | | // price:true |
| | | // status: true, |
| | | // propType: "mulitple", |
| | | // conversion: true, |
| | | }, |
| | | ]; |
| | | return tableColumn; |
| | |
| | | }, |
| | | // 历史 |
| | | handleHistoryClick(row) { |
| | | console.log(row, "two"); |
| | | this.$router.push('/operate/allot') |
| | | }, |
| | | // 补货 |
| | | handleAddGoods(row) {}, |
| | | // 位置 |
| | | handleLocation() {}, |
| | | handleLocation() { |
| | | this.$router.push('/reportForm/locationReport') |
| | | }, |
| | | // 预测 |
| | | handleForecast() {}, |
| | | }, |