fix: 상품조회 제조번호 필드 처리 추가

dev
Jonguk. Lim 5 months ago
parent 3193469495
commit 970a182d25

@ -40,6 +40,9 @@
<th class="sorting" style="width: 160.141px;">제품명</th>
<th class="sorting" style="width: 160.141px;">마약/향정 구분</th>
<th class="sorting" style="width: 230.469px;">중점/일반 구분</th>
<th class="sorting" style="width: 230.469px;">유효기간</th>
<th class="sorting" style="width: 230.469px;">제조번호</th>
<th class="sorting" style="width: 230.469px;">제조일련번호</th>
<th class="sorting" style="width: 230.469px;">최소유통단위</th>
<th class="sorting" style="width: 230.469px;">최수유통단위명</th>
<th class="sorting" style="width: 230.469px;">낱개단위</th>
@ -55,6 +58,9 @@
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{prductNm}</td>
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{nrcdSeNm}</td>
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{prtmSeNm}</td>
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{prdValidDe}</td>
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{mnfNo}</td>
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{mnfSeq}</td>
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{prdMinDistbQy}</td>
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{stdPackngStleNm}</td>
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{prdTotPceQy}</td>
@ -94,15 +100,38 @@
$P.control = new DatasetControl({
urls : {
//load : wctx.url("/adds/nims/product-list.do")
load : '<c:url value="${apiHost}/api/biz/nims/v1/getNimsProductInfoKd" />',
//load : '<c:url value="${apiHost}/api/biz/nims/v1/getNimsProductInfoKd" />',
load : '<c:url value="${apiHost}/api/biz/nims/v1/getNimsProductInfoKdAndMnfSeqInfo" />',
}
, prefix: "productMain"
, prefixName: "마약류 제품 조회"
, keymapper: info => info ? info.prductCd : ""
, dataGetter : obj => {
if (!obj.success)
if (!obj.success){
dialog.alert(obj.message);
return obj.data;
return false;
}
// 제품 목록
return obj.data.map(item => {
// mnfSeqInfos 배열의 데이터 갯수만큼 반복문 실행
return item.mnfSeqInfos.map(info => ({
prductCd: item.prductCd,
prductNm: item.prductNm,
nrcdSeNm: item.nrcdSeNm,
prtmSeNm: item.prtmSeNm,
prdMinDistbQy: item.prdMinDistbQy,
stdPackngStleNm: item.stdPackngStleNm,
prdTotPceQy: item.prdTotPceQy,
pceCoUnitNm: item.pceCoUnitNm,
bsshCd: item.bsshCd,
mnfNo: info.mnfNo,
mnfSeq: info.mnfSeq,
prdValidDe: info.prdValidDe
}));
}).flat();
//console.log(JSON.stringify(newData));
//return newData;
}
, appendData: true
, infoSize: "xl"
@ -215,7 +244,8 @@
"pg": "1",
"ymd": "",
"fg2": "",
"p": $P.formFields.get().schProductCd,
//"p": $P.formFields.get().schProductCd,
"p": '8806416009017',
"pn": $P.formFields.get().schProductNm,
"dbSkipYn": "N",
"userId": "suji"

Loading…
Cancel
Save