|
|
@ -100,7 +100,7 @@ |
|
|
|
<div v-if="allFieldData.length === 0 && allCorrField.length === 0" class="empty-data" /> |
|
|
|
</div> |
|
|
|
<div slot="footer" class="dialog-footer"> |
|
|
|
<el-button type="text" @click="batchVisible = false">取消</el-button> |
|
|
|
<el-button type="text" @click="handleClose">取消</el-button> |
|
|
|
<el-button type="primary" @click="handleComfirmBatchToFile">确定</el-button> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -172,7 +172,8 @@ export default { |
|
|
|
leftLoading: false, |
|
|
|
rightLoading: false, |
|
|
|
isCorrField: true, |
|
|
|
allCorrField: [] |
|
|
|
allCorrField: [], |
|
|
|
isTest: false |
|
|
|
} |
|
|
|
}, |
|
|
|
watch: { |
|
|
@ -217,6 +218,7 @@ export default { |
|
|
|
this.allFieldData = [] |
|
|
|
this.allCorrField = [] |
|
|
|
this.isCorrField = true |
|
|
|
this.isTest = false |
|
|
|
}, |
|
|
|
// 目标门类 |
|
|
|
getCategoryDataTree() { |
|
|
@ -290,7 +292,23 @@ export default { |
|
|
|
}) |
|
|
|
}, |
|
|
|
handleSelectCategory(val) { |
|
|
|
console.log(val) |
|
|
|
this.selectedCategoryName = val.cnName |
|
|
|
this.form.categoryId = val.id |
|
|
|
this.batchCategory = val |
|
|
|
// this.getArchivesScopeByCategoryId() |
|
|
|
const params = { |
|
|
|
'categoryId': this.form.categoryId |
|
|
|
} |
|
|
|
FetchArchivesScopeByCategoryId(params).then(res => { |
|
|
|
if (Array.isArray(res) && res.length === 1) { |
|
|
|
this.form.scope = res[0].scopeName |
|
|
|
} else { |
|
|
|
this.form.scope = null |
|
|
|
console.log('有多个“归档范围”') |
|
|
|
} |
|
|
|
this.getCheckRepeat() |
|
|
|
}) |
|
|
|
}, |
|
|
|
// 归档范围选择 |
|
|
|
selectScope() { |
|
|
@ -337,6 +355,7 @@ export default { |
|
|
|
this.selectStatus = [] |
|
|
|
this.allFieldData = [] |
|
|
|
this.form.ruleName = res.id |
|
|
|
|
|
|
|
this.getDetailsByDocumentIdAndCategoryId() |
|
|
|
} |
|
|
|
this.fieldLoading = false |
|
|
@ -346,14 +365,30 @@ export default { |
|
|
|
selectChangeFiedType(index) { |
|
|
|
this.options.forEach((item) => { |
|
|
|
if (this.selectStatus[index].fiedType === 2) { |
|
|
|
if (!this.isCorrField) { |
|
|
|
this.selectStatus.splice(index, 1, { mode: false, fiedType: this.selectStatus[index].fiedType, value: this.selectStatus[index].fiedType === 1 ? this.selectStatus[index].value : this.allCorrField[index].isDefaultValue, field: item, isInput: item.isInput }) |
|
|
|
} else { |
|
|
|
this.selectStatus.splice(index, 1, { mode: false, fiedType: this.selectStatus[index].fiedType, value: this.allFieldData[index].categoryFieldId.isDefaultValue, field: item, isInput: item.isInput }) |
|
|
|
} |
|
|
|
} else { |
|
|
|
if (!this.isCorrField) { |
|
|
|
this.isTest = true |
|
|
|
} else { |
|
|
|
this.isTest = false |
|
|
|
} |
|
|
|
this.selectStatus.splice(index, 1, { mode: true, fiedType: this.selectStatus[index].fiedType, value: '', field: item, isInput: item.isInput }) |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
selectChange(index) { |
|
|
|
this.options.forEach((item) => { |
|
|
|
if (!this.isCorrField && this.allCorrField[index].isDefaultValue !== '') { |
|
|
|
if (this.isTest) { |
|
|
|
this.selectStatus.splice(index, 1, { mode: false, fiedType: 1, value: this.selectStatus[index].value, field: item, isInput: item.isInput }) |
|
|
|
} else { |
|
|
|
this.selectStatus.splice(index, 1, { mode: false, fiedType: 2, value: this.allCorrField[index].isDefaultValue === '' ? this.selectStatus[index].value : this.allCorrField[index].isDefaultValue, field: item, isInput: item.isInput }) |
|
|
|
} |
|
|
|
} else { |
|
|
|
if (this.selectStatus[index].fiedType === 1) { |
|
|
|
this.selectStatus.splice(index, 1, { mode: false, fiedType: 1, value: this.selectStatus[index].value, field: item, isInput: item.isInput }) |
|
|
|
} else { |
|
|
@ -361,6 +396,7 @@ export default { |
|
|
|
this.selectStatus.splice(index, 1, { mode: false, fiedType: this.allFieldData[index].categoryFieldId.isDefaultValue === '' ? 1 : 2, value: this.allFieldData[index].categoryFieldId.isDefaultValue === '' ? this.selectStatus[index].value : this.allFieldData[index].categoryFieldId.isDefaultValue, field: item, isInput: item.isInput }) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
textMode(index) { |
|
|
@ -378,7 +414,10 @@ export default { |
|
|
|
}) |
|
|
|
this.selectedCategoryName = null |
|
|
|
this.allFieldData = [] |
|
|
|
done() |
|
|
|
this.allCorrField = [] |
|
|
|
this.isTest = false |
|
|
|
this.batchCategory = {} |
|
|
|
// done() |
|
|
|
}, |
|
|
|
handleComfirmBatchToFile() { |
|
|
|
// const getIndicesByMode = (modeValue) => { |
|
|
|