From c629985e7b2fd2fa34ad7b701d48880e33c9fc53 Mon Sep 17 00:00:00 2001 From: "HUOJIN\\92525" <925258474@qq.com> Date: Fri, 19 Apr 2024 14:28:30 +0800 Subject: [PATCH 1/3] no message --- src/views/business-data/inventoryLog/index.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/business-data/inventoryLog/index.vue b/src/views/business-data/inventoryLog/index.vue index a4e0aab..f879898 100644 --- a/src/views/business-data/inventoryLog/index.vue +++ b/src/views/business-data/inventoryLog/index.vue @@ -65,7 +65,7 @@
{{ scope.row.itemKey.item.name }}
- + From 7397164c390b7bbedd3eba638de91f18fe57f900 Mon Sep 17 00:00:00 2001 From: "HUOJIN\\92525" <925258474@qq.com> Date: Fri, 19 Apr 2024 14:29:05 +0800 Subject: [PATCH 2/3] no message --- src/views/business-data/inventoryLog/index.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/business-data/inventoryLog/index.vue b/src/views/business-data/inventoryLog/index.vue index f879898..b4a09e9 100644 --- a/src/views/business-data/inventoryLog/index.vue +++ b/src/views/business-data/inventoryLog/index.vue @@ -37,7 +37,7 @@ @change="crud.toQuery" /> - From be7f275792dc3ffc0e7fe352c9d5f538e76b0875 Mon Sep 17 00:00:00 2001 From: "HUOJIN\\92525" <925258474@qq.com> Date: Mon, 22 Apr 2024 17:44:29 +0800 Subject: [PATCH 3/3] no message --- src/store/getters.js | 4 +++- src/store/modules/api.js | 6 +++++- src/views/base-data/point/index.vue | 6 +++++- src/views/base-data/stock/index.vue | 6 +++++- 4 files changed, 18 insertions(+), 4 deletions(-) diff --git a/src/store/getters.js b/src/store/getters.js index ac7795d..2f2aef6 100644 --- a/src/store/getters.js +++ b/src/store/getters.js @@ -21,6 +21,8 @@ const getters = { sqlApi: state => state.api.sqlApi, swaggerApi: state => state.api.swaggerApi, reportApi: state => state.api.reportApi, - sidebarRouters: state => state.permission.sidebarRouters + sidebarRouters: state => state.permission.sidebarRouters, + pointApi: state => state.api.pointApi, + stockApi: state => state.api.stockApi, } export default getters diff --git a/src/store/modules/api.js b/src/store/modules/api.js index ce5ed7f..8c5733b 100644 --- a/src/store/modules/api.js +++ b/src/store/modules/api.js @@ -23,7 +23,11 @@ const api = { // report reportApi: baseUrl + '/jmreport/list', // baseUrl, - baseApi: baseUrl + baseApi: baseUrl, + //点位上传 + pointApi:baseUrl + '/api/point/import_point', + //容器上传 + stockApi:baseUrl + '/api/stock/import_stock', } } diff --git a/src/views/base-data/point/index.vue b/src/views/base-data/point/index.vue index 1f05395..ae3fdaf 100644 --- a/src/views/base-data/point/index.vue +++ b/src/views/base-data/point/index.vue @@ -65,7 +65,7 @@ slot='right' style="float: right;padding-left: 5px" :headers="headers" - action="/api/point/import_point" + :action="pointApi" :file-list="fileList" :on-error="handleErr" :on-success=" (response, file, fileList) => { return handleSuccess(response, file, fileList,crud);}" @@ -264,6 +264,7 @@ import viewFullStockIn from '@/views/base-data/point/fullStockIn.vue'; import viewFullStockOut from '@/views/base-data/point/fullStockOut.vue'; import pointUrl from '@/api/point' import multiAdjust from "@/views/base-data/point/multiAdjust.vue"; +import {mapGetters} from "vuex"; const defaultForm = {id: null, status: 'FREE', enabled: 1, code: null, name: null, description: null, area: null} export default { @@ -334,6 +335,9 @@ export default { //表单数据 } }, + computed: { + ...mapGetters(['pointApi']) + }, mounted() { this.getArea() //获取点位表的数据 diff --git a/src/views/base-data/stock/index.vue b/src/views/base-data/stock/index.vue index b5f6da4..915f37e 100644 --- a/src/views/base-data/stock/index.vue +++ b/src/views/base-data/stock/index.vue @@ -59,7 +59,7 @@ slot='right' style="float: right;padding-left: 5px" :headers="headers" - action="/api/stock/import_stock" + :action="stockApi" :file-list="fileList" :on-error="handleErr" :on-success=" (response, file, fileList) => { return handleSuccess(response, file, fileList,crud);}" @@ -173,6 +173,7 @@ import { getStockTypes } from '@/api/stockType' import DonMessage from "@/utils/message"; import {getToken} from "@/utils/auth"; import {getAres} from "@/api/area"; +import {mapGetters} from "vuex"; const defaultForm = { id: null, status: 'FREE',stockType: null,code: null, pid: null, pointId: null, subCount: null, name: null, typeId: null, length: null, width: null, height: null, weight: null, size: null, useWeight: null, useSize: null, usageWeight: null, usageSize: null, enabled: 1, createBy: null, updateBy: null, createTime: null, updateTime: null, topId: null} export default { @@ -218,6 +219,9 @@ export default { } } }, + computed: { + ...mapGetters(['stockApi']) + }, mounted() { this.getArea(); this.getStockType();