update estimate to have remarks
This commit is contained in:
parent
caa4bc2dca
commit
49617c39c4
2 changed files with 19 additions and 3 deletions
|
|
@ -90,7 +90,17 @@
|
|||
<span>Loading available items...</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="remarks-section">
|
||||
<label for="remarks" class="field-label">Remarks</label>
|
||||
<Textarea
|
||||
id="remarks"
|
||||
v-model="formData.remarks"
|
||||
placeholder="Additional notes or instructions for the estimate"
|
||||
:disabled="!isEditable"
|
||||
:rows="6"
|
||||
fluid
|
||||
/>
|
||||
</div>
|
||||
<!-- Items Section -->
|
||||
<div class="items-section">
|
||||
<div class="items-header">
|
||||
|
|
@ -422,6 +432,7 @@ import Button from "primevue/button";
|
|||
import Select from "primevue/select";
|
||||
import Tooltip from "primevue/tooltip";
|
||||
import Drawer from "primevue/drawer";
|
||||
import Textarea from "primevue/textarea";
|
||||
import Api from "../../api";
|
||||
import DataUtils from "../../utils";
|
||||
import { useLoadingStore } from "../../stores/loading";
|
||||
|
|
@ -784,6 +795,7 @@ const saveDraft = async () => {
|
|||
requiresHalfPayment: formData.requiresHalfPayment,
|
||||
projectTemplate: formData.projectTemplate,
|
||||
fromOnsiteMeeting: formData.fromOnsiteMeeting,
|
||||
remarks: formData.remarks,
|
||||
company: company.currentCompany
|
||||
};
|
||||
estimate.value = await Api.createEstimate(data);
|
||||
|
|
@ -1015,6 +1027,7 @@ watch(
|
|||
});
|
||||
}
|
||||
formData.requiresHalfPayment = Boolean(estimate.value.requiresHalfPayment || estimate.value.custom_requires_half_payment);
|
||||
formData.remarks = estimate.value.remarks;
|
||||
// If estimate has fromOnsiteMeeting, fetch bid meeting
|
||||
if (estimate.value.fromOnsiteMeeting) {
|
||||
try {
|
||||
|
|
@ -1172,6 +1185,7 @@ onMounted(async () => {
|
|||
});
|
||||
}
|
||||
formData.requiresHalfPayment = Boolean(estimate.value.requiresHalfPayment || estimate.value.custom_requires_half_payment);
|
||||
formData.remarks = estimate.value.remarks;
|
||||
// If estimate has fromOnsiteMeeting, fetch bid meeting
|
||||
if (estimate.value.fromOnsiteMeeting) {
|
||||
try {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue