|
|
@@ -2,7 +2,7 @@
|
|
2
|
2
|
* @Author: dayan_hjm 产供销价值链
|
|
3
|
3
|
* @Date: 2023-11-10 10:19:34
|
|
4
|
4
|
* @Last Modified by: dayan_hjm
|
|
5
|
|
- * @Last Modified time: 2023-11-17 15:52:57
|
|
|
5
|
+ * @Last Modified time: 2023-11-21 17:46:28
|
|
6
|
6
|
*/
|
|
7
|
7
|
|
|
8
|
8
|
import React, { useState, useEffect, Component } from "react";
|
|
|
@@ -194,7 +194,7 @@ class Gvc extends Component {
|
|
194
|
194
|
async getUrl4() {
|
|
195
|
195
|
await smallShopService().then(({ data = [], resultCode }) => {
|
|
196
|
196
|
if (+resultCode === 0) {
|
|
197
|
|
- const style__ = [{}, { left: "88%", top: "28%" }, { left: "70%", top: "42%" }, { left: "52%", top: "56%" }, { left: "11%", top: "88%" }, { left: "30%", top: "73%" }]
|
|
|
197
|
+ const style__ = [{}, { left: "88%", top: "28%" }, { left: "70%", top: "46%" }, { left: "52%", top: "59%" }, { left: "11%", top: "92%" }, { left: "29%", top: "76%" }]
|
|
198
|
198
|
data = data.map((x, i) => {
|
|
199
|
199
|
return {
|
|
200
|
200
|
...x,
|
|
|
@@ -208,8 +208,7 @@ class Gvc extends Component {
|
|
208
|
208
|
const d_1 = data.filter(x => { return x.factoryCode == 4 })[0];
|
|
209
|
209
|
const d_2 = data.filter(x => { return x.factoryCode == 5 })[0];
|
|
210
|
210
|
const d_3 = data.filter(x => { return x.factoryCode == 3 })[0];
|
|
211
|
|
- // const d_4 = data.filter(x=>{return x.factoryCode == 2})[0];
|
|
212
|
|
- const d_4 = data.filter(x => { return x.factoryCode == null })[0];
|
|
|
211
|
+ const d_4 = data.filter(x=>{return x.factoryCode == 2})[0];
|
|
213
|
212
|
const d_5 = data.filter(x => { return x.factoryCode == 1 })[0];
|
|
214
|
213
|
let old_imgMsgData = this.store.state.imgMsgData;
|
|
215
|
214
|
old_imgMsgData[3] = d_1;
|
|
|
@@ -226,7 +225,7 @@ class Gvc extends Component {
|
|
226
|
225
|
await smallDayService().then(({ data = [], resultCode }) => {
|
|
227
|
226
|
if (+resultCode === 0) {
|
|
228
|
227
|
function getItems(num) {
|
|
229
|
|
- const datas = data.filter(x => { return x.factoryNameCode == num });
|
|
|
228
|
+ const datas = data.filter(x => { return x.factoryCode == num });
|
|
230
|
229
|
const par = {
|
|
231
|
230
|
day: datas?.filter(x => { return x.dateType == 1 })?.[0]?.indexValue || 0,
|
|
232
|
231
|
mood: datas?.filter(x => { return x.dateType == 2 })?.[0]?.indexValue || 0,
|
|
|
@@ -257,32 +256,38 @@ class Gvc extends Component {
|
|
257
|
256
|
await smallMaterialService().then(({ data = [], resultCode }) => {
|
|
258
|
257
|
if (+resultCode === 0) {
|
|
259
|
258
|
function getItems(num) {
|
|
260
|
|
- const datas = data.filter(x => { return x.factoryNameCode == num });
|
|
261
|
|
- const par = {
|
|
262
|
|
- rawMaterial: [
|
|
263
|
|
- {
|
|
264
|
|
- prodCatgory: "原料-鲤辉石",
|
|
265
|
|
- indexValue: datas?.filter(x => { return x.prodCatgory == 1 })?.[0]?.indexValue || 0,
|
|
266
|
|
- },
|
|
267
|
|
- {
|
|
268
|
|
- prodCatgory: "产品-碳酸锂",
|
|
269
|
|
- indexValue: datas?.filter(x => { return x.prodCatgory == 2 })?.[0]?.indexValue || 0,
|
|
270
|
|
- },
|
|
271
|
|
- {
|
|
272
|
|
- prodCatgory: "产品-氯化锂",
|
|
273
|
|
- indexValue: datas?.filter(x => { return x.prodCatgory == 3 })?.[0]?.indexValue || 0,
|
|
274
|
|
- },
|
|
275
|
|
- {
|
|
276
|
|
- prodCatgory: "产品-氢氧化锂",
|
|
277
|
|
- indexValue: datas?.filter(x => { return x.prodCatgory == 4 })?.[0]?.indexValue || 0,
|
|
278
|
|
- },
|
|
279
|
|
- {
|
|
280
|
|
- prodCatgory: "产品-金属锂",
|
|
281
|
|
- indexValue: datas?.filter(x => { return x.prodCatgory == 5 })?.[0]?.indexValue || 0,
|
|
282
|
|
- }
|
|
283
|
|
- ]
|
|
284
|
|
- }
|
|
285
|
|
- return par
|
|
|
259
|
+ const datas = data.filter(x => { return x.factoryCode == num });
|
|
|
260
|
+ const rawMaterial = datas.map((item,index)=>{
|
|
|
261
|
+ return {
|
|
|
262
|
+ prodCatgory:item.prodCatgory,
|
|
|
263
|
+ indexValue:item.indexValue,
|
|
|
264
|
+ }
|
|
|
265
|
+ })
|
|
|
266
|
+ // const par = {
|
|
|
267
|
+ // rawMaterial: [
|
|
|
268
|
+ // {
|
|
|
269
|
+ // prodCatgory: "原料-鲤辉石",
|
|
|
270
|
+ // indexValue: datas?.filter(x => { return x.prodCatgory == 1 })?.[0]?.indexValue || 0,
|
|
|
271
|
+ // },
|
|
|
272
|
+ // {
|
|
|
273
|
+ // prodCatgory: "产品-碳酸锂",
|
|
|
274
|
+ // indexValue: datas?.filter(x => { return x.prodCatgory == 2 })?.[0]?.indexValue || 0,
|
|
|
275
|
+ // },
|
|
|
276
|
+ // {
|
|
|
277
|
+ // prodCatgory: "原料-氯化锂",
|
|
|
278
|
+ // indexValue: datas?.filter(x => { return x.prodCatgory == 3 })?.[0]?.indexValue || 0,
|
|
|
279
|
+ // },
|
|
|
280
|
+ // {
|
|
|
281
|
+ // prodCatgory: "产品-氢氧化锂",
|
|
|
282
|
+ // indexValue: datas?.filter(x => { return x.prodCatgory == 4 })?.[0]?.indexValue || 0,
|
|
|
283
|
+ // },
|
|
|
284
|
+ // {
|
|
|
285
|
+ // prodCatgory: "产品-金属锂",
|
|
|
286
|
+ // indexValue: datas?.filter(x => { return x.prodCatgory == 5 })?.[0]?.indexValue || 0,
|
|
|
287
|
+ // }
|
|
|
288
|
+ // ]
|
|
|
289
|
+ // }
|
|
|
290
|
+ return {rawMaterial:rawMaterial}
|
|
286
|
291
|
}
|
|
287
|
292
|
|
|
288
|
293
|
const d_1 = getItems(5);
|
|
|
@@ -414,15 +419,8 @@ class Gvc extends Component {
|
|
414
|
419
|
{
|
|
415
|
420
|
item.cumulativeProduction !== null && <div className="hoverR">
|
|
416
|
421
|
<div className="hoverDiv chanL">
|
|
417
|
|
- <div style={{ width: "38%" }}>
|
|
418
|
|
- <p className="title">
|
|
419
|
|
- 产量/吨
|
|
420
|
|
- </p>
|
|
421
|
|
- <span>日:{item.day}</span>
|
|
422
|
|
- <span>月:{item.mood}</span>
|
|
423
|
|
- <span>年:{item.year}</span>
|
|
424
|
|
- </div>
|
|
425
|
|
- <div style={{ width: "62%" }}>
|
|
|
422
|
+ {/* <div style={{ width: "62%","textAlign":'right' }}> */}
|
|
|
423
|
+ <div style={{ width: "70%"}}>
|
|
426
|
424
|
<p className="title">
|
|
427
|
425
|
库存/吨
|
|
428
|
426
|
</p>
|
|
|
@@ -432,6 +430,14 @@ class Gvc extends Component {
|
|
432
|
430
|
})
|
|
433
|
431
|
}
|
|
434
|
432
|
</div>
|
|
|
433
|
+ <div style={{ width: "38%" }}>
|
|
|
434
|
+ <p className="title">
|
|
|
435
|
+ 产量/吨
|
|
|
436
|
+ </p>
|
|
|
437
|
+ <span>日:{item.day}</span>
|
|
|
438
|
+ <span>月:{item.mood}</span>
|
|
|
439
|
+ <span>年:{item.year}</span>
|
|
|
440
|
+ </div>
|
|
435
|
441
|
</div>
|
|
436
|
442
|
</div>
|
|
437
|
443
|
}
|