@@ -295,7 +354,7 @@ const cancel = () => {
color="primary"
@click="centeredActionsOpen = true"
>
- G/L계정
+ G/L계정// 설정필요
|
@@ -309,7 +368,7 @@ const cancel = () => {
|
-
@@ -342,12 +401,53 @@ const cancel = () => {
- 전 표 생 성
+ 전 표 생 성
취 소
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/service/slipApi.ts b/src/service/slipApi.ts
index e98e852..2f49f9d 100644
--- a/src/service/slipApi.ts
+++ b/src/service/slipApi.ts
@@ -23,6 +23,30 @@ export async function saveTempSlip(params = {}) {
}
}
+/**
+ * 전표 상세 조회(대금지급전)
+ * @property {string} params.contNo -계약번호
+ * * @returns
+ * * @param contNo
+ * */
+export async function getBeforeSlipDetail(contNo: string) {
+ try {
+ const result = await axios.get(`/api/slip/${contNo}`)
+ return result.data
+ } catch (e) {
+ const serverError = e.response?.data;
+
+ const message = typeof serverError?.body === 'string'
+ ? serverError.body
+ : 'Unknown error occurred';
+
+ const error = new Error(message); // ✅ 반드시 string만 넣기! 아니면 객체가 문자열로 나옴
+ error.code = serverError?.code;
+ error.errTime = serverError?.errTime;
+ throw error;
+ }
+}
+
/**
* 임시전표 삭제
* @property {string} params.contNo -계약번호
@@ -48,14 +72,14 @@ export async function deleteSlipDetail(contNo: string) {
}
/**
- * 전표 상세 조회
- * * @property {string} params.contNo -계약번호
+ * 전표 상세 조회(대금지급중)
+ * @property {string} params.contNo -계약번호
* * @returns
* * @param contNo
* */
export async function getSlipDetail(contNo: string) {
try {
- const result = await axios.get(`/api/slip/page/${contNo}`)
+ const result = await axios.get(`/api/slip/detail/${contNo}`)
return result.data
} catch (e) {
const serverError = e.response?.data;
diff --git a/src/utils/types.ts b/src/utils/types.ts
index 39183d7..e246e8f 100644
--- a/src/utils/types.ts
+++ b/src/utils/types.ts
@@ -25,4 +25,15 @@ export interface iPbAtt {
size: number
data: string
path: string
+}
+
+export interface ApprsList{
+ abscd: string
+ bname: string
+ btext: string
+ lineclsf: string
+ posit: string
+ wkfid: string
+ wkfsq: number
+ wkfst: string
}
\ No newline at end of file
diff --git a/types/router.d.ts b/types/router.d.ts
index 6dd973f..cb8fa20 100644
--- a/types/router.d.ts
+++ b/types/router.d.ts
@@ -29,6 +29,7 @@ declare module 'vue-router/auto-routes' {
'/app/contractManagement': RouteRecordInfo<'/app/contractManagement', '/app/contractManagement', Record, Record>,
'/app/contractUpdate': RouteRecordInfo<'/app/contractUpdate', '/app/contractUpdate', Record, Record>,
'/app/DocumentManagement': RouteRecordInfo<'/app/DocumentManagement', '/app/DocumentManagement', Record, Record>,
+ '/app/documentManagementDetail': RouteRecordInfo<'/app/documentManagementDetail', '/app/documentManagementDetail', Record, Record>,
'/app/priceDetail': RouteRecordInfo<'/app/priceDetail', '/app/priceDetail', Record, Record>,
'/app/PriceInsert': RouteRecordInfo<'/app/PriceInsert', '/app/PriceInsert', Record, Record>,
'/app/priceManagement': RouteRecordInfo<'/app/priceManagement', '/app/priceManagement', Record, Record>,
|