zzq
2023-09-27 9276baaf6664e55e217253caca2151a10640764d
src/views/reportForm/inventoryReport/index.vue
@@ -30,6 +30,7 @@
            :table-list="tableList"
            @selTableCol="selTableCol"
            @tableRowClick="tableRowClick"
            :showSummary="true"
          >
            <template slot="tableButton">
              <el-table-column
@@ -129,6 +130,7 @@
      ],
      tableList: {},
      showcol: ["产品类别", "单位成本", "总价值", "入库", "出库"],
      countcol:["总价值","在库","可用库存","入库","出库","预测"],
      searchOptions: [],
      commonDetail: {
        visible: false,
@@ -154,6 +156,7 @@
        tableInfomation: [],
        selectBox: true,
        showcol: this.showcol,
        countcol:this.countcol,
        allcol: [],
        tableColumn: this.setTableColumn(this.showcol),
      };
@@ -172,7 +175,6 @@
        {
          label: "产品",
          prop: "product",
          isShowColumn: true,
          default: true,
          width:300,
          
@@ -181,66 +183,53 @@
        {
          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;
@@ -292,12 +281,14 @@
    },
    // 历史
    handleHistoryClick(row) {
      console.log(row, "two");
      this.$router.push('/operate/allot')
    },
    // 补货
    handleAddGoods(row) {},
    // 位置
    handleLocation() {},
    handleLocation() {
      this.$router.push('/reportForm/locationReport')
    },
    // 预测
    handleForecast() {},
  },