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"> style="width: 280px">
<el-option v-for="item in dict.checkStatus" :value="item.dictValue" :label="item.dictLabel"></el-option> <el-option v-for="item in dict.checkStatus" :value="item.dictValue" :label="item.dictLabel"></el-option>
</el-select> </el-select>
@ -1571,35 +1571,37 @@ import {getConfinementListAll} from "@/api/work/confinement";
import {timeFormat} from "@/utils/util"; import {timeFormat} from "@/utils/util";
// //
const catchSotre = useCatchStore(); 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<{ const props = defineProps<{
extraDict?: Record<string, any[]> 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 negative = inject("negative");
const form = ref({ const form = ref({
@ -1806,23 +1808,30 @@ watch(
} }
); );
function handleChangeCheckStatus(val, item) { function handleChangeCheckStatus(val) {
form.value.checkStatusName = dict.checkStatus.filter( //
(item) => item.dictValue === val if (!val) {
)[0].dictLabel; form.value.checkStatusCode = ''
if (val) { form.value.checkStatus = ''
if (val === '1') { form.value.checkStatusName = ''
form.value.checkStatus = '1'; return
} else if (val === '2' || val === '3') { }
form.value.checkStatus = '2'; // 1
} else if (val === '4' || val === '5') { const hit = dict.checkStatus?.find(
form.value.checkStatus = '3'; (item) => String(item.dictValue) === String(val)
} )
} else { form.value.checkStatusName = hit?.dictLabel || ''
form.value.checkStatus = ''; // 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) { function handleChangePolice(police, item) {
item.blameName = police.name; item.blameName = police.name;
item.blameIdCode = police.idCode; item.blameIdCode = police.idCode;

8
src/views/data/ComplaintCollection.vue

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

Loading…
Cancel
Save