yangfeng
2024-03-22 bd9f756e20b8d49851b9d598240d06b4d38aecac
调拨产品新增增加"调出位置", "调入位置",
1个文件已修改
38 ■■■■■ 已修改文件
src/views/overview/OverviewListView.vue 38 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/overview/OverviewListView.vue
@@ -95,15 +95,6 @@
  mixins: [pageMixin],
  computed: {},
  data() {
    // 产品信息
    const productColumn = [
      { label: "产品编号", prop: "id", default: true },
      { label: "产品名称", prop: "productName" },
      { label: "产品规格", prop: "specs" },
      { label: "产品型号", prop: "model" },
      { label: "计量单位", prop: "unit" },
      { label: "数量", prop: "amount" }
    ]
    return {
      tableList: {},
      showcol: ["仓库位置", "调出位置", "调入位置", "联系人", "日期", "来源单据", "状态"],
@@ -129,9 +120,27 @@
      numberLabel: "单号",
      TabsIndex: "0",
      productTableList: {},
      showBottomCol: ["产品编号", "产品名称", "产品规格", "产品型号", "计量单位", "数量"],
      tableBottomColumn: productColumn,
      selectRow: {}
      showBottomCol: ["产品编号", "产品名称", "产品规格", "产品型号", "计量单位", "调出位置", "调入位置", "数量"],
      tableBottomColumn: [],
      selectRow: {},
      productColumn: [
        { label: "产品编号", prop: "id", default: true },
        { label: "产品名称", prop: "productName" },
        { label: "产品规格", prop: "specs" },
        { label: "产品型号", prop: "model" },
        { label: "计量单位", prop: "unit" },
        { label: "数量", prop: "amount" }
      ],
      allotProductColumn: [
        { label: "产品编号", prop: "id", default: true },
        { label: "产品名称", prop: "productName" },
        { label: "产品规格", prop: "specs" },
        { label: "产品型号", prop: "model" },
        { label: "计量单位", prop: "unit" },
        { label: "调出位置", prop: "location" },
        { label: "调入位置", prop: "toLocation" },
        { label: "数量", prop: "amount" }
      ]
    }
  },
  created() {
@@ -188,6 +197,7 @@
        }
      }
      this.tableList.allcol = allcol
      this.tableBottomColumn = this.workType == 3 ? this.allotProductColumn : this.productColumn
      this.setBottomList()
    },
    setTableColumn(showcol) {
@@ -316,7 +326,9 @@
        return {
          ...item,
          productName: item.product.name,
          unit: item.product.unit
          unit: item.product.unit,
          location: arr.location.name,
          toLocation: arr.toLocation.name
        }
      })
      this.productTableList.tableInfomation = list