|
|
|
|
@ -255,7 +255,11 @@ const createHandlePolice = (): HandlePolice => ({
|
|
|
|
|
mobile: "", |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
const createForm = (): VerifySfssForm => ({ |
|
|
|
|
const currentRow = computed(() => sourceNegative?.value?.currentRow || {}); |
|
|
|
|
|
|
|
|
|
const createForm = (): VerifySfssForm => |
|
|
|
|
{ |
|
|
|
|
return { |
|
|
|
|
complaintId: "", |
|
|
|
|
processingStage: STAGE_INITIAL, |
|
|
|
|
caseNumber: "", |
|
|
|
|
@ -269,23 +273,23 @@ const createForm = (): VerifySfssForm => ({
|
|
|
|
|
initWorkDes: "", |
|
|
|
|
initProblemPlan: "", |
|
|
|
|
initVerdict: "", |
|
|
|
|
completionStatus: "", |
|
|
|
|
publicRecognition: "", |
|
|
|
|
completionStatus: currentRow.completionStatus, |
|
|
|
|
publicRecognition: currentRow.publicRecognition, |
|
|
|
|
handlePolices: [createHandlePolice()], |
|
|
|
|
files: [], |
|
|
|
|
blames: [], |
|
|
|
|
blameLeaders: [], |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
; |
|
|
|
|
|
|
|
|
|
const form = ref<VerifySfssForm>(createForm()); |
|
|
|
|
const currentRow = computed(() => sourceNegative?.value?.currentRow || {}); |
|
|
|
|
const isInitialStage = computed(() => form.value.processingStage === STAGE_INITIAL); |
|
|
|
|
|
|
|
|
|
const isInitialStage = computed(() => { |
|
|
|
|
return form.value.processingStage === STAGE_INITIAL |
|
|
|
|
}); |
|
|
|
|
const initialRemainingDuration = computed(() => |
|
|
|
|
Number( |
|
|
|
|
sourceNegative?.value?.remainingDuration ?? |
|
|
|
|
currentRow.value?.remainingDuration ?? |
|
|
|
|
0 |
|
|
|
|
) |
|
|
|
|
currentRow.value?.remainingDuration |
|
|
|
|
); |
|
|
|
|
const showPetitionFields = computed(() => |
|
|
|
|
[ |
|
|
|
|
@ -296,7 +300,6 @@ const showPetitionFields = computed(() =>
|
|
|
|
|
].includes(sourceNegative?.value?.problemSourcesCode) |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
debugger |
|
|
|
|
const negative = computed(() => ({ |
|
|
|
|
...(sourceNegative?.value || {}), |
|
|
|
|
...clone(form.value), |
|
|
|
|
@ -328,18 +331,7 @@ function clone<T>(value: T): T {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
function getStageBySource(row: Record<string, any>) { |
|
|
|
|
const hasInitialReviewData = |
|
|
|
|
Boolean(row?.gwf2) || |
|
|
|
|
Boolean(row?.initWorkDes) || |
|
|
|
|
Boolean(row?.initProblemPlan) || |
|
|
|
|
Boolean(row?.initVerdict); |
|
|
|
|
|
|
|
|
|
return sourceNegative?.value?.checkStatusCode || |
|
|
|
|
sourceNegative?.value?.completionStatus || |
|
|
|
|
row?.completionStatus || |
|
|
|
|
sourceNegative?.value?.publicRecognition || |
|
|
|
|
row?.publicRecognition || |
|
|
|
|
hasInitialReviewData |
|
|
|
|
return row?.gwf3 === '1' |
|
|
|
|
? STAGE_COMPLETION |
|
|
|
|
: STAGE_INITIAL; |
|
|
|
|
} |
|
|
|
|
@ -418,10 +410,10 @@ function mergeVerifyForm(verifyForm: Record<string, any> = {}) {
|
|
|
|
|
currentRow.value?.thirdDepartName || |
|
|
|
|
currentRow.value?.secondDepartName || |
|
|
|
|
""; |
|
|
|
|
|
|
|
|
|
debugger |
|
|
|
|
return { |
|
|
|
|
...verifyForm, |
|
|
|
|
...baseForm, |
|
|
|
|
...verifyForm, |
|
|
|
|
complaintId, |
|
|
|
|
involveDepartId, |
|
|
|
|
involveDepartName, |
|
|
|
|
|