| | |
| | | <el-divider content-position="left">报工填报内容</el-divider> |
| | | <el-descriptions v-if="formResolved.fields.length" :column="2" border> |
| | | <el-descriptions-item |
| | | v-for="field in formResolved.fields" |
| | | v-for="field in visibleFormFields" |
| | | :key="field.key" |
| | | :label="field.label || field.key" |
| | | > |
| | |
| | | }); |
| | | |
| | | const formResolved = computed(() => resolveInstanceFormFields(props.row)); |
| | | const visibleFormFields = computed(() => |
| | | (formResolved.value.fields || []).filter(field => { |
| | | const key = String(field?.key || "").toLowerCase(); |
| | | const label = String(field?.label || "").trim(); |
| | | if (["approvalstatus", "auditstatus", "status", "workhours", "schedulingnum"].includes(key)) return false; |
| | | if (["审批状态", "审核状态", "工时", "排产数量"].includes(label)) return false; |
| | | return true; |
| | | }) |
| | | ); |
| | | |
| | | |
| | | // 是否为特殊审批类型(采购、发货、报价) |