Merge pull request '991-견적서 pricing 버튼 클릭, confirm 노출' (#26) from feature/ysCha into dev

Reviewed-on: #26
This commit is contained in:
ysCha 2025-04-22 13:57:12 +09:00
commit e0d0eaf017
3 changed files with 17 additions and 2 deletions

View File

@ -498,6 +498,18 @@ export default function Estimate({}) {
})
}
//Pricing confirm
const handlePricingBtn = (showPriceCd) => {
swalFire({
text: getMessage('estimate.detail.showPrice.pricingBtn.confirm'),
type: 'confirm',
icon: 'warning',
confirmFn: () => {
handlePricing(showPriceCd)
},
})
}
//Pricing
const handlePricing = async (showPriceCd) => {
const param = {
@ -1808,9 +1820,10 @@ export default function Estimate({}) {
<button
type="button"
className="btn-origin grey ml5"
onClick={() => {
onClick={(event) => {
setHandlePricingFlag(true)
handlePricing(showPriceCd)
handlePricingBtn(showPriceCd)
}}
>
{getMessage('estimate.detail.showPrice.pricingBtn')}

View File

@ -941,6 +941,7 @@
"estimate.detail.header.unitPrice": "定価",
"estimate.detail.showPrice.pricingBtn": "Pricing",
"estimate.detail.showPrice.pricingBtn.noItemId": "Pricingが欠落しているアイテムがあります。 Pricingを進めてください。",
"estimate.detail.showPrice.pricingBtn.confirm": "価格登録初期化されますがよろしいですか?",
"estimate.detail.showPrice.description1": "製品価格OPEN",
"estimate.detail.showPrice.description2": "追加の変更品目",
"estimate.detail.showPrice.description3": "添付必須",

View File

@ -942,6 +942,7 @@
"estimate.detail.header.unitPrice": "정가",
"estimate.detail.showPrice.pricingBtn": "Pricing",
"estimate.detail.showPrice.pricingBtn.noItemId": "Pricing이 누락된 아이템이 있습니다. 제품 선택 후 Pricing을 진행해주세요.",
"estimate.detail.showPrice.pricingBtn.confirm": "가격등록을 초기화 하시겠습니까?",
"estimate.detail.showPrice.description1": "제품 가격 OPEN",
"estimate.detail.showPrice.description2": "추가 변경 자재",
"estimate.detail.showPrice.description3": "첨부필수",