zuozhengqing
2024-03-30 dd7fe1db0b9ca604664b59a906545fc1e13d55e2
src/views/overview/AddOverviewDialog.vue
@@ -1005,7 +1005,7 @@
          { label: "计量单位", prop: "unit" },
          { label: "产品规格", prop: "specs" },
          { label: "产品型号", prop: "model" },
          // { label: "调出位置", prop: "fromLocationId", sonLocation: true, isRequird: true },
          { label: "调入位置", prop: "fromLocationId", sonLocation: true, isRequird: true },
          { label: "数量", prop: "amount", inputFloat: true }
        ]
      } else if (this.workType === 3) {
@@ -1015,8 +1015,8 @@
          { label: "计量单位", prop: "unit" },
          { label: "产品规格", prop: "specs" },
          { label: "产品型号", prop: "model" },
          { label: "调出位置", prop: "fromLocationId", sonLocation: true, isRequird: true },
          { label: "调入位置", prop: "toLocationId", toLocation: true, isRequird: true },
          { label: "调入位置", prop: "fromLocationId", sonLocation: true, isRequird: true },
          { label: "调出位置", prop: "toLocationId", toLocation: true, isRequird: true },
          { label: "数量", prop: "amount", inputFloat: true }
        ]
      }
@@ -1099,6 +1099,7 @@
      let list = this.tableData.map((res) => {
        return {
          ...res,
          amount: 1,
          productName: res.name,
          productId: res.id
        }
@@ -1118,10 +1119,9 @@
    },
    // 删除
    handleDelClick(scope, value) {
      console.log(scope)
      if (value === "操作") {
        this.tableData.splice(scope.$index, 1)
        this.productTableList.tableData.splice(scope.$index, 1)
        this.productTableList.tableData = this.tableData
        this.$message.success("删除成功!")
      } else {
        this.detailTableData.splice(scope.$index, 1)