出入库搜索去掉sourceNumber及bug修复
| | |
| | | data |
| | | }) |
| | | } |
| | | // 上架规则获取位置和产品 |
| | | export function getRuleList(data) { |
| | | return request({ |
| | | url: "/api-wms/v1/locationProductAmount/getRuleList", |
| | | method: "post", |
| | | data |
| | | }) |
| | | } |
| | |
| | | .left_border { |
| | | border-left: 1px solid #e9e9e9; |
| | | } |
| | | .no-cursor { |
| | | cursor: no-drop; |
| | | } |
| | | .yes-cursor { |
| | | cursor: pointer; |
| | | } |
| | | } |
| | | </style> |
| | |
| | | console.log(from, next) |
| | | to.meta.title = to.params.name |
| | | document.title = to.meta.title |
| | | } else if (to.name === "inOutboundDetail") { |
| | | to.meta.title = to.params.name + "/出入库明细" |
| | | } else if (to.path === "/reportForm/inOutboundDetail" && to.params.name) { |
| | | to.meta.title = "出入库明细" |
| | | document.title = to.meta.title |
| | | } |
| | | }) |
| | |
| | | await getAllList({ |
| | | number: this.keyword, |
| | | page: this.pagerOptions.currPage, |
| | | pageSize: this.pagerOptions.pageSize, |
| | | sourceNumber: this.keyword |
| | | pageSize: this.pagerOptions.pageSize |
| | | }).then((res) => { |
| | | if (res.code === 200) { |
| | | const list = res.data.map((item) => { |
| | |
| | | async getData() { |
| | | await getDisuseList({ |
| | | number: this.keyword, |
| | | sourceNumber: this.keyword, |
| | | page: this.pagerOptions.currPage, |
| | | pageSize: this.pagerOptions.pageSize |
| | | }).then((res) => { |
| | |
| | | infomation: {} |
| | | }, |
| | | workType: this.$route.params.workType, |
| | | keyword: "" |
| | | keyword: "", |
| | | params: {} |
| | | } |
| | | }, |
| | | created() { |
| | | this.setTable() |
| | | var paramsData = sessionStorage.getItem("paramsData") |
| | | let params = {} |
| | | if (paramsData) { |
| | | params = JSON.parse(sessionStorage.getItem("paramsData")) |
| | | } else { |
| | | params = this.$route.params |
| | | sessionStorage.setItem("paramsData", JSON.stringify(params)) |
| | | } |
| | | this.params = params |
| | | this.getData() |
| | | console.log(this.$route.params.workType) |
| | | // console.log(this.$route.params.workType) |
| | | }, |
| | | // 页面销毁之前 |
| | | beforeDestroy() { |
| | | sessionStorage.removeItem("paramsData") |
| | | }, |
| | | methods: { |
| | | setTable() { |
| | |
| | | async getData() { |
| | | await getOperation({ |
| | | number: this.keyword, |
| | | operationTypeId: this.$route.params.id, |
| | | operationTypeId: this.params.id, |
| | | page: this.pagerOptions.currPage, |
| | | pageSize: this.pagerOptions.pageSize, |
| | | sourceNumber: this.keyword |
| | | pageSize: this.pagerOptions.pageSize |
| | | }).then((res) => { |
| | | console.log(res.data) |
| | | if (res.code === 200) { |
| | |
| | | title: "新建", |
| | | infomation: {} |
| | | }, |
| | | productId: this.$route.params.id, |
| | | productName: this.$route.params.name |
| | | params: {} |
| | | } |
| | | }, |
| | | created() { |
| | | this.setTable() |
| | | console.log(this.$route.params) |
| | | var paramsData = sessionStorage.getItem("paramsList") |
| | | let params = {} |
| | | if (paramsData) { |
| | | params = JSON.parse(sessionStorage.getItem("paramsList")) |
| | | } else { |
| | | params = this.$route.params |
| | | sessionStorage.setItem("paramsList", JSON.stringify(params)) |
| | | } |
| | | this.params = params |
| | | console.log(this.params) |
| | | this.getData() |
| | | }, |
| | | methods: { |
| | |
| | | // 请求数据 |
| | | async getData() { |
| | | await getProductOperatonList({ |
| | | productId: this.productId, |
| | | productId: this.params.id, |
| | | page: this.pagerOptions.currPage, |
| | | pageSize: this.pagerOptions.pageSize |
| | | }).then((res) => { |
| | |
| | | ...item, |
| | | from: item.fromLocation.name, |
| | | to: item.toLocation.name, |
| | | productName: this.productName |
| | | productName: this.params.name |
| | | } |
| | | }) |
| | | this.tableList.tableInfomation = list || [] |