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 */ /* eslint-disable */
export const synthesizeInfo = () => { export const synthesizeInfo = () => {
let res = { let res = {
"data": [ "totalElements": 2,
{ "content": [
"storsName": "料箱库", {
"inAndOutTrend": { "toDayInAndOut": {
"in": [ "in": {
{ "total_qty": 0.00,
"date": "11-13", "vehicle_qty": 0
"qty": "400.000" },
}, "out": {
{ "total_qty": 0.00,
"date": "11-12", "vehicle_qty": 0
"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": "生成"
},
]
}, },
{ "unIos": [
"storsName": "托盘库", {
"inAndOutTrend": { "iostorinv_id": "1942767928353099776",
"in": [ "bill_code": "OUT20250709000",
{ "io_type": "出库",
"date": "11-13", "bill_type": "dict.getLabel()",
"qty": "400.000" "biz_date": "2025-07-09",
}, "stor_id": "1582991156504039424",
{ "stor_code": "GW",
"date": "11-12", "stor_name": "高位库",
"qty": "0" "source_id": null,
}, "source_name": null,
{ "source_type": null,
"date": "11-11", "total_qty": 1.000000,
"qty": "220" "total_weight": null,
}, "detail_count": 1,
{ "bill_status": "生成",
"date": "11-10", "remark": "",
"qty": "0" "create_mode": "1",
}, "input_optid": "1",
{ "input_optname": "admin",
"date": "11-09", "input_time": "2025-07-09 10:09:03",
"qty": "0" "update_optid": "1",
}, "update_optname": "admin",
{ "update_time": "2025-07-09 10:09:03",
"date": "11-08", "dis_optid": null,
"qty": "100" "dis_optname": null,
}, "dis_time": null,
{ "confirm_optid": null,
"date": "11-07", "confirm_optname": null,
"qty": "0" "confirm_time": null,
} "sysdeptid": null,
], "syscompanyid": null,
"out": [ "is_delete": "0",
{ "is_upload": "0",
"date": "11-13", "upload_optid": null,
"qty": "0" "upload_time": null
}, },
{ {
"date": "11-12", "iostorinv_id": "1944572402453319680",
"qty": "0" "bill_code": "IN20250714001",
}, "io_type": "入库",
{ "bill_type": "dict.getLabel()",
"date": "11-11", "biz_date": "2025-07-14",
"qty": "120" "stor_id": "1582991156504039424",
}, "stor_code": "GW",
{ "stor_name": "高位库",
"date": "11-10", "source_id": null,
"qty": "0" "source_name": null,
}, "source_type": null,
{ "total_qty": 0.000000,
"date": "11-09", "total_weight": null,
"qty": "60" "detail_count": 1,
}, "bill_status": "分配完",
{ "remark": "",
"date": "11-08", "create_mode": "1",
"qty": "80" "input_optid": "1",
}, "input_optname": "admin",
{ "input_time": "2025-07-14 09:39:23",
"date": "11-07", "update_optid": "1",
"qty": "0" "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, "ivt_qty": 2221,
"use_qty": 400, "percentage": 0.00,
"emp_qty": 100, "material_name": "漏保电源线"
"use_percentage": "0.8%" }
],
"total_qty": 3341
},
"inAndOutTrend": {
"in": [
{
"date": "2025-07-09",
"qty": 0.00
}, },
"toDayInAndOut":{ {
"in": { "date": "2025-07-10",
"total_qty": 4400, "qty": 1131.00
"vehicle_qty": 1119
},
"out": {
"total_qty": 220,
"vehicle_qty": 20
}
}, },
"ivtAnalyse": { {
"total_qty": 15800.000, "date": "2025-07-11",
"data": [ "qty": 10.00
{
"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": [ {
{ "date": "2025-07-12",
"task_code": 'rw001', "qty": 0.00
"point_code1": "dw-1-1", },
"point_code2": "dw-2-2", {
"vehicle_code": "vc123123", "date": "2025-07-13",
"task_status": "生成" "qty": 2231.00
}, },
], {
"unIos": [ "date": "2025-07-14",
{ "qty": 1110.00
"bill_code": 'dj001', },
"io_type": "入库", {
"bill_type": "待定", "date": "2025-07-15",
"biz_date": "2025-03-28", "qty": 0.00
"stor_name": "仓库1", }
"total_qty": "100", ],
"detail_count": "60", "out": [
"source_id": "ydh0001", {
"bill_status": "生成" "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 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> <script>
import THeader from '@components/header.vue' import THeader from '@components/header.vue'
// import { synthesizeInfo } from '@js/getData2.js' import { synthesizeInfo } from '@js/getData2.js'
import { synthesizeInfo } from '@js/mork02.js' // import { synthesizeInfo } from '@js/mork02.js'
export default { export default {
components: { components: {
THeader THeader
@@ -282,19 +282,19 @@ export default {
}, },
async _synthesizeInfo () { async _synthesizeInfo () {
let res = await synthesizeInfo(this.$store.getters.secCode) let res = await synthesizeInfo(this.$store.getters.secCode)
res.data = res.data[0] res.content = res.content[0]
this.storsName = res.data.storsName this.storsName = res.content.title
this.pointUse = res.data.pointUse this.pointUse = res.content.pointUse
this.toDayInAndOut = res.data.toDayInAndOut this.toDayInAndOut = res.content.toDayInAndOut
this.inw = this.getPercentage(this.toDayInAndOut.in.vehicle_qty, this.toDayInAndOut.in.total_qty) this.inw = this.getPercentage(this.toDayInAndOut.in.vehicle_qty, this.toDayInAndOut.in.total_qty)
this.inqty1 = 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.outw = this.getPercentage(this.toDayInAndOut.out.vehicle_qty, this.toDayInAndOut.out.total_qty)
this.outqty1 = this.toDayInAndOut.out.total_qty this.outqty1 = this.toDayInAndOut.out.total_qty
this.lx_in_week = [...res.data.inAndOutTrend.in] this.lx_in_week = [...res.content.inAndOutTrend.in]
this.lx_out_week = [...res.data.inAndOutTrend.out] this.lx_out_week = [...res.content.inAndOutTrend.out]
this.lx_inventory = res.data.ivtAnalyse this.lx_inventory = res.content.ivtAnalyse
this.taskList = [...res.data.realTask] this.taskList = [...res.content.realTask]
this.billList = [...res.data.unIos] this.billList = [...res.content.unIos]
this.setEchart1() this.setEchart1()
this.setEchart2() this.setEchart2()
// this.setEchart3() // this.setEchart3()

View File

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