Merge branch 'fix/responsible-only-editable' into develop
Some checks failed
Spell Check / Spell Check with Typos (push) Failing after 6s
Some checks failed
Spell Check / Spell Check with Typos (push) Failing after 6s
This commit is contained in:
commit
860b0b8f47
1 changed files with 25 additions and 28 deletions
|
|
@ -812,25 +812,32 @@ function toEmployee(employee: RequestData['employee']) {
|
||||||
</transition>
|
</transition>
|
||||||
</article>
|
</article>
|
||||||
<!-- product -->
|
<!-- product -->
|
||||||
<template v-for="(value, index) in productsList" :key="value">
|
<template
|
||||||
|
v-for="(value, index) in productsList.map((v) =>
|
||||||
|
Object.assign(v, {
|
||||||
|
_readonly:
|
||||||
|
data.requestDataStatus === RequestDataStatus.Canceled ||
|
||||||
|
(responsibleList &&
|
||||||
|
(!!responsibleList[pageState.currentStep]?.user?.length ||
|
||||||
|
!!responsibleList[pageState.currentStep]?.group
|
||||||
|
?.length) &&
|
||||||
|
!responsibleList[pageState.currentStep]?.user.find(
|
||||||
|
(v) => v.id === getUserId(),
|
||||||
|
) &&
|
||||||
|
!responsibleList[pageState.currentStep]?.group.some((v) =>
|
||||||
|
currentUserGroup.includes(v),
|
||||||
|
)),
|
||||||
|
}),
|
||||||
|
)"
|
||||||
|
:key="value"
|
||||||
|
>
|
||||||
<ProductExpansion
|
<ProductExpansion
|
||||||
:request-cancel="value.customerRequestCancel"
|
:request-cancel="value.customerRequestCancel"
|
||||||
:request-cancel-reason="value.customerRequestCancelReason"
|
:request-cancel-reason="value.customerRequestCancelReason"
|
||||||
:reject-request-cancel="value.rejectRequestCancel"
|
:reject-request-cancel="value.rejectRequestCancel"
|
||||||
:reject-request-cancel-reason="value.rejectRequestCancelReason"
|
:reject-request-cancel-reason="value.rejectRequestCancelReason"
|
||||||
:cancel="data.requestDataStatus === RequestDataStatus.Canceled"
|
:cancel="data.requestDataStatus === RequestDataStatus.Canceled"
|
||||||
:readonly="
|
:readonly="value._readonly"
|
||||||
data.requestDataStatus === RequestDataStatus.Canceled ||
|
|
||||||
(responsibleList &&
|
|
||||||
(!!responsibleList[pageState.currentStep]?.user?.length ||
|
|
||||||
!!responsibleList[pageState.currentStep]?.group?.length) &&
|
|
||||||
!responsibleList[pageState.currentStep]?.user.find(
|
|
||||||
(v) => v.id === getUserId(),
|
|
||||||
) &&
|
|
||||||
!responsibleList[pageState.currentStep]?.group.some((v) =>
|
|
||||||
currentUserGroup.includes(v),
|
|
||||||
))
|
|
||||||
"
|
|
||||||
:order-able="value._messengerExpansion"
|
:order-able="value._messengerExpansion"
|
||||||
:installment-info="getInstallmentInfo()"
|
:installment-info="getInstallmentInfo()"
|
||||||
:pay-success="
|
:pay-success="
|
||||||
|
|
@ -868,9 +875,7 @@ function toEmployee(employee: RequestData['employee']) {
|
||||||
>
|
>
|
||||||
<DocumentExpansion
|
<DocumentExpansion
|
||||||
v-if="value._documentExpansion"
|
v-if="value._documentExpansion"
|
||||||
:readonly="
|
:readonly="value._readonly"
|
||||||
data.requestDataStatus === RequestDataStatus.Canceled
|
|
||||||
"
|
|
||||||
ref="refDocumentExpansion"
|
ref="refDocumentExpansion"
|
||||||
:attributes="value.attributes"
|
:attributes="value.attributes"
|
||||||
@change-status="
|
@change-status="
|
||||||
|
|
@ -919,9 +924,7 @@ function toEmployee(employee: RequestData['employee']) {
|
||||||
/>
|
/>
|
||||||
<MessengerExpansion
|
<MessengerExpansion
|
||||||
v-if="value._messengerExpansion"
|
v-if="value._messengerExpansion"
|
||||||
:readonly="
|
:readonly="value._readonly"
|
||||||
data.requestDataStatus === RequestDataStatus.Canceled
|
|
||||||
"
|
|
||||||
:default-messenger="
|
:default-messenger="
|
||||||
value.stepStatus[pageState.currentStep - 1]
|
value.stepStatus[pageState.currentStep - 1]
|
||||||
? undefined
|
? undefined
|
||||||
|
|
@ -946,9 +949,7 @@ function toEmployee(employee: RequestData['employee']) {
|
||||||
/>
|
/>
|
||||||
<DutyExpansion
|
<DutyExpansion
|
||||||
v-if="value._dutyExpansion"
|
v-if="value._dutyExpansion"
|
||||||
:readonly="
|
:readonly="value._readonly"
|
||||||
data.requestDataStatus === RequestDataStatus.Canceled
|
|
||||||
"
|
|
||||||
:step="{
|
:step="{
|
||||||
step: pageState.currentStep,
|
step: pageState.currentStep,
|
||||||
requestWorkId: value.id || '',
|
requestWorkId: value.id || '',
|
||||||
|
|
@ -961,9 +962,7 @@ function toEmployee(employee: RequestData['employee']) {
|
||||||
<FormExpansion
|
<FormExpansion
|
||||||
v-if="value._formExpansion"
|
v-if="value._formExpansion"
|
||||||
:request-work-id="value.id"
|
:request-work-id="value.id"
|
||||||
:readonly="
|
:readonly="value._readonly"
|
||||||
data.requestDataStatus === RequestDataStatus.Canceled
|
|
||||||
"
|
|
||||||
:step="{
|
:step="{
|
||||||
step: pageState.currentStep,
|
step: pageState.currentStep,
|
||||||
requestWorkId: value.id || '',
|
requestWorkId: value.id || '',
|
||||||
|
|
@ -976,9 +975,7 @@ function toEmployee(employee: RequestData['employee']) {
|
||||||
<PropertiesExpansion
|
<PropertiesExpansion
|
||||||
:request-list-data="data"
|
:request-list-data="data"
|
||||||
:id="value.id"
|
:id="value.id"
|
||||||
:readonly="
|
:readonly="value._readonly"
|
||||||
data.requestDataStatus === RequestDataStatus.Canceled
|
|
||||||
"
|
|
||||||
:properties-to-show="
|
:properties-to-show="
|
||||||
value.productService.work?.attributes.workflowStep[
|
value.productService.work?.attributes.workflowStep[
|
||||||
pageState.currentStep - 1
|
pageState.currentStep - 1
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue