diff --git a/src/assets/js/getData0.js b/src/assets/js/getData0.js index 65217ff..e2feca6 100644 --- a/src/assets/js/getData0.js +++ b/src/assets/js/getData0.js @@ -12,6 +12,108 @@ export const processProduction = () => post('/api/cockpit/processProduction', { // "yz_real_day": "5.35", // "YZDayList": [ // { +// "device_name": "压机1", +// "plan_qty": 33572, +// "real_qty": 30669, +// "device_code": "YJ01", +// "unqualified_qty": 905, +// "qualified_qty": 19764, +// "material_code": null, +// "region_code": "YZ" +// }, +// { +// "device_name": "压机2", +// "plan_qty": 15500, +// "real_qty": 15060, +// "device_code": "YJ02", +// "unqualified_qty": 16, +// "qualified_qty": 5044, +// "material_code": null, +// "region_code": "YZ" +// }, +// { +// "device_name": "压机3", +// "plan_qty": 12500, +// "real_qty": 5898, +// "device_code": "YJ03", +// "unqualified_qty": 137, +// "qualified_qty": 5761, +// "material_code": null, +// "region_code": "YZ" +// }, +// { +// "device_name": "压机4", +// "plan_qty": 2340, +// "real_qty": 1902, +// "device_code": "YJ04", +// "unqualified_qty": 52, +// "qualified_qty": 1850, +// "material_code": null, +// "region_code": "YZ" +// }, +// { +// "device_name": "压机5", +// "plan_qty": 0, +// "real_qty": 0, +// "device_code": "YJ05", +// "unqualified_qty": 0, +// "qualified_qty": 0, +// "material_code": null, +// "region_code": "YZ" +// }, +// { +// "device_name": "压机6", +// "plan_qty": 0, +// "real_qty": 0, +// "device_code": "YJ06", +// "unqualified_qty": 0, +// "qualified_qty": 0, +// "material_code": null, +// "region_code": "YZ" +// }, +// { +// "device_name": "压机7", +// "plan_qty": 0, +// "real_qty": 0, +// "device_code": "YJ07", +// "unqualified_qty": 0, +// "qualified_qty": 0, +// "material_code": null, +// "region_code": "YZ" +// }, +// { +// "device_name": "压机8", +// "plan_qty": 0, +// "real_qty": 0, +// "device_code": "YJ08", +// "unqualified_qty": 0, +// "qualified_qty": 0, +// "material_code": null, +// "region_code": "YZ" +// }, +// { +// "device_name": "压机9", +// "plan_qty": 0, +// "real_qty": 0, +// "device_code": "YJ09", +// "unqualified_qty": 0, +// "qualified_qty": 0, +// "material_code": null, +// "region_code": "YZ" +// }, +// { +// "device_name": "压机10", +// "plan_qty": 0, +// "real_qty": 0, +// "device_code": "YJ10", +// "unqualified_qty": 0, +// "qualified_qty": 0, +// "material_code": null, +// "region_code": "YZ" +// } +// ], +// "YZWeekList": [ +// { // "plan_qty": 33572, // "real_qty": 30669, // "qualified_qty": 19764, @@ -113,109 +215,7 @@ export const processProduction = () => post('/api/cockpit/processProduction', { // } // ], // "yz_plan_day": "6.39", -// "YZWeekList": [ -// { -// "device_name": "压机1", -// "plan_qty": 33572, -// "real_qty": 30669, -// "device_code": "YJ01", -// "unqualified_qty": null, -// "qualified_qty": null, -// "material_code": null, -// "region_code": "YZ" -// }, -// { -// "device_name": "压机2", -// "plan_qty": 15500, -// "real_qty": 15060, -// "device_code": "YJ02", -// "unqualified_qty": null, -// "qualified_qty": null, -// "material_code": null, -// "region_code": "YZ" -// }, -// { -// "device_name": "压机3", -// "plan_qty": 12500, -// "real_qty": 5898, -// "device_code": "YJ03", -// "unqualified_qty": null, -// "qualified_qty": null, -// "material_code": null, -// "region_code": "YZ" -// }, -// { -// "device_name": "压机4", -// "plan_qty": 2340, -// "real_qty": 1902, -// "device_code": "YJ04", -// "unqualified_qty": null, -// "qualified_qty": null, -// "material_code": null, -// "region_code": "YZ" -// }, -// { -// "device_name": "压机5", -// "plan_qty": 0, -// "real_qty": 0, -// "device_code": "YJ05", -// "unqualified_qty": 0, -// "qualified_qty": 0, -// "material_code": null, -// "region_code": "YZ" -// }, -// { -// "device_name": "压机6", -// "plan_qty": 0, -// "real_qty": 0, -// "device_code": "YJ06", -// "unqualified_qty": 0, -// "qualified_qty": 0, -// "material_code": null, -// "region_code": "YZ" -// }, -// { -// "device_name": "压机7", -// "plan_qty": 0, -// "real_qty": 0, -// "device_code": "YJ07", -// "unqualified_qty": 0, -// "qualified_qty": 0, -// "material_code": null, -// "region_code": "YZ" -// }, -// { -// "device_name": "压机8", -// "plan_qty": 0, -// "real_qty": 0, -// "device_code": "YJ08", -// "unqualified_qty": 0, -// "qualified_qty": 0, -// "material_code": null, -// "region_code": "YZ" -// }, -// { -// "device_name": "压机9", -// "plan_qty": 0, -// "real_qty": 0, -// "device_code": "YJ09", -// "unqualified_qty": 0, -// "qualified_qty": 0, -// "material_code": null, -// "region_code": "YZ" -// }, -// { -// "device_name": "压机10", -// "plan_qty": 0, -// "real_qty": 0, -// "device_code": "YJ10", -// "unqualified_qty": 0, -// "qualified_qty": 0, -// "material_code": null, -// "region_code": "YZ" -// } -// ], -// "yz_productivity": 0 +// "yz_productivity": 83 // }, // "HL": { // "HLWeekList": [ @@ -224,8 +224,8 @@ export const processProduction = () => post('/api/cockpit/processProduction', { // "plan_qty": 67000, // "real_qty": 45000, // "device_code": "HLJ01", -// "unqualified_qty": null, -// "qualified_qty": null, +// "unqualified_qty": 0, +// "qualified_qty": 21000, // "material_code": null, // "region_code": "HL" // }, @@ -234,8 +234,8 @@ export const processProduction = () => post('/api/cockpit/processProduction', { // "plan_qty": 67000, // "real_qty": 42000, // "device_code": "HLJ02", -// "unqualified_qty": null, -// "qualified_qty": null, +// "unqualified_qty": 0, +// "qualified_qty": 18000, // "material_code": null, // "region_code": "HL" // }, @@ -244,8 +244,8 @@ export const processProduction = () => post('/api/cockpit/processProduction', { // "plan_qty": 40000, // "real_qty": 23000, // "device_code": "HLJ03", -// "unqualified_qty": null, -// "qualified_qty": null, +// "unqualified_qty": 0, +// "qualified_qty": 18000, // "material_code": null, // "region_code": "HL" // }, @@ -254,8 +254,8 @@ export const processProduction = () => post('/api/cockpit/processProduction', { // "plan_qty": 49000, // "real_qty": 32000, // "device_code": "HLJ04", -// "unqualified_qty": null, -// "qualified_qty": null, +// "unqualified_qty": 0, +// "qualified_qty": 18000, // "material_code": null, // "region_code": "HL" // }, @@ -264,8 +264,8 @@ export const processProduction = () => post('/api/cockpit/processProduction', { // "plan_qty": 5000, // "real_qty": 3000, // "device_code": "HLJ05", -// "unqualified_qty": null, -// "qualified_qty": null, +// "unqualified_qty": 0, +// "qualified_qty": 0, // "material_code": null, // "region_code": "HL" // }, @@ -542,7 +542,7 @@ export const processProduction = () => post('/api/cockpit/processProduction', { // "region_code": "HL" // } // ], -// "hl_productivity": 0, +// "hl_productivity": 63, // "hl_plan_day": "228.00", // "hl_real_day": "145.00" // }, @@ -627,7 +627,7 @@ export const processProduction = () => post('/api/cockpit/processProduction', { // "device_code": null, // "unqualified_qty": 0, // "qualified_qty": 100000, -// "material_code": "GBMCZ3016M322210GM001ZJ22-8", +// "material_code": "GBMCZ3016M3", // "region_code": null // }, // { @@ -637,7 +637,7 @@ export const processProduction = () => post('/api/cockpit/processProduction', { // "device_code": null, // "unqualified_qty": 0, // "qualified_qty": 1000000, -// "material_code": "GBMAC3012C123117GM004BB22-30", +// "material_code": "GBMAC3012C1", // "region_code": null // }, // { @@ -647,7 +647,7 @@ export const processProduction = () => post('/api/cockpit/processProduction', { // "device_code": null, // "unqualified_qty": 300001, // "qualified_qty": 799999, -// "material_code": "GBMCZ3004M123116GM002ZJ20-8", +// "material_code": "GBMCZ3004M1", // "region_code": null // }, // { @@ -657,7 +657,7 @@ export const processProduction = () => post('/api/cockpit/processProduction', { // "device_code": null, // "unqualified_qty": 1001, // "qualified_qty": 10000, -// "material_code": "ZLMCZ1001C122222GM001BD20-8", +// "material_code": "ZLMCZ1001C1", // "region_code": null // }, // { @@ -667,7 +667,7 @@ export const processProduction = () => post('/api/cockpit/processProduction', { // "device_code": null, // "unqualified_qty": 0, // "qualified_qty": 555, -// "material_code": "GBMCZ3004M123093GM002ZJ20-30", +// "material_code": "GBMCZ3004M1", // "region_code": null // } // ], @@ -680,7 +680,7 @@ export const processProduction = () => post('/api/cockpit/processProduction', { // "qualified_qty": 100000, // "unqualified_qty": 0, // "device_code": null, -// "material_code": "GBMCZ3016M322210GM001ZJ22-8", +// "material_code": "GBMCZ3016M3", // "device_name": null, // "region_code": null // }, @@ -690,7 +690,7 @@ export const processProduction = () => post('/api/cockpit/processProduction', { // "qualified_qty": 1000000, // "unqualified_qty": 0, // "device_code": null, -// "material_code": "GBMAC3012C123117GM004BB22-30", +// "material_code": "GBMAC3012C1", // "device_name": null, // "region_code": null // }, @@ -700,7 +700,7 @@ export const processProduction = () => post('/api/cockpit/processProduction', { // "qualified_qty": 799999, // "unqualified_qty": 300001, // "device_code": null, -// "material_code": "GBMCZ3004M123116GM002ZJ20-8", +// "material_code": "GBMCZ3004M1", // "device_name": null, // "region_code": null // }, @@ -710,7 +710,7 @@ export const processProduction = () => post('/api/cockpit/processProduction', { // "qualified_qty": 10000, // "unqualified_qty": 1001, // "device_code": null, -// "material_code": "ZLMCZ1001C122222GM001BD20-8", +// "material_code": "ZLMCZ1001C1", // "device_name": null, // "region_code": null // }, @@ -720,12 +720,12 @@ export const processProduction = () => post('/api/cockpit/processProduction', { // "qualified_qty": 555, // "unqualified_qty": 0, // "device_code": null, -// "material_code": "GBMCZ3004M123093GM002ZJ20-30", +// "material_code": "GBMCZ3004M1", // "device_name": null, // "region_code": null // } // ], -// "bz_productivity": 0 +// "bz_productivity": 99 // } // } // } diff --git a/src/pages/modules/processproduction/two.vue b/src/pages/modules/processproduction/two.vue index ddac167..9f10a14 100644 --- a/src/pages/modules/processproduction/two.vue +++ b/src/pages/modules/processproduction/two.vue @@ -46,15 +46,15 @@

当日库存数量:

-

100万块

+

{{num3}}万块

当日入库数量:

-

70万块

+

{{num4}}万块

当日出库数量:

-

80万块

+

{{num5}}万块

@@ -112,6 +112,10 @@ export default { num2: 0, num3: 0, num4: 0, + num5: 0, + val3: 0, + val4: 0, + val5: 0, finishRate1: 0, echartData03: [{data1: '5', data2: '15', data3: '9', data4: '5', device: '成品1'}, {data1: '10', data2: '15', data3: '9', data4: '5', device: '成品2'}, {data1: '10', data2: '15', data3: '9', data4: '5', device: '成品3'}, {data1: '10', data2: '15', data3: '9', data4: '5', device: '成品4'}], echartData04: [{data1: '15', data2: '15', data3: '9', data4: '5', device: '成品1'}, {data1: '10', data2: '15', data3: '9', data4: '5', device: '成品2'}, {data1: '10', data2: '15', data3: '9', data4: '5', device: '成品3'}, {data1: '10', data2: '15', data3: '9', data4: '5', device: '成品4'}], @@ -140,8 +144,12 @@ export default { this.resData = res.result this.num1 = res.result.BZ.bz_plan_day this.num2 = res.result.BZ.bz_real_day - this.num3 = res.result.KC.kc_plan_day - this.num4 = res.result.KC.kc_real_day + this.num3 = res.result.KC.inventory_qty + this.num4 = res.result.KC.in_qty + this.num5 = res.result.KC.out_qty + this.val3 = res.result.KC.inv_productivity + this.val4 = res.result.KC.in_productivity + this.val5 = res.result.KC.out_productivity this.finishRate1 = res.result.BZ.bz_productivity this.finishRate2 = res.result.KC.kc_productivity this.echartData03 = res.result.BZ.BZDayList @@ -321,7 +329,7 @@ export default { }, data: [ { - value: 70, + value: this.val4, name: '入库数', itemStyle: { normal: { @@ -339,7 +347,7 @@ export default { } }, { - value: 30, + value: (100 - this.val4), name: '', tooltip: { show: false @@ -359,7 +367,7 @@ export default { startAngle: 90, data: [ { - value: 80, + value: this.val5, name: '出库数', itemStyle: { normal: { @@ -377,7 +385,7 @@ export default { } }, { - value: 20, + value: (100 - this.val5), name: '', tooltip: { show: false @@ -397,7 +405,7 @@ export default { startAngle: 90, data: [ { - value: 100, + value: this.val3, name: '库存数', itemStyle: { normal: { @@ -415,7 +423,7 @@ export default { } }, { - value: 0, + value: (100 - this.val3), name: '', tooltip: { show: false @@ -445,7 +453,7 @@ export default { this.echartData03.map(e => { data1.push(e.qualified_qty) data2.push(e.unqualified_qty) - device.push(e.device_name) + device.push(e.material_code) }) let option = { grid: { @@ -735,7 +743,7 @@ export default { this.echartData05.map(e => { data1.push(e.qualified_qty) data2.push(e.unqualified_qty) - device.push(e.device_name) + device.push(e.material_code) }) let option = { grid: {