Compare commits
No commits in common. "2e86c793c3ea7199eb85126a461dca33a9f100f2" and "d386c42c0800a1dd842a1b8d01df73cee741b6fc" have entirely different histories.
2e86c793c3
...
d386c42c08
@ -504,7 +504,6 @@ export default function Estimate({}) {
|
|||||||
saleStoreId: estimateContextState.sapSaleStoreId,
|
saleStoreId: estimateContextState.sapSaleStoreId,
|
||||||
sapSalesStoreCd: estimateContextState.sapSalesStoreCd,
|
sapSalesStoreCd: estimateContextState.sapSalesStoreCd,
|
||||||
docTpCd: estimateContextState.estimateType,
|
docTpCd: estimateContextState.estimateType,
|
||||||
secSapSalesStoreCd:(estimateContextState.secSapSalesStoreCd?.length > 0 && showPriceCd === 'QSP_PRICE')? estimateContextState.secSapSalesStoreCd :'',
|
|
||||||
priceCd: showPriceCd,
|
priceCd: showPriceCd,
|
||||||
itemIdList: estimateContextState.itemList.filter((item) => item.delFlg === '0' && item.paDispOrder === null),
|
itemIdList: estimateContextState.itemList.filter((item) => item.delFlg === '0' && item.paDispOrder === null),
|
||||||
}
|
}
|
||||||
@ -1217,23 +1216,6 @@ export default function Estimate({}) {
|
|||||||
}
|
}
|
||||||
}, [estimateContextState?.itemList, cableItemList])
|
}, [estimateContextState?.itemList, cableItemList])
|
||||||
|
|
||||||
const [agencyCustList, setAgencyCustList] = useState([])
|
|
||||||
useEffect(() => {
|
|
||||||
// 952 - 2차점 특가 sapSalesStoreCd
|
|
||||||
if(estimateContextState?.sapSalesStoreCd && session?.storeLvl === '1') {
|
|
||||||
const param = {
|
|
||||||
sapSalesStoreCd: estimateContextState.sapSalesStoreCd,
|
|
||||||
}
|
|
||||||
const apiUrl = `api/estimate/agency-cust-list?${queryStringFormatter(param)}`
|
|
||||||
get({ url: apiUrl }).then((res) => {
|
|
||||||
if (isNotEmptyArray(res?.data)) {
|
|
||||||
setAgencyCustList(res?.data);
|
|
||||||
}
|
|
||||||
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
}, [estimateContextState?.sapSalesStoreCd])
|
|
||||||
return (
|
return (
|
||||||
<div className="sub-content estimate">
|
<div className="sub-content estimate">
|
||||||
<div className="sub-content-inner">
|
<div className="sub-content-inner">
|
||||||
@ -1378,72 +1360,41 @@ export default function Estimate({}) {
|
|||||||
{getMessage('estimate.detail.estimateType')} <span className="important">*</span>
|
{getMessage('estimate.detail.estimateType')} <span className="important">*</span>
|
||||||
</th>
|
</th>
|
||||||
<td colSpan={3}>
|
<td colSpan={3}>
|
||||||
<div className="form-flex-wrap">
|
<div className="radio-wrap">
|
||||||
<div className="radio-wrap">
|
{/*pkgRank is null, empty 인 경우 : 사용불가, 이전에 등록된 경우 사용가능, style로 제어*/}
|
||||||
{/*pkgRank is null, empty 인 경우 : 사용불가, 이전에 등록된 경우 사용가능, style로 제어*/}
|
<div className="d-check-radio light mr10" style={{display:
|
||||||
<div className="d-check-radio light mr10" style={{display:
|
(isNotEmptyArray(storePriceList) > 0
|
||||||
(isNotEmptyArray(storePriceList) > 0
|
&& storePriceList[0].pkgRank !== null
|
||||||
&& storePriceList[0].pkgRank !== null
|
&& storePriceList[0].pkgRank !== ''
|
||||||
&& storePriceList[0].pkgRank !== ''
|
|| estimateContextState?.estimateType === 'YJSS') ? "" : "none"}}>
|
||||||
|| estimateContextState?.estimateType === 'YJSS') ? "" : "none"}}>
|
<input
|
||||||
<input
|
type="radio"
|
||||||
type="radio"
|
name="estimateType"
|
||||||
name="estimateType"
|
id="YJSS"
|
||||||
id="YJSS"
|
value={'YJSS'}
|
||||||
value={'YJSS'}
|
checked={estimateContextState?.estimateType === 'YJSS' ? true : false}
|
||||||
checked={estimateContextState?.estimateType === 'YJSS' ? true : false}
|
|
||||||
onChange={(e) => {
|
|
||||||
//주문분류
|
|
||||||
setHandlePricingFlag(true)
|
|
||||||
setEstimateContextState({ estimateType: e.target.value })
|
|
||||||
}}
|
|
||||||
/>
|
|
||||||
<label htmlFor="YJSS">{getMessage('estimate.detail.estimateType.yjss')}</label>
|
|
||||||
</div>
|
|
||||||
<div className="d-check-radio light">
|
|
||||||
<input
|
|
||||||
type="radio"
|
|
||||||
name="estimateType"
|
|
||||||
id="YJOD"
|
|
||||||
value={'YJOD'}
|
|
||||||
checked={estimateContextState?.estimateType === 'YJOD' ? true : false}
|
|
||||||
onChange={(e) => {
|
|
||||||
setHandlePricingFlag(true)
|
|
||||||
setEstimateContextState({ estimateType: e.target.value })
|
|
||||||
}}
|
|
||||||
/>
|
|
||||||
<label htmlFor="YJOD">{getMessage('estimate.detail.estimateType.yjod')}</label>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{ (session?.storeLvl === '1' && agencyCustList.length > 0 )? (
|
|
||||||
<div className="form-flex-select ml10">
|
|
||||||
<label htmlFor="">{getMessage('estimate.detail.agency')}</label>
|
|
||||||
<div className="select-wrap" style={{ width: '400px' }}>
|
|
||||||
<Select
|
|
||||||
id="agencyName"
|
|
||||||
instanceId="agencyName"
|
|
||||||
className="react-select-custom"
|
|
||||||
classNamePrefix="custom"
|
|
||||||
placeholder="Select"
|
|
||||||
options={agencyCustList}
|
|
||||||
onChange={(e) => {
|
onChange={(e) => {
|
||||||
if (isObjectNotEmpty(e)) {
|
//주문분류
|
||||||
setEstimateContextState({ secSapSalesStoreCd: e.sapSalesStoreCd })
|
setHandlePricingFlag(true)
|
||||||
} else {
|
setEstimateContextState({ estimateType: e.target.value })
|
||||||
setEstimateContextState({ secSapSalesStoreCd: '' })
|
|
||||||
}
|
|
||||||
}}
|
}}
|
||||||
getOptionLabel={(x) => x.sapSalesStoreNm}
|
|
||||||
getOptionValue={(x) => x.sapSalesStoreCd}
|
|
||||||
isClearable={true}
|
|
||||||
isSearchable={true}
|
|
||||||
value={agencyCustList.filter(function (option) {
|
|
||||||
return option.sapSalesStoreCd === estimateContextState.secSapSalesStoreCd
|
|
||||||
})}
|
|
||||||
/>
|
/>
|
||||||
|
<label htmlFor="YJSS">{getMessage('estimate.detail.estimateType.yjss')}</label>
|
||||||
</div>
|
</div>
|
||||||
|
<div className="d-check-radio light">
|
||||||
|
<input
|
||||||
|
type="radio"
|
||||||
|
name="estimateType"
|
||||||
|
id="YJOD"
|
||||||
|
value={'YJOD'}
|
||||||
|
checked={estimateContextState?.estimateType === 'YJOD' ? true : false}
|
||||||
|
onChange={(e) => {
|
||||||
|
setHandlePricingFlag(true)
|
||||||
|
setEstimateContextState({ estimateType: e.target.value })
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
<label htmlFor="YJOD">{getMessage('estimate.detail.estimateType.yjod')}</label>
|
||||||
</div>
|
</div>
|
||||||
) : ('')}
|
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|||||||
@ -905,7 +905,6 @@
|
|||||||
"estimate.detail.estimateType": "注文分類",
|
"estimate.detail.estimateType": "注文分類",
|
||||||
"estimate.detail.estimateType.yjss": "住宅PKG",
|
"estimate.detail.estimateType.yjss": "住宅PKG",
|
||||||
"estimate.detail.estimateType.yjod": "積上げ(YJOD)",
|
"estimate.detail.estimateType.yjod": "積上げ(YJOD)",
|
||||||
"estimate.detail.agency": "2次店名",
|
|
||||||
"estimate.detail.roofCns": "屋根材・施工区分",
|
"estimate.detail.roofCns": "屋根材・施工区分",
|
||||||
"estimate.detail.remarks": "備考",
|
"estimate.detail.remarks": "備考",
|
||||||
"estimate.detail.fileFlg": "後日資料提出",
|
"estimate.detail.fileFlg": "後日資料提出",
|
||||||
|
|||||||
@ -906,7 +906,6 @@
|
|||||||
"estimate.detail.estimateType": "주문분류",
|
"estimate.detail.estimateType": "주문분류",
|
||||||
"estimate.detail.estimateType.yjss": "住宅PKG",
|
"estimate.detail.estimateType.yjss": "住宅PKG",
|
||||||
"estimate.detail.estimateType.yjod": "積上げ( YJOD )",
|
"estimate.detail.estimateType.yjod": "積上げ( YJOD )",
|
||||||
"estimate.detail.agency": "2차점명",
|
|
||||||
"estimate.detail.roofCns": "지붕재・사양시공",
|
"estimate.detail.roofCns": "지붕재・사양시공",
|
||||||
"estimate.detail.remarks": "비고",
|
"estimate.detail.remarks": "비고",
|
||||||
"estimate.detail.fileFlg": "후일자료제출",
|
"estimate.detail.fileFlg": "후일자료제출",
|
||||||
|
|||||||
@ -47,16 +47,6 @@ table{
|
|||||||
}
|
}
|
||||||
.form-flex-wrap{
|
.form-flex-wrap{
|
||||||
@include flexbox;
|
@include flexbox;
|
||||||
.form-flex-select{
|
|
||||||
@include flexbox;
|
|
||||||
label{
|
|
||||||
flex: none;
|
|
||||||
margin-right: 5px;
|
|
||||||
}
|
|
||||||
.form-select{
|
|
||||||
min-width: 300px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
.date-picker-wrap{
|
.date-picker-wrap{
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user