feat: [approvals] 구매품의서에 지급방법(법인카드/계좌이체) 선택 추가
This commit is contained in:
@@ -296,6 +296,23 @@ class="w-full px-3 py-2 border border-gray-300 rounded-lg text-sm focus:outline-
|
|||||||
class="w-full px-3 py-2 border border-gray-300 rounded-lg text-sm focus:outline-none focus:ring-2 focus:ring-blue-500">
|
class="w-full px-3 py-2 border border-gray-300 rounded-lg text-sm focus:outline-none focus:ring-2 focus:ring-blue-500">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
{{-- 지급방법 --}}
|
||||||
|
<div class="mb-4">
|
||||||
|
<label class="block text-xs font-medium text-gray-600 mb-2">지급방법</label>
|
||||||
|
<div class="flex gap-4">
|
||||||
|
<label class="inline-flex items-center gap-2 cursor-pointer">
|
||||||
|
<input type="radio" x-model="formData.payment_method" value="corporate_card"
|
||||||
|
class="rounded-full border-gray-300 text-blue-600 focus:ring-blue-500">
|
||||||
|
<span class="text-sm text-gray-700">법인카드</span>
|
||||||
|
</label>
|
||||||
|
<label class="inline-flex items-center gap-2 cursor-pointer">
|
||||||
|
<input type="radio" x-model="formData.payment_method" value="bank_transfer"
|
||||||
|
class="rounded-full border-gray-300 text-blue-600 focus:ring-blue-500">
|
||||||
|
<span class="text-sm text-gray-700">계좌이체</span>
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -649,6 +666,7 @@ function makeSchedule(data) {
|
|||||||
vendor_biz_no: initialData?.vendor_biz_no || '',
|
vendor_biz_no: initialData?.vendor_biz_no || '',
|
||||||
delivery_date: initialData?.delivery_date || '',
|
delivery_date: initialData?.delivery_date || '',
|
||||||
delivery_place: initialData?.delivery_place || '',
|
delivery_place: initialData?.delivery_place || '',
|
||||||
|
payment_method: initialData?.payment_method || '',
|
||||||
|
|
||||||
// pr_trip
|
// pr_trip
|
||||||
traveler: initialData?.traveler || authUserName,
|
traveler: initialData?.traveler || authUserName,
|
||||||
@@ -838,7 +856,7 @@ function makeSchedule(data) {
|
|||||||
return { ...base, contract_party: this.formData.contract_party, contract_party_id: this.formData.contract_party_id, contract_party_biz_no: this.formData.contract_party_biz_no, contract_content: this.formData.contract_content, contract_start: this.formData.contract_start, contract_end: this.formData.contract_end, contract_amount: parseInt(this.formData.contract_amount) || 0, contract_scope: this.formData.contract_scope, delivery_service: this.formData.delivery_service, payment_terms: this.formData.payment_terms, special_terms: this.formData.special_terms };
|
return { ...base, contract_party: this.formData.contract_party, contract_party_id: this.formData.contract_party_id, contract_party_biz_no: this.formData.contract_party_biz_no, contract_content: this.formData.contract_content, contract_start: this.formData.contract_start, contract_end: this.formData.contract_end, contract_amount: parseInt(this.formData.contract_amount) || 0, contract_scope: this.formData.contract_scope, delivery_service: this.formData.delivery_service, payment_terms: this.formData.payment_terms, special_terms: this.formData.special_terms };
|
||||||
}
|
}
|
||||||
if (this.prType === 'pr_purchase') {
|
if (this.prType === 'pr_purchase') {
|
||||||
return { ...base, items: cleanItems(), total_amount: this.totalAmount, vendor: this.formData.vendor, vendor_id: this.formData.vendor_id, vendor_biz_no: this.formData.vendor_biz_no, delivery_date: this.formData.delivery_date, delivery_place: this.formData.delivery_place };
|
return { ...base, items: cleanItems(), total_amount: this.totalAmount, vendor: this.formData.vendor, vendor_id: this.formData.vendor_id, vendor_biz_no: this.formData.vendor_biz_no, delivery_date: this.formData.delivery_date, delivery_place: this.formData.delivery_place, payment_method: this.formData.payment_method };
|
||||||
}
|
}
|
||||||
if (this.prType === 'pr_trip') {
|
if (this.prType === 'pr_trip') {
|
||||||
return { ...base, traveler: this.formData.traveler, destination: this.formData.destination, trip_start: this.formData.trip_start, trip_end: this.formData.trip_end, schedules: this.formData.schedules.map(s => ({ date: s.date, destination: s.destination, task: s.task })), trip_expenses: { ...this.formData.trip_expenses }, trip_expense_total: this.tripExpenseTotal };
|
return { ...base, traveler: this.formData.traveler, destination: this.formData.destination, trip_start: this.formData.trip_start, trip_end: this.formData.trip_end, schedules: this.formData.schedules.map(s => ({ date: s.date, destination: s.destination, task: s.task })), trip_expenses: { ...this.formData.trip_expenses }, trip_expense_total: this.tripExpenseTotal };
|
||||||
|
|||||||
@@ -206,6 +206,20 @@
|
|||||||
<div class="text-sm font-medium mt-0.5">{{ $content['delivery_place'] }}</div>
|
<div class="text-sm font-medium mt-0.5">{{ $content['delivery_place'] }}</div>
|
||||||
</div>
|
</div>
|
||||||
@endif
|
@endif
|
||||||
|
@if(!empty($content['payment_method']))
|
||||||
|
<div>
|
||||||
|
<span class="text-xs text-gray-500">지급방법</span>
|
||||||
|
<div class="text-sm font-medium mt-0.5">
|
||||||
|
@if($content['payment_method'] === 'corporate_card')
|
||||||
|
법인카드
|
||||||
|
@elseif($content['payment_method'] === 'bank_transfer')
|
||||||
|
계좌이체
|
||||||
|
@else
|
||||||
|
{{ $content['payment_method'] }}
|
||||||
|
@endif
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
@endif
|
||||||
</div>
|
</div>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user