@dayan_hjm 1 yıl önce
ebeveyn
işleme
e47cbbed67

+ 4 - 2
src/pages/tlk/component/leftMenoyView.jsx

@@ -2,7 +2,7 @@
2
  * @Author: dayan_hjm 库存金额
2
  * @Author: dayan_hjm 库存金额
3
  * @Date: 2023-10-23 09:32:12 
3
  * @Date: 2023-10-23 09:32:12 
4
  * @Last Modified by: dayan_hjm
4
  * @Last Modified by: dayan_hjm
5
- * @Last Modified time: 2024-10-23 16:39:46
5
+ * @Last Modified time: 2024-10-23 17:25:46
6
  */
6
  */
7
 
7
 
8
 
8
 
@@ -278,6 +278,7 @@ class LeftMenoyView extends Component {
278
 
278
 
279
   render() {
279
   render() {
280
     const { total } = this.state;
280
     const { total } = this.state;
281
+    const { changNun } = this.props;
281
     return (
282
     return (
282
       <div className={["eacharView cbLeftMenoyView"]}>
283
       <div className={["eacharView cbLeftMenoyView"]}>
283
         <div id="echarts6_box">
284
         <div id="echarts6_box">
@@ -290,7 +291,8 @@ class LeftMenoyView extends Component {
290
           <div id="echarts61"></div>
291
           <div id="echarts61"></div>
291
           <div className="text_total">
292
           <div className="text_total">
292
             <p>
293
             <p>
293
-              <span className="topMsg_number" class="shu1">{total}</span>
294
+              {changNun && <span className="topMsg_number">{getThousandNum(Number(total))}</span>}
295
+              {!changNun && <span className="topMsg_number" class="shu1">{Number(total)}</span>}
294
               <span className="topMsg_number_2">t</span>
296
               <span className="topMsg_number_2">t</span>
295
             </p>
297
             </p>
296
             <span className="topMsg_number_3">总库存</span>
298
             <span className="topMsg_number_3">总库存</span>

+ 5 - 1
src/pages/tlk/component/moodSendView.jsx

@@ -2,7 +2,7 @@
2
  * @Author: dayan_hjm 月度产量/发货量
2
  * @Author: dayan_hjm 月度产量/发货量
3
  * @Date: 2023-10-23 09:32:12 
3
  * @Date: 2023-10-23 09:32:12 
4
  * @Last Modified by: dayan_hjm
4
  * @Last Modified by: dayan_hjm
5
- * @Last Modified time: 2024-10-17 11:05:49
5
+ * @Last Modified time: 2024-10-24 11:03:08
6
  */
6
  */
7
 
7
 
8
 
8
 
@@ -13,6 +13,7 @@ import mod from '../mod';
13
 import {
13
 import {
14
   twoService,
14
   twoService,
15
 } from "../api";
15
 } from "../api";
16
+import { getThousandNum } from "@utils/util";
16
 
17
 
17
 @withRouter
18
 @withRouter
18
 
19
 
@@ -78,6 +79,9 @@ class MoodSendView extends Component {
78
             fontSize:10,
79
             fontSize:10,
79
             color:"#ededed"
80
             color:"#ededed"
80
           },
81
           },
82
+          valueFormatter: (value) => {
83
+            return getThousandNum(Number(value)) 
84
+          },
81
           backgroundColor:"#0000008a"
85
           backgroundColor:"#0000008a"
82
         },
86
         },
83
         xAxis: [
87
         xAxis: [

+ 2 - 2
src/pages/tlk/component/rightBottomView.jsx

@@ -2,7 +2,7 @@
2
  * @Author: dayan_hjm 近30天产量
2
  * @Author: dayan_hjm 近30天产量
3
  * @Date: 2023-10-23 09:32:12 
3
  * @Date: 2023-10-23 09:32:12 
4
  * @Last Modified by: dayan_hjm
4
  * @Last Modified by: dayan_hjm
5
- * @Last Modified time: 2024-10-23 17:03:23
5
+ * @Last Modified time: 2024-10-24 11:11:25
6
  */
6
  */
7
 
7
 
8
 
8
 
@@ -66,7 +66,7 @@ class RightBottomView extends Component {
66
             color: "#ededed"
66
             color: "#ededed"
67
           },
67
           },
68
           valueFormatter: (value) => {
68
           valueFormatter: (value) => {
69
-            return value + '%';
69
+            return Number(value).toFixed(2) + '%';
70
           },
70
           },
71
           backgroundColor: "#0000008a",
71
           backgroundColor: "#0000008a",
72
         },
72
         },

+ 1 - 1
src/pages/tlk/view.jsx

@@ -327,7 +327,7 @@ class Home extends Component {
327
                   <p className="topMsg_title" style={{ position: "relative", zIndex: 999999 }}>产品库存 <span className="topMsg_tips">/ Lithium Inventory</span></p>
327
                   <p className="topMsg_title" style={{ position: "relative", zIndex: 999999 }}>产品库存 <span className="topMsg_tips">/ Lithium Inventory</span></p>
328
                 </Tooltip>
328
                 </Tooltip>
329
                 <div className="topMsg_content">
329
                 <div className="topMsg_content">
330
-                  <LeftMenoyView></LeftMenoyView>
330
+                  <LeftMenoyView changNun={changNun}></LeftMenoyView>
331
                 </div>
331
                 </div>
332
               </div>
332
               </div>
333
             </div>
333
             </div>