| | |
| | | getInventoryAdjustmentList, |
| | | addInventoryAdjustment, |
| | | updateInventoryAdjustment, |
| | | finishInventoryAdjustment |
| | | finishInventoryAdjustment, |
| | | getLocationProductAmount |
| | | } from "@/api/operate/inventoryAdjustment" |
| | | import { currentTime } from "@/common/config/index" |
| | | |
| | | export default { |
| | | name: "InventoryAdjustment", |
| | | props: {}, |
| | |
| | | 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 |
| | | } |
| | | }) |
| | | } |
| | | }, |
| | | // 获取当前时间 |