|
@@ -272,7 +272,7 @@
|
|
|
<!-- 编辑案卷信息 -->
|
|
|
<hc-new-dialog v-model="showUploadModal" :title="editTitle" widths="80vw">
|
|
|
<template #search>
|
|
|
- <el-button hc-btn :disabled="tableCheckedKeysUpload.length <= 0" type="primary" @click="replaceClickCollect">
|
|
|
+ <el-button hc-btn type="primary" @click="replaceClickCollect">
|
|
|
查找替换
|
|
|
</el-button>
|
|
|
</template>
|
|
@@ -282,13 +282,13 @@
|
|
|
:loading="uploadSaveLoading" is-new ui="hc-form-table" is-check @selection-change="uploadTableSelection"
|
|
|
>
|
|
|
<template #name="{ row }">
|
|
|
- <el-input v-model="row.name" :class="row.isFileNumber ? 'is-error' : ''" type="textarea" @input="tableIsInput($event, row, 'name')" />
|
|
|
+ <el-input v-model="row.name" :class="row.isFileNumber ? 'is-error' : ''" type="textarea" :autosize="{ minRows: 2, maxRows: 5 }" @input="tableIsInput($event, row, 'name')" />
|
|
|
</template>
|
|
|
<template #fileNumber="{ row }">
|
|
|
<el-input v-model="row.fileNumber" :class="row.isFileNumber ? 'is-error' : ''" @input="tableIsInput($event, row, 'isFileNumber')" />
|
|
|
</template>
|
|
|
<template #fileName="{ row }">
|
|
|
- <el-input v-model="row.fileName" :class="row.isFileName ? 'is-error' : ''" @input="tableIsInput($event, row, 'isFileName')" />
|
|
|
+ <el-input v-model="row.fileName" :class="row.isFileName ? 'is-error' : ''" type="textarea" @input="tableIsInput($event, row, 'isFileName')" />
|
|
|
</template>
|
|
|
<template v-if="editType === 2" #fileTime="{ row }">
|
|
|
<el-date-picker v-model="row.fileTime" :clearable="false" format="YYYYMMDD" type="date" value-format="YYYYMMDD" />
|
|
@@ -1084,15 +1084,16 @@ const tableUploadColumn = ref([])
|
|
|
const setTableUploadColumn = (type) => {
|
|
|
if (type === 1) {
|
|
|
tableUploadColumn.value = [
|
|
|
- { key: 'fileNumber', name: '档号' },
|
|
|
+ { key: 'fileNumber', name: '档号', width:160 },
|
|
|
{ key: 'name', name: '案卷题名' },
|
|
|
- { key: 'unit', name: '立卷单位' },
|
|
|
- { key: 'remark', name: '备注' },
|
|
|
+ { key: 'storageTimeValue', name: '保管期限', width:80 },
|
|
|
+ { key: 'unit', name: '立卷单位', width:200 },
|
|
|
+ { key: 'remark', name: '备注', width:180 },
|
|
|
]
|
|
|
} else {
|
|
|
tableUploadColumn.value = [
|
|
|
{ key: 'fileNumber', name: '文件编号' },
|
|
|
- { key: 'fileName', name: '文件题名' },
|
|
|
+ { key: 'fileName', name: '文件题名', width:500 },
|
|
|
{ key: 'fileTime', name: '文件日期' },
|
|
|
{ key: 'dutyUser', name: '责任者' },
|
|
|
|
|
@@ -1585,12 +1586,12 @@ const showReplaceModalCollect = ref(false)
|
|
|
const ruleFormCollect = ref({})
|
|
|
const replaceClickCollect = ()=>{
|
|
|
|
|
|
- if (tableCheckedKeysUpload.value.length === 0) {
|
|
|
- window.$message?.warning('请选择需要更新的案卷')
|
|
|
- return
|
|
|
- }
|
|
|
+ // if (tableCheckedKeysUpload.value.length === 0) {
|
|
|
+ // window.$message?.warning('请选择需要更新的案卷')
|
|
|
+ // return
|
|
|
+ // }
|
|
|
// 检查是否有被锁定的案卷
|
|
|
- const lockedArchives = tableCheckedKeysUpload.value.filter(item => item.isLock === 1)
|
|
|
+ const lockedArchives = tableUploadData.value.filter(item => item.isLock === 1)
|
|
|
if (lockedArchives.length > 0) {
|
|
|
window.$message.warning('选择的案卷中包含被锁定的项,无法操作')
|
|
|
return
|
|
@@ -1600,7 +1601,7 @@ const replaceClickCollect = ()=>{
|
|
|
ruleFormCollect.value = {}
|
|
|
}
|
|
|
const saveReplaceCollect = async ()=>{
|
|
|
- const rows = tableCheckedKeysUpload.value
|
|
|
+ const rows = tableUploadData.value
|
|
|
let ids = ''
|
|
|
ids = arrToId(rows)
|
|
|
// 保存前去除空格
|