zuozhengqing
2024-04-15 f3cb03e9e6cbd21bc5f1d9b2570f964d29a48aa8
src/views/operate/inventoryAdjustment/index.vue
@@ -64,9 +64,11 @@
  getInventoryAdjustmentList,
  addInventoryAdjustment,
  updateInventoryAdjustment,
  finishInventoryAdjustment
  finishInventoryAdjustment,
  getLocationProductAmount
} from "@/api/operate/inventoryAdjustment"
import { currentTime } from "@/common/config/index"
export default {
  name: "InventoryAdjustment",
  props: {},
@@ -314,10 +316,19 @@
      console.log(item, prop)
      this.locationId = item.value
    },
    // 选中产品方法
    selProductClick(value, item) {
    // 选择产品方法
    async selProductClick(value, item) {
          console.log("看看返回",this.tableData)
      if (value === "product") {
        this.productId = item.productId
        await getLocationProductAmount({
          locationId:this.locationId,
          productId:this.productId
        }).then((res)=>{
          if(res&&res.code===200){
            this.tableData[0].amount=res.data.amount||0
          }
        })
      }
    },
    // 获取当前时间