refactor: @update messenger expansion
This commit is contained in:
parent
84f5d3b969
commit
911f0cb5a8
1 changed files with 26 additions and 19 deletions
|
|
@ -766,6 +766,32 @@ function goToQuotation(
|
|||
}"
|
||||
:listDocument="product?.document"
|
||||
/>
|
||||
<MessengerExpansion
|
||||
v-if="value._messengerExpansion"
|
||||
:readonly="
|
||||
data.requestDataStatus === RequestDataStatus.Canceled
|
||||
"
|
||||
:step="{
|
||||
step: pageState.currentStep,
|
||||
requestWorkId: value.id || '',
|
||||
}"
|
||||
:id="value.id"
|
||||
:attributes-form="
|
||||
value.stepStatus[pageState.currentStep - 1]
|
||||
"
|
||||
:responsible-area-district-id="
|
||||
data.quotation.customerBranch.districtId
|
||||
"
|
||||
@update-attributes="
|
||||
(opt) => {
|
||||
value.stepStatus[pageState.currentStep - 1] = {
|
||||
...opt,
|
||||
requestWorkId: value.id || '',
|
||||
step: pageState.currentStep,
|
||||
};
|
||||
}
|
||||
"
|
||||
/>
|
||||
<DutyExpansion
|
||||
v-if="value._dutyExpansion"
|
||||
:readonly="
|
||||
|
|
@ -780,25 +806,6 @@ function goToQuotation(
|
|||
value.stepStatus?.[pageState.currentStep - 1]
|
||||
"
|
||||
/>
|
||||
<MessengerExpansion
|
||||
v-if="
|
||||
value._messengerExpansion && value.stepStatus.length !== 0
|
||||
"
|
||||
:readonly="
|
||||
data.requestDataStatus === RequestDataStatus.Canceled
|
||||
"
|
||||
:step="{
|
||||
step: pageState.currentStep,
|
||||
requestWorkId: value.id || '',
|
||||
}"
|
||||
:id="value.id"
|
||||
v-model:attributes-form="
|
||||
value.stepStatus[pageState.currentStep - 1]
|
||||
"
|
||||
:responsible-area-district-id="
|
||||
data.quotation.customerBranch.districtId
|
||||
"
|
||||
/>
|
||||
<FormExpansion
|
||||
v-if="value._formExpansion"
|
||||
:readonly="
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue