From 8200ff1f15306ed3317ed74e4e1730d72db9f1e6 Mon Sep 17 00:00:00 2001
From: lion <120344285@qq.com>
Date: Tue, 26 Sep 2023 15:51:08 +0800
Subject: [PATCH] up
---
src/router/index.js | 14 +-
src/utils/request.js | 2 +-
src/views/dashboard/components/PanelGroup.vue | 40 ++-
src/views/dashboard/index.vue | 31 +-
src/views/inventorys/index.vue | 12 +-
src/views/inventorys/outbounds.vue | 294 +++++++++++++++
src/views/inventorys/stocks.vue | 335 ++++++++++++++++++
src/views/materialfile/component/addMater.vue | 10 +-
src/views/stocks/component/addRuku.vue | 6 +-
9 files changed, 721 insertions(+), 23 deletions(-)
create mode 100644 src/views/inventorys/outbounds.vue
create mode 100644 src/views/inventorys/stocks.vue
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 @@
-
当前登录人:{{user.name}}
+
+
当前登录人:{{user.name}}
+
+
+
+
+
+
+
@@ -80,6 +83,10 @@
}]
},
list: {},
+ curTotal:{
+ ruku:0,
+ chuku:0
+ },
lineArr: {
xArr: [],
legendArr: ["入库", "出库"],
@@ -121,6 +128,8 @@
that.lineArr.xArr = []
that.lineArr.series[0].data = []
that.lineArr.series[1].data = []
+ let curRukuTotal = 0
+ let curChukuTotal = 0
await stocksCharts({
start_time: this.start_time,
end_time: this.end_time
@@ -128,7 +137,9 @@
for (var m of res) {
that.lineArr.xArr.push(m.date.split('-')[1] + "-" + m.date.split('-')[2]);
that.lineArr.series[0].data.push(m.total);
+ curRukuTotal+= parseInt(m.total)
}
+ that.curTotal.ruku = curRukuTotal
}).catch()
await outboundsCharts({
start_time: this.start_time,
@@ -136,7 +147,9 @@
}).then((res) => {
for (var m of res) {
that.lineArr.series[1].data.push(m.total);
+ curChukuTotal+=parseInt(m.total)
}
+ that.curTotal.chuku = curChukuTotal
}).catch()
},
getNowDate() {
diff --git a/src/views/inventorys/index.vue b/src/views/inventorys/index.vue
index a825aa9..e6012e3 100644
--- a/src/views/inventorys/index.vue
+++ b/src/views/inventorys/index.vue
@@ -122,7 +122,13 @@
list: [],
table: [{
type: 'selection'
- }, {
+ }, {
+
+ label: '创建时间',
+ prop: 'created_at',
+ fixed: 'left',
+ width: 180,
+ },{
label: '序号',
type: 'index',
fixed: 'left',
@@ -369,6 +375,10 @@
closeCode() {
this.$refs.qrCodeDiv.innerHTML = ""
this.showcode = false
+ },
+ search(){
+ this.select.pageIndex = 1
+ this.getindex()
},
async getindex() {
this.loading = true
diff --git a/src/views/inventorys/outbounds.vue b/src/views/inventorys/outbounds.vue
new file mode 100644
index 0000000..79f2881
--- /dev/null
+++ b/src/views/inventorys/outbounds.vue
@@ -0,0 +1,294 @@
+
+
+
+
+
+
select.pageSize = e" @pageIndexChange="pageChange" :table-item="table" :auths='[]'>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/inventorys/stocks.vue b/src/views/inventorys/stocks.vue
new file mode 100644
index 0000000..ad654ef
--- /dev/null
+++ b/src/views/inventorys/stocks.vue
@@ -0,0 +1,335 @@
+
+
+
+
+
+
select.pageSize = e" @pageIndexChange="pageChange" :table-item="table" :auths='[]'>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/materialfile/component/addMater.vue b/src/views/materialfile/component/addMater.vue
index bcf241c..c863692 100644
--- a/src/views/materialfile/component/addMater.vue
+++ b/src/views/materialfile/component/addMater.vue
@@ -102,16 +102,16 @@
所在货架:
-
-
-
+
+
- -->
+
@@ -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 @@
应急采购请示:
-