From fcc8356521164e304bbc2eb0d818dbc8233b3080 Mon Sep 17 00:00:00 2001 From: pengwei Date: Fri, 4 Jul 2025 17:10:53 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E7=9D=A3=E5=AF=9F=E4=BB=BB=E5=8A=A1?= =?UTF-8?q?=E5=8F=91=E5=B8=83=EF=BC=88=E5=90=88=E5=B9=B6=E6=94=B9=E9=80=A0?= =?UTF-8?q?=20+=20=E9=87=8D=E7=82=B9=E4=BA=BA=E5=91=98=E7=9D=A3=E5=AF=9F?= =?UTF-8?q?=E5=BC=80=E5=8F=91=EF=BC=88=E9=9D=9E=E8=A1=A8=E5=8D=95=EF=BC=89?= =?UTF-8?q?=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/mobileSupervision/Sampling.ts | 35 + src/api/mobileSupervision/inspection.ts | 2 +- src/api/mobileSupervision/selfexamination.ts | 12 +- src/api/mobileSupervision/taskManagement.ts | 71 + src/api/mobileSupervision/testingAlcohol.ts | 11 +- src/components/data/gab-replenish-lead.vue | 116 + src/components/data/gab-replenish.vue | 13 +- src/components/data/gj-replenish-lead.vue | 115 + src/components/data/gj-replenish.vue | 8 +- src/components/depart-tree-select.vue | 9 +- src/components/file/upload.vue | 9 +- src/components/police-picker.vue | 7 +- src/style/element.scss | 5 +- src/views/data/Gabxf.vue | 11 +- src/views/data/Gjxf.vue | 12 +- .../datav/subonedatav/SubOneSceneInsp.vue | 6 +- .../datav/subonedatav/SubOneVideoInsp.vue | 4 +- src/views/mobileSupervise/Inspection.vue | 2085 ++++++++++++++--- src/views/mobileSupervise/Inspection2.vue | 454 ++++ src/views/mobileSupervise/Sampling.vue | 783 +++++++ src/views/mobileSupervise/Selfexamination.vue | 3 +- src/views/mobileSupervise/TestingAlcohol.vue | 4 +- 22 files changed, 3380 insertions(+), 395 deletions(-) create mode 100644 src/api/mobileSupervision/Sampling.ts create mode 100644 src/api/mobileSupervision/taskManagement.ts create mode 100644 src/components/data/gab-replenish-lead.vue create mode 100644 src/components/data/gj-replenish-lead.vue create mode 100644 src/views/mobileSupervise/Inspection2.vue create mode 100644 src/views/mobileSupervise/Sampling.vue diff --git a/src/api/mobileSupervision/Sampling.ts b/src/api/mobileSupervision/Sampling.ts new file mode 100644 index 0000000..2f07ed6 --- /dev/null +++ b/src/api/mobileSupervision/Sampling.ts @@ -0,0 +1,35 @@ +import request from "@/api/request"; + +/** + * 获取人员抽检表单 + * */ +export function selectListData(query){ + return request.get({ + url:'/sampling', + query + }) +} + +/** + * 生成抽检人员名单 + * */ +export function getSamplingPoliceData(body){ + return request.post({ + url:'/sampling/postSamplingPolice', + body + }) +} + +//提交抽检规则 +export function addOrUpData(body){ + return request.post({ + url:'/sampling', + body + }) +} + +export function delSampling(id){ + return request.del({ + url: `/sampling/${id}` + }) +} diff --git a/src/api/mobileSupervision/inspection.ts b/src/api/mobileSupervision/inspection.ts index 512d338..216691e 100644 --- a/src/api/mobileSupervision/inspection.ts +++ b/src/api/mobileSupervision/inspection.ts @@ -19,4 +19,4 @@ export function listInspectionProblems(taskId, query) { url: `/task/inspection/${taskId}/problem`, query }); -} \ No newline at end of file +} diff --git a/src/api/mobileSupervision/selfexamination.ts b/src/api/mobileSupervision/selfexamination.ts index 4c4e480..f41f08a 100644 --- a/src/api/mobileSupervision/selfexamination.ts +++ b/src/api/mobileSupervision/selfexamination.ts @@ -19,4 +19,14 @@ export function addSelfexamination(body) { url: '/task/selfexamination', body }); -} \ No newline at end of file +} + +/** + * 获取所队自查-督察问题 + * */ +export function getSelfexaminationProblem(id,query){ + return request.get({ + url:`/task/selfexamination/${id}/problem`, + query + }) +} diff --git a/src/api/mobileSupervision/taskManagement.ts b/src/api/mobileSupervision/taskManagement.ts new file mode 100644 index 0000000..462ca38 --- /dev/null +++ b/src/api/mobileSupervision/taskManagement.ts @@ -0,0 +1,71 @@ +import request from "@/api/request"; + +/** + * 查询列表数据 + * */ +export function getListFun(query){ + return request.get({ + url: '/task/management', + query + }); +} + + +/** + * 录入任务 + * */ +export function addTaskManagement(body) { + return request.post({ + url: '/task/management/addTaskManagement', + body + }); +} + +/** + * 删除督察任务 + * */ +export function delTaskManagement(id){ + return request.del({ + url:`/task/management/${id}` + }) +} + + +/** + * 查询详情 + * */ +export function getTaskManagementDetail(id){ + return request.get({ + url:`/task/management/${id}` + }) +} + +/** + * 获取单位信息 + * */ +export function getDepartByIds(query){ + return request.get({ + url:'/depart/getDepartByIds', + query + }) +} + +/** + * 导入数据(禁酒督察人员) + * */ +export function importTemperancePolice(body){ + return request.post({ + url: '/task/management/import', + body + }); +} + +/** + * 导入数据(重点督察人员) + * */ +export function importSupRiskPersonal(body){ + return request.post({ + url:'/task/management/importSupRiskPersonal', + body + }) +} diff --git a/src/api/mobileSupervision/testingAlcohol.ts b/src/api/mobileSupervision/testingAlcohol.ts index 269593c..0602b02 100644 --- a/src/api/mobileSupervision/testingAlcohol.ts +++ b/src/api/mobileSupervision/testingAlcohol.ts @@ -21,6 +21,15 @@ export function listTestingAlcohol(query) { }); } +/** + * 查询禁酒督察详情 + * */ +export function TestingAlcoholDetail(taskId) { + return request.get({ + url: `/task/testingAlcohol/getDetail/${taskId}`, + }); +} + export function listTestingAlcoholPeoples(taskId, query) { return request.get({ url: `/task/testingAlcohol/${taskId}/people`, @@ -33,4 +42,4 @@ export function importTestingAlcoholPeople(body) { url: `/task/testingAlcohol/importPeople`, body }); -} \ No newline at end of file +} diff --git a/src/components/data/gab-replenish-lead.vue b/src/components/data/gab-replenish-lead.vue new file mode 100644 index 0000000..b065f4b --- /dev/null +++ b/src/components/data/gab-replenish-lead.vue @@ -0,0 +1,116 @@ + + + + + diff --git a/src/components/data/gab-replenish.vue b/src/components/data/gab-replenish.vue index 042ed8f..b065f4b 100644 --- a/src/components/data/gab-replenish.vue +++ b/src/components/data/gab-replenish.vue @@ -9,19 +9,20 @@ const dialogTitle = ref("公安部信访集访导入") const {replenishType} = defineProps({ replenishType:{ type: String, - defalut: 1 + defalut: '1' } }) const emit=defineEmits(['success','close']) //监听导入类型 watch(()=>replenishType,()=>{ fileList.value=[] - if (replenishType === 1){ + if (replenishType == 1){ dialogTitle.value='公安部信访集访导入' }else{ dialogTitle.value='公安部信访领导接访导入' } -}) + console.log('replenishType',replenishType) +},{deep:true,immediate:true}) /** * 上传文件 @@ -32,7 +33,7 @@ const handleNext = async ()=>{ formData.append("file", fileList.value[fileList.value.length - 1].raw); loading.value = true; try { - if (replenishType === 1){ + if (replenishType == 1){ await replenishExcelGab(formData); }else{ await replenishLedaoExcelGab(formData); @@ -50,7 +51,7 @@ const handleNext = async ()=>{ @@ -177,6 +177,7 @@ function getList() { loading.value = true listPolice(query.value).then((data) => { polices.value = data.records; + console.log('polices',polices) total.value = data.total; loading.value = false }); diff --git a/src/style/element.scss b/src/style/element.scss index 83d4748..ff63293 100644 --- a/src/style/element.scss +++ b/src/style/element.scss @@ -80,5 +80,6 @@ div.el-card { } .el-popper { - max-width: 500px; -} \ No newline at end of file + max-width: 100%; + +} diff --git a/src/views/data/Gabxf.vue b/src/views/data/Gabxf.vue index 819170b..426da65 100644 --- a/src/views/data/Gabxf.vue +++ b/src/views/data/Gabxf.vue @@ -265,7 +265,9 @@ - + { @@ -468,11 +472,12 @@ function handleShowImport() { function handleShowImportReplenish(){ replenishType.value="1" + console.log('replenishType',replenishType.value) replenishShow.value=true } function handleShowldjfReplenish(){ - replenishType.value='2' - replenishShow.value=true + replenishType2.value='2' + replenishShow2.value=true } /** * 补充成功的事件 diff --git a/src/views/data/Gjxf.vue b/src/views/data/Gjxf.vue index c69f5d7..77d5977 100644 --- a/src/views/data/Gjxf.vue +++ b/src/views/data/Gjxf.vue @@ -251,8 +251,12 @@ + - { const getSubOneSupervisionNotifyCountData = async (departId, times) => { const res = await getSubOneSupervisionNotifyCount(departId, times) Object.assign(overview.value, { - correctionRate: Number(res.overview.rectifyRate), + correctionRate: Number(res.overview.completedRate), supervisionNotifyPreTotal: Number(res.overview.personNumber), - supervisionNotifyChangingTotal: Number(res.overview.rectifingNumber), - supervisionNotifyChangedTotal: Number(res.overview.rectifedNumber), + supervisionNotifyChangingTotal: Number(res.overview.processingNumber), + supervisionNotifyChangedTotal: Number(res.overview.completedNumber), supervisionNotifyTotal: Number(res.overview.problemNumber), supervisionNotifyOrgTotal: Number(res.overview.departNumber), }); diff --git a/src/views/datav/subonedatav/SubOneVideoInsp.vue b/src/views/datav/subonedatav/SubOneVideoInsp.vue index cb72d5f..30295fa 100644 --- a/src/views/datav/subonedatav/SubOneVideoInsp.vue +++ b/src/views/datav/subonedatav/SubOneVideoInsp.vue @@ -53,7 +53,7 @@ ref="subOneVideoProRank" > - + - + -
-
- - - - - - - - - - - - - - - - - - - - - -
- - - 发布任务 -
- - - 查询 - 重置 -
-
-
-
- - - - +
+ + + + + + + + + + + - - - - - - - - - - - - - - + + + + + +
+ + + 发布任务 + +
+ + + 查询 + + 重置
-
- - -
-
+
+ +
+ + - - - + + + + + + + + + + + + + + +
+
+ + +
+
+ + + + + - - - + + + -
- -
-
- + + + + + + - - - + + + + + + + - - - - - + + + + + +
+
+
+ + + + + + + + + + + + + + + + + +
+ + {{ item.name }}-{{ item.empNo }} + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 查询 + + +
+ + + + + + + + + +
+ +
+
+
+
+
+
+ + + + + +
+
任务要求
+
+ + +
+ + + +
+
+
+
自查内容
+
+ 添加自查内容 +
+
+
+
+
+
自查内容{{ index + 1 }}
+
+ 删除 +
+
+
+ +
+
+ +
+
+
+
+
+ + +
+ -
- + + +
+
+ {{ item.name }}-{{ item.idCode }} + +
+ +
+
+ + +
+
+ + + +
+
任务内容
+
+ -
- +
+ -
- - - -
- 发布 -
- - - -
-
- - {{ activeRow.taskName }} + />
-
- - {{ activeRow.supDepartName }} + +
+ + +
+ 发布 + +
+ + + + + + + {{ activeRow.taskName }} + + + {{ + getDictLable( + dict.supervisionType, + activeRow.supervisionType + ) + }} + + + + {{ activeRow.specialType }} + + + + +
+ {{ `${timeFormat(activeRow.times[0])} - ${timeFormat(activeRow.times[1])}` }} +
+
+ + +
+
+
+ + +
+ {{ item.name }}-{{ item.empNo }} +
+
+ + {{ activeRow.samplingTarget }} + + +
+ {{ item.name }}-{{ item.empNo }} + +
+
+ +
+ + + + + + + + +
+ +
+
+
+
+
+
+ +
+ {{ item.shortName }} + +
+
+ +
+
任务要求
-
- - {{ activeRow.persons }} + + +
+
+ +
+
+
+
自查内容
+
+ +
-
- - {{ activeRow.supervisionType }} +
+
+
+
自查内容{{ index + 1 }}
+ +
+
+ {{ item.title }} +
+
+ {{ item.content }} +
+
-
- - {{ activeRow.beginTime }} - - - {{ activeRow.endTime }} +
+ +
+ {{ item.name }}-{{ item.idCode }} + +
+
+
+
+ + +
+
+ + +
+ {{ item.name }}-{{ item.empNo }} +
-
- - {{ activeRow.taskContent }} + +
+
任务内容
+
+ +
+
+
-
- 关闭 -
- - - -
- - - - - - - - -
- - - 查询 - 重置 -
-
-
-
-
- - - - - - - - - - - - + + + + + + + + + + {{ editData.samplingName }} + + + + + + + {{ + getDictLable( + dict.inspectorType, + editData.inspectorType + ) + }} + + + +
+
+ +
+

