| | |
| | | title: "新建", |
| | | infomation: {} |
| | | }, |
| | | workType: this.$route.params.workType, |
| | | workType: this.$route.query.workType, |
| | | keyword: "", |
| | | params: {}, |
| | | displayEdit: false, |
| | |
| | | numberLabel: "单号", |
| | | TabsIndex: "0", |
| | | productTableList: {}, |
| | | showBottomCol: ["产品编号", "产品名称", "产品规格", "产品型号", "计量单位", "调出位置", "调入位置", "数量","主管","会计","保管员",], |
| | | showBottomCol: ["产品编号", "产品名称", "产品规格", "产品型号", "计量单位", "调出位置", "调入位置", "数量","主管","会计","保管员",'辅助数量','辅助单位'], |
| | | tableBottomColumn: [], |
| | | selectRow: {}, |
| | | productColumn: [ |
| | |
| | | { label: "产品名称", prop: "productName" }, |
| | | { label: "产品规格", prop: "specs" }, |
| | | { label: "产品型号", prop: "model" }, |
| | | { label: "数量", prop: "amount" }, |
| | | { label: "计量单位", prop: "unit" }, |
| | | { label: "数量", prop: "amount" } |
| | | { label: "辅助数量", prop: "unit" }, |
| | | { label: "辅助单位", prop: "amount" } |
| | | ], |
| | | allotProductColumn: [ |
| | | { label: "产品编号", prop: "id", default: true }, |
| | |
| | | { label: "计量单位", prop: "unit" }, |
| | | { label: "调出位置", prop: "location" }, |
| | | { label: "调入位置", prop: "toLocation" }, |
| | | { label: "数量", prop: "amount" } |
| | | { label: "数量", prop: "amount" }, |
| | | { label: "辅助数量", prop: "unit" }, |
| | | { label: "辅助单位", prop: "amount" } |
| | | ] |
| | | } |
| | | }, |
| | |
| | | if (paramsData) { |
| | | params = JSON.parse(sessionStorage.getItem("paramsData")) |
| | | } else { |
| | | params = this.$route.params |
| | | params = this.$route.query |
| | | params.id=Number(params.id) |
| | | sessionStorage.setItem("paramsData", JSON.stringify(params)) |
| | | } |
| | | this.params = params |
| | |
| | | async getData() { |
| | | await getOperation({ |
| | | number: this.keyword, |
| | | operationTypeId: this.$route.params.id ? this.$route.params.id : this.params.id, |
| | | operationTypeId: this.$route.query.id ? Number(this.$route.query.id) : this.params.id, |
| | | page: this.pagerOptions.currPage, |
| | | pageSize: this.pagerOptions.pageSize, |
| | | status: this.params.status |
| | |
| | | console.log(item) |
| | | this.$router.push({ |
| | | name: "overviewList", |
| | | params: { name: item.name, workType: item.baseOperationType, id: item.id, status: status,code:item.warehouse.code } |
| | | query: { name: item.name, workType: item.baseOperationType, id: item.id, status: status,code:item.warehouse.code } |
| | | }) |
| | | }, |
| | | async getData() { |