Skip to content

Commit

Permalink
Merge pull request #416 from beyond-sw-camp/refactor/notification/#412
Browse files Browse the repository at this point in the history
refactor: ์•Œ๋ฆผ ๋””์ž์ธ ์ˆ˜์ •
  • Loading branch information
hcbak authored Jan 2, 2025
2 parents 22bbc27 + a62767e commit 12f76ef
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 13 deletions.
3 changes: 3 additions & 0 deletions SCM/frontend/src/components/common/Header.vue
Original file line number Diff line number Diff line change
Expand Up @@ -168,20 +168,23 @@ function chatbotOn() {
<PurchaseOrderPrintPreviewModal
:isVisible="isModalVisible"
:purchaseOrder="selectedData"
:isList=false
@close="closePrintPreview"
/>
</template>
<template v-else-if="selectedNotificationType === 'shipping-instruction'">
<ShippingInstructionPrintPreview
:isVisible="isModalVisible"
:shippingInstruction="selectedData"
:isList=false
@close="closePrintPreview"
/>
</template>
<template v-else-if="selectedNotificationType === 'shipping-slip'">
<ShippingSlipPrintPreview
:isVisible="isModalVisible"
:shippingSlip="selectedData"
:isList=false
@close="closePrintPreview"
/>
</template>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,7 @@ const itemDelete = async (seq) => {
<PrintPreviewModal
:isVisible="isModalVisible"
:purchaseOrder="selectedPurchaseOrder"
:isList=true
@close="closePrintPreview"
/>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import Swal from "sweetalert2";
const props = defineProps({
isVisible: Boolean,
purchaseOrder: Object,
isList: Boolean,
});
// ๋ถ€๋ชจ์—์„œ ๋„˜์–ด์˜ค๋Š” ๋ฐœ์ฃผ์„œ ์‹œํ€€์Šค๋กœ ์ด๋ฏธ์ง€๋ฅผ ๊ฐ€์ ธ์˜ด
Expand Down Expand Up @@ -146,7 +147,7 @@ const clearCanvas = () => {
<div class="modal-body" id="print-area-purchaseOrder">
<div class="d-flex justify-content-between">
<button class="btn-print" @click="printPage">์ถœ๋ ฅ</button>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close" @click="closePrintModal" ></button>
<button type="button" class="btn-close btn-print" data-bs-dismiss="modal" aria-label="Close" @click="closePrintModal" ></button>
</div>

<div class="container mt-4">
Expand Down Expand Up @@ -181,7 +182,9 @@ const clearCanvas = () => {
<img class="image-item" v-if="notification.notificationImageUrl != undefined" :src="notification.notificationImageUrl" alt="์Šน์ธ์ž ์„œ๋ช…" style="width: 100px; height: auto;" />
<span v-else>
(์„œ๋ช… ๋˜๋Š” ์ธ)
<template v-if="!isList">
<input type="button" class="btn-print" @click="openModal(notification)" value="๊ฒฐ์žฌํ•˜๊ธฐ">
</template>
</span>


Expand Down Expand Up @@ -324,8 +327,7 @@ const clearCanvas = () => {
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.7);
align-items: center;
justify-content: center;
overflow-y: scroll;
z-index: 1000;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script setup>
import {computed, defineProps, ref, watch} from 'vue';
import {defineProps, ref, watch} from 'vue';
import searchIcon from "@/assets/searchIcon.svg";
import trashIcon from "@/assets/trashIcon.svg";
import editIcon from "@/assets/editIcon.svg";
Expand Down Expand Up @@ -277,6 +277,7 @@ function numberThree(number) {
<ShippingInstructionPrintPreview
:isVisible="isModalVisible"
:shippingInstruction="selectedShippingInstruction"
:isList=true
@close="closePrintPreview"
/>
</template>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import Swal from "sweetalert2";
const props = defineProps({
isVisible: Boolean,
shippingInstruction: Object,
isList: Boolean,
});
const seq = ref(null);
Expand Down Expand Up @@ -173,7 +174,7 @@ const clearCanvas = () => {
<div class="modal-body" id="print-area">
<div class="d-flex justify-content-between">
<button class="btn-print" @click="printPage">์ถœ๋ ฅ</button>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close" @click="closePrintModal" ></button>
<button type="button" class="btn-close btn-print" data-bs-dismiss="modal" aria-label="Close" @click="closePrintModal" ></button>
</div>

<div class="container mt-4">
Expand Down Expand Up @@ -208,7 +209,9 @@ const clearCanvas = () => {
<img class="image-item" v-if="notification.notificationImageUrl != undefined" :src="notification.notificationImageUrl" alt="์Šน์ธ์ž ์„œ๋ช…" style="width: 100px; height: auto;" />
<span v-else>
(์„œ๋ช… ๋˜๋Š” ์ธ)
<template v-if="!isList">
<input type="button" class="btn-print" @click="openModal(notification)" value="๊ฒฐ์žฌํ•˜๊ธฐ">
</template>
</span>


Expand Down Expand Up @@ -345,8 +348,7 @@ const clearCanvas = () => {
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.7);
align-items: center;
justify-content: center;
overflow-y: scroll;
z-index: 1000;
}
Expand Down
5 changes: 2 additions & 3 deletions SCM/frontend/src/components/shippingSlip/ShippingSlipList.vue
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
<script setup>
import {computed, defineProps, ref, watch} from 'vue';
import {defineProps, ref, watch} from 'vue';
import searchIcon from "@/assets/searchIcon.svg";
import trashIcon from "@/assets/trashIcon.svg";
import editIcon from "@/assets/editIcon.svg";
import printIcon from "@/assets/printIcon.svg";
import dayjs from "dayjs";
import ShippingSlipPrintPreview from "@/components/shippingSlip/ShippingSlipPrintPreview.vue";
Expand Down Expand Up @@ -216,6 +214,7 @@ function numberThree(number) {
<ShippingSlipPrintPreview
:isVisible="isModalVisible"
:shippingSlip="selectedShippingSlip"
:isList=true
@close="closePrintPreview"
/>
</template>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import Swal from "sweetalert2";
const props = defineProps({
isVisible: Boolean,
shippingSlip: Object,
isList: Boolean,
});
const seq = ref(null);
Expand Down Expand Up @@ -173,7 +174,7 @@ const clearCanvas = () => {
<div class="modal-body" id="print-area">
<div class="d-flex justify-content-between">
<button class="btn-print" @click="printPage">์ถœ๋ ฅ</button>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close" @click="closePrintModal" ></button>
<button type="button" class="btn-close btn-print" data-bs-dismiss="modal" aria-label="Close" @click="closePrintModal" ></button>
</div>

<div class="container mt-4">
Expand Down Expand Up @@ -208,7 +209,9 @@ const clearCanvas = () => {
<img class="image-item" v-if="notification.notificationImageUrl != undefined" :src="notification.notificationImageUrl" alt="์Šน์ธ์ž ์„œ๋ช…" style="width: 100px; height: auto;" />
<span v-else>
(์„œ๋ช… ๋˜๋Š” ์ธ)
<template v-if="!isList">
<input type="button" class="btn-print" @click="openModal(notification)" value="๊ฒฐ์žฌํ•˜๊ธฐ">
</template>
</span>


Expand Down Expand Up @@ -345,8 +348,7 @@ const clearCanvas = () => {
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.7);
align-items: center;
justify-content: center;
overflow-y: scroll;
z-index: 1000;
}
Expand Down

0 comments on commit 12f76ef

Please sign in to comment.