@@ -63,14 +67,20 @@
- {{ scope.row[field.fieldName] }}
+
+
+ {{ scope.row[field.fieldName] }}
+
+ {{ scope.row[field.fieldName] }}
-
@@ -129,7 +139,7 @@
+
+
diff --git a/src/views/components/category/PreviewForm.vue b/src/views/components/category/PreviewForm.vue
index caea279..9444976 100644
--- a/src/views/components/category/PreviewForm.vue
+++ b/src/views/components/category/PreviewForm.vue
@@ -15,7 +15,7 @@
(item.fieldName === 'fonds_no' && (isDesFormType === 'arcives' || isDesFormType === 'manageArcives')?
((collectLevel === 1 || (isTitleType === 3 && selectedCategory.arrangeType!== 1) || (isTitleType === 4 && selectedCategory.arrangeType!== 2))?
'disabled-fonds-xm' : 'disabled-fonds') :
- (item.fieldName === 'fonds_no' && (isDesFormType === 'prearchiveLibrary' || isDesFormType === 'mergeFile')?
+ ((item.fieldName === 'fonds_no' && (isDesFormType === 'prearchiveLibrary' || isDesFormType === 'mergeFile') || (item.fieldName === 'doc_department'&& archivesType === 'edit'))?
'disabled-fonds' : '')
)
]"
@@ -34,7 +34,7 @@
:multiple="false"
:class="{ 'select-required-null': item.isSelectRequiredNull }"
:style="{ width: item.editLength+'px'}"
- :disabled="isDisabled|| (item.fieldName === 'fonds_no' && isDesFormType !== 'category') "
+ :disabled="isDisabled|| (item.fieldName === 'fonds_no' && isDesFormType !== 'category') || (item.fieldName === 'doc_department'&& archivesType === 'edit' ) || (item.fieldName === 'reg_no'&& archivesType === 'edit' )"
:validate-event="!isDisabled"
no-options-text="无数据"
@select="selectTree"
@@ -56,7 +56,7 @@
:rows="item.isInputClass === 'textarea' ? 3 : ''"
:class="{'input-popover':(item.isInputClass === 'popover')}"
:style="{ width: item.editLength+'px'}"
- :disabled="isDisabled || (item.fieldName === 'archival_category_code') || (item.fieldName === 'fonds_no' && isDesFormType !== 'category') "
+ :disabled="isDisabled || (item.fieldName === 'archival_category_code') || (item.fieldName === 'fonds_no' && isDesFormType !== 'category') || (item.fieldName === 'doc_department'&& archivesType === 'edit' ) || (item.fieldName === 'reg_no'&& archivesType === 'edit' )"
:validate-event="!isDisabled"
@mousewheel.native.prevent
@DOMMouseScroll.native.prevent
@@ -687,7 +687,7 @@ export default {
})
}
}
- if (this.isDesFormType === 'miodLibrary') {
+ if (this.isDesFormType === 'miodLibrary' && this.archivesType === 'add') {
if (item.fieldName === 'archive_year' || item.fieldName === 'doc_department') {
console.log('111')
this.handleRegNo(item.fieldName, this.addOrUpdateForm[item.fieldName])
@@ -812,7 +812,7 @@ export default {
}
}
}
- if (this.isDesFormType === 'miodLibrary') {
+ if (this.isDesFormType === 'miodLibrary' && this.archivesType === 'add') {
if (this.treeCurrentFiled.fieldName === 'doc_department' || this.treeCurrentFiled.fieldName === 'archive_year') {
this.handleRegNo(this.treeCurrentFiled.fieldName, val.dictionaryCode)
}
@@ -980,10 +980,11 @@ export default {
if (item.fieldName === 'archive_year') {
this.$set(this.addOrUpdateForm, item.fieldName, this.currentYear())
-
- if (this.isDesFormType === 'miodLibrary') {
- this.isRepeatHandle(item)
- }
+ this.$nextTick(() => {
+ if (this.isDesFormType === 'miodLibrary' && this.archivesType === 'add') {
+ this.isRepeatHandle(item)
+ }
+ })
// 封装验证逻辑
const validateArchiveYear = (value) => {
@@ -1037,7 +1038,7 @@ export default {
}
}
- if (item.fieldName === 'doc_department') {
+ if (item.fieldName === 'doc_department' && this.archivesType === 'add') {
if (this.isDesFormType === 'miodLibrary') {
if (this.selectedCategory.isType === 3) {
this.$set(this.addOrUpdateForm, item.fieldName, this.selectedCategory.label)