| | |
| | | width="180" |
| | | ></el-table-column> |
| | | <el-table-column |
| | | prop="checkdObject" |
| | | prop="companyNames" |
| | | label="被检查对象" |
| | | width="180" |
| | | ></el-table-column> |
| | | <el-table-column |
| | | prop="unifiedSocialCreditCode" |
| | | prop="companyCodes" |
| | | label="统一社会信用代码" |
| | | width="180" |
| | | ></el-table-column> |
| | |
| | | width="180" |
| | | ></el-table-column> |
| | | <el-table-column |
| | | prop="executiveSection" |
| | | prop="executiveSectionNames" |
| | | label="执行科室" |
| | | width="180" |
| | | ></el-table-column> |
| | |
| | | <el-col :span="24"> |
| | | <el-form-item label="被检查对象信息"> |
| | | <el-table |
| | | :data="form.checkdObject" |
| | | :data="checkedList" |
| | | max-height="200px" |
| | | style="width: 100%" |
| | | > |
| | |
| | | const deptOptions = ref(undefined); |
| | | const selectOffices = ref([]); |
| | | const officeList = ref([]); |
| | | let checkedList = ref([]); // 选中的企业列表 |
| | | const data = reactive({ |
| | | form: { |
| | | planName: "", // 计划名称 |
| | | makeOrgId: "", // 制定机构id |
| | | makeOrgName: "", // 制定机构 |
| | | executiveSection: "", // 执行科室 |
| | | executiveSectionName: "", // 执行科室名称 |
| | | checkdObject: [], // 被检查对象列表 |
| | | checkdIds: "", // 被检查对象id |
| | | executiveSectionNames: "", // 执行科室名称 |
| | | companyNames: "", // 被检查对象名称 |
| | | companyCodes: "", // 统一社会信用代码 |
| | | companyIds: "", // 被检查对象id |
| | | checkdType: "", // 检查方式 |
| | | industry: "", // 所属行业 |
| | | checkdContent: "", // 检查内容 |
| | |
| | | form.value.makeOrgName = e.label; |
| | | selectOffices.value = []; |
| | | form.value.executiveSection = ""; |
| | | form.value.executiveSectionName = ""; |
| | | form.value.executiveSectionNames = ""; |
| | | if (e.id) { |
| | | getOfficeList(); |
| | | } |
| | |
| | | |
| | | // 科室选择 |
| | | const handleSelectOffices = (value) => { |
| | | form.value.executiveSectionName = value.map((item) => { |
| | | return officeList.value.find((obj) => obj.deptId === item).deptName; |
| | | }).join(","); |
| | | form.value.executiveSectionNames = value |
| | | .map((item) => { |
| | | return officeList.value.find((obj) => obj.deptId === item).deptName; |
| | | }) |
| | | .join(","); |
| | | form.value.executiveSection = value.join(","); |
| | | console.log(form.value.executiveSection); |
| | | console.log(form.value.executiveSectionName); |
| | | console.log(form.value.executiveSectionNames); |
| | | }; |
| | | |
| | | /*** 计划导入参数 */ |
| | |
| | | planName: "", // 计划名称 |
| | | makeOrgId: "", // 制定机构id |
| | | makeOrgName: "", // 制定机构 |
| | | executiveSection: "", // 执行科室 |
| | | executiveSectionName: "", // 执行科室名称 |
| | | checkdObject: [], // 被检查对象列表 |
| | | executiveSection: "", // 执行科室id |
| | | executiveSectionNames: "", // 执行科室名称 |
| | | checkdIds: "", // 被检查对象id |
| | | companyNames: "", // 被检查对象名称 |
| | | companyCodes: "", // 统一社会信用代码 |
| | | checkdType: "", // 检查方式 |
| | | industry: "", // 所属行业 |
| | | checkdContent: "", // 检查内容 |
| | |
| | | getList(); |
| | | }); |
| | | } else { |
| | | addManage(form.value).then((response) => { |
| | | proxy.$modal.msgSuccess("新增成功"); |
| | | open.value = false; |
| | | getList(); |
| | | checkedList.value.forEach((item, index) => { |
| | | console.log(item) |
| | | const submitForm = { ...form.value }; |
| | | submitForm.companyIds = item.companyId; |
| | | submitForm.companyNames = item.companyName; |
| | | submitForm.companyCodes = item.companyCode; |
| | | addManage(submitForm).then((response) => { |
| | | if (index === checkedList.value.length - 1) { |
| | | proxy.$modal.msgSuccess("新增成功"); |
| | | open.value = false; |
| | | getList(); |
| | | reset(); |
| | | } |
| | | }); |
| | | }); |
| | | } |
| | | } |
| | |
| | | } |
| | | |
| | | function handleSelectionChange(e) { |
| | | form.value.checkdObject = e; |
| | | checkedList.value = e; |
| | | form.value.checkdIds = e.map((item) => item.companyId).join(","); |
| | | } |
| | | |