Browse Source

涉访涉诉--枚举规范

master
buaixuexideshitongxue 1 month ago
parent
commit
abff6cff9a
  1. 89
      src/components/negative/verify-sfss.vue
  2. 8
      src/views/data/ComplaintCollection.vue

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

@ -136,7 +136,7 @@
}"
>
<el-select v-model="form.checkStatusCode" @change="(val) => handleChangeCheckStatus(val, item)" clearable
<el-select v-model="form.checkStatusCode" @change="handleChangeCheckStatus" clearable
style="width: 280px">
<el-option v-for="item in dict.checkStatus" :value="item.dictValue" :label="item.dictLabel"></el-option>
</el-select>
@ -1571,35 +1571,37 @@ import {getConfinementListAll} from "@/api/work/confinement";
import {timeFormat} from "@/utils/util";
//
const catchSotre = useCatchStore();
const baseDict = catchSotre.getDicts([
"isRectify",
"personType",
"superviseMeasures",
"subjectiveAspect",
"responsibilityType",
"handleResult",
"departHandleResult",
"protectRights",
"accountabilityTarget",
"leadResponsibilityType",
"resolveSituation",
"resolveStatus",
"checkStatus",
"sfssSourceTable",
"sfssTags",
// businessType
"businessType",
])
const dict = computed(() => ({
...baseDict,
...(props.extraDict || {}),
}))
const props = defineProps<{
extraDict?: Record<string, any[]>
}>()
const dict = reactive<Record<string, any[]>>({})
watchEffect(() => {
const base = catchSotre.getDicts([
"isRectify",
"personType",
"superviseMeasures",
"subjectiveAspect",
"responsibilityType",
"handleResult",
"departHandleResult",
"protectRights",
"accountabilityTarget",
"leadResponsibilityType",
"resolveSituation",
"resolveStatus",
"checkStatus",
"sfssSourceTable",
"sfssTags",
"businessType",
// yesNohandleMethodType
"yesNo",
"handleMethodType",
]) || {}
// props / base
Object.assign(dict, base, props.extraDict || {})
})
const negative = inject("negative");
const form = ref({
@ -1806,23 +1808,30 @@ watch(
}
);
function handleChangeCheckStatus(val, item) {
form.value.checkStatusName = dict.checkStatus.filter(
(item) => item.dictValue === val
)[0].dictLabel;
if (val) {
if (val === '1') {
form.value.checkStatus = '1';
} else if (val === '2' || val === '3') {
form.value.checkStatus = '2';
} else if (val === '4' || val === '5') {
form.value.checkStatus = '3';
}
} else {
form.value.checkStatus = '';
function handleChangeCheckStatus(val) {
//
if (!val) {
form.value.checkStatusCode = ''
form.value.checkStatus = ''
form.value.checkStatusName = ''
return
}
// 1
const hit = dict.checkStatus?.find(
(item) => String(item.dictValue) === String(val)
)
form.value.checkStatusName = hit?.dictLabel || ''
// 2 checkStatus
if (val === '1') {
form.value.checkStatus = '1'
} else if (val === '2' || val === '3') {
form.value.checkStatus = '2'
} else if (val === '4' || val === '5') {
form.value.checkStatus = '3'
}
}
function handleChangePolice(police, item) {
item.blameName = police.name;
item.blameIdCode = police.idCode;

8
src/views/data/ComplaintCollection.vue

@ -632,7 +632,8 @@ const storeDict = computed(() =>
"specialSupervision",
"checkStatus",
"sfssSourceTable",
"sfssTags"
"sfssTags",
"accountabilityTarget"
]) || {}
);
@ -743,11 +744,6 @@ const localDict = {
{id: 1, dictLabel: "是", dictValue: "1"},
{id: 2, dictLabel: "否", dictValue: "0"},
],
tagList: [
{id: 1, dictLabel: "紧急", dictValue: "URGENT"},
{id: 2, dictLabel: "一般", dictValue: "NORMAL"},
{id: 3, dictLabel: "重复投诉", dictValue: "REPEAT"},
],
handleMethodType: [
{id: 1, dictLabel: "自办", dictValue: "0"},
{id: 2, dictLabel: "下发", dictValue: "1"},

Loading…
Cancel
Save