Browse Source

fix: 修复涉诉涉诉初核办理

feature/tsjb-1.0
wxc 3 weeks ago
parent
commit
d9f9c4ec82
  1. 6
      src/components/negative/dialog.vue
  2. 3
      src/components/negative/verify-description.vue
  3. 44
      src/components/negative/verify-sfss.vue
  4. 8
      src/components/negative/verify.vue

6
src/components/negative/dialog.vue

@ -487,7 +487,7 @@ const displayFlowActions = computed(() => {
if (currentComplaintStage.value === STAGE_INITIAL) { if (currentComplaintStage.value === STAGE_INITIAL) {
return [ return [
{ {
actionKey: FlowActionEnum.SAVE, actionKey: 'SAVE_INITIAL_REVIEW',
buttonLabel: "保存信息", buttonLabel: "保存信息",
buttonType: "primary", buttonType: "primary",
plain: true, plain: true,
@ -640,7 +640,7 @@ async function handleExecute(action, data) {
return; return;
} }
if (action.validateForm) { if (action.validateForm) {
if (action.actionKey !== FlowActionEnum.SAVE) { if (action.actionKey !== FlowActionEnum.SAVE && action.actionKey !== 'SAVE_INITIAL_REVIEW') {
try { try {
data = await componentRef.value.validate(); data = await componentRef.value.validate();
} catch (e) { } catch (e) {
@ -682,7 +682,7 @@ async function handleExecute(action, data) {
verifyEditFlag.value = false; verifyEditFlag.value = false;
} }
try { try {
if (isComplaintReport.value && action.actionKey === FlowActionEnum.SAVE) { if (isComplaintReport.value && action.actionKey === 'SAVE_INITIAL_REVIEW') {
const formData = componentRef.value.getData(); const formData = componentRef.value.getData();
await submitSaveInvolveJson(formData); await submitSaveInvolveJson(formData);
feedback.msgSuccess("操作成功"); feedback.msgSuccess("操作成功");

3
src/components/negative/verify-description.vue

@ -393,7 +393,8 @@ const activeNames = ref([
"involved_department", "involved_department",
"completionAttachment", "completionAttachment",
"completed", "completed",
"mail" "mail",
"initialReview"
]); ]);
let negative = inject("negative"); let negative = inject("negative");
const COMPLAINT_REPORT_SOURCE_TYPE = "2"; const COMPLAINT_REPORT_SOURCE_TYPE = "2";

44
src/components/negative/verify-sfss.vue

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

8
src/components/negative/verify.vue

@ -101,7 +101,7 @@
v-if=" v-if="
problemIsTrue && problemIsTrue &&
form.isRectifyCode === IsRectify.NOT && form.isRectifyCode === IsRectify.NOT &&
(form.checkStatusCode === '1' || form.checkStatusCode === '2' || form.checkStatusCode === '3') problemIsTrue
" "
> >
<el-form-item <el-form-item
@ -143,7 +143,7 @@
message: '请输入未整改原因', message: '请输入未整改原因',
trigger: ['blur'], trigger: ['blur'],
}" }"
v-if=" v-if="problemIsTrue &&
(form.isRectifyCode === '0' || form.isRectifyCode === '2') (form.isRectifyCode === '0' || form.isRectifyCode === '2')
" "
> >
@ -1663,10 +1663,6 @@ const problemIsTrue = computed(() => {
getFormData(); getFormData();
watch(negative, () => {
getFormData();
});
async function getFormData() { async function getFormData() {
form.value = { form.value = {
involveDepartId: negative.value.involveDepartId, involveDepartId: negative.value.involveDepartId,

Loading…
Cancel
Save