feat: POP 화면설정에 출고 장바구니 항목 추가
- screen_definitions에 7010 (POP_OUTBOUND_CART) 신규 등록 - popSettingsMng SCREEN_GROUPS의 outbound에 outbound-cart 추가 - OutboundCartPage 채번규칙 조회 screen_id를 5 → 7010으로 변경 이로써 POP 설정 페이지에서 출고 장바구니 화면도 미리보기 + 채번규칙 설정 가능
This commit is contained in:
@@ -121,6 +121,7 @@ const SCREEN_GROUPS: ScreenGroup[] = [
|
||||
screens: [
|
||||
{ id: "sales-outbound", name: "판매출고", url: "/pop/outbound/sales", settingsKey: "outbound", screenId: 5 },
|
||||
{ id: "outbound-type", name: "출고유형선택", url: "/pop/outbound", settingsKey: "outbound", screenId: 6 },
|
||||
{ id: "outbound-cart", name: "출고 장바구니", url: "/pop/outbound/cart", settingsKey: "outbound", screenId: 7010 },
|
||||
],
|
||||
},
|
||||
{
|
||||
|
||||
@@ -306,9 +306,10 @@ export function OutboundCartPage() {
|
||||
try {
|
||||
// Generate outbound number at confirm time
|
||||
// POP 화면설정에서 선택한 채번규칙 사용 (없으면 기본)
|
||||
// 출고 장바구니 전용 screen_id 7010
|
||||
let finalNumber = "";
|
||||
try {
|
||||
const settingsRes: any = await apiClient.get("/screen-management/screens/5/layout-pop").catch(() => null);
|
||||
const settingsRes: any = await apiClient.get("/screen-management/screens/7010/layout-pop").catch(() => null);
|
||||
const ruleId = settingsRes?.data?.data?.settings?.popConfig?.outbound?.numberingRuleId;
|
||||
const url = ruleId && ruleId !== "__none__"
|
||||
? `/outbound/generate-number?ruleId=${encodeURIComponent(ruleId)}`
|
||||
|
||||
Reference in New Issue
Block a user