songshankun
2023-10-18 dfcf1c54fe3cbfcd237f2baab8b4997225a232d3
src/views/reportForm/locationReport/index.vue
@@ -5,8 +5,8 @@
      <div>
        <SearchCommonView
          :add-title="'新建'"
          :showAdd="true"
          :placeholder="'请输入参考'"
          :showAdd="false"
          :placeholder="''"
          :amount-view="false"
          @addCommonClick="addBtnClick"
          @searchClick="getList"
@@ -21,6 +21,7 @@
          :table-list="tableList"
          @selTableCol="selTableCol"
          @tableRowClick="tableRowClick"
          :showSummary="true"
        >
          <template slot="tableButton">
            <el-table-column label="操作" width="210" align="center">
@@ -106,7 +107,8 @@
        infomation: {}
      },
      productId: this.$route.params.id,
      productName: this.$route.params.name
      productName: this.$route.params.name,
      metaTitle: this.$route.meta.title
    }
  },
  created() {
@@ -117,7 +119,8 @@
    setTable() {
      this.tableList = {
        tableInfomation: [],
        selectBox: true,
        selectBox: false,
        selectIndex: true,
        showcol: this.showcol,
        countcol: this.countcol,
        allcol: [],
@@ -178,7 +181,7 @@
          prop: "unit",
          width: 120,
          default: false,
          isShowColumn: showcol.includes("价值")
          isShowColumn: showcol.includes("单位")
        },
        {
          label: "价值",
@@ -202,7 +205,6 @@
        pageSize: this.pagerOptions.pageSize
      }).then((res) => {
        if (res.code === 200) {
          console.log(res.data, "接口请求成功")
          const list = res.data
          this.tableList.tableInfomation = list || []
          this.pagerOptions.totalCount = res.total
@@ -232,7 +234,15 @@
      return val === 1 ? "草稿" : val === 3 ? "就绪" : "完成"
    },
    // 历史
    handleHistoryClick() {},
    handleHistoryClick(row) {
      this.$router.push({
        name: "inboundOutboundDetail",
        params: {
          id: row.produceId,
          name: "报表"
        }
      })
    },
    // 补货
    handleAddGoods() {}
  }