| | |
| | | getStandardDetail, |
| | | getStandardQuality |
| | | } from "@/api/standardSys/standardSys"; |
| | | import {getDepart, getDistribution, getSysClause} from "@/api/orgStructure/depart"; |
| | | import {getDepart, getDistribution, getFunctionalRemarkList, getSysClause} from "@/api/orgStructure/depart"; |
| | | |
| | | const userStore = useUserStore() |
| | | const { proxy } = getCurrentInstance(); |
| | |
| | | } |
| | | } |
| | | |
| | | const getRemarksList = async (companyId)=> { |
| | | const res = await getFunctionalRemarkList({companyId: companyId}) |
| | | if(res.code == 200){ |
| | | const originRemark = res.data |
| | | for(let item of originRemark){ |
| | | const foundObj = data.caluseList.find(i=>i.clauseNum == item.clauseNum) |
| | | if(foundObj){ |
| | | foundObj.remark = item.remark |
| | | } |
| | | } |
| | | data.companyInfo.remarks = originRemark.map(i=>{ |
| | | return `${i.clauseNum}:${i.remark}` |
| | | }).join(';') |
| | | }else{ |
| | | ElMessage.warning(res.message) |
| | | } |
| | | } |
| | | |
| | | const transToTableData=(duties,deptList)=>{ |
| | | // 步骤1:获取所有唯一的部门和条款编号 |
| | | // const allDeptNames = [...new Set(duties.map(item => item.deptName))]; |
| | |
| | | ])]; |
| | | |
| | | // 步骤2:为每个条款生成完整的部门数据(缺失数据默认 chooseLab: 0) |
| | | const mergeValues = ['4','5','6','7','7.1','8','8.2','8.3','8.4','8.5','9','9.1','10'] |
| | | const mergeValues = ['7.1','8.2','8.3','8.4','8.5','9.1'] |
| | | const processedClauses = allClauseNums.map(clauseNum => { |
| | | const clauseContent = data.caluseList.find(c => c.clauseNum === clauseNum)?.content || ""; |
| | | // 为当前条款生成所有部门的数据(确保每个部门都有值) |
| | |
| | | try { |
| | | await getDeptList(val) |
| | | await getInfo(val) |
| | | await getRemarksList(val.companyId) |
| | | // 2. 等待DOM更新完成 |
| | | await nextTick(); |
| | | |
| | |
| | | pointer-events: none; /* 禁止交互 */ |
| | | z-index: -1; |
| | | } |
| | | </style> |
| | | </style> |