表单项组件化、政策入库流程重构

This commit is contained in:
zyn
2023-09-25 16:58:30 +08:00
parent 24577c7f3a
commit 37a3124c3a
25 changed files with 2888 additions and 12 deletions
@@ -219,8 +219,8 @@
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="通知文号链接" prop="NotisyncNumLink" label-width="150px" class="add-form-item">
<el-input v-model="sarLawsStandEO.NotisyncNumLink"
<el-form-item label="通知文号链接" prop="notisyncNumLink" label-width="150px" class="add-form-item">
<el-input v-model="sarLawsStandEO.notisyncNumLink"
placeholder="请输入通知文号链接"
clearable></el-input>
</el-form-item>
@@ -443,12 +443,12 @@
</template>
<!--实施日期-多个日期标签-->
<template v-else-if="field.attrField === 'SSRQLAWS'">
<cus-tom-data-picker-group
<DatePickerGroupFormItem
:key="field.attrField"
:config="field"
v-model="sarLawsStandEO[field.attrField]"
:disabled="formdisableflag"
></cus-tom-data-picker-group>
></DatePickerGroupFormItem>
</template>
<!--单日期选择-->
<template v-else-if="field.attrType === 'DATE_PICKER'">
@@ -551,8 +551,9 @@
import CustomSVPPS from '@/components/CustomFormComponents/SVPPS'
import CustomInputForStandards from '@/components/CustomFormComponents/InputForStandardsForLaws'
import CustomInput from '@/components/CustomFormComponents/Input'
import CusTomDataPickerGroup
from "@/pages/regulatoryRepository/localProductsOrProjectLibrary/components/DatePickerGroup";
// import CusTomDataPickerGroup
// from "@/pages/regulatoryRepository/localProductsOrProjectLibrary/components/DatePickerGroup";
import DatePickerGroupFormItem from "@/components/hzwlComponents/DatePickerGroupFormItem";
import CustomDatePick from '@/components/CustomFormComponents/DatePicker'
import CustomFile from '@/components/CustomFormComponents/File'
import CustomTextarea from '@/components/CustomFormComponents/Textarea'
@@ -1022,7 +1023,8 @@ export default {
CustomSVPPS,
CustomInputForStandards,
CustomInput,
CusTomDataPickerGroup,
// CusTomDataPickerGroup,
DatePickerGroupFormItem,
CustomDatePick,
CustomFile,
CustomTextarea,
@@ -1629,8 +1631,6 @@ export default {
})
},
choice(type, title, nameId) {
console.log(nameId)
// 管理员(admin),张兰英(zhanglanying) => ['admin', 'zhanglanying']
this.nodeList = []
if (nameId) {
let nameId1 = nameId.split(',')
@@ -1642,6 +1642,7 @@ export default {
idList.push(b)
})
idList = idList.join(',')
// 管理员(admin),张兰英(zhanglanying) => ['admin', 'zhanglanying']
this.nodeList = idList.split(',')
}
this.choiceTitle = title
@@ -1677,6 +1678,7 @@ export default {
}
this.$set(this.sarLawsStandEO, field, nameList)
if (this.choiceTitle === '选择投稿人') {
// 带入投稿单位
this.sarLawsStandEO.TGDWLAWSID = this.unique(data.map(item => item.topUnitId)).join(",")
this.sarLawsStandEO.TGDWLAWS = this.unique(data.map(item => item.topUnit)).join(",")
}