移交接收管理

This commit is contained in:
cwchen 2025-09-28 16:08:35 +08:00
parent 647d3f2e0e
commit 96c1ffab10
4 changed files with 55 additions and 76 deletions

View File

@ -1,10 +1,19 @@
import request from '@/utils/request' import request from '@/utils/request'
// 移交问题管理列表 // 移交接收管理列表
export function getTransferProblemListApi(params) { export function getTransferReceiceListApi(params) {
return request({ return request({
url: '/smartArchives/transferProblem/getTransferProblemList', url: '/smartArchives/transferReceice/getTransferReceiceList',
method: 'GET', method: 'GET',
params: params, params: params,
}) })
} }
// 接收查看、进度
export function getTransferRecordFilesApi(params) {
return request({
url: '/smartArchives/transferReceice/getTransferRecordFiles',
method: 'GET',
params: params,
})
}

View File

@ -20,9 +20,8 @@
<script> <script>
import _ from 'lodash' import _ from 'lodash'
import { import {
addDataClassAPI, getTransferRecordFilesApi,
updateDataClassAPI, } from '@/api/filesTransfer/accept'
} from '@/api/data-collect/data-class-manage'
export default { export default {
name: "AcceptRecordList", name: "AcceptRecordList",
props: ["width", "dataForm", "title", "disabled", "jumpType", "rowData"], props: ["width", "dataForm", "title", "disabled", "jumpType", "rowData"],
@ -45,38 +44,39 @@ export default {
}, },
methods: { methods: {
/** 初始化表单数据 */ /** 初始化表单数据 */
initFormData() { async initFormData() {
this.tableColumns = []; this.tableColumns = [];
if (this.jumpType === 'list') { if (this.jumpType === 'list') {
// //
this.tableColumns = [ this.tableColumns = [
{ prop: 'proName', label: '所属分类' }, { prop: 'parParentName', label: '所属分类' },
{ prop: 'singleProName', label: '所属案卷' }, { prop: 'parentName', label: '所属案卷' },
{ prop: 'fileName', label: '文件名称' }, { prop: 'fileName', label: '文件名称' },
]; ];
this.tableData = [{
id: 1,
proName: '所属分类',
singleProName: '所属案卷',
fileName: '文件名称',
}];
} else { } else {
// //
this.tableColumns = [ this.tableColumns = [
{ prop: 'proName', label: '所属分类' }, { prop: 'parParentName', label: '所属分类' },
{ prop: 'singleProName', label: '所属案卷' }, { prop: 'parentName', label: '所属案卷' },
{ prop: 'createTime', label: '文件名称' }, { prop: 'fileName', label: '文件名称' },
{ prop: 'createTime', label: '进度' }, { prop: 'receiveStatus', label: '进度' },
]; ];
this.tableData = [{
id: 1, }
proName: '所属分类',
singleProName: '所属案卷', const transferApplyId = this.rowData.id;
fileName: '文件名称', const res = await getTransferRecordFilesApi({ transferApplyId });
createUserName: '操作', console.log(res);
progress: '进度',
}]; if (Array.isArray(res.data) && res.data.length > 0) {
res.data.map(item => {
const obj = {...item,receiveStatus:(item.receiveStatus ?? '0') === '0' ? '进行中' : '已完成'};
this.tableData.push(obj);
})
} }
}, },
closeDialog() { closeDialog() {
@ -94,11 +94,6 @@ export default {
}); });
}, },
/* 刷新数据 */
reloadData() {
}
} }
}; };
</script> </script>

View File