抽检规则

+
+
+
基础信息
+
+ + + + {{ editData.ageMin }} 至 {{ editData.ageMax }} + + + + + + {{ editData.gender === '1' ? '男' : '女' }} + + + + + + + + + + {{ + getDictLable( + dict.personType, + type + ) + }} + + + + + + + {{ editData.drinkAlcohol === '1' ? '是' : '否' }} + + + +
+ +
+
人员比率
+
+ + + + {{ editData.samplingNum }} 人 + + + + + {{ editData.leadersNumber }}人 + + + + + + + {{ editData.policeRatio }}% + + + + + {{ editData.assistRatio }}% + + + + +
+
抽检规则
+
+ + + + {{ + `${timeFormat(editData.samplingTime[0])} 至 ${timeFormat(editData.samplingTime[1])}` + }} + + + + + {{ editData.samplingNumber }}次 + + + + + + + {{ editData.distanceDay }}天 + + + + + {{ editData.beDuty === '1' ? '是' : '否' }} + + + +
+ +
+
+
被抽检对象
+
+
+ + + + + {{ item.departName }} + + + + + {{ item.value }} + + + + + + + + +
+
+
+
抽检对象名单
+
+
+ +
+
+ +
+ + {{ polices.name }} {{ polices.empNo }} + +
+
+ 导出Excel表 +
+
+
+
+
+ + +
+ + + + + + + + +
+ + + 查询 + + 重置 +
+
+
+
+
+ + + + + + + + + + + + +
+
+ + +
+
+
+ + +
+ + + + + + + + +
+ + + 查询 + + 重置 +
+
+
+
+
+ + + + + + + + + + + + +
+
+ + +
+
+
+ + +
+ + + + + + + + + + + + + + + + 已检测 + 未检测 + + + + + + + 饮酒 + 未饮酒 + + + + +
+ + + 查询 + + 重置 +
+
+
+
+ + + + + + + + + + + + + + + + +
+
+ + +
+
+ + +
+ + + + + + +
+
+ + {{ activePeople.name }}
-
- - +
+ + {{ activePeople.empNo }} +
+
+ + {{ activePeople.idCode }}
+
+ + {{ activePeople.departName }} +
+
+ + + +
+
+ + {{ activePeople.testingResult }} +
+
+ + {{ activePeople.drinkResult }} +
+
+ + {{ activePeople.alcoholContent }} mg/100ml +
+
+ + {{ activePeople.unTestingDesc }} mg/100ml +
+
+
+
测酒现场照片
+ +
+
+
+ 关闭 +
+ + + +
+
+
+ + {{ activeRowData.createTime }} +
+
+ + {{ getDictLable(dict.taskType, activeRowData.taskType) }} +
+
+ + {{ activeRowData.departName }} +
+
+ + {{ activeRowData.peoples }} +
+
+ + {{ activeRowData.problemType || '/' }}
- +
+ + {{ activeRowData.thingDesc }} +
+
+ + {{ getDictLable(dict.distributionState, activeRowData.distributionState) }} +
+
+
+ +
+
+
+ + \ No newline at end of file + +.card_content { + height: 100px; + width: 100%; + display: flex; + justify-content: flex-start; + align-items: center; + flex-direction: row; + flex-wrap: wrap; + margin-top: 10px; +} + +.zcCard { + width: 47%; + padding: 15px 10px; + margin-bottom: 10px; + margin-left: 5px; + background-color: #f1f6ff +} + +.card_title { + margin-bottom: 10px +} + + diff --git a/src/views/mobileSupervise/Inspection2.vue b/src/views/mobileSupervise/Inspection2.vue new file mode 100644 index 0000000..10456d9 --- /dev/null +++ b/src/views/mobileSupervise/Inspection2.vue @@ -0,0 +1,454 @@ + + + diff --git a/src/views/mobileSupervise/Sampling.vue b/src/views/mobileSupervise/Sampling.vue new file mode 100644 index 0000000..60e1b85 --- /dev/null +++ b/src/views/mobileSupervise/Sampling.vue @@ -0,0 +1,783 @@ + + + + + diff --git a/src/views/mobileSupervise/Selfexamination.vue b/src/views/mobileSupervise/Selfexamination.vue index dce590b..9c64ebc 100644 --- a/src/views/mobileSupervise/Selfexamination.vue +++ b/src/views/mobileSupervise/Selfexamination.vue @@ -366,6 +366,7 @@ import { } from "@/api/mobileSupervision/selfexamination"; import feedback from "@/utils/feedback"; import useCatchStore from "@/stores/modules/catch"; +import {listInspectionProblems} from "@/api/mobileSupervision/inspection"; const catchStore = useCatchStore(); const dict = catchStore.getDicts(["supervisionType"]); @@ -461,4 +462,4 @@ h5 { .pepole-container > * { margin-bottom: 8px; } - \ No newline at end of file + diff --git a/src/views/mobileSupervise/TestingAlcohol.vue b/src/views/mobileSupervise/TestingAlcohol.vue index 7dc70c6..fbc3e29 100644 --- a/src/views/mobileSupervise/TestingAlcohol.vue +++ b/src/views/mobileSupervise/TestingAlcohol.vue @@ -740,7 +740,7 @@ async function handleGenPeople() { return } const sum = arr.reduce((a, b) => a + b); - + if (form.value.filterPeopleNumber > sum) { await feedback.confirm(`被抽检对象人数小于抽检人数,是否将抽检人数调整为${sum}?`); form.value.filterPeopleNumber = sum @@ -845,4 +845,4 @@ h5 { height: 50px; display: block; } - \ No newline at end of file +