|
@@ -299,6 +299,11 @@
|
|
|
<template #remark="{ row }">
|
|
|
<el-input v-model="row.remark" type="textarea" />
|
|
|
</template>
|
|
|
+ <template #storageTimeValue="{ row }">
|
|
|
+ <el-select v-model="row.storageTimeValue" placeholder="请选择" clearable>
|
|
|
+ <el-option v-for="item in retentionPeriod" :key="item.dictKey" :label="item.dictValue" :value="item.dictKey" />
|
|
|
+ </el-select>
|
|
|
+ </template>
|
|
|
</HcTable>
|
|
|
<template #footer>
|
|
|
<div class="lr-dialog-footer">
|
|
@@ -513,7 +518,7 @@ import { getStoreValue, setStoreValue } from '~src/utils/storage'
|
|
|
import { toPdfPage } from '~uti/btn-auth'
|
|
|
import { getDictionaryBiz } from '~api/other'
|
|
|
import CarrySpotChecksDrawer from './carryDrawer/carrySpotChecksDrawer.vue'
|
|
|
-
|
|
|
+import tasksApi from '~api/tasks/data'
|
|
|
import { useRouter } from 'vue-router'
|
|
|
|
|
|
//变量
|
|
@@ -540,6 +545,7 @@ onMounted(() => {
|
|
|
// getClassIfyList()
|
|
|
getOptions()
|
|
|
setTableColumns()
|
|
|
+ getStoragePeriod()
|
|
|
|
|
|
})
|
|
|
onActivated(() => {
|
|
@@ -1086,6 +1092,22 @@ const batchEditClick = (type) => {
|
|
|
|
|
|
|
|
|
//设置文件表头
|
|
|
+//保管期限
|
|
|
+const retentionPeriod = ref([
|
|
|
+
|
|
|
+])
|
|
|
+const getStoragePeriod = async () => {
|
|
|
+ const { error, code, data } = await tasksApi.queryTaskTypeStatus({
|
|
|
+ typeOrStatus: 'storage_period',
|
|
|
+ })
|
|
|
+ //处理数据
|
|
|
+ if (!error && code === 200) {
|
|
|
+ retentionPeriod.value = getArrValue(data)
|
|
|
+ retentionPeriod.value = retentionPeriod.value.filter(item=>item.dictKey !== '0')
|
|
|
+ } else {
|
|
|
+ retentionPeriod.value = []
|
|
|
+ }
|
|
|
+}
|
|
|
const tableUploadRef = ref(null)
|
|
|
const tableUploadColumn = ref([])
|
|
|
const setTableUploadColumn = (type) => {
|
|
@@ -1093,7 +1115,7 @@ const setTableUploadColumn = (type) => {
|
|
|
tableUploadColumn.value = [
|
|
|
{ key: 'fileNumber', name: '档号', width:160 },
|
|
|
{ key: 'name', name: '案卷题名' },
|
|
|
- { key: 'storageTimeValue', name: '保管期限', width:80 },
|
|
|
+ { key: 'storageTimeValue', name: '保管期限', width:100 },
|
|
|
{ key: 'unit', name: '立卷单位', width:200 },
|
|
|
{ key: 'remark', name: '备注', width:180 },
|
|
|
]
|