@ -25,8 +25,8 @@ export const formLabel = [
export const columnsList = [ export const columnsList = [
{ t_props: 'proName', t_label: '项目名称' }, { t_props: 'proName', t_label: '项目名称' },
{ t_props: 'singleProName', t_label: '单项工程名称' }, { t_props: 'singleProName', t_label: '单项工程名称' },
{ t_props: 'singleProName', t_label: '移交时间' }, { t_props: 'transferTime', t_label: '移交时间' },
{ t_props: 'createUserName', t_label: '接收单位' }, { t_props: 'deptName', t_label: '接收单位',t_width: 250 },
{ t_slot: 't_list', t_label: '移交清单' }, { t_slot: 't_list', t_label: '接收清单' },
{ t_slot: 't_progress', t_label: '移交进度' }, { t_slot: 't_progress', t_label: '接收进度' },
] ]

View File

@ -1,8 +1,8 @@
<template> <template>
<!-- 档案移交申请 --> <!-- 移交接收管理 -->
<div class="app-container"> <div class="app-container">
<TableModel :formLabel="formLabel" :showOperation="true" :showRightTools="true" ref="recordTableRef" <TableModel :formLabel="formLabel" :showOperation="true" :showRightTools="true" ref="acceptTableRef"
:columnsList="columnsList" :request-api="getTransferApplyListApi"> :columnsList="columnsList" :request-api="getTransferReceiceListApi">
<template #form="{ queryParams }"> <template #form="{ queryParams }">
<el-form-item prop="deptId" style="width: 240px;"> <el-form-item prop="deptId" style="width: 240px;">
<treeselect v-model="queryParams.deptId" :options="treeDataList" placeholder="请选择接收单位" value-key="id" <treeselect v-model="queryParams.deptId" :options="treeDataList" placeholder="请选择接收单位" value-key="id"
@ -10,16 +10,12 @@
/> />
</el-form-item> </el-form-item>
</template> </template>
<template slot="auditStatus" slot-scope="{ data }">
<el-tag size="mini" :type="getStatusType(data.auditStatus)">
{{ getStatusText(data.auditStatus) }}
</el-tag>
</template>
<template slot="t_list" slot-scope="{ data }"> <template slot="t_list" slot-scope="{ data }">
<span class="jump" @click="handleTList(data)">查看</span> <span class="jump" @click="handleTList(data)">查看</span>
</template> </template>
<template slot="t_progress" slot-scope="{ data }"> <template slot="t_progress" slot-scope="{ data }">
<span class="jump" @click="handleTProgress(data)">{{ getProgressStatusText(data.auditStatus) }}</span> <span class="jump" @click="handleTProgress(data)">{{ getProgressStatusText(data.receiveStatus) }}</span>
</template> </template>
<template slot="handle" slot-scope="{ data }"> <template slot="handle" slot-scope="{ data }">
@ -39,9 +35,8 @@
import TableModel from '@/components/TableModel' import TableModel from '@/components/TableModel'
import { columnsList, formLabel } from './config' import { columnsList, formLabel } from './config'
import { import {
delTransferApplyApi, getTransferReceiceListApi,
getTransferApplyListApi, } from '@/api/filesTransfer/accept.js'
} from '@/api/filesTransfer/record.js'
import RecordList from './components/recordList' import RecordList from './components/recordList'
import { encryptWithSM4 } from '@/utils/sm' import { encryptWithSM4 } from '@/utils/sm'
import Treeselect from "@riophae/vue-treeselect"; import Treeselect from "@riophae/vue-treeselect";
@ -59,7 +54,7 @@ export default {
return { return {
formLabel, formLabel,
columnsList, columnsList,
getTransferApplyListApi, getTransferReceiceListApi,
title: "", title: "",
isflag: false, isflag: false,
row: {}, row: {},
@ -98,43 +93,23 @@ export default {
}, },
/* 搜索操作 */ /* 搜索操作 */
handleQuery() { handleQuery() {
this.$refs.recordTableRef.getTableList() this.$refs.acceptTableRef.getTableList()
}, },
/* 查看移交清单 */ /* 查看接收清单 */
handleTList(row) { handleTList(row) {
this.title = "移交清单"; this.title = "接收清单";
this.row = row; this.row = row;
this.jumpType = 'list'; this.jumpType = 'list';
this.isflag = true; this.isflag = true;
}, },
/* 查看移交进度 */ /* 查看接收进度 */
handleTProgress(row) { handleTProgress(row) {
this.title = "移交进度"; this.title = "接收进度";
this.jumpType = 'progress'; this.jumpType = 'progress';
this.row = row; this.row = row;
this.isflag = true; this.isflag = true;
}, },
/** 删除操作 */
handleDelete(row) {
this.$modal.confirm(`是否确认删除数据类型名称为"${row.dataTypeName}"的数据项?`).then(() => {
//
this.$modal.loading("正在删除,请稍候...");
delTransferApplyApi({ id: row.id }).then(res => {
this.$modal.closeLoading();
if (res.code === 200) {
this.$modal.msgSuccess("删除成功");
this.handleQuery();
} else {
this.$modal.msgError(res.msg);
}
}).catch(error => {
this.$modal.closeLoading();
this.$modal.msgError(error);
});
}).catch(() => {
//
});
},
// //
getStatusText(status) { getStatusText(status) {
switch (status) { switch (status) {