ZhaoJun 1 жил өмнө
parent
commit
d3459af27d

+ 10 - 2
src/pages/DeviceManager/detail.js

@@ -205,7 +205,10 @@ const SparePartDetail = () => {
       render: (record) => {
       render: (record) => {
         return (
         return (
           <div>
           <div>
-            {record.in_amount - record.out_amount - record.scrap_amount}
+            {record.in_amount -
+              record.out_amount -
+              record.scrap_amount +
+              record.update_amount}
             {record.unit}
             {record.unit}
           </div>
           </div>
         );
         );
@@ -287,7 +290,10 @@ const SparePartDetail = () => {
       render: (record) => {
       render: (record) => {
         return (
         return (
           <div>
           <div>
-            {record.in_amount - record.out_amount - record.scrap_amount}
+            {record.in_amount -
+              record.out_amount -
+              record.scrap_amount +
+              record.update_amount}
             {record.unit}
             {record.unit}
           </div>
           </div>
         );
         );
@@ -463,6 +469,7 @@ const SparePartDetail = () => {
       {Number(type) !== PageType.warning && Number(type) !== PageType.base ? (
       {Number(type) !== PageType.warning && Number(type) !== PageType.base ? (
         <>
         <>
           <Table
           <Table
+            sticky={{ offsetHeader: 0 }}
             loading={loading}
             loading={loading}
             style={{ marginTop: '10px' }}
             style={{ marginTop: '10px' }}
             dataSource={dataSource}
             dataSource={dataSource}
@@ -479,6 +486,7 @@ const SparePartDetail = () => {
       ) : (
       ) : (
         <>
         <>
           <Table
           <Table
+            sticky={{ offsetHeader: 0 }}
             loading={loadingExist}
             loading={loadingExist}
             style={{ marginTop: '10px' }}
             style={{ marginTop: '10px' }}
             dataSource={dataSource}
             dataSource={dataSource}