계산기
This commit is contained in:
parent
3f9bc960b3
commit
0ee7f6c590
@ -24,6 +24,7 @@ import { useSwal } from '@/hooks/useSwal'
|
|||||||
import { QcastContext } from '@/app/QcastProvider'
|
import { QcastContext } from '@/app/QcastProvider'
|
||||||
import { useCanvasMenu } from '@/hooks/common/useCanvasMenu'
|
import { useCanvasMenu } from '@/hooks/common/useCanvasMenu'
|
||||||
import {normalizeDigits, normalizeDecimal} from '@/util/input-utils'
|
import {normalizeDigits, normalizeDecimal} from '@/util/input-utils'
|
||||||
|
import { CalculatorInput } from '@/components/common/input/CalcInput'
|
||||||
export default function Estimate({}) {
|
export default function Estimate({}) {
|
||||||
const [uniqueData, setUniqueData] = useState([])
|
const [uniqueData, setUniqueData] = useState([])
|
||||||
const [handlePricingFlag, setHandlePricingFlag] = useState(false)
|
const [handlePricingFlag, setHandlePricingFlag] = useState(false)
|
||||||
@ -2106,25 +2107,60 @@ export default function Estimate({}) {
|
|||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<div className="input-wrap" style={{ width: '100%' }}>
|
<div className="input-wrap" style={{ width: '100%' }}>
|
||||||
<input
|
{/*<input*/}
|
||||||
type="text"
|
{/* type="text"*/}
|
||||||
className="input-light al-r"
|
{/* className="input-light al-r"*/}
|
||||||
|
{/* value={convertNumberToPriceDecimal(item?.amount?.replaceAll(',', ''))}*/}
|
||||||
|
{/* disabled={item.itemId === '' || !!item?.paDispOrder}*/}
|
||||||
|
{/* onChange={(e) => {*/}
|
||||||
|
{/* onChangeAmount(e.target.value, item.dispOrder, index)*/}
|
||||||
|
{/* }}*/}
|
||||||
|
{/* maxLength={6}*/}
|
||||||
|
{/*/>*/}
|
||||||
|
<CalculatorInput
|
||||||
|
className={"input-light al-r"}
|
||||||
value={convertNumberToPriceDecimal(item?.amount?.replaceAll(',', ''))}
|
value={convertNumberToPriceDecimal(item?.amount?.replaceAll(',', ''))}
|
||||||
disabled={item.itemId === '' || !!item?.paDispOrder}
|
disabled={item.itemId === '' || !!item?.paDispOrder}
|
||||||
onChange={(e) => {
|
onChange={(value) =>{
|
||||||
onChangeAmount(e.target.value, item.dispOrder, index)
|
onChangeAmount(value, item.dispOrder, index)
|
||||||
}}
|
}}
|
||||||
maxLength={6}
|
options={{
|
||||||
/>
|
allowNegative: false,
|
||||||
|
allowDecimal: false
|
||||||
|
}}
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
<td>{item.unit}</td>
|
<td>{item.unit}</td>
|
||||||
<td>
|
<td>
|
||||||
<div className="form-flex-wrap">
|
<div className="form-flex-wrap">
|
||||||
<div className="input-wrap mr5">
|
<div className="input-wrap mr5">
|
||||||
<input
|
{/*<input*/}
|
||||||
type="text"
|
{/* type="text"*/}
|
||||||
className="input-light al-r"
|
{/* className="input-light al-r"*/}
|
||||||
|
{/* value={*/}
|
||||||
|
{/* item.openFlg === '1'*/}
|
||||||
|
{/* ? 'OPEN'*/}
|
||||||
|
{/* : convertNumberToPriceDecimal(item?.showSalePrice === '0' ? null : item?.salePrice?.replaceAll(',', ''))*/}
|
||||||
|
{/* }*/}
|
||||||
|
{/* disabled={*/}
|
||||||
|
{/* item.openFlg === '1'*/}
|
||||||
|
{/* ? true*/}
|
||||||
|
{/* : estimateContextState?.estimateType === 'YJSS'*/}
|
||||||
|
{/* ? item?.paDispOrder*/}
|
||||||
|
{/* ? true*/}
|
||||||
|
{/* : item.pkgMaterialFlg !== '1'*/}
|
||||||
|
{/* : item.itemId === '' || !!item?.paDispOrder*/}
|
||||||
|
{/* ? true*/}
|
||||||
|
{/* : item.openFlg === '1'*/}
|
||||||
|
{/* }*/}
|
||||||
|
{/* onChange={(e) => {*/}
|
||||||
|
{/* onChangeSalePrice(e.target.value, item.dispOrder, index)*/}
|
||||||
|
{/* }}*/}
|
||||||
|
{/* maxLength={12}*/}
|
||||||
|
{/*/>*/}
|
||||||
|
<CalculatorInput
|
||||||
|
className={"input-light al-r"}
|
||||||
value={
|
value={
|
||||||
item.openFlg === '1'
|
item.openFlg === '1'
|
||||||
? 'OPEN'
|
? 'OPEN'
|
||||||
@ -2140,13 +2176,15 @@ export default function Estimate({}) {
|
|||||||
: item.itemId === '' || !!item?.paDispOrder
|
: item.itemId === '' || !!item?.paDispOrder
|
||||||
? true
|
? true
|
||||||
: item.openFlg === '1'
|
: item.openFlg === '1'
|
||||||
? true
|
|
||||||
: false
|
|
||||||
}
|
}
|
||||||
onChange={(e) => {
|
onChange={(value) =>{
|
||||||
onChangeSalePrice(e.target.value, item.dispOrder, index)
|
onChangeSalePrice(value, item.dispOrder, index)
|
||||||
}}
|
}}
|
||||||
maxLength={12}
|
maxLength={12}
|
||||||
|
options={{
|
||||||
|
allowNegative: false,
|
||||||
|
allowDecimal: false
|
||||||
|
}}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
{item.openFlg === '1' && (
|
{item.openFlg === '1' && (
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user