src/views/overview/AddOverviewDialog.vue
@@ -1442,10 +1442,17 @@
          { label: "计量单位", prop: "unit" },
        ];
      }
      console.log(this.tableData,'===tableData')
      if(this.workType == 2){
        for(let i in this.tableData){
          this.selSonLocationClick(this.tableData[i].fromLocation.id,'fromLocationId',this.tableData[i],i,3)
        }
      }
      this.productTableList = {
        tableData: this.tableData,
        tableColumn: tableColumnArr,
      };
    },
    getTwoTable(data,value){
        let list = data.map((res) => {
@@ -1569,15 +1576,19 @@
        }
      });
    },
    selSonLocationClick(val, prop, row,scope){
    selSonLocationClick(val, prop, row,scope,type){
      if(this.workType == 2){
        if(prop=='fromLocationId'){
         getLocationProductAmount({
            locationId:val.value,
            locationId:type==3?val:val.value,
            productId:row.productId
          }).then((res)=>{
            if(res.code==200){
              this.$set(this.tableData[scope.$index],'inLibraryAmount',res.data?res.data.amount:0)
              if(type==3){
                this.$set(this.tableData[scope],'inLibraryAmount',res.data?res.data.amount:0)
              }else{
                this.$set(this.tableData[scope.$index],'inLibraryAmount',res.data?res.data.amount:0)
              }
              this.$forceUpdate()
            }
          })