fix: quotation custom split
This commit is contained in:
parent
a1a3032775
commit
317aadb0f7
3 changed files with 50 additions and 14 deletions
|
|
@ -113,6 +113,7 @@ const { data: config } = storeToRefs(configStore);
|
|||
const refSelectZoneEmployee = ref<InstanceType<typeof SelectZone>>();
|
||||
const mrz = ref<Awaited<ReturnType<typeof parseResultMRZ>>>();
|
||||
const toggleWorker = ref(true);
|
||||
const tempPaySplitCount = ref(0);
|
||||
const currentQuotationId = ref<string | undefined>(undefined);
|
||||
const date = ref();
|
||||
const preSelectedWorker = ref<Employee[]>([]);
|
||||
|
|
@ -598,6 +599,7 @@ function convertToTable(nodes: Node[]) {
|
|||
quotationFormData.value.paySplitCount = Math.max(
|
||||
...list.map((v) => v.installmentNo || 0),
|
||||
);
|
||||
tempPaySplitCount.value = quotationFormData.value.paySplitCount;
|
||||
|
||||
list.forEach((v) => {
|
||||
v.amount = Math.max(selectedWorker.value.length, 1);
|
||||
|
|
@ -1168,6 +1170,9 @@ const view = ref<View>(View.Quotation);
|
|||
</template>
|
||||
<div class="surface-1 q-pa-md full-width">
|
||||
<ProductItem
|
||||
:installment-input="
|
||||
quotationFormData.payCondition === 'SplitCustom'
|
||||
"
|
||||
:readonly="readonly"
|
||||
:agent-price="agentPrice"
|
||||
:employee-rows="
|
||||
|
|
@ -1223,6 +1228,7 @@ const view = ref<View>(View.Quotation);
|
|||
<QuotationFormInfo
|
||||
:view="view"
|
||||
:installment-no="selectedInstallmentNo"
|
||||
:pay-split-fixed="tempPaySplitCount"
|
||||
v-model:pay-type="quotationFormData.payCondition"
|
||||
v-model:pay-bank="payBank"
|
||||
v-model:pay-split-count="quotationFormData.paySplitCount"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue