From fbe9459ed908eef6c25c3bcd244d0a7e74dfa792 Mon Sep 17 00:00:00 2001 From: songshankun <songshankun@foxmail.com> Date: 星期四, 19 十月 2023 13:45:08 +0800 Subject: [PATCH] feat: 产品列表添加查看编辑按钮;弹窗根据情况展示对应标题 --- src/views/reportForm/inventoryReport/index.vue | 22 ++++++++++++++++------ 1 files changed, 16 insertions(+), 6 deletions(-) diff --git a/src/views/reportForm/inventoryReport/index.vue b/src/views/reportForm/inventoryReport/index.vue index 8f96fb2..965c592 100644 --- a/src/views/reportForm/inventoryReport/index.vue +++ b/src/views/reportForm/inventoryReport/index.vue @@ -86,7 +86,7 @@ import { getInventoryData, getProductCategoryList, getWarehouseList } from "@/api/reportForm/inventoryRwport" export default { - name: "InboundOutboundDetail", + name: "inventoryReport", props: {}, components: { AddOverviewDialog }, mixins: [pageMixin], @@ -146,7 +146,7 @@ pageSizes: [15, 30], oldRadioBtn: "", metaTitle: this.$route.meta.title, - searchStr: "" + searchStr: this.$route.params.name ?? '' } }, created() { @@ -277,7 +277,7 @@ getList(val) { this.searchStr = val this.getInventoryData({ - page: this.pagerOptions.currPage, + page: 1, pageSize: this.pagerOptions.pageSize, keyWord: val }) @@ -304,7 +304,10 @@ this.$router.push({ name: "inboundOutboundDetail", params: { - id: row.produceId, + keyWord:row.productType, + produceId:row.produceId, + unit:row.unit, + productName:row.productName, name: "鎶ヨ〃" } }) @@ -315,8 +318,15 @@ console.log(row) }, // 浣嶇疆 - handleLocation() { - this.$router.push("/reportForm/locationReport") + handleLocation(row) { + console.log(row,"rowwww") + this.$router.push({ + name:"locationReport", + params:{ + keyWord:row.row.productName, + name:"搴撳瓨鎶ヨ〃" + } + }) }, // 棰勬祴 handleForecast() {}, -- Gitblit v1.8.0