diff --git a/src/router/index.js b/src/router/index.js index 9aebf19..84084be 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -51,9 +51,19 @@ export const constantRoutes = [{ component: () => import('@/views/outbounds/index'), hidden: true }, + // { + // path: '/inventorys', + // component: () => import('@/views/inventorys/index'), + // hidden: true + // }, { - path: '/inventorys', - component: () => import('@/views/inventorys/index'), + path: '/inventorys/stocks', + component: () => import('@/views/inventorys/stocks'), + hidden: true + }, + { + path: '/inventorys/outbounds', + component: () => import('@/views/inventorys/outbounds'), hidden: true }, { diff --git a/src/utils/request.js b/src/utils/request.js index e402aa4..c0fe050 100644 --- a/src/utils/request.js +++ b/src/utils/request.js @@ -21,7 +21,7 @@ if(window.location.origin.indexOf('localhost')>-1){ const service = axios.create({ baseURL: baseUrl, // url = base url + request url // withCredentials: true, // send cookies when cross-domain requests - timeout: 5000, // request timeout + timeout: 15000, // request timeout isLoading:true }) diff --git a/src/views/dashboard/components/PanelGroup.vue b/src/views/dashboard/components/PanelGroup.vue index 2bc42c4..13a33a9 100644 --- a/src/views/dashboard/components/PanelGroup.vue +++ b/src/views/dashboard/components/PanelGroup.vue @@ -61,6 +61,27 @@ + +
+
+ 指定日期出入库 + +
+
+
+
+
+
+ {{curtotal.ruku}} + 入库 +
+
+ {{curtotal.chuku}} + 出库 +
+
+
+
@@ -76,7 +97,8 @@ }, totaldata: { type: Object, - default: { + default: ()=>{ + return { "day": { "ruku": 0, "chuku": 0 @@ -85,8 +107,22 @@ "ruku": 0, "chuku": 0 }, - "kucun":0 + "kucun":0, + 'current':{ + "ruku": 0, + "chuku": 0 + } + } } + }, + curtotal:{ + type: Object, + default:()=>{ + return { + 'ruku':0, + 'chuku':0 + } + } } }, components: { diff --git a/src/views/dashboard/index.vue b/src/views/dashboard/index.vue index 7ca1495..c55fee6 100644 --- a/src/views/dashboard/index.vue +++ b/src/views/dashboard/index.vue @@ -1,20 +1,23 @@ @@ -300,7 +300,7 @@ }, created() { this.getCangku() - // this.getHuojia() + this.getHuojia() }, methods: { // 获取物资编码 diff --git a/src/views/stocks/component/addRuku.vue b/src/views/stocks/component/addRuku.vue index a4f0e95..5813983 100644 --- a/src/views/stocks/component/addRuku.vue +++ b/src/views/stocks/component/addRuku.vue @@ -10,7 +10,7 @@ 采购合同:
-
@@ -21,7 +21,7 @@ 请示流程:
-
@@ -32,7 +32,7 @@ 应急采购请示:
-