|
@ -55,13 +55,14 @@ |
|
|
</el-row> |
|
|
</el-row> |
|
|
<el-row v-if="isDesFormType === 'prearchiveLibrary'" class="preview-form-bottom prearch-bottom"> |
|
|
<el-row v-if="isDesFormType === 'prearchiveLibrary'" class="preview-form-bottom prearch-bottom"> |
|
|
<el-col> |
|
|
<el-col> |
|
|
<el-form-item label="电子原件" prop="fileOriginal" class="prearch-upload" :rules="[{ required: true, message: '请上传原文',trigger: 'blur' }]"> |
|
|
|
|
|
<el-input |
|
|
|
|
|
|
|
|
<el-form-item label="电子原件" prop="fileOriginal" class="prearch-upload"> |
|
|
|
|
|
<!-- <el-input |
|
|
v-model="addOrUpdateForm['fileOriginal']" |
|
|
v-model="addOrUpdateForm['fileOriginal']" |
|
|
type="text" |
|
|
type="text" |
|
|
style="width: 446px" |
|
|
style="width: 446px" |
|
|
readonly |
|
|
|
|
|
/> |
|
|
|
|
|
|
|
|
/> --> |
|
|
|
|
|
<p :class="['input-style', fileOriginal === null ? 'error-box' :'']">{{ fileOriginal }}</p> |
|
|
|
|
|
<span v-if="fileOriginal === null" class="error-tip">请上传原文</span> |
|
|
<div class="upload-btn"> |
|
|
<div class="upload-btn"> |
|
|
<input id="upFile" type="file" name="upFile" @change="changeFile($event)"> |
|
|
<input id="upFile" type="file" name="upFile" @change="changeFile($event)"> |
|
|
<el-button size="small" type="primary"><i class="iconfont icon-shangchuan" />上传</el-button> |
|
|
<el-button size="small" type="primary"><i class="iconfont icon-shangchuan" />上传</el-button> |
|
@ -668,6 +669,10 @@ export default { |
|
|
// 动态生成表单 |
|
|
// 动态生成表单 |
|
|
editFormRow() { |
|
|
editFormRow() { |
|
|
this.rules = {} |
|
|
this.rules = {} |
|
|
|
|
|
// if (this.isDesFormType === 'prearchiveLibrary' && this.archivesType === 'add') { |
|
|
|
|
|
// this.$set(this.addOrUpdateForm, 'fileOriginal', null) |
|
|
|
|
|
// } |
|
|
|
|
|
|
|
|
this.formPreviewData.map(item => { |
|
|
this.formPreviewData.map(item => { |
|
|
if (item.isInputClass === 'select') { |
|
|
if (item.isInputClass === 'select') { |
|
|
this.$set(item, 'options', []) |
|
|
this.$set(item, 'options', []) |
|
@ -708,6 +713,14 @@ export default { |
|
|
trigger: item.isInputClass === 'text' ? 'blur' : 'change' |
|
|
trigger: item.isInputClass === 'text' ? 'blur' : 'change' |
|
|
} |
|
|
} |
|
|
]) |
|
|
]) |
|
|
|
|
|
|
|
|
|
|
|
// this.$set(this.rules, 'fileOriginal', [ |
|
|
|
|
|
// { |
|
|
|
|
|
// required: fas, |
|
|
|
|
|
// message: '请上传电子原文', |
|
|
|
|
|
// trigger: 'blur' |
|
|
|
|
|
// } |
|
|
|
|
|
// ]) |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
// 预览界面排序 |
|
|
// 预览界面排序 |
|
@ -747,7 +760,10 @@ export default { |
|
|
if (valid) { |
|
|
if (valid) { |
|
|
// 预归档库 |
|
|
// 预归档库 |
|
|
if (this.isDesFormType === 'prearchiveLibrary') { |
|
|
if (this.isDesFormType === 'prearchiveLibrary') { |
|
|
delete this.addOrUpdateForm.fileOriginal |
|
|
|
|
|
|
|
|
if (this.fileOriginal === null) { |
|
|
|
|
|
return false |
|
|
|
|
|
} |
|
|
|
|
|
// delete this.addOrUpdateForm.fileOriginal |
|
|
const params = { |
|
|
const params = { |
|
|
'id': this.arcId, |
|
|
'id': this.arcId, |
|
|
'ids': null, |
|
|
'ids': null, |
|
@ -762,6 +778,7 @@ export default { |
|
|
this.$message({ message: res.message, type: 'success', offset: 8 }) |
|
|
this.$message({ message: res.message, type: 'success', offset: 8 }) |
|
|
this.$emit('close-dialog') |
|
|
this.$emit('close-dialog') |
|
|
this.crud.refresh() |
|
|
this.crud.refresh() |
|
|
|
|
|
this.fileOriginal = null |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
} else if (this.isDesFormType === 'mergeFile') { |
|
|
} else if (this.isDesFormType === 'mergeFile') { |
|
@ -864,6 +881,7 @@ export default { |
|
|
this.popoverTableData = [] |
|
|
this.popoverTableData = [] |
|
|
this.popoverTableDataClassify = [] |
|
|
this.popoverTableDataClassify = [] |
|
|
this.popoverTableDataFonds = [] |
|
|
this.popoverTableDataFonds = [] |
|
|
|
|
|
|
|
|
done() |
|
|
done() |
|
|
}, |
|
|
}, |
|
|
// 选择附件 |
|
|
// 选择附件 |
|
@ -909,8 +927,10 @@ export default { |
|
|
} |
|
|
} |
|
|
const arrayUpload = [] |
|
|
const arrayUpload = [] |
|
|
arrayUpload.push(json) |
|
|
arrayUpload.push(json) |
|
|
// this.addOrUpdateForm.fileOriginal = this.fileNames |
|
|
|
|
|
this.$set(this.addOrUpdateForm, 'fileOriginal', this.fileNames) |
|
|
|
|
|
|
|
|
this.fileOriginal = this.fileNames |
|
|
|
|
|
// this.$set(this.addOrUpdateForm, 'fileOriginal', this.fileNames) |
|
|
|
|
|
console.log('ddd', this.fileOriginal) |
|
|
|
|
|
|
|
|
this.fileJsonString = JSON.stringify(arrayUpload) |
|
|
this.fileJsonString = JSON.stringify(arrayUpload) |
|
|
}, |
|
|
}, |
|
|
// 将上传的图片转为base64 |
|
|
// 将上传的图片转为base64 |
|
@ -1057,10 +1077,41 @@ export default { |
|
|
|
|
|
|
|
|
.prearch-upload{ |
|
|
.prearch-upload{ |
|
|
margin-right: 0 !important; |
|
|
margin-right: 0 !important; |
|
|
|
|
|
::v-deep .el-form-item__label{ |
|
|
|
|
|
position: relative; |
|
|
|
|
|
&::before{ |
|
|
|
|
|
position: absolute; |
|
|
|
|
|
top: -2px; |
|
|
|
|
|
right: 70px; |
|
|
|
|
|
content: "*"; |
|
|
|
|
|
font-size: 10px; |
|
|
|
|
|
color: #ff4949; |
|
|
|
|
|
font-style: normal; |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
::v-deep .el-form-item__content{ |
|
|
::v-deep .el-form-item__content{ |
|
|
|
|
|
position: relative; |
|
|
width: 540px !important; |
|
|
width: 540px !important; |
|
|
display: flex; |
|
|
display: flex; |
|
|
justify-content: space-between; |
|
|
justify-content: space-between; |
|
|
|
|
|
.input-style{ |
|
|
|
|
|
width: 500px; |
|
|
|
|
|
height: 34px; |
|
|
|
|
|
line-height: 34px; |
|
|
|
|
|
padding: 0 20px; |
|
|
|
|
|
border: 1px solid #e6e8ed; |
|
|
|
|
|
border-radius: 3px; |
|
|
|
|
|
&.error-box{ |
|
|
|
|
|
border-color: #ed4a41; |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
.error-tip{ |
|
|
|
|
|
position: absolute; |
|
|
|
|
|
left: 0; |
|
|
|
|
|
bottom: -26px; |
|
|
|
|
|
font-size: 12px; |
|
|
|
|
|
color: #ff4949; |
|
|
|
|
|
} |
|
|
.upload-btn{ |
|
|
.upload-btn{ |
|
|
position: relative; |
|
|
position: relative; |
|
|
width:96px; |
|
|
width:96px; |
|
|