설계의뢰 팝업 검색조건 변경
This commit is contained in:
parent
8245e58ef4
commit
993e750deb
@ -40,7 +40,6 @@ export default function StuffPlanQGrid(props) {
|
|||||||
rowData={rowData}
|
rowData={rowData}
|
||||||
columnDefs={colDefs}
|
columnDefs={colDefs}
|
||||||
defaultColDef={defaultColDef}
|
defaultColDef={defaultColDef}
|
||||||
rowSelection={'singleRow'}
|
|
||||||
pagination={isPageable}
|
pagination={isPageable}
|
||||||
domLayout="autoHeight"
|
domLayout="autoHeight"
|
||||||
suppressCellFocus={true}
|
suppressCellFocus={true}
|
||||||
|
|||||||
@ -56,7 +56,6 @@ export default function FindAddressPopGrid(props) {
|
|||||||
rowData={rowData}
|
rowData={rowData}
|
||||||
columnDefs={colDefs}
|
columnDefs={colDefs}
|
||||||
defaultColDef={defaultColDef}
|
defaultColDef={defaultColDef}
|
||||||
rowSelection={'singleRow'}
|
|
||||||
pagination={isPageable}
|
pagination={isPageable}
|
||||||
onSelectionChanged={onSelectionChanged}
|
onSelectionChanged={onSelectionChanged}
|
||||||
overlayNoRowsTemplate={`<span className="ag-overlay-loading-center">${getMessage('stuff.grid.noData')}</span>`}
|
overlayNoRowsTemplate={`<span className="ag-overlay-loading-center">${getMessage('stuff.grid.noData')}</span>`}
|
||||||
|
|||||||
@ -50,7 +50,6 @@ export default function PlanRequestPop(props) {
|
|||||||
const [schSaleStoreName, setSchSaleStoreName] = useState('') //판매대리점명
|
const [schSaleStoreName, setSchSaleStoreName] = useState('') //판매대리점명
|
||||||
const [schPlanReqName, setSchPlanReqName] = useState('') //의뢰자명
|
const [schPlanReqName, setSchPlanReqName] = useState('') //의뢰자명
|
||||||
const [schPlanStatCd, setSchPlanStatCd] = useState('') //상태코드
|
const [schPlanStatCd, setSchPlanStatCd] = useState('') //상태코드
|
||||||
const [schDateGbn, setSchDateGbn] = useState('S') //기간구분코드(S/R)
|
|
||||||
|
|
||||||
//초기화
|
//초기화
|
||||||
const resetRecoil = () => {
|
const resetRecoil = () => {
|
||||||
@ -59,7 +58,6 @@ export default function PlanRequestPop(props) {
|
|||||||
setSchAddress('')
|
setSchAddress('')
|
||||||
setSchSaleStoreName('')
|
setSchSaleStoreName('')
|
||||||
setSchPlanReqName('')
|
setSchPlanReqName('')
|
||||||
setSchDateGbn('S')
|
|
||||||
setStartDate(dayjs(new Date()).add(-3, 'month').format('YYYY-MM-DD'))
|
setStartDate(dayjs(new Date()).add(-3, 'month').format('YYYY-MM-DD'))
|
||||||
setEndDate(dayjs(new Date()).format('YYYY-MM-DD'))
|
setEndDate(dayjs(new Date()).format('YYYY-MM-DD'))
|
||||||
setSchPlanStatCd('')
|
setSchPlanStatCd('')
|
||||||
@ -85,10 +83,7 @@ export default function PlanRequestPop(props) {
|
|||||||
|
|
||||||
// 조회
|
// 조회
|
||||||
const onSubmit = (page, type) => {
|
const onSubmit = (page, type) => {
|
||||||
//2차점 테스트 201X112
|
|
||||||
const params = {
|
const params = {
|
||||||
// saleStoreId: 'X112',
|
|
||||||
// saleStoreLevel: '1',
|
|
||||||
saleStoreId: props?.otherSaleStoreId ? props.otherSaleStoreId : props.saleStoreId,
|
saleStoreId: props?.otherSaleStoreId ? props.otherSaleStoreId : props.saleStoreId,
|
||||||
saleStoreLevel: props?.otherSaleStoreLevel ? props.otherSaleStoreLevel : props.saleStoreLevel,
|
saleStoreLevel: props?.otherSaleStoreLevel ? props.otherSaleStoreLevel : props.saleStoreLevel,
|
||||||
schPlanReqNo: schPlanReqNo,
|
schPlanReqNo: schPlanReqNo,
|
||||||
@ -97,7 +92,7 @@ export default function PlanRequestPop(props) {
|
|||||||
schSaleStoreName: schSaleStoreName,
|
schSaleStoreName: schSaleStoreName,
|
||||||
schPlanReqName: schPlanReqName,
|
schPlanReqName: schPlanReqName,
|
||||||
schPlanStatCd: schPlanStatCd,
|
schPlanStatCd: schPlanStatCd,
|
||||||
schDateGbn: schDateGbn,
|
schDateGbn: 'R',
|
||||||
schStartDt: startDate ? dayjs(startDate).format('YYYY-MM-DD') : '',
|
schStartDt: startDate ? dayjs(startDate).format('YYYY-MM-DD') : '',
|
||||||
schEndDt: endDate ? dayjs(endDate).format('YYYY-MM-DD') : '',
|
schEndDt: endDate ? dayjs(endDate).format('YYYY-MM-DD') : '',
|
||||||
startRow: type === 'S' ? (1 - 1) * pageSize + 1 : (page - 1) * pageSize + 1,
|
startRow: type === 'S' ? (1 - 1) * pageSize + 1 : (page - 1) * pageSize + 1,
|
||||||
@ -135,8 +130,6 @@ export default function PlanRequestPop(props) {
|
|||||||
//페이지 갯수 변경 이벤트
|
//페이지 갯수 변경 이벤트
|
||||||
const onChangePerPage = (e) => {
|
const onChangePerPage = (e) => {
|
||||||
const params = {
|
const params = {
|
||||||
// saleStoreId: 'T100',
|
|
||||||
// saleStoreLevel: '1',
|
|
||||||
saleStoreId: props?.otherSaleStoreId ? props.otherSaleStoreId : props.saleStoreId,
|
saleStoreId: props?.otherSaleStoreId ? props.otherSaleStoreId : props.saleStoreId,
|
||||||
saleStoreLevel: props?.otherSaleStoreLevel ? props.otherSaleStoreLevel : props.saleStoreLevel,
|
saleStoreLevel: props?.otherSaleStoreLevel ? props.otherSaleStoreLevel : props.saleStoreLevel,
|
||||||
schTitle: schTitle,
|
schTitle: schTitle,
|
||||||
@ -145,7 +138,7 @@ export default function PlanRequestPop(props) {
|
|||||||
schSaleStoreName: schSaleStoreName,
|
schSaleStoreName: schSaleStoreName,
|
||||||
schPlanReqName: schPlanReqName,
|
schPlanReqName: schPlanReqName,
|
||||||
schPlanStatCd: schPlanStatCd,
|
schPlanStatCd: schPlanStatCd,
|
||||||
schDateGbn: schDateGbn,
|
schDateGbn: 'R',
|
||||||
schStartDt: dayjs(startDate).format('YYYY-MM-DD'),
|
schStartDt: dayjs(startDate).format('YYYY-MM-DD'),
|
||||||
schEndDt: dayjs(endDate).format('YYYY-MM-DD'),
|
schEndDt: dayjs(endDate).format('YYYY-MM-DD'),
|
||||||
startRow: (1 - 1) * e.target.value + 1,
|
startRow: (1 - 1) * e.target.value + 1,
|
||||||
@ -412,34 +405,6 @@ export default function PlanRequestPop(props) {
|
|||||||
<th>{getMessage('stuff.planReqPopup.search.period')}</th>
|
<th>{getMessage('stuff.planReqPopup.search.period')}</th>
|
||||||
<td colSpan={5}>
|
<td colSpan={5}>
|
||||||
<div className="form-flex-wrap">
|
<div className="form-flex-wrap">
|
||||||
<div className="radio-wrap mr10">
|
|
||||||
<div className="d-check-radio light mr10">
|
|
||||||
<input
|
|
||||||
type="radio"
|
|
||||||
name="radio04"
|
|
||||||
id="ra07"
|
|
||||||
checked={schDateGbn === 'S' ? true : false}
|
|
||||||
value={'S'}
|
|
||||||
onChange={(e) => {
|
|
||||||
setSchDateGbn(e.target.value)
|
|
||||||
}}
|
|
||||||
/>
|
|
||||||
<label htmlFor="ra07">{getMessage('stuff.planReqPopup.search.schDateGbnS')}</label>
|
|
||||||
</div>
|
|
||||||
<div className="d-check-radio light">
|
|
||||||
<input
|
|
||||||
type="radio"
|
|
||||||
name="radio04"
|
|
||||||
id="ra08"
|
|
||||||
checked={schDateGbn === 'R' ? true : false}
|
|
||||||
value={'R'}
|
|
||||||
onChange={(e) => {
|
|
||||||
setSchDateGbn(e.target.value)
|
|
||||||
}}
|
|
||||||
/>
|
|
||||||
<label htmlFor="ra08">{getMessage('stuff.planReqPopup.search.schDateGbnR')}</label>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div className="date-picker-wrap">
|
<div className="date-picker-wrap">
|
||||||
<div className="date-picker" style={{ flex: 1 }}>
|
<div className="date-picker" style={{ flex: 1 }}>
|
||||||
<SingleDatePicker {...rangeDatePickerProps1} />
|
<SingleDatePicker {...rangeDatePickerProps1} />
|
||||||
|
|||||||
@ -56,7 +56,6 @@ export default function PlanRequestPopQGrid(props) {
|
|||||||
rowData={rowData}
|
rowData={rowData}
|
||||||
columnDefs={colDefs}
|
columnDefs={colDefs}
|
||||||
defaultColDef={defaultColDef}
|
defaultColDef={defaultColDef}
|
||||||
rowSelection={'singleRow'}
|
|
||||||
pagination={isPageable}
|
pagination={isPageable}
|
||||||
onSelectionChanged={onSelectionChanged}
|
onSelectionChanged={onSelectionChanged}
|
||||||
overlayNoRowsTemplate={`<span className="ag-overlay-loading-center">${getMessage('stuff.grid.noData')}</span>`}
|
overlayNoRowsTemplate={`<span className="ag-overlay-loading-center">${getMessage('stuff.grid.noData')}</span>`}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user