물건목록 주석정리
This commit is contained in:
parent
40e5cf773d
commit
524eab2130
@ -167,62 +167,6 @@ export default function Stuff() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//그리드 체크박스 선택시 미사용
|
|
||||||
// const getSelectedRowdata = (data) => {
|
|
||||||
// setSelectedRowData(data)
|
|
||||||
// setSelectedRowDataCount(data.length)
|
|
||||||
// }
|
|
||||||
|
|
||||||
//물건삭제
|
|
||||||
// const fnDeleteRowData = (data) => {
|
|
||||||
// if (data.length === 0) {
|
|
||||||
// return alert('삭제할 데이터를 선택하세요')
|
|
||||||
// }
|
|
||||||
// let errCount = 0
|
|
||||||
// data.forEach((cell) => {
|
|
||||||
// if (!cell.objectNo) {
|
|
||||||
// if (errCount === 0) {
|
|
||||||
// alert('물건정보가 있는 행만 삭제 됩니다')
|
|
||||||
// }
|
|
||||||
// errCount++
|
|
||||||
// }
|
|
||||||
// })
|
|
||||||
// }
|
|
||||||
|
|
||||||
//행추가
|
|
||||||
// let newCount = 0
|
|
||||||
// const addRowItems = () => {
|
|
||||||
// // console.log('girdRef::::::', gridRef.current.api)
|
|
||||||
// const newItems = [
|
|
||||||
// {
|
|
||||||
// mission: newCount + 1,
|
|
||||||
// successful: true,
|
|
||||||
// },
|
|
||||||
// ]
|
|
||||||
// gridRef.current.api.applyTransaction({
|
|
||||||
// add: newItems,
|
|
||||||
// addIndex: newCount,
|
|
||||||
// })
|
|
||||||
// newCount++
|
|
||||||
// }
|
|
||||||
|
|
||||||
//행삭제
|
|
||||||
// const removeRowItems = () => {
|
|
||||||
// // console.log('selectedRowData::', selectedRowData)
|
|
||||||
// let errCount = 0
|
|
||||||
// selectedRowData.forEach((cell) => {
|
|
||||||
// if (!cell.company) {
|
|
||||||
// let newSelectedRowData = selectedRowData.filter((item) => item.company == null)
|
|
||||||
// gridRef.current.api.applyTransaction({ remove: newSelectedRowData })
|
|
||||||
// } else {
|
|
||||||
// if (errCount === 0) {
|
|
||||||
// alert('행추가로 추가 한 행만 삭제됩니다.')
|
|
||||||
// }
|
|
||||||
// errCount++
|
|
||||||
// }
|
|
||||||
// })
|
|
||||||
// }
|
|
||||||
|
|
||||||
// 진입시 그리드 데이터 조회
|
// 진입시 그리드 데이터 조회
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (isObjectNotEmpty(session)) {
|
if (isObjectNotEmpty(session)) {
|
||||||
@ -297,8 +241,6 @@ export default function Stuff() {
|
|||||||
|
|
||||||
//조회를 눌렀을때
|
//조회를 눌렀을때
|
||||||
async function fetchData() {
|
async function fetchData() {
|
||||||
let saleStoreId
|
|
||||||
saleStoreId = stuffSearchParams?.schSelSaleStoreId ? stuffSearchParams.schSelSaleStoreId : session?.storeId
|
|
||||||
const apiUrl = `/api/object/list?saleStoreId=${session?.storeId}&${queryStringFormatter(stuffSearchParams)}`
|
const apiUrl = `/api/object/list?saleStoreId=${session?.storeId}&${queryStringFormatter(stuffSearchParams)}`
|
||||||
await get({ url: apiUrl }).then((res) => {
|
await get({ url: apiUrl }).then((res) => {
|
||||||
if (!isEmptyArray(res)) {
|
if (!isEmptyArray(res)) {
|
||||||
@ -330,8 +272,6 @@ export default function Stuff() {
|
|||||||
})
|
})
|
||||||
|
|
||||||
setPageNo(1)
|
setPageNo(1)
|
||||||
let saleStoreId
|
|
||||||
saleStoreId = stuffSearchParams?.schSelSaleStoreId ? stuffSearchParams.schSelSaleStoreId : session?.storeId
|
|
||||||
const apiUrl = `/api/object/list?saleStoreId=${session?.storeId}&${queryStringFormatter(stuffSearchParams)}`
|
const apiUrl = `/api/object/list?saleStoreId=${session?.storeId}&${queryStringFormatter(stuffSearchParams)}`
|
||||||
get({ url: apiUrl }).then((res) => {
|
get({ url: apiUrl }).then((res) => {
|
||||||
if (!isEmptyArray(res)) {
|
if (!isEmptyArray(res)) {
|
||||||
@ -364,8 +304,6 @@ export default function Stuff() {
|
|||||||
})
|
})
|
||||||
|
|
||||||
setPageNo(1)
|
setPageNo(1)
|
||||||
let saleStoreId
|
|
||||||
saleStoreId = stuffSearchParams?.schSelSaleStoreId ? stuffSearchParams.schSelSaleStoreId : session?.storeId
|
|
||||||
const apiUrl = `/api/object/list?saleStoreId=${session?.storeId}&${queryStringFormatter(stuffSearchParams)}`
|
const apiUrl = `/api/object/list?saleStoreId=${session?.storeId}&${queryStringFormatter(stuffSearchParams)}`
|
||||||
get({ url: apiUrl }).then((res) => {
|
get({ url: apiUrl }).then((res) => {
|
||||||
if (!isEmptyArray(res)) {
|
if (!isEmptyArray(res)) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user