This commit is contained in:
zlwu committed 2026-08-12 15:48:15 +08:00
1 parent d310da1523
commit ec628e1b8d
79 files changed
+6749 -799

No files matched your search

+2 -2
View File
@@ -1,7 +1,7 @@
# Graph Report - src (2026-08-11)
# Graph Report - src (2026-08-12)
## Corpus Check
- Large corpus: 967 files · ~631,782 words. Semantic extraction will be expensive (many Claude tokens). Consider running on a subfolder, or use --no-semantic to run AST-only.
- Large corpus: 967 files · ~631,821 words. Semantic extraction will be expensive (many Claude tokens). Consider running on a subfolder, or use --no-semantic to run AST-only.
## Summary
- 3417 nodes · 4865 edges · 71 communities detected
+3 -3
View File
@@ -17,8 +17,8 @@
"/Users/wuzilong/work/00code/zkxw/web-admin/src/types/common/index.ts": 1781272556.3597305,
"/Users/wuzilong/work/00code/zkxw/web-admin/src/types/directive/directive.d.ts": 1781272556.3601494,
"/Users/wuzilong/work/00code/zkxw/web-admin/src/types/api/api.d.ts": 1781272556.3606477,
"/Users/wuzilong/work/00code/zkxw/web-admin/src/types/import/components.d.ts": 1786416949.0462604,
"/Users/wuzilong/work/00code/zkxw/web-admin/src/types/import/auto-imports.d.ts": 1786416928.7957375,
"/Users/wuzilong/work/00code/zkxw/web-admin/src/types/import/components.d.ts": 1786506822.9277327,
"/Users/wuzilong/work/00code/zkxw/web-admin/src/types/import/auto-imports.d.ts": 1786506719.2191331,
"/Users/wuzilong/work/00code/zkxw/web-admin/src/types/store/index.ts": 1781272556.364766,
"/Users/wuzilong/work/00code/zkxw/web-admin/src/types/router/index.ts": 1782394569.8806834,
"/Users/wuzilong/work/00code/zkxw/web-admin/src/composables/useAttachmentActions.ts": 1783921717.4015942,
@@ -329,7 +329,7 @@
"/Users/wuzilong/work/00code/zkxw/web-admin/src/components/oa-approval/OaOvertimeKit.vue": 1786374594.648936,
"/Users/wuzilong/work/00code/zkxw/web-admin/src/components/oa-approval/OaApprovalPrintSheet.vue": 1786413858.4258535,
"/Users/wuzilong/work/00code/zkxw/web-admin/src/components/oa-approval/OaReceiveAccountSelect.vue": 1785391747.3254373,
"/Users/wuzilong/work/00code/zkxw/web-admin/src/components/oa-approval/OaAppIcon.vue": 1785993067.5623589,
"/Users/wuzilong/work/00code/zkxw/web-admin/src/components/oa-approval/OaAppIcon.vue": 1786504502.4002652,
"/Users/wuzilong/work/00code/zkxw/web-admin/src/components/oa-approval/OaLeaveKit.vue": 1785398262.9313874,
"/Users/wuzilong/work/00code/zkxw/web-admin/src/components/oa-approval/OaPrintRelatedTree.vue": 1786413860.094557,
"/Users/wuzilong/work/00code/zkxw/web-admin/src/components/oa-approval/OaFcRow.vue": 1785145511.6907504,
@@ -77,7 +77,7 @@
if (resolved.value.kind === 'ep') {
return { background: resolved.value.bg, color: resolved.value.fg }
}
return { background: '#f1f5f9' }
return {}
})
</script>
@@ -25,13 +25,25 @@
恢复转正日期自动计算
</el-button>
</p>
<p v-if="leaveDurationManualFields.length" class="oa-start__tip">
<el-button link type="primary" @click="restoreLeaveAuto">
<el-icon><RefreshRight /></el-icon>
恢复请假时长自动计算
</el-button>
</p>
<p v-if="overtimeDurationManualFields.length" class="oa-start__tip">
<el-button link type="primary" @click="restoreOvertimeAuto">
<el-icon><RefreshRight /></el-icon>
恢复加班时长自动计算
</el-button>
</p>
<p v-else-if="!formRule.length && !detailLoading" class="oa-start__tip">
<p v-if="tripDaysManualFields.length" class="oa-start__tip">
<el-button link type="primary" @click="restoreTripDaysAuto">
<el-icon><RefreshRight /></el-icon>
恢复出差天数自动计算
</el-button>
</p>
<p v-if="!formRule.length && !detailLoading" class="oa-start__tip">
该模板暂无表单字段,仍可直接提交。
</p>
<OaFlowPreview
@@ -165,6 +177,16 @@
listManualConfirmationDateFields({ rule: formRule.value }, formData.value)
)
const leaveDurationManualFields = computed(() => {
const fields: string[] = []
for (const kit of listLeaveKitBindings({ rule: formRule.value })) {
if (formData.value[LEAVE_MANUAL_PREFIX + kit.durationField]) {
fields.push(kit.durationField)
}
}
return fields
})
const overtimeDurationManualFields = computed(() => {
const fields: string[] = []
for (const kit of listOvertimeKitBindings({ rule: formRule.value })) {
@@ -175,6 +197,16 @@
return fields
})
const tripDaysManualFields = computed(() => {
const fields: string[] = []
for (const kit of listTripKits({ rule: formRule.value })) {
if (formData.value[TRIP_MANUAL_PREFIX + kit.daysField]) {
fields.push(kit.daysField)
}
}
return fields
})
function flowNeedsInitiatorSelect(node: any): boolean {
if (!node || typeof node !== 'object') return false
const cfg = node.approverConfig || {}
@@ -685,6 +717,24 @@
void syncOvertimeKitDurations()
}
function restoreLeaveAuto() {
let data = { ...formData.value }
for (const kit of listLeaveKitBindings({ rule: formRule.value })) {
data = markLeaveDurationManual(data, kit.durationField, false)
}
formData.value = data
syncLeaveKitDurations()
}
function restoreTripDaysAuto() {
let data = { ...formData.value }
for (const kit of listTripKits({ rule: formRule.value })) {
delete data[TRIP_MANUAL_PREFIX + kit.daysField]
}
formData.value = data
syncTripKitDurations()
}
watch(
formData,
() => {