This commit is contained in:
2025-07-15 16:37:38 +08:00
parent 0051d4c59e
commit 37d1900440
4 changed files with 648 additions and 290 deletions

View File

@@ -1,284 +1,358 @@
/* eslint-disable */
export const synthesizeInfo = () => {
let res = {
"data": [
{
"storsName": "料箱库",
"inAndOutTrend": {
"in": [
{
"date": "11-13",
"qty": "400.000"
},
{
"date": "11-12",
"qty": "0"
},
{
"date": "11-11",
"qty": "220"
},
{
"date": "11-10",
"qty": "0"
},
{
"date": "11-09",
"qty": "0"
},
{
"date": "11-08",
"qty": "100"
},
{
"date": "11-07",
"qty": "0"
}
],
"out": [
{
"date": "11-13",
"qty": "0"
},
{
"date": "11-12",
"qty": "0"
},
{
"date": "11-11",
"qty": "120"
},
{
"date": "11-10",
"qty": "0"
},
{
"date": "11-09",
"qty": "60"
},
{
"date": "11-08",
"qty": "80"
},
{
"date": "11-07",
"qty": "0"
}
]
},
"pointUse": {
"total_qty": 960,
"use_qty": 5,
"emp_qty": 955,
"use_percentage": "0.52%"
},
"toDayInAndOut":{
"in": {
"total_qty": 2300,
"vehicle_qty": 1000
},
"out": {
"total_qty": 300,
"vehicle_qty": 150
}
},
"ivtAnalyse": {
"total_qty": 15800.000,
"data": [
{
"ivt_qty": 12000.000,
"material_name": "测试物料",
"percentage": "75.95%"
},
{
"ivt_qty": 2000.000,
"material_name": "A345度等径承插口弯头45CCL1 1/8USNA0131010TH",
"percentage": "12.66%"
},
{
"ivt_qty": 1500.000,
"material_name": "A345度等径承插口弯头45CCL1 5/8USNA0131014",
"percentage": "9.49%"
},
{
"ivt_qty": 300.000,
"material_name": "A345度等径承插口弯头45CCL1 5/8USNA0131014TH",
"percentage": "1.90%"
},
{
"ivt_qty": 1500.000,
"material_name": "A345度等径承插口弯头45CCL1 5/8USNA0131014",
"percentage": "9.49%"
},
{
"ivt_qty": 300.000,
"material_name": "A345度等径承插口弯头45CCL1 5/8USNA0131014TH",
"percentage": "1.90%"
}
]
},
"realTask": [
{
"task_code": 'rw001',
"point_code1": "dw-1-1",
"point_code2": "dw-2-2",
"vehicle_code": "vc123123",
"task_status": "生成"
},
],
"unIos": [
{
"bill_code": 'dj001',
"io_type": "入库",
"bill_type": "待定",
"biz_date": "2025-03-28",
"stor_name": "仓库1",
"total_qty": "100",
"detail_count": "60",
"source_id": "ydh0001",
"bill_status": "生成"
},
]
"totalElements": 2,
"content": [
{
"toDayInAndOut": {
"in": {
"total_qty": 0.00,
"vehicle_qty": 0
},
"out": {
"total_qty": 0.00,
"vehicle_qty": 0
}
},
{
"storsName": "托盘库",
"inAndOutTrend": {
"in": [
{
"date": "11-13",
"qty": "400.000"
},
{
"date": "11-12",
"qty": "0"
},
{
"date": "11-11",
"qty": "220"
},
{
"date": "11-10",
"qty": "0"
},
{
"date": "11-09",
"qty": "0"
},
{
"date": "11-08",
"qty": "100"
},
{
"date": "11-07",
"qty": "0"
}
],
"out": [
{
"date": "11-13",
"qty": "0"
},
{
"date": "11-12",
"qty": "0"
},
{
"date": "11-11",
"qty": "120"
},
{
"date": "11-10",
"qty": "0"
},
{
"date": "11-09",
"qty": "60"
},
{
"date": "11-08",
"qty": "80"
},
{
"date": "11-07",
"qty": "0"
}
]
"unIos": [
{
"iostorinv_id": "1942767928353099776",
"bill_code": "OUT20250709000",
"io_type": "出库",
"bill_type": "dict.getLabel()",
"biz_date": "2025-07-09",
"stor_id": "1582991156504039424",
"stor_code": "GW",
"stor_name": "高位库",
"source_id": null,
"source_name": null,
"source_type": null,
"total_qty": 1.000000,
"total_weight": null,
"detail_count": 1,
"bill_status": "生成",
"remark": "",
"create_mode": "1",
"input_optid": "1",
"input_optname": "admin",
"input_time": "2025-07-09 10:09:03",
"update_optid": "1",
"update_optname": "admin",
"update_time": "2025-07-09 10:09:03",
"dis_optid": null,
"dis_optname": null,
"dis_time": null,
"confirm_optid": null,
"confirm_optname": null,
"confirm_time": null,
"sysdeptid": null,
"syscompanyid": null,
"is_delete": "0",
"is_upload": "0",
"upload_optid": null,
"upload_time": null
},
{
"iostorinv_id": "1944572402453319680",
"bill_code": "IN20250714001",
"io_type": "入库",
"bill_type": "dict.getLabel()",
"biz_date": "2025-07-14",
"stor_id": "1582991156504039424",
"stor_code": "GW",
"stor_name": "高位库",
"source_id": null,
"source_name": null,
"source_type": null,
"total_qty": 0.000000,
"total_weight": null,
"detail_count": 1,
"bill_status": "分配完",
"remark": "",
"create_mode": "1",
"input_optid": "1",
"input_optname": "admin",
"input_time": "2025-07-14 09:39:23",
"update_optid": "1",
"update_optname": "admin",
"update_time": "2025-07-14 09:41:20",
"dis_optid": null,
"dis_optname": null,
"dis_time": null,
"confirm_optid": null,
"confirm_optname": null,
"confirm_time": null,
"sysdeptid": "1",
"syscompanyid": "1",
"is_delete": "0",
"is_upload": "0",
"upload_optid": null,
"upload_time": null
}
],
"realTask": [],
"ivtAnalyse": {
"data": [
{
"ivt_qty": 1120,
"percentage": 0.00,
"material_name": "电源线"
},
"pointUse": {
"total_qty": 500,
"use_qty": 400,
"emp_qty": 100,
"use_percentage": "0.8%"
{
"ivt_qty": 2221,
"percentage": 0.00,
"material_name": "漏保电源线"
}
],
"total_qty": 3341
},
"inAndOutTrend": {
"in": [
{
"date": "2025-07-09",
"qty": 0.00
},
"toDayInAndOut":{
"in": {
"total_qty": 4400,
"vehicle_qty": 1119
},
"out": {
"total_qty": 220,
"vehicle_qty": 20
}
{
"date": "2025-07-10",
"qty": 1131.00
},
"ivtAnalyse": {
"total_qty": 15800.000,
"data": [
{
"ivt_qty": 12000.000,
"material_name": "测试物料",
"percentage": "75.95%"
},
{
"ivt_qty": 2000.000,
"material_name": "A345度等径承插口弯头45CCL1 1/8USNA0131010TH",
"percentage": "12.66%"
},
{
"ivt_qty": 1500.000,
"material_name": "A345度等径承插口弯头45CCL1 5/8USNA0131014",
"percentage": "9.49%"
},
{
"ivt_qty": 300.000,
"material_name": "A345度等径承插口弯头45CCL1 5/8USNA0131014TH",
"percentage": "1.90%"
},
{
"ivt_qty": 1500.000,
"material_name": "A345度等径承插口弯头45CCL1 5/8USNA0131014",
"percentage": "9.49%"
},
{
"ivt_qty": 300.000,
"material_name": "A345度等径承插口弯头45CCL1 5/8USNA0131014TH",
"percentage": "1.90%"
}
]
{
"date": "2025-07-11",
"qty": 10.00
},
"realTask": [
{
"task_code": 'rw001',
"point_code1": "dw-1-1",
"point_code2": "dw-2-2",
"vehicle_code": "vc123123",
"task_status": "生成"
},
],
"unIos": [
{
"bill_code": 'dj001',
"io_type": "入库",
"bill_type": "待定",
"biz_date": "2025-03-28",
"stor_name": "仓库1",
"total_qty": "100",
"detail_count": "60",
"source_id": "ydh0001",
"bill_status": "生成"
},
]
{
"date": "2025-07-12",
"qty": 0.00
},
{
"date": "2025-07-13",
"qty": 2231.00
},
{
"date": "2025-07-14",
"qty": 1110.00
},
{
"date": "2025-07-15",
"qty": 0.00
}
],
"out": [
{
"date": "2025-07-09",
"qty": 0.00
},
{
"date": "2025-07-10",
"qty": 10.00
},
{
"date": "2025-07-11",
"qty": 22.00
},
{
"date": "2025-07-12",
"qty": 0.00
},
{
"date": "2025-07-13",
"qty": 0.00
},
{
"date": "2025-07-14",
"qty": 0.00
},
{
"date": "2025-07-15",
"qty": 0.00
}
]
},
"title": "GW仓库",
"pointUse": {
"emp_qty": 3,
"total_qty": 9,
"use_percentage": 66.67,
"use_qty": 6
}
]
}
},
{
"toDayInAndOut": {
"in": {
"total_qty": 0.00,
"vehicle_qty": 0
},
"out": {
"total_qty": 0.00,
"vehicle_qty": 0
}
},
"unIos": [
{
"iostorinv_id": "1942767928353099776",
"bill_code": "OUT20250709000",
"io_type": "出库",
"bill_type": "dict.getLabel()",
"biz_date": "2025-07-09",
"stor_id": "1582991156504039424",
"stor_code": "GW",
"stor_name": "高位库",
"source_id": null,
"source_name": null,
"source_type": null,
"total_qty": 1.000000,
"total_weight": null,
"detail_count": 1,
"bill_status": "生成",
"remark": "",
"create_mode": "1",
"input_optid": "1",
"input_optname": "admin",
"input_time": "2025-07-09 10:09:03",
"update_optid": "1",
"update_optname": "admin",
"update_time": "2025-07-09 10:09:03",
"dis_optid": null,
"dis_optname": null,
"dis_time": null,
"confirm_optid": null,
"confirm_optname": null,
"confirm_time": null,
"sysdeptid": null,
"syscompanyid": null,
"is_delete": "0",
"is_upload": "0",
"upload_optid": null,
"upload_time": null
},
{
"iostorinv_id": "1944572402453319680",
"bill_code": "IN20250714001",
"io_type": "入库",
"bill_type": "dict.getLabel()",
"biz_date": "2025-07-14",
"stor_id": "1582991156504039424",
"stor_code": "GW",
"stor_name": "高位库",
"source_id": null,
"source_name": null,
"source_type": null,
"total_qty": 0.000000,
"total_weight": null,
"detail_count": 1,
"bill_status": "分配完",
"remark": "",
"create_mode": "1",
"input_optid": "1",
"input_optname": "admin",
"input_time": "2025-07-14 09:39:23",
"update_optid": "1",
"update_optname": "admin",
"update_time": "2025-07-14 09:41:20",
"dis_optid": null,
"dis_optname": null,
"dis_time": null,
"confirm_optid": null,
"confirm_optname": null,
"confirm_time": null,
"sysdeptid": "1",
"syscompanyid": "1",
"is_delete": "0",
"is_upload": "0",
"upload_optid": null,
"upload_time": null
}
],
"realTask": [],
"ivtAnalyse": {
"data": [
{
"ivt_qty": 1120,
"percentage": 0.00,
"material_name": "电源线"
},
{
"ivt_qty": 2221,
"percentage": 0.00,
"material_name": "漏保电源线"
}
],
"total_qty": 3341
},
"inAndOutTrend": {
"in": [
{
"date": "2025-07-09",
"qty": 0.00
},
{
"date": "2025-07-10",
"qty": 1131.00
},
{
"date": "2025-07-11",
"qty": 10.00
},
{
"date": "2025-07-12",
"qty": 0.00
},
{
"date": "2025-07-13",
"qty": 2231.00
},
{
"date": "2025-07-14",
"qty": 1110.00
},
{
"date": "2025-07-15",
"qty": 0.00
}
],
"out": [
{
"date": "2025-07-09",
"qty": 0.00
},
{
"date": "2025-07-10",
"qty": 10.00
},
{
"date": "2025-07-11",
"qty": 22.00
},
{
"date": "2025-07-12",
"qty": 0.00
},
{
"date": "2025-07-13",
"qty": 0.00
},
{
"date": "2025-07-14",
"qty": 0.00
},
{
"date": "2025-07-15",
"qty": 0.00
}
]
},
"title": "GW仓库",
"pointUse": {
"emp_qty": 3,
"total_qty": 9,
"use_percentage": 66.67,
"use_qty": 6
}
}
],
"code": "200",
"msg": "查询成功",
"data": null
}
return res
}

284
src/config/mork03bf.js Normal file
View File

@@ -0,0 +1,284 @@
/* eslint-disable */
export const synthesizeInfo = () => {
let res = {
"data": [
{
"storsName": "料箱库",
"inAndOutTrend": {
"in": [
{
"date": "11-13",
"qty": "400.000"
},
{
"date": "11-12",
"qty": "0"
},
{
"date": "11-11",
"qty": "220"
},
{
"date": "11-10",
"qty": "0"
},
{
"date": "11-09",
"qty": "0"
},
{
"date": "11-08",
"qty": "100"
},
{
"date": "11-07",
"qty": "0"
}
],
"out": [
{
"date": "11-13",
"qty": "0"
},
{
"date": "11-12",
"qty": "0"
},
{
"date": "11-11",
"qty": "120"
},
{
"date": "11-10",
"qty": "0"
},
{
"date": "11-09",
"qty": "60"
},
{
"date": "11-08",
"qty": "80"
},
{
"date": "11-07",
"qty": "0"
}
]
},
"pointUse": {
"total_qty": 960,
"use_qty": 5,
"emp_qty": 955,
"use_percentage": "0.52%"
},
"toDayInAndOut":{
"in": {
"total_qty": 2300,
"vehicle_qty": 1000
},
"out": {
"total_qty": 300,
"vehicle_qty": 150
}
},
"ivtAnalyse": {
"total_qty": 15800.000,
"data": [
{
"ivt_qty": 12000.000,
"material_name": "测试物料",
"percentage": "75.95%"
},
{
"ivt_qty": 2000.000,
"material_name": "A345度等径承插口弯头45CCL1 1/8USNA0131010TH",
"percentage": "12.66%"
},
{
"ivt_qty": 1500.000,
"material_name": "A345度等径承插口弯头45CCL1 5/8USNA0131014",
"percentage": "9.49%"
},
{
"ivt_qty": 300.000,
"material_name": "A345度等径承插口弯头45CCL1 5/8USNA0131014TH",
"percentage": "1.90%"
},
{
"ivt_qty": 1500.000,
"material_name": "A345度等径承插口弯头45CCL1 5/8USNA0131014",
"percentage": "9.49%"
},
{
"ivt_qty": 300.000,
"material_name": "A345度等径承插口弯头45CCL1 5/8USNA0131014TH",
"percentage": "1.90%"
}
]
},
"realTask": [
{
"task_code": 'rw001',
"point_code1": "dw-1-1",
"point_code2": "dw-2-2",
"vehicle_code": "vc123123",
"task_status": "生成"
},
],
"unIos": [
{
"bill_code": 'dj001',
"io_type": "入库",
"bill_type": "待定",
"biz_date": "2025-03-28",
"stor_name": "仓库1",
"total_qty": "100",
"detail_count": "60",
"source_id": "ydh0001",
"bill_status": "生成"
},
]
},
{
"storsName": "托盘库",
"inAndOutTrend": {
"in": [
{
"date": "11-13",
"qty": "400.000"
},
{
"date": "11-12",
"qty": "0"
},
{
"date": "11-11",
"qty": "220"
},
{
"date": "11-10",
"qty": "0"
},
{
"date": "11-09",
"qty": "0"
},
{
"date": "11-08",
"qty": "100"
},
{
"date": "11-07",
"qty": "0"
}
],
"out": [
{
"date": "11-13",
"qty": "0"
},
{
"date": "11-12",
"qty": "0"
},
{
"date": "11-11",
"qty": "120"
},
{
"date": "11-10",
"qty": "0"
},
{
"date": "11-09",
"qty": "60"
},
{
"date": "11-08",
"qty": "80"
},
{
"date": "11-07",
"qty": "0"
}
]
},
"pointUse": {
"total_qty": 500,
"use_qty": 400,
"emp_qty": 100,
"use_percentage": "0.8%"
},
"toDayInAndOut":{
"in": {
"total_qty": 4400,
"vehicle_qty": 1119
},
"out": {
"total_qty": 220,
"vehicle_qty": 20
}
},
"ivtAnalyse": {
"total_qty": 15800.000,
"data": [
{
"ivt_qty": 12000.000,
"material_name": "测试物料",
"percentage": "75.95%"
},
{
"ivt_qty": 2000.000,
"material_name": "A345度等径承插口弯头45CCL1 1/8USNA0131010TH",
"percentage": "12.66%"
},
{
"ivt_qty": 1500.000,
"material_name": "A345度等径承插口弯头45CCL1 5/8USNA0131014",
"percentage": "9.49%"
},
{
"ivt_qty": 300.000,
"material_name": "A345度等径承插口弯头45CCL1 5/8USNA0131014TH",
"percentage": "1.90%"
},
{
"ivt_qty": 1500.000,
"material_name": "A345度等径承插口弯头45CCL1 5/8USNA0131014",
"percentage": "9.49%"
},
{
"ivt_qty": 300.000,
"material_name": "A345度等径承插口弯头45CCL1 5/8USNA0131014TH",
"percentage": "1.90%"
}
]
},
"realTask": [
{
"task_code": 'rw001',
"point_code1": "dw-1-1",
"point_code2": "dw-2-2",
"vehicle_code": "vc123123",
"task_status": "生成"
},
],
"unIos": [
{
"bill_code": 'dj001',
"io_type": "入库",
"bill_type": "待定",
"biz_date": "2025-03-28",
"stor_name": "仓库1",
"total_qty": "100",
"detail_count": "60",
"source_id": "ydh0001",
"bill_status": "生成"
},
]
}
]
}
return res
}

View File

@@ -188,8 +188,8 @@
<script>
import THeader from '@components/header.vue'
// import { synthesizeInfo } from '@js/getData2.js'
import { synthesizeInfo } from '@js/mork02.js'
import { synthesizeInfo } from '@js/getData2.js'
// import { synthesizeInfo } from '@js/mork02.js'
export default {
components: {
THeader
@@ -282,19 +282,19 @@ export default {
},
async _synthesizeInfo () {
let res = await synthesizeInfo(this.$store.getters.secCode)
res.data = res.data[0]
this.storsName = res.data.storsName
this.pointUse = res.data.pointUse
this.toDayInAndOut = res.data.toDayInAndOut
res.content = res.content[0]
this.storsName = res.content.title
this.pointUse = res.content.pointUse
this.toDayInAndOut = res.content.toDayInAndOut
this.inw = this.getPercentage(this.toDayInAndOut.in.vehicle_qty, this.toDayInAndOut.in.total_qty)
this.inqty1 = this.toDayInAndOut.in.total_qty
this.outw = this.getPercentage(this.toDayInAndOut.out.vehicle_qty, this.toDayInAndOut.out.total_qty)
this.outqty1 = this.toDayInAndOut.out.total_qty
this.lx_in_week = [...res.data.inAndOutTrend.in]
this.lx_out_week = [...res.data.inAndOutTrend.out]
this.lx_inventory = res.data.ivtAnalyse
this.taskList = [...res.data.realTask]
this.billList = [...res.data.unIos]
this.lx_in_week = [...res.content.inAndOutTrend.in]
this.lx_out_week = [...res.content.inAndOutTrend.out]
this.lx_inventory = res.content.ivtAnalyse
this.taskList = [...res.content.realTask]
this.billList = [...res.content.unIos]
this.setEchart1()
this.setEchart2()
// this.setEchart3()

View File

@@ -5,7 +5,7 @@
<div class="acon" v-for="(e, i) in resDataArr" :key="i">
<div class="relative b_title">
<span class="absolute sj_icon"></span>
<p>{{ e.storsName }}</p>
<p>{{ e.title }}</p>
</div>
<div class="zd-row wraper_1 mgb8">
<div class="box zd-col-7 mgr8">
@@ -83,8 +83,8 @@
import THeader from '@components/header.vue'
import SecTwo from './secTwo.vue'
import SecThree from './secThree.vue'
// import { synthesizeInfo } from '@js/getData2.js'
import { synthesizeInfo } from '@js/mork02.js'
import { synthesizeInfo } from '@js/getData2.js'
// import { synthesizeInfo } from '@js/mork02.js'
export default {
components: {
THeader,
@@ -147,9 +147,9 @@ export default {
},
async _synthesizeInfo () {
let res = await synthesizeInfo(this.$store.getters.secCode)
this.resDataArr = res.data
this.pointUse = res.data[0].pointUse
this.toDayInAndOut = res.data[0].toDayInAndOut
this.resDataArr = res.content
this.pointUse = res.content[0].pointUse
this.toDayInAndOut = res.content[0].toDayInAndOut
this.inw = this.getPercentage(this.toDayInAndOut.in.vehicle_qty, this.toDayInAndOut.in.total_qty)
this.inqty1 = this.toDayInAndOut.in.total_qty
this.outw = this.getPercentage(this.toDayInAndOut.out.vehicle_qty, this.toDayInAndOut.out.total_qty)