| | |
| | | data |
| | | }) |
| | | } |
| | | // 获取位置产品信息 |
| | | export function getLocationProductAmount(data) { |
| | | return request({ |
| | | url: "/api-wms/v1/locationProductAmount/getLocationProductAmount", |
| | | method: "post", |
| | | data |
| | | }) |
| | | } |
| | |
| | | import { getProductList } from "@/api/product/product" |
| | | import { getLocationList } from "@/api/warehouseManage/warehouse" |
| | | import { getCompanyList } from "@/api/common/other" |
| | | import { getRuleList } from "@/api/operate/inventoryAdjustment" |
| | | import { getRuleList} from "@/api/operate/inventoryAdjustment" |
| | | import { getProductCategoryList } from "@/api/product/productCategory" |
| | | import SimpleSearchInput from "@/components/makepager/SimpleSearchInput" |
| | | import { getAmountAndPrediction } from "@/api/product/reorderRules" |
| | |
| | | }, |
| | | // 选择产品 |
| | | selProductClick(item, row) { |
| | | console.log("选择产品",row,item) |
| | | if (this.isReorder) { |
| | | this.productId = item.id |
| | | this.productName = item.name |
| | |
| | | ite.productName = item.name |
| | | ite.categoryId = item.categoryId |
| | | ite.productCategory = item.categoryName |
| | | ite.amount = item.amount |
| | | // ite.amount = item.amount |
| | | ite.unit = item.unit |
| | | } |
| | | }) |
| | | this.$emit("selProductClick", "product", this.tableList.tableData[selIndex]) |
| | | } |
| | | |
| | | if (this.isinventory) { |
| | | getRuleList({ |
| | | locationId: 0, |
| | |
| | | } |
| | | }) |
| | | } |
| | | |
| | | // this.$emit("selProductClick", item) |
| | | }, |
| | | // 选择产品类型 |
| | |
| | | }, |
| | | // 选择位置 |
| | | selLocationClick(item, prop, row) { |
| | | console.log("位置选择",item,row) |
| | | if (prop === "areaName") { |
| | | getLocationList({ |
| | | jointName: item.label, |
| | |
| | | this.selSonLocationOptions = list |
| | | } |
| | | }) |
| | | }else if(prop==='locationName'){ |
| | | console.log("locationName") |
| | | } |
| | | if (this.isReorder) { |
| | | this.locacionId = item.value |
| | |
| | | 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 |
| | | } |
| | | }) |
| | | } |
| | | }, |
| | | // 获取当前时间 |