From e79978ce45121bec80cfd3507e056b9a11e98651 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=ED=95=9C=EC=A3=BC?= Date: Sun, 4 Aug 2024 07:41:25 +0900 Subject: [PATCH 1/7] =?UTF-8?q?[K5P80]=20[fix]=20=EB=A9=98=ED=86=A0?= =?UTF-8?q?=EB=A7=81=20=EC=98=A4=EB=A5=98=20=EC=88=98=EC=A0=95=EC=82=AC?= =?UTF-8?q?=ED=95=AD=20=EB=B0=98=EC=98=81=20=EC=A4=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/assets/scss/component/table.scss | 1 + src/components/common/ExcelUpload.vue | 6 +++--- src/components/common/TheNavBar.vue | 16 ++++++++++------ .../contract/table/ContractTableRow.vue | 2 +- src/components/invoice/detail/InvoiceInfo.vue | 2 +- .../invoice/detail/PaymentStatusBar.vue | 13 +++++-------- .../invoice/modal/InvoiceUpdateModal.vue | 2 +- .../item/table/ItemContractTableRow.vue | 2 +- .../member/table/MemberContractTableRow.vue | 2 +- src/stores/auth.js | 9 ++++++++- src/stores/contract/contractBulk.js | 3 ++- src/stores/contract/contractList.js | 2 +- src/stores/invoice/invoiceList.js | 2 +- src/stores/member/memberBulk.js | 3 ++- src/utils/item.js | 2 +- src/views/contract/ContractDetailView.vue | 4 ++-- src/views/invoice/InvoiceCreateView.vue | 4 ++-- 17 files changed, 43 insertions(+), 32 deletions(-) diff --git a/src/assets/scss/component/table.scss b/src/assets/scss/component/table.scss index 22fb911..4e3d688 100644 --- a/src/assets/scss/component/table.scss +++ b/src/assets/scss/component/table.scss @@ -14,6 +14,7 @@ background: white; width: 100%; flex-grow: 1; + min-height: 500px; overflow:auto; border-radius: 5px; } diff --git a/src/components/common/ExcelUpload.vue b/src/components/common/ExcelUpload.vue index 640d853..61abfde 100644 --- a/src/components/common/ExcelUpload.vue +++ b/src/components/common/ExcelUpload.vue @@ -18,8 +18,8 @@
{{ errorMsg }}
- + diff --git a/src/components/contract/table/ContractTableRow.vue b/src/components/contract/table/ContractTableRow.vue index d0d88fe..0f10471 100644 --- a/src/components/contract/table/ContractTableRow.vue +++ b/src/components/contract/table/ContractTableRow.vue @@ -46,7 +46,7 @@ export default { }, upPaidStatus() { const count = this.contractData.totalUnpaidCount; - return count > 0 ? `미납 ${count}건` : '완납'; + return count > 0 ? `미납 ${count}건` : '없음'; }, }, methods: { diff --git a/src/components/invoice/detail/InvoiceInfo.vue b/src/components/invoice/detail/InvoiceInfo.vue index 2d2afb4..f483857 100644 --- a/src/components/invoice/detail/InvoiceInfo.vue +++ b/src/components/invoice/detail/InvoiceInfo.vue @@ -31,7 +31,7 @@
- +
diff --git a/src/components/invoice/detail/PaymentStatusBar.vue b/src/components/invoice/detail/PaymentStatusBar.vue index 24c7fe7..1ab215d 100644 --- a/src/components/invoice/detail/PaymentStatusBar.vue +++ b/src/components/invoice/detail/PaymentStatusBar.vue @@ -1,9 +1,9 @@ From 3630a6350b8620682923a31faa6d2d3f43306e7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=ED=95=9C=EC=A3=BC?= Date: Sun, 4 Aug 2024 07:42:30 +0900 Subject: [PATCH 2/7] =?UTF-8?q?[K5P-80]=20[fix]=20=EB=A9=98=ED=86=A0?= =?UTF-8?q?=EB=A7=81=20=EC=98=A4=EB=A5=98=20=EC=88=98=EC=A0=95=EC=82=AC?= =?UTF-8?q?=ED=95=AD=20=EB=B0=98=EC=98=812?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/common/input/NumberInput.vue | 62 ++++++++++ src/components/common/select/TitleSelect.vue | 2 +- .../common/select/TitleUpSelect.vue | 109 ++++++++++++++++++ .../consent/modal/ConsentCreateModal.vue | 27 ++++- .../consent/modal/ConsentUpdateModal.vue | 26 ++++- .../contract/ContractCreateInfo.vue | 80 +++++++++++-- src/components/contract/ContractEditInfo.vue | 64 ++++++++-- .../contract/create/ContractChooseInfo.vue | 24 ---- .../contract/create/ContractChooseItem.vue | 8 +- src/views/contract/ContractCreateView.vue | 2 +- src/views/contract/ContractEditView.vue | 3 +- 11 files changed, 349 insertions(+), 58 deletions(-) create mode 100644 src/components/common/input/NumberInput.vue create mode 100644 src/components/common/select/TitleUpSelect.vue diff --git a/src/components/common/input/NumberInput.vue b/src/components/common/input/NumberInput.vue new file mode 100644 index 0000000..3caa0d6 --- /dev/null +++ b/src/components/common/input/NumberInput.vue @@ -0,0 +1,62 @@ + + + + + \ No newline at end of file diff --git a/src/components/common/select/TitleSelect.vue b/src/components/common/select/TitleSelect.vue index 4c7bc60..a62076f 100644 --- a/src/components/common/select/TitleSelect.vue +++ b/src/components/common/select/TitleSelect.vue @@ -104,6 +104,6 @@ export default { @include flex-box(column, center, 10px); @include select-list; top: calc(100% + 10px); - width:90% + width:90%; } \ No newline at end of file diff --git a/src/components/common/select/TitleUpSelect.vue b/src/components/common/select/TitleUpSelect.vue new file mode 100644 index 0000000..9719d29 --- /dev/null +++ b/src/components/common/select/TitleUpSelect.vue @@ -0,0 +1,109 @@ + + + + + \ No newline at end of file diff --git a/src/components/consent/modal/ConsentCreateModal.vue b/src/components/consent/modal/ConsentCreateModal.vue index 201f662..b16a207 100644 --- a/src/components/consent/modal/ConsentCreateModal.vue +++ b/src/components/consent/modal/ConsentCreateModal.vue @@ -11,7 +11,12 @@ ※ 동의 서명 이미지 파일을 등록해주세요 - +
@@ -24,6 +29,8 @@ import ModalHeaderVue from '@/components/common/modal/ModalHeader.vue'; import ModalFooterVue from '@/components/common/modal/ModalFooter.vue'; import InfoInputVue from '@/components/common/input/InfoInput.vue'; +import TitleSelectVue from '@/components/common/select/TitleSelect.vue'; +import TitleUpSelectVue from '@/components/common/select/TitleUpSelect.vue'; import { createConsent } from '@/utils/consent'; import { mapStores } from 'pinia'; import { useContractDetailStore } from '@/stores/contract/contractDetail'; @@ -34,6 +41,8 @@ export default { ModalHeaderVue, ModalFooterVue, InfoInputVue, + TitleSelectVue, + TitleUpSelectVue }, props: { 'isVisible': Boolean, @@ -47,7 +56,16 @@ export default { bank: '', number: '', imgFile: null, - imgSrc: null + imgSrc: null, + bankIdx: 0, + bankList: [ + { value: 'KB', name: '국민은행' }, + { value: 'SH', name: '신한은행' }, + { value: 'WR', name: '우리은행' }, + { value: 'HN', name: '하나은행' }, + { value: 'NH', name: '농협은행' }, + { value: 'IBK', name: '기업은행' }, + ] } }, computed: { @@ -58,6 +76,11 @@ export default { triggerFileInput() { this.$refs.fileInput.click(); }, + // 은행 선택 + selectBank(idx) { + this.bankIdx = idx; + this.bank = this.bankList[this.bankIdx].name; + }, // 이미지 등록 onImageChange(event) { const file = event.target.files[0]; diff --git a/src/components/consent/modal/ConsentUpdateModal.vue b/src/components/consent/modal/ConsentUpdateModal.vue index 4490a03..06ec937 100644 --- a/src/components/consent/modal/ConsentUpdateModal.vue +++ b/src/components/consent/modal/ConsentUpdateModal.vue @@ -11,7 +11,12 @@ ※ 동의 서명 이미지 파일을 등록해주세요 - + @@ -24,6 +29,7 @@ import ModalHeaderVue from '@/components/common/modal/ModalHeader.vue'; import ModalFooterVue from '@/components/common/modal/ModalFooter.vue'; import InfoInputVue from '@/components/common/input/InfoInput.vue'; +import TitleUpSelectVue from '@/components/common/select/TitleUpSelect.vue'; import { editConsent, editConsentImage } from '@/utils/consent'; import { mapStores } from 'pinia'; import { useContractDetailStore } from '@/stores/contract/contractDetail'; @@ -35,6 +41,7 @@ export default { ModalHeaderVue, ModalFooterVue, InfoInputVue, + TitleUpSelectVue }, props: { 'isVisible': Boolean, @@ -48,7 +55,16 @@ export default { bank: '', number: '', imgFile: null, - imgSrc: null + imgSrc: null, + bankIdx: 0, + bankList: [ + { value: 'KB', name: '국민은행' }, + { value: 'SH', name: '신한은행' }, + { value: 'WR', name: '우리은행' }, + { value: 'HN', name: '하나은행' }, + { value: 'NH', name: '농협은행' }, + { value: 'IBK', name: '기업은행' }, + ] } }, computed: { @@ -65,9 +81,15 @@ export default { async showData() { this.owner = this.consentDetailStore.data.owner; this.bank = this.consentDetailStore.data.bank; + this.bankIdx = this.bankList.findIndex((bank) => bank.name === this.consentDetailStore.data.bank); this.number = this.consentDetailStore.data.number; this.imgSrc = this.consentDetailStore.data.signUrl; }, + // 은행 선택 + selectBank(idx) { + this.bankIdx = idx; + this.bank = this.bankList[this.bankIdx].name; + }, // 이미지 업로드 triggerFileInput() { this.$refs.fileInput.click(); diff --git a/src/components/contract/ContractCreateInfo.vue b/src/components/contract/ContractCreateInfo.vue index 55df5ba..a39546f 100644 --- a/src/components/contract/ContractCreateInfo.vue +++ b/src/components/contract/ContractCreateInfo.vue @@ -14,8 +14,8 @@ 상품 정보
- - + +
@@ -23,16 +23,28 @@ :class="{ 'info-box': true, 'active': contractCreateStore.step === 2 }"> 계약 정보
- - + +
- - + +
- - + +
@@ -41,15 +53,63 @@ diff --git a/src/components/contract/ContractEditInfo.vue b/src/components/contract/ContractEditInfo.vue index 5878e3e..e510b5e 100644 --- a/src/components/contract/ContractEditInfo.vue +++ b/src/components/contract/ContractEditInfo.vue @@ -21,16 +21,28 @@ :class="{ 'info-box': true, 'active': contractCreateStore.step === 2 }"> 계약 정보
- - + +
- - + +
- - + +
@@ -39,14 +51,18 @@ + + \ No newline at end of file diff --git a/src/components/common/TheNavBar.vue b/src/components/common/TheNavBar.vue index 779eb3d..7c5396b 100644 --- a/src/components/common/TheNavBar.vue +++ b/src/components/common/TheNavBar.vue @@ -2,8 +2,8 @@ @@ -25,34 +25,38 @@ export default { ...mapStores(useAuthStore) }, async mounted() { - const result = await mainAxios.get('users/current'); - if (result.code === 200) { - this.authStore.setUserData(result.data) + if (!this.authStore.data.clientId) { + const result = await mainAxios.get('users/current'); + if (result.code === 200) { + this.authStore.setUserData(result.data); + } } }, } \ No newline at end of file diff --git a/src/components/common/TheSideBar.vue b/src/components/common/TheSideBar.vue index 828fd82..156d75c 100644 --- a/src/components/common/TheSideBar.vue +++ b/src/components/common/TheSideBar.vue @@ -40,13 +40,14 @@ export default { \ No newline at end of file diff --git a/src/components/common/info/TitleInfo.vue b/src/components/common/info/TitleInfo.vue index ed55880..d001c3f 100644 --- a/src/components/common/info/TitleInfo.vue +++ b/src/components/common/info/TitleInfo.vue @@ -12,7 +12,7 @@ export default { name: 'TitleInfoVue', props: { 'title' : String, - 'info': String, + 'info': [String, Number], }, } @@ -20,7 +20,6 @@ export default { \ No newline at end of file diff --git a/src/components/common/input/InfoInput.vue b/src/components/common/input/InfoInput.vue index 4ac74fd..b0c805c 100644 --- a/src/components/common/input/InfoInput.vue +++ b/src/components/common/input/InfoInput.vue @@ -26,7 +26,6 @@ export default { \ No newline at end of file diff --git a/src/components/invoice/table/InvoiceCreateTableRow.vue b/src/components/invoice/table/InvoiceCreateTableRow.vue index 977b60a..d0c83ba 100644 --- a/src/components/invoice/table/InvoiceCreateTableRow.vue +++ b/src/components/invoice/table/InvoiceCreateTableRow.vue @@ -1,5 +1,5 @@ diff --git a/src/components/static/InvoiceAreaChart.vue b/src/components/static/InvoiceAreaChart.vue index 3773747..59f29a6 100644 --- a/src/components/static/InvoiceAreaChart.vue +++ b/src/components/static/InvoiceAreaChart.vue @@ -1,7 +1,7 @@