移交接收管理
This commit is contained in:
parent
647d3f2e0e
commit
96c1ffab10
|
|
@ -1,10 +1,19 @@
|
|||
import request from '@/utils/request'
|
||||
|
||||
// 移交问题管理列表
|
||||
export function getTransferProblemListApi(params) {
|
||||
// 移交接收管理列表
|
||||
export function getTransferReceiceListApi(params) {
|
||||
return request({
|
||||
url: '/smartArchives/transferProblem/getTransferProblemList',
|
||||
url: '/smartArchives/transferReceice/getTransferReceiceList',
|
||||
method: 'GET',
|
||||
params: params,
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
// 接收查看、进度
|
||||
export function getTransferRecordFilesApi(params) {
|
||||
return request({
|
||||
url: '/smartArchives/transferReceice/getTransferRecordFiles',
|
||||
method: 'GET',
|
||||
params: params,
|
||||
})
|
||||
}
|
||||
|
|
|
|||
|
|
@ -20,9 +20,8 @@
|
|||
<script>
|
||||
import _ from 'lodash'
|
||||
import {
|
||||
addDataClassAPI,
|
||||
updateDataClassAPI,
|
||||
} from '@/api/data-collect/data-class-manage'
|
||||
getTransferRecordFilesApi,
|
||||
} from '@/api/filesTransfer/accept'
|
||||
export default {
|
||||
name: "AcceptRecordList",
|
||||
props: ["width", "dataForm", "title", "disabled", "jumpType", "rowData"],
|
||||
|
|
@ -45,38 +44,39 @@ export default {
|
|||
},
|
||||
methods: {
|
||||
/** 初始化表单数据 */
|
||||
initFormData() {
|
||||
async initFormData() {
|
||||
|
||||
this.tableColumns = [];
|
||||
if (this.jumpType === 'list') {
|
||||
// 移交清单
|
||||
this.tableColumns = [
|
||||
{ prop: 'proName', label: '所属分类' },
|
||||
{ prop: 'singleProName', label: '所属案卷' },
|
||||
{ prop: 'parParentName', label: '所属分类' },
|
||||
{ prop: 'parentName', label: '所属案卷' },
|
||||
{ prop: 'fileName', label: '文件名称' },
|
||||
];
|
||||
this.tableData = [{
|
||||
id: 1,
|
||||
proName: '所属分类',
|
||||
singleProName: '所属案卷',
|
||||
fileName: '文件名称',
|
||||
}];
|
||||
|
||||
} else {
|
||||
// 移交进度
|
||||
this.tableColumns = [
|
||||
{ prop: 'proName', label: '所属分类' },
|
||||
{ prop: 'singleProName', label: '所属案卷' },
|
||||
{ prop: 'createTime', label: '文件名称' },
|
||||
{ prop: 'createTime', label: '进度' },
|
||||
{ prop: 'parParentName', label: '所属分类' },
|
||||
{ prop: 'parentName', label: '所属案卷' },
|
||||
{ prop: 'fileName', label: '文件名称' },
|
||||
{ prop: 'receiveStatus', label: '进度' },
|
||||
];
|
||||
this.tableData = [{
|
||||
id: 1,
|
||||
proName: '所属分类',
|
||||
singleProName: '所属案卷',
|
||||
fileName: '文件名称',
|
||||
createUserName: '操作',
|
||||
progress: '进度',
|
||||
}];
|
||||
|
||||
}
|
||||
|
||||
const transferApplyId = this.rowData.id;
|
||||
const res = await getTransferRecordFilesApi({ transferApplyId });
|
||||
console.log(res);
|
||||
|
||||
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() {
|
||||
|
|
@ -94,11 +94,6 @@ export default {
|
|||
});
|
||||
},
|
||||
|
||||
|
||||
/* 刷新数据 */
|
||||
reloadData() {
|
||||
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
|
|
|||
|
|
@ -25,8 +25,8 @@ export const formLabel = [
|
|||
export const columnsList = [
|
||||
{ t_props: 'proName', t_label: '项目名称' },
|
||||
{ t_props: 'singleProName', t_label: '单项工程名称' },
|
||||
{ t_props: 'singleProName', t_label: '移交时间' },
|
||||
{ t_props: 'createUserName', t_label: '接收单位' },
|
||||
{ t_slot: 't_list', t_label: '移交清单' },
|
||||
{ t_slot: 't_progress', t_label: '移交进度' },
|
||||
{ t_props: 'transferTime', t_label: '移交时间' },
|
||||
{ t_props: 'deptName', t_label: '接收单位',t_width: 250 },
|
||||
{ t_slot: 't_list', t_label: '接收清单' },
|
||||
{ t_slot: 't_progress', t_label: '接收进度' },
|
||||
]
|
||||
|
|
@ -1,8 +1,8 @@
|
|||
<template>
|
||||
<!-- 档案移交申请 -->
|
||||
<!-- 移交接收管理 -->
|
||||
<div class="app-container">
|
||||
<TableModel :formLabel="formLabel" :showOperation="true" :showRightTools="true" ref="recordTableRef"
|
||||
:columnsList="columnsList" :request-api="getTransferApplyListApi">
|
||||
<TableModel :formLabel="formLabel" :showOperation="true" :showRightTools="true" ref="acceptTableRef"
|
||||
:columnsList="columnsList" :request-api="getTransferReceiceListApi">
|
||||
<template #form="{ queryParams }">
|
||||
<el-form-item prop="deptId" style="width: 240px;">
|
||||
<treeselect v-model="queryParams.deptId" :options="treeDataList" placeholder="请选择接收单位" value-key="id"
|
||||
|
|
@ -10,16 +10,12 @@
|
|||
/>
|
||||
</el-form-item>
|
||||
</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 }">
|
||||
<span class="jump" @click="handleTList(data)">查看</span>
|
||||
</template>
|
||||
<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 slot="handle" slot-scope="{ data }">
|
||||
|
|
@ -39,9 +35,8 @@
|
|||
import TableModel from '@/components/TableModel'
|
||||
import { columnsList, formLabel } from './config'
|
||||
import {
|
||||
delTransferApplyApi,
|
||||
getTransferApplyListApi,
|
||||
} from '@/api/filesTransfer/record.js'
|
||||
getTransferReceiceListApi,
|
||||
} from '@/api/filesTransfer/accept.js'
|
||||
import RecordList from './components/recordList'
|
||||
import { encryptWithSM4 } from '@/utils/sm'
|
||||
import Treeselect from "@riophae/vue-treeselect";
|
||||
|
|
@ -59,7 +54,7 @@ export default {
|
|||
return {
|
||||
formLabel,
|
||||
columnsList,
|
||||
getTransferApplyListApi,
|
||||
getTransferReceiceListApi,
|
||||
title: "",
|
||||
isflag: false,
|
||||
row: {},
|
||||
|
|
@ -98,43 +93,23 @@ export default {
|
|||
},
|
||||
/* 搜索操作 */
|
||||
handleQuery() {
|
||||
this.$refs.recordTableRef.getTableList()
|
||||
this.$refs.acceptTableRef.getTableList()
|
||||
},
|
||||
/* 查看移交清单 */
|
||||
/* 查看接收清单 */
|
||||
handleTList(row) {
|
||||
this.title = "移交清单";
|
||||
this.title = "接收清单";
|
||||
this.row = row;
|
||||
this.jumpType = 'list';
|
||||
this.isflag = true;
|
||||
},
|
||||
/* 查看移交进度 */
|
||||
/* 查看接收进度 */
|
||||
handleTProgress(row) {
|
||||
this.title = "移交进度";
|
||||
this.title = "接收进度";
|
||||
this.jumpType = 'progress';
|
||||
this.row = row;
|
||||
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) {
|
||||
switch (status) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue