Browse Source

涉访涉诉--枚举规范

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

59
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,7 +1571,14 @@ 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([
const props = defineProps<{
extraDict?: Record<string, any[]>
}>()
const dict = reactive<Record<string, any[]>>({})
watchEffect(() => {
const base = catchSotre.getDicts([
"isRectify", "isRectify",
"personType", "personType",
"superviseMeasures", "superviseMeasures",
@ -1587,19 +1594,14 @@ const baseDict = catchSotre.getDicts([
"checkStatus", "checkStatus",
"sfssSourceTable", "sfssSourceTable",
"sfssTags", "sfssTags",
// businessType
"businessType", "businessType",
]) // yesNohandleMethodType
"yesNo",
const dict = computed(() => ({ "handleMethodType",
...baseDict, ]) || {}
...(props.extraDict || {}), // props / base
})) Object.assign(dict, base, props.extraDict || {})
})
const props = defineProps<{
extraDict?: Record<string, any[]>
}>()
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 = ''
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') { if (val === '1') {
form.value.checkStatus = '1'; form.value.checkStatus = '1'
} else if (val === '2' || val === '3') { } else if (val === '2' || val === '3') {
form.value.checkStatus = '2'; form.value.checkStatus = '2'
} else if (val === '4' || val === '5') { } else if (val === '4' || val === '5') {
form.value.checkStatus = '3'; form.value.checkStatus = '3'
}
} else {
form.value.checkStatus = '';
} }
} }
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