This commit is contained in:
2023-06-02 09:42:09 +08:00
18 changed files with 1418 additions and 241 deletions

View File

@@ -1,4 +1,4 @@
import {post} from './http.js'
// import {post} from './http.js'
// 工序生产
// export const processProduction = () => post('/api/cockpit/processProduction', {
@@ -8,225 +8,44 @@ export const processProduction = () => {
"code": 200,
"desc": "操作成功",
"result": {
"BZ": {
"BZWeekList": [
{
"device_name": null,
"plan_qty": 100000,
"real_qty": 100000,
"device_code": null,
"unqualified_qty": 0,
"qualified_qty": 100000,
"material_code": "GBMCZ3016M322210GM001ZJ22-8",
"region_code": null
},
{
"device_name": null,
"plan_qty": 1000000,
"real_qty": 1000000,
"device_code": null,
"unqualified_qty": 0,
"qualified_qty": 1000000,
"material_code": "GBMAC3012C123117GM004BB22-30",
"region_code": null
},
{
"device_name": null,
"plan_qty": 1100000,
"real_qty": 1099999,
"device_code": null,
"unqualified_qty": 300001,
"qualified_qty": 799999,
"material_code": "GBMCZ3004M123116GM002ZJ20-8",
"region_code": null
},
{
"device_name": null,
"plan_qty": 20000,
"real_qty": 9012,
"device_code": null,
"unqualified_qty": 1001,
"qualified_qty": 9011,
"material_code": "ZLMCZ1001C122222GM001BD20-8",
"region_code": null
},
{
"device_name": null,
"plan_qty": 10000000,
"real_qty": 555,
"device_code": null,
"unqualified_qty": 0,
"qualified_qty": 555,
"material_code": "GBMCZ3004M123093GM002ZJ20-30",
"region_code": null
}
],
"bz_real_day": "220.96",
"bz_plan_day": "1222.00",
"BZDayList": [
{
"plan_qty": 100000,
"real_qty": 100000,
"qualified_qty": 100000,
"unqualified_qty": 0,
"device_code": null,
"material_code": "GBMCZ3016M322210GM001ZJ22-8",
"device_name": null,
"region_code": null
},
{
"plan_qty": 1000000,
"real_qty": 1000000,
"qualified_qty": 1000000,
"unqualified_qty": 0,
"device_code": null,
"material_code": "GBMAC3012C123117GM004BB22-30",
"device_name": null,
"region_code": null
},
{
"plan_qty": 1100000,
"real_qty": 1099999,
"qualified_qty": 799999,
"unqualified_qty": 300001,
"device_code": null,
"material_code": "GBMCZ3004M123116GM002ZJ20-8",
"device_name": null,
"region_code": null
},
{
"plan_qty": 20000,
"real_qty": 9012,
"qualified_qty": 9011,
"unqualified_qty": 1001,
"device_code": null,
"material_code": "ZLMCZ1001C122222GM001BD20-8",
"device_name": null,
"region_code": null
},
{
"plan_qty": 10000000,
"real_qty": 555,
"qualified_qty": 555,
"unqualified_qty": 0,
"device_code": null,
"material_code": "GBMCZ3004M123093GM002ZJ20-30",
"device_name": null,
"region_code": null
}
],
"bz_productivity": 0
},
"KC": {
"KCWeekList": [
{
"region_in_qty": 9995000,
"region_out_qty": 5000,
"inventory_qty": 1000000,
"material_code": "成品1"
},
{
"region_in_qty": 9995000,
"region_out_qty": 5000,
"inventory_qty": 1000000,
"material_code": "成品2"
},
{
"region_in_qty": 9995000,
"region_out_qty": 5000,
"inventory_qty": 1000000,
"material_code": "成品3"
},
{
"region_in_qty": 9995000,
"region_out_qty": 5000,
"inventory_qty": 1000000,
"material_code": "成品4"
},
{
"region_in_qty": 9995000,
"region_out_qty": 5000,
"inventory_qty": 1000000,
"material_code": "成品5"
}
],
"KCDayList": [
{
"region_in_qty": 9995000,
"region_out_qty": 5000,
"inventory_qty": 1000000,
"material_code": "成品1"
},
{
"region_in_qty": 9995000,
"region_out_qty": 5000,
"inventory_qty": 1000000,
"material_code": "成品2"
},
{
"region_in_qty": 9995000,
"region_out_qty": 5000,
"inventory_qty": 1000000,
"material_code": "成品3"
},
{
"region_in_qty": 9995000,
"region_out_qty": 5000,
"inventory_qty": 1000000,
"material_code": "成品4"
},
{
"region_in_qty": 9995000,
"region_out_qty": 5000,
"inventory_qty": 1000000,
"material_code": "成品5"
}
],
"in_qty": "100.00",
"inventory_qty": "90.00",
"inv_productivity": 80,
"in_productivity": 30,
"out_qty": "10.00",
"out_productivity": 60
},
"YZ": {
"yz_real_day": "0.00",
"yz_real_day": "5.35",
"YZDayList": [
{
"plan_qty": 5184,
"real_qty": 0,
"qualified_qty": 0,
"unqualified_qty": 0,
"plan_qty": 33572,
"real_qty": 30669,
"qualified_qty": 19764,
"unqualified_qty": 905,
"device_code": "YJ01",
"material_code": null,
"device_name": "压机1",
"region_code": "YZ"
},
{
"plan_qty": 0,
"real_qty": 0,
"qualified_qty": 0,
"unqualified_qty": 0,
"plan_qty": 15500,
"real_qty": 15060,
"qualified_qty": 5044,
"unqualified_qty": 16,
"device_code": "YJ02",
"material_code": null,
"device_name": "压机2",
"region_code": "YZ"
},
{
"plan_qty": 5500,
"real_qty": 0,
"qualified_qty": 0,
"unqualified_qty": 0,
"plan_qty": 12500,
"real_qty": 5898,
"qualified_qty": 5761,
"unqualified_qty": 137,
"device_code": "YJ03",
"material_code": null,
"device_name": "压机3",
"region_code": "YZ"
},
{
"plan_qty": 1440,
"real_qty": 0,
"qualified_qty": 0,
"unqualified_qty": 0,
"plan_qty": 2340,
"real_qty": 1902,
"qualified_qty": 1850,
"unqualified_qty": 52,
"device_code": "YJ04",
"material_code": null,
"device_name": "压机4",
@@ -293,12 +112,12 @@ export const processProduction = () => {
"region_code": "YZ"
}
],
"yz_plan_day": "1.21",
"yz_plan_day": "6.39",
"YZWeekList": [
{
"device_name": "压机1",
"plan_qty": 5184,
"real_qty": 0,
"plan_qty": 33572,
"real_qty": 30669,
"device_code": "YJ01",
"unqualified_qty": null,
"qualified_qty": null,
@@ -307,18 +126,18 @@ export const processProduction = () => {
},
{
"device_name": "压机2",
"plan_qty": 0,
"real_qty": 0,
"plan_qty": 15500,
"real_qty": 15060,
"device_code": "YJ02",
"unqualified_qty": 0,
"qualified_qty": 0,
"unqualified_qty": null,
"qualified_qty": null,
"material_code": null,
"region_code": "YZ"
},
{
"device_name": "压机3",
"plan_qty": 5500,
"real_qty": 0,
"plan_qty": 12500,
"real_qty": 5898,
"device_code": "YJ03",
"unqualified_qty": null,
"qualified_qty": null,
@@ -327,8 +146,8 @@ export const processProduction = () => {
},
{
"device_name": "压机4",
"plan_qty": 1440,
"real_qty": 0,
"plan_qty": 2340,
"real_qty": 1902,
"device_code": "YJ04",
"unqualified_qty": null,
"qualified_qty": null,
@@ -402,8 +221,8 @@ export const processProduction = () => {
"HLWeekList": [
{
"device_name": "混料机1",
"plan_qty": 27000,
"real_qty": 0,
"plan_qty": 67000,
"real_qty": 45000,
"device_code": "HLJ01",
"unqualified_qty": null,
"qualified_qty": null,
@@ -412,8 +231,8 @@ export const processProduction = () => {
},
{
"device_name": "混料机2",
"plan_qty": 27000,
"real_qty": 0,
"plan_qty": 67000,
"real_qty": 42000,
"device_code": "HLJ02",
"unqualified_qty": null,
"qualified_qty": null,
@@ -422,8 +241,8 @@ export const processProduction = () => {
},
{
"device_name": "混料机3",
"plan_qty": 10000,
"real_qty": 0,
"plan_qty": 40000,
"real_qty": 23000,
"device_code": "HLJ03",
"unqualified_qty": null,
"qualified_qty": null,
@@ -432,8 +251,8 @@ export const processProduction = () => {
},
{
"device_name": "混料机4",
"plan_qty": 19000,
"real_qty": 0,
"plan_qty": 49000,
"real_qty": 32000,
"device_code": "HLJ04",
"unqualified_qty": null,
"qualified_qty": null,
@@ -443,7 +262,7 @@ export const processProduction = () => {
{
"device_name": "混料机5",
"plan_qty": 5000,
"real_qty": 0,
"real_qty": 3000,
"device_code": "HLJ05",
"unqualified_qty": null,
"qualified_qty": null,
@@ -563,9 +382,9 @@ export const processProduction = () => {
],
"HLDayList": [
{
"plan_qty": 27000,
"real_qty": 0,
"qualified_qty": 0,
"plan_qty": 67000,
"real_qty": 45000,
"qualified_qty": 21000,
"unqualified_qty": 0,
"device_code": "HLJ01",
"material_code": null,
@@ -573,9 +392,9 @@ export const processProduction = () => {
"region_code": "HL"
},
{
"plan_qty": 27000,
"real_qty": 0,
"qualified_qty": 0,
"plan_qty": 67000,
"real_qty": 42000,
"qualified_qty": 18000,
"unqualified_qty": 0,
"device_code": "HLJ02",
"material_code": null,
@@ -583,9 +402,9 @@ export const processProduction = () => {
"region_code": "HL"
},
{
"plan_qty": 10000,
"real_qty": 0,
"qualified_qty": 0,
"plan_qty": 40000,
"real_qty": 23000,
"qualified_qty": 18000,
"unqualified_qty": 0,
"device_code": "HLJ03",
"material_code": null,
@@ -593,9 +412,9 @@ export const processProduction = () => {
"region_code": "HL"
},
{
"plan_qty": 19000,
"real_qty": 0,
"qualified_qty": 0,
"plan_qty": 49000,
"real_qty": 32000,
"qualified_qty": 18000,
"unqualified_qty": 0,
"device_code": "HLJ04",
"material_code": null,
@@ -604,7 +423,7 @@ export const processProduction = () => {
},
{
"plan_qty": 5000,
"real_qty": 0,
"real_qty": 3000,
"qualified_qty": 0,
"unqualified_qty": 0,
"device_code": "HLJ05",
@@ -724,8 +543,189 @@ export const processProduction = () => {
}
],
"hl_productivity": 0,
"hl_plan_day": "88.00",
"hl_real_day": "0.00"
"hl_plan_day": "228.00",
"hl_real_day": "145.00"
},
"KC": {
"KCWeekList": [
{
"region_in_qty": 9995000,
"region_out_qty": 5000,
"inventory_qty": 1000000,
"material_code": "成品1"
},
{
"region_in_qty": 9995000,
"region_out_qty": 5000,
"inventory_qty": 1000000,
"material_code": "成品2"
},
{
"region_in_qty": 9995000,
"region_out_qty": 5000,
"inventory_qty": 1000000,
"material_code": "成品3"
},
{
"region_in_qty": 9995000,
"region_out_qty": 5000,
"inventory_qty": 1000000,
"material_code": "成品4"
},
{
"region_in_qty": 9995000,
"region_out_qty": 5000,
"inventory_qty": 1000000,
"material_code": "成品5"
}
],
"KCDayList": [
{
"region_in_qty": 9995000,
"region_out_qty": 5000,
"inventory_qty": 1000000,
"material_code": "成品1"
},
{
"region_in_qty": 9995000,
"region_out_qty": 5000,
"inventory_qty": 1000000,
"material_code": "成品2"
},
{
"region_in_qty": 9995000,
"region_out_qty": 5000,
"inventory_qty": 1000000,
"material_code": "成品3"
},
{
"region_in_qty": 9995000,
"region_out_qty": 5000,
"inventory_qty": 1000000,
"material_code": "成品4"
},
{
"region_in_qty": 9995000,
"region_out_qty": 5000,
"inventory_qty": 1000000,
"material_code": "成品5"
}
],
"in_qty": "100.00",
"inventory_qty": "90.00",
"inv_productivity": 80,
"in_productivity": 30,
"out_qty": "10.00",
"out_productivity": 60
},
"BZ": {
"BZWeekList": [
{
"device_name": null,
"plan_qty": 100000,
"real_qty": 100000,
"device_code": null,
"unqualified_qty": 0,
"qualified_qty": 100000,
"material_code": "GBMCZ3016M322210GM001ZJ22-8",
"region_code": null
},
{
"device_name": null,
"plan_qty": 1000000,
"real_qty": 1000000,
"device_code": null,
"unqualified_qty": 0,
"qualified_qty": 1000000,
"material_code": "GBMAC3012C123117GM004BB22-30",
"region_code": null
},
{
"device_name": null,
"plan_qty": 1100000,
"real_qty": 1099999,
"device_code": null,
"unqualified_qty": 300001,
"qualified_qty": 799999,
"material_code": "GBMCZ3004M123116GM002ZJ20-8",
"region_code": null
},
{
"device_name": null,
"plan_qty": 20000,
"real_qty": 17999,
"device_code": null,
"unqualified_qty": 1001,
"qualified_qty": 10000,
"material_code": "ZLMCZ1001C122222GM001BD20-8",
"region_code": null
},
{
"device_name": null,
"plan_qty": 10000,
"real_qty": 5550,
"device_code": null,
"unqualified_qty": 0,
"qualified_qty": 555,
"material_code": "GBMCZ3004M123093GM002ZJ20-30",
"region_code": null
}
],
"bz_real_day": "222.35",
"bz_plan_day": "223.00",
"BZDayList": [
{
"plan_qty": 100000,
"real_qty": 100000,
"qualified_qty": 100000,
"unqualified_qty": 0,
"device_code": null,
"material_code": "GBMCZ3016M322210GM001ZJ22-8",
"device_name": null,
"region_code": null
},
{
"plan_qty": 1000000,
"real_qty": 1000000,
"qualified_qty": 1000000,
"unqualified_qty": 0,
"device_code": null,
"material_code": "GBMAC3012C123117GM004BB22-30",
"device_name": null,
"region_code": null
},
{
"plan_qty": 1100000,
"real_qty": 1099999,
"qualified_qty": 799999,
"unqualified_qty": 300001,
"device_code": null,
"material_code": "GBMCZ3004M123116GM002ZJ20-8",
"device_name": null,
"region_code": null
},
{
"plan_qty": 20000,
"real_qty": 17999,
"qualified_qty": 10000,
"unqualified_qty": 1001,
"device_code": null,
"material_code": "ZLMCZ1001C122222GM001BD20-8",
"device_name": null,
"region_code": null
},
{
"plan_qty": 10000,
"real_qty": 5550,
"qualified_qty": 555,
"unqualified_qty": 0,
"device_code": null,
"material_code": "GBMCZ3004M123093GM002ZJ20-30",
"device_name": null,
"region_code": null
}
],
"bz_productivity": 0
}
}
}