From 1f92e42f9bd6fcb98eeb01fd4465c8c41975fe60 Mon Sep 17 00:00:00 2001 From: xzg <4727863@qq.com> Date: Thu, 25 Jan 2024 18:06:17 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=95=86=E9=85=8D=E5=88=B7?= =?UTF-8?q?=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/classify/classify.js | 29 +++ src/option/supervise/supervise.js | 49 ++--- .../turndelivery/deliveryDiscuss.vue | 9 +- src/views/supervise/IndicatorList.vue | 193 ++++++++++++------ src/views/supervise/classify.vue | 11 +- src/views/supervise/management.vue | 168 +++++++++++---- vite.config.js | 4 +- 7 files changed, 324 insertions(+), 139 deletions(-) diff --git a/src/api/classify/classify.js b/src/api/classify/classify.js index dde9bc00..67eac8af 100644 --- a/src/api/classify/classify.js +++ b/src/api/classify/classify.js @@ -44,3 +44,32 @@ export const $_classifyAddChild = (data) => { data }) } +// 指标管理编辑 +export const $_classifupdateChild = (data) => { + return request({ + url: '/api/logpm-supervise/classify/updateChild', + method: 'post', + data + }) +} + + + +// 指标列表list +export const $_findIndicatorsList = (data) => { + return request({ + url: '/api/logpm-supervise/indicators/findIndicatorsList', + method: 'post', + data + }) +} + + +// 指标列表查询详情 +export const $_findIndicatorsDetail = (data) => { + return request({ + url: '/api/logpm-supervise/indicators/findIndicatorsDetail', + method: 'post', + data + }) +} \ No newline at end of file diff --git a/src/option/supervise/supervise.js b/src/option/supervise/supervise.js index 6b6001a4..f5f28ac7 100644 --- a/src/option/supervise/supervise.js +++ b/src/option/supervise/supervise.js @@ -90,18 +90,7 @@ export const IndicatorColumnList = [ fixed: true, }, { - prop: 'name', - label: '指标编号', - type: 1, - values: '', - width: '130', - checkarr: [], - fixed: false, - sortable: true, - head: false, - }, - { - prop: 'description', + prop: 'classifyName', label: '指标名称', type: 1, values: '', @@ -112,7 +101,7 @@ export const IndicatorColumnList = [ head: false, }, { - prop: 'description', + prop: 'parentClassifyName', label: '指标分类', type: 1, values: '', @@ -124,7 +113,7 @@ export const IndicatorColumnList = [ }, { - prop: 'createTime', + prop: 'assessDeptName', label: '考核部门', type: 1, values: '', @@ -135,7 +124,7 @@ export const IndicatorColumnList = [ head: false, }, { - prop: 'createTime', + prop: 'point', label: '考核分数', type: 1, values: '', @@ -146,7 +135,7 @@ export const IndicatorColumnList = [ head: false, }, { - prop: 'createTime', + prop: 'objectionRemark', label: '描述', type: 1, values: '', @@ -157,9 +146,9 @@ export const IndicatorColumnList = [ head: false, }, { - prop: 'createTime', - label: '照片', - type: 1,//7 + prop: 'assessUserName', + label: '考核人', + type: 1, values: '', width: '130', checkarr: [], @@ -169,7 +158,7 @@ export const IndicatorColumnList = [ }, { prop: 'createTime', - label: '附件', + label: '考评时间', type: 1, values: '', width: '130', @@ -179,8 +168,8 @@ export const IndicatorColumnList = [ head: false, }, { - prop: 'createTime', - label: '考核人', + prop: 'indicatorsStatus', + label: '指标状态', type: 1, values: '', width: '130', @@ -189,9 +178,10 @@ export const IndicatorColumnList = [ sortable: true, head: false, }, + { - prop: 'createTime', - label: '考评事件', + prop: 'isObjection', + label: '是否存在异议',//1 表示提交 2 表示审核 通过 3 表示审核失败 type: 1, values: '', width: '130', @@ -200,6 +190,17 @@ export const IndicatorColumnList = [ sortable: true, head: false, }, + // { + // prop: 'objectionRemark', + // label: '异议备注', + // type: 1, + // values: '', + // width: '130', + // checkarr: [], + // fixed: false, + // sortable: true, + // head: false, + // }, { prop: '', label: '操作', diff --git a/src/views/distribution/turndelivery/deliveryDiscuss.vue b/src/views/distribution/turndelivery/deliveryDiscuss.vue index 9a16d08e..27218cd6 100644 --- a/src/views/distribution/turndelivery/deliveryDiscuss.vue +++ b/src/views/distribution/turndelivery/deliveryDiscuss.vue @@ -2167,7 +2167,7 @@ const PackageFn = async () => { }; // 查看包件事件 -const ViewEvent = (val,index) => { +function ViewEvent (val,index) { console.log(index,'下标') wrapData.value = []; loading.value = true; //开启加载效果 @@ -2322,8 +2322,11 @@ const isZeroNumber = val => { }; // 刷新功能触发事件 const refresh = () => { - onLoad(); - // loading.value = !loading.value; + if(!wrapLoading.value){ + AddInfo() + }else{ + ViewEvent(Packageow.value) + } }; // 搜索展开功能 const search = () => { diff --git a/src/views/supervise/IndicatorList.vue b/src/views/supervise/IndicatorList.vue index 6fc8845c..98f6a4a3 100644 --- a/src/views/supervise/IndicatorList.vue +++ b/src/views/supervise/IndicatorList.vue @@ -8,40 +8,50 @@ -
- - - - - +
+ + + + + - - - - - + + + + + - - - -
+ + + +
查询 @@ -128,12 +138,12 @@ class="el_listForm" > - + - + - + - + @@ -157,13 +167,30 @@ - + - + + + + + + + + + -
+ + + + + + @@ -208,16 +246,19 @@ import { $_newlyadded, $_newlyremove, $_classifyAddChild, + $_findIndicatorsList, + $_findIndicatorsDetail, } from '@/api/classify/classify'; const loadingclassification = ref(false); //指标分类加载效果 const classificationdata = ref([]); //指标分类数据 const current = ref(1); //当前页 const total = ref(10); //总页数 +const IndicatorEditing = ref(false); //编辑弹窗 const pageSize = ref(50); const lassificationform = ref({}); //分类表单 const title = ref(true); //标题 const EditID = ref(true); //编辑需要的ID -const newlyAdded = ref(true); //新增弹窗 +const newlyAdded = ref(false); //新增弹窗 const loadingAddPopup = ref(false); //弹窗加载 const selectionList = ref([]); //选中数据 const searchFrom = ref({}); //搜索表单 @@ -236,24 +277,20 @@ const onLoad = () => { let data = { current: current.value, size: pageSize.value, - isPid: 1, }; loadingclassification.value = true; //开启加载效果 - $_Getclassify(data) + $_findIndicatorsList(data) .then(res => { console.log(res); if (res.data.data.records) { classificationdata.value = res.data.data.records; //数据 - } else { } - total.value = res.data.data.total; //总页数 }) .catch(res => {}) .finally(() => { loadingclassification.value = false; //开启加载效果 }); - classificationdata.value = [{}]; }; onLoad(); // 页码 @@ -264,9 +301,7 @@ const currentChange = () => {}; const ClassificationDditing = val => { EditID.value = val.row.id; //编辑需要的ID let data = val.row; - lassificationform.value.name = data.name; //分类名称 - lassificationform.value.description = data.description; //分类描述 - lassificationform.value.remark = data.remark; //分类备注 + IndicatorEditing.value = true; //编辑弹窗展开 }; // 分类新增按钮 @@ -337,7 +372,6 @@ const CategoryDeletion = val => { }; // 新增/编辑分类 const newlyAddedFn = () => { - loadingAddPopup.value = true; //开启弹窗加载效果 loadingclassification.value = true; //开启加载效果 let data = { ...lassificationform.value, @@ -379,11 +413,42 @@ const searchHide = () => { // 查看信息 const ClassificationIndicatorView = val => { console.log(val, '查看信息'); + newlyAdded.value = true; //开启弹窗 + $_findIndicatorsDetail({ id: val.row.id }) + .then(res => { + loadingAddPopup.value = true; //开启弹窗加载效果 + console.log(res, '查看信息返回值'); + lassificationform.value = res.data.data; //赋值给弹窗表单 + // 指标状态1 表示提交 2 表示审核 通过 3 表示审核失败 + if(res.data.data. indicatorsStatus== 1){ + lassificationform.value.isObjection='提交' + }else if(res.data.data.isObjection == 2){ + lassificationform.value.isObjection='审核通过' + }else if(res.data.data.isObjection == 3){ + lassificationform.value.isObjection='审核失败' + } + // 是否存在异议 0 表示没有1表示存在 + if(res.data.data.isObjection ){ + lassificationform.value.isObjection='没有' + }else{ + + }lassificationform.value.isObjection='存在' + if (res.data.data.pictures.length) { + // 图片 + res.data.data.pictures.forEach(res => { + srcList.value.push(res.url); + }); + } + }) + .catch(res => {}) + .finally(() => { + loadingAddPopup.value = false; //关闭弹窗加载效果 + }); }; +// 编辑信息 +const IndicatorEditingFn = () => {}; // 查询搜索 -const searchChange=()=>{ - -} +const searchChange = () => {}; diff --git a/src/views/supervise/classify.vue b/src/views/supervise/classify.vue index c6e4f427..cb000c2f 100644 --- a/src/views/supervise/classify.vue +++ b/src/views/supervise/classify.vue @@ -1,9 +1,7 @@