fix: 폐기보고 통계 상세 목록 추가 완료

dev
Jonguk. Lim 4 months ago
parent 7b8a70b0f2
commit 3bdd4dec18

@ -140,7 +140,7 @@
}
, prefix: "dsuseMgtDsuseQyByPrdStatistics"
, prefixName: "제품별 폐기 현황"
, keymapper: info => info ? info.prduct_cd : ""
, keymapper: info => info ? info.ROW_NUM : ""
, dataGetter: obj => obj.${infoPrefix}List
, appendData: true
, infoSize: "xl"
@ -186,14 +186,14 @@
return;
}
let key = item.data.prduct_cd;
let key = item.data.ROW_NUM;
$("#tbody--${pageName}").setCurrentRow(key);
};
$P.control.getInfo = (obj, prductCd) => {
if(prductCd === undefined || prductCd === '') return;
$P.control.getInfo = (obj, rowNum) => {
if(rowNum === undefined || rowNum === '') return;
const row = $P.control.dataset.getData(prductCd);
const row = $P.control.dataset.getData(rowNum);
if(row.dept_nm === 'TOTAL') return;
if(row[obj.dataset.val] === 0 || row[obj.dataset.val] === undefined) return;
@ -203,7 +203,7 @@
params.schDateTo = '';
}
params.deptCd = row.dept_cd;
params.prductCd = prductCd;
params.prductCd = row.prduct_cd;
params.prgrsSttsCd = obj.dataset.div;
ajax.get({
@ -241,7 +241,7 @@
});
let replacer = (str, dataItem) => {
str = str.replace(/{onclick}/gi, "pageObject['${pageName}'].control.getInfo(this, '" + dataItem.getValue("prduct_cd") + "');");
str = str.replace(/{onclick}/gi, "pageObject['${pageName}'].control.getInfo(this, '" + dataItem.getValue("ROW_NUM") + "');");
if(dataItem.getValue("dept_cd") === "TOTAL"){
str = str.replace(/{fw-bold-if-total}/gi, "fw-bold");
str = str.replace(/{ROW_NUM}/gi, "")

Loading…
Cancel
Save