|
|
@ -745,7 +745,6 @@ export default { |
|
|
this.formPreviewData.map(item => { |
|
|
this.formPreviewData.map(item => { |
|
|
if (item.isAutomatic) { |
|
|
if (item.isAutomatic) { |
|
|
this.$set(this.addOrUpdateForm, item.fieldName, string) |
|
|
this.$set(this.addOrUpdateForm, item.fieldName, string) |
|
|
|
|
|
|
|
|
// 处理 archive_year 字段的验证 |
|
|
// 处理 archive_year 字段的验证 |
|
|
if (item.fieldName === 'archive_no') { |
|
|
if (item.fieldName === 'archive_no') { |
|
|
const rule = {} |
|
|
const rule = {} |
|
|
@ -1281,6 +1280,7 @@ export default { |
|
|
if (this.archivesType === 'add') { |
|
|
if (this.archivesType === 'add') { |
|
|
this.addOrUpdateForm.fonds_affiliation = this.selectedCategory.fondsId |
|
|
this.addOrUpdateForm.fonds_affiliation = this.selectedCategory.fondsId |
|
|
} |
|
|
} |
|
|
|
|
|
const originalArchiveNo = this.addOrUpdateForm.archive_no |
|
|
|
|
|
|
|
|
console.log('this.addOrUpdateForm', this.addOrUpdateForm) |
|
|
console.log('this.addOrUpdateForm', this.addOrUpdateForm) |
|
|
this.$nextTick(() => { |
|
|
this.$nextTick(() => { |
|
|
@ -1288,6 +1288,7 @@ export default { |
|
|
|
|
|
|
|
|
this.$refs[formName].validate((valid, fields) => { |
|
|
this.$refs[formName].validate((valid, fields) => { |
|
|
if (valid) { |
|
|
if (valid) { |
|
|
|
|
|
this.addOrUpdateForm.archive_no = originalArchiveNo |
|
|
delete this.addOrUpdateForm.id |
|
|
delete this.addOrUpdateForm.id |
|
|
this.$emit('formLoadingShow', true) |
|
|
this.$emit('formLoadingShow', true) |
|
|
// 预归档库 |
|
|
// 预归档库 |
|
|
|