견적서 swalFire icon 변경
This commit is contained in:
parent
c253cfe07e
commit
62b86764d5
@ -97,6 +97,7 @@ export default function StuffQGrid(props) {
|
||||
overlayNoRowsTemplate={`<span className="ag-overlay-loading-center">${getMessage('stuff.grid.noData')}</span>`}
|
||||
getRowClass={getRowClass}
|
||||
autoSizeAllColumns={true}
|
||||
enableCellTextSelection={true}
|
||||
/>
|
||||
</div>
|
||||
)
|
||||
|
||||
@ -168,19 +168,19 @@ export const useEstimateController = (planNo) => {
|
||||
if (estimateData?.charger === null || estimateData?.charger?.trim().length === 0) {
|
||||
flag = false
|
||||
setIsGlobalLoading(false)
|
||||
return swalFire({ text: getMessage('estimate.detail.save.requiredCharger'), type: 'alert' })
|
||||
return swalFire({ text: getMessage('estimate.detail.save.requiredCharger'), type: 'alert', icon: 'warning' })
|
||||
}
|
||||
|
||||
if (estimateData?.objectName === null || estimateData?.objectName?.trim().length === 0) {
|
||||
flag = false
|
||||
setIsGlobalLoading(false)
|
||||
return swalFire({ text: getMessage('estimate.detail.save.requiredObjectName'), type: 'alert' })
|
||||
return swalFire({ text: getMessage('estimate.detail.save.requiredObjectName'), type: 'alert', icon: 'warning' })
|
||||
}
|
||||
|
||||
if (isNaN(Date.parse(estimateData.estimateDate))) {
|
||||
flag = false
|
||||
setIsGlobalLoading(false)
|
||||
return swalFire({ text: getMessage('estimate.detail.save.requiredEstimateDate'), type: 'alert' })
|
||||
return swalFire({ text: getMessage('estimate.detail.save.requiredEstimateDate'), type: 'alert', icon: 'warning' })
|
||||
}
|
||||
|
||||
if (estimateData.estimateType === 'YJSS') {
|
||||
@ -188,7 +188,7 @@ export const useEstimateController = (planNo) => {
|
||||
if (pkgAsp === '0') {
|
||||
flag = false
|
||||
setIsGlobalLoading(false)
|
||||
return swalFire({ text: getMessage('estimate.detail.save.requiredPkgAsp'), type: 'alert' })
|
||||
return swalFire({ text: getMessage('estimate.detail.save.requiredPkgAsp'), type: 'alert', icon: 'warning' })
|
||||
}
|
||||
}
|
||||
|
||||
@ -214,7 +214,7 @@ export const useEstimateController = (planNo) => {
|
||||
if (estimateData?.northArrangement === '1') {
|
||||
fileFlg = false
|
||||
setIsGlobalLoading(false)
|
||||
return swalFire({ text: getMessage('estimate.detail.save.requiredNorthArrangementFileUpload'), type: 'alert' })
|
||||
return swalFire({ text: getMessage('estimate.detail.save.requiredNorthArrangementFileUpload'), type: 'alert', icon: 'warning' })
|
||||
}
|
||||
}
|
||||
|
||||
@ -226,7 +226,7 @@ export const useEstimateController = (planNo) => {
|
||||
if (estimateData.fileFlg === '0') {
|
||||
fileFlg = false
|
||||
setIsGlobalLoading(false)
|
||||
return swalFire({ text: getMessage('estimate.detail.save.requiredFileUpload'), type: 'alert' })
|
||||
return swalFire({ text: getMessage('estimate.detail.save.requiredFileUpload'), type: 'alert', icon: 'warning' })
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -244,7 +244,7 @@ export const useEstimateController = (planNo) => {
|
||||
if (item.itemId === '') {
|
||||
itemFlg = false
|
||||
setIsGlobalLoading(false)
|
||||
return swalFire({ text: getMessage('estimate.detail.save.requiredItemId'), type: 'alert' })
|
||||
return swalFire({ text: getMessage('estimate.detail.save.requiredItemId'), type: 'alert', icon: 'warning' })
|
||||
}
|
||||
}
|
||||
|
||||
@ -260,7 +260,7 @@ export const useEstimateController = (planNo) => {
|
||||
if (item.amount < 1) {
|
||||
itemFlg = false
|
||||
setIsGlobalLoading(false)
|
||||
return swalFire({ text: getMessage('estimate.detail.save.requiredAmount'), type: 'alert' })
|
||||
return swalFire({ text: getMessage('estimate.detail.save.requiredAmount'), type: 'alert', icon: 'warning' })
|
||||
}
|
||||
|
||||
if (estimateData.estimateType !== 'YJSS') {
|
||||
@ -272,7 +272,7 @@ export const useEstimateController = (planNo) => {
|
||||
if (item.salePrice < 1) {
|
||||
itemFlg = false
|
||||
setIsGlobalLoading(false)
|
||||
return swalFire({ text: getMessage('estimate.detail.save.requiredSalePrice'), type: 'alert' })
|
||||
return swalFire({ text: getMessage('estimate.detail.save.requiredSalePrice'), type: 'alert', icon: 'warning' })
|
||||
}
|
||||
}
|
||||
|
||||
@ -283,7 +283,7 @@ export const useEstimateController = (planNo) => {
|
||||
if (isNaN(item.salePrice)) {
|
||||
itemFlg = false
|
||||
setIsGlobalLoading(false)
|
||||
return swalFire({ text: getMessage('estimate.detail.save.requiredSalePrice'), type: 'alert' })
|
||||
return swalFire({ text: getMessage('estimate.detail.save.requiredSalePrice'), type: 'alert', icon: 'warning' })
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -301,7 +301,7 @@ export const useEstimateController = (planNo) => {
|
||||
})
|
||||
if (delCnt === estimateData.itemList.length) {
|
||||
setIsGlobalLoading(false)
|
||||
return swalFire({ text: getMessage('estimate.detail.save.requiredItem'), type: 'alert' })
|
||||
return swalFire({ text: getMessage('estimate.detail.save.requiredItem'), type: 'alert', icon: 'warning' })
|
||||
}
|
||||
}
|
||||
|
||||
@ -387,6 +387,7 @@ export const useEstimateController = (planNo) => {
|
||||
estimateData.pkgAsp = estimateData.pkgAsp.replaceAll(',', '')
|
||||
}
|
||||
|
||||
return
|
||||
//2. 상세데이터 저장
|
||||
try {
|
||||
setIsGlobalLoading(true)
|
||||
|
||||
@ -905,7 +905,7 @@
|
||||
"estimate.detail.header.showPrice": "価格表示",
|
||||
"estimate.detail.header.unitPrice": "定価",
|
||||
"estimate.detail.showPrice.pricingBtn": "Pricing",
|
||||
"estimate.detail.showPrice.pricingBtn.noItemId": "Pricingが欠落しているアイテムがあります。 Pricingを進めてください。",
|
||||
"estimate.detail.showPrice.pricingBtn.noItemId": "Pricingが欠落しているアイテムがあります. 製品を選択してPricingを進めてください.",
|
||||
"estimate.detail.showPrice.description1": "製品価格OPEN",
|
||||
"estimate.detail.showPrice.description2": "追加の変更品目",
|
||||
"estimate.detail.showPrice.description3": "添付必須",
|
||||
|
||||
@ -906,7 +906,7 @@
|
||||
"estimate.detail.header.showPrice": "가격표시",
|
||||
"estimate.detail.header.unitPrice": "정가",
|
||||
"estimate.detail.showPrice.pricingBtn": "Pricing",
|
||||
"estimate.detail.showPrice.pricingBtn.noItemId": "Pricing이 누락된 아이템이 있습니다. Pricing을 진행해주세요.",
|
||||
"estimate.detail.showPrice.pricingBtn.noItemId": "Pricing이 누락된 아이템이 있습니다. 제품 선택 후 Pricing을 진행해주세요.",
|
||||
"estimate.detail.showPrice.description1": "제품 가격 OPEN",
|
||||
"estimate.detail.showPrice.description2": "추가 변경 자재",
|
||||
"estimate.detail.showPrice.description3": "첨부필수",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user