|
|
|
@ -2,7 +2,7 @@ import { Icon } from "@blueprintjs/core";
|
|
|
|
|
import { useObserver } from "mobx-react";
|
|
|
|
|
import React, { forwardRef, useEffect, useImperativeHandle, useRef, useState } from "react";
|
|
|
|
|
import { Board } from "../../../DatabaseServices/Entity/Board";
|
|
|
|
|
import { ICompHardwareOption, IToplineOption } from "../../../UI/Components/RightPanel/RightPanelInterface";
|
|
|
|
|
import { ICompHardwareOption, IHardwareOption, IToplineOption } from "../../../UI/Components/RightPanel/RightPanelInterface";
|
|
|
|
|
import { shareViewApp } from "../Service";
|
|
|
|
|
import { BoxStore } from "../Store";
|
|
|
|
|
import { GetBoxItemInfo, MaterialDetailScrollTo, SPGetSpiteSize } from "../Util";
|
|
|
|
@ -19,7 +19,7 @@ const MaterialBottomSheet: React.FC<IProps> = forwardRef((props, ref) =>
|
|
|
|
|
{
|
|
|
|
|
const [visible, setVisible] = useState(false);
|
|
|
|
|
const [list, setList] = useState<{
|
|
|
|
|
boardList: Board[], hardwareCompositeList: ICompHardwareOption[], hardwareToplineList: IToplineOption[],
|
|
|
|
|
boardList: Board[], hardwareCompositeList: IHardwareOption[], hardwareToplineList: IToplineOption[],
|
|
|
|
|
cabinetName: string;
|
|
|
|
|
}[]>([]);
|
|
|
|
|
const startDragRef = useRef<boolean>(false);
|
|
|
|
@ -244,6 +244,7 @@ const MaterialBottomSheet: React.FC<IProps> = forwardRef((props, ref) =>
|
|
|
|
|
<tr>
|
|
|
|
|
<th style={{ width: 44 }}>编号</th>
|
|
|
|
|
<th>配件</th>
|
|
|
|
|
<th>规格</th>
|
|
|
|
|
<th className="st-td-number" style={{ width: 60 }}>数量</th>
|
|
|
|
|
<th style={{ width: 60 }}>单位</th>
|
|
|
|
|
</tr>
|
|
|
|
@ -257,8 +258,9 @@ const MaterialBottomSheet: React.FC<IProps> = forwardRef((props, ref) =>
|
|
|
|
|
>
|
|
|
|
|
<td>{i + 1}</td>
|
|
|
|
|
<td>{item.name}</td>
|
|
|
|
|
<td className="st-td-number">{item.count}</td>
|
|
|
|
|
<td>{item.spec}</td>
|
|
|
|
|
<td className="st-td-number">{item.count}</td>
|
|
|
|
|
<td>{item.unit}</td>
|
|
|
|
|
</tr>
|
|
|
|
|
);
|
|
|
|
|
})}
|
|
|
|
|