Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
monorepo
/
venus
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
1
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 19b58247
authored
Mar 26, 2026
by
chenwq1
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix: 流程
1 parent
792803f7
Pipeline
#144
for
19b58247
failed
in 0 seconds
Changes
6
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
56 additions
and
14 deletions
apps/web/venus-usedcar-quality/src/api/modules/work-order.ts
apps/web/venus-usedcar-quality/src/components.d.ts
apps/web/venus-usedcar-quality/src/views/car-detail/composables/useInspectModules.ts
apps/web/venus-usedcar-quality/src/views/car-detail/index.vue
apps/web/venus-usedcar-quality/src/views/car-list/index.vue
apps/web/venus-usedcar-quality/src/views/home/index.vue
apps/web/venus-usedcar-quality/src/api/modules/work-order.ts
View file @
19b5824
...
@@ -70,3 +70,8 @@ export function getWorkOrderDetail<T = unknown>(id: number | string) {
...
@@ -70,3 +70,8 @@ export function getWorkOrderDetail<T = unknown>(id: number | string) {
return
get
<
WorkOrderDetailResult
<
T
>>
(
`/rest/inspect/wo/detail/
${
id
}
`
);
return
get
<
WorkOrderDetailResult
<
T
>>
(
`/rest/inspect/wo/detail/
${
id
}
`
);
}
}
/** 成功时业务 `data` 为报告 H5 完整链接(字符串) */
export
function
getWorkOrderH5Url
(
id
:
number
|
string
)
{
return
get
<
string
>
(
`/rest/inspect/wo/getH5Url/
${
id
}
`
);
}
apps/web/venus-usedcar-quality/src/components.d.ts
View file @
19b5824
...
@@ -7,19 +7,19 @@ export {}
...
@@ -7,19 +7,19 @@ export {}
declare
module
'vue'
{
declare
module
'vue'
{
export
interface
GlobalComponents
{
export
interface
GlobalComponents
{
ButtonSelect
:
typeof
import
(
'./components/
c
ustomizeForm/buttonSelect.vue'
)[
'default'
]
ButtonSelect
:
typeof
import
(
'./components/
C
ustomizeForm/buttonSelect.vue'
)[
'default'
]
ButtonSelectAndImageUpload
:
typeof
import
(
'./components/
c
ustomizeForm/buttonSelectAndImageUpload.vue'
)[
'default'
]
ButtonSelectAndImageUpload
:
typeof
import
(
'./components/
C
ustomizeForm/buttonSelectAndImageUpload.vue'
)[
'default'
]
CustomizeUploadFile
:
typeof
import
(
'./components/
c
ustomizeForm/customizeUploadFile.vue'
)[
'default'
]
CustomizeUploadFile
:
typeof
import
(
'./components/
C
ustomizeForm/customizeUploadFile.vue'
)[
'default'
]
Index
:
typeof
import
(
'./components/
c
ustomizeForm/Index.vue'
)[
'default'
]
Index
:
typeof
import
(
'./components/
C
ustomizeForm/Index.vue'
)[
'default'
]
Layouts
:
typeof
import
(
'./layouts/index.vue'
)[
'default'
]
Layouts
:
typeof
import
(
'./layouts/index.vue'
)[
'default'
]
LogoutConfirmModal
:
typeof
import
(
'./components/LogoutConfirmModal.vue'
)[
'default'
]
LogoutConfirmModal
:
typeof
import
(
'./components/LogoutConfirmModal.vue'
)[
'default'
]
PageTitle
:
typeof
import
(
'./components/PageTitle.vue'
)[
'default'
]
PageTitle
:
typeof
import
(
'./components/PageTitle.vue'
)[
'default'
]
PageTop
:
typeof
import
(
'./components/PageTop.vue'
)[
'default'
]
PageTop
:
typeof
import
(
'./components/PageTop.vue'
)[
'default'
]
RadioSelect
:
typeof
import
(
'./components/
c
ustomizeForm/radioSelect.vue'
)[
'default'
]
RadioSelect
:
typeof
import
(
'./components/
C
ustomizeForm/radioSelect.vue'
)[
'default'
]
RouterLink
:
typeof
import
(
'vue-router'
)[
'RouterLink'
]
RouterLink
:
typeof
import
(
'vue-router'
)[
'RouterLink'
]
RouterView
:
typeof
import
(
'vue-router'
)[
'RouterView'
]
RouterView
:
typeof
import
(
'vue-router'
)[
'RouterView'
]
SelectDatePicker
:
typeof
import
(
'./components/
c
ustomizeForm/selectDatePicker.vue'
)[
'default'
]
SelectDatePicker
:
typeof
import
(
'./components/
C
ustomizeForm/selectDatePicker.vue'
)[
'default'
]
SelectDropdown
:
typeof
import
(
'./components/
c
ustomizeForm/selectDropdown.vue'
)[
'default'
]
SelectDropdown
:
typeof
import
(
'./components/
C
ustomizeForm/selectDropdown.vue'
)[
'default'
]
VanActionSheet
:
typeof
import
(
'vant/es'
)[
'ActionSheet'
]
VanActionSheet
:
typeof
import
(
'vant/es'
)[
'ActionSheet'
]
VanButton
:
typeof
import
(
'vant/es'
)[
'Button'
]
VanButton
:
typeof
import
(
'vant/es'
)[
'Button'
]
VanDatePicker
:
typeof
import
(
'vant/es'
)[
'DatePicker'
]
VanDatePicker
:
typeof
import
(
'vant/es'
)[
'DatePicker'
]
...
@@ -49,7 +49,6 @@ declare module 'vue' {
...
@@ -49,7 +49,6 @@ declare module 'vue' {
VanTabbarItem
:
typeof
import
(
'vant/es'
)[
'TabbarItem'
]
VanTabbarItem
:
typeof
import
(
'vant/es'
)[
'TabbarItem'
]
VanTabs
:
typeof
import
(
'vant/es'
)[
'Tabs'
]
VanTabs
:
typeof
import
(
'vant/es'
)[
'Tabs'
]
VanTag
:
typeof
import
(
'vant/es'
)[
'Tag'
]
VanTag
:
typeof
import
(
'vant/es'
)[
'Tag'
]
VanVideo
:
typeof
import
(
'vant/es'
)[
'Video'
]
WorkOrderStatusTags
:
typeof
import
(
'./components/WorkOrderStatusTags.vue'
)[
'default'
]
WorkOrderStatusTags
:
typeof
import
(
'./components/WorkOrderStatusTags.vue'
)[
'default'
]
}
}
}
}
apps/web/venus-usedcar-quality/src/views/car-detail/composables/useInspectModules.ts
View file @
19b5824
...
@@ -124,6 +124,23 @@ export function useInspectModules(route: RouteLocationNormalizedLoaded) {
...
@@ -124,6 +124,23 @@ export function useInspectModules(route: RouteLocationNormalizedLoaded) {
return
idx
!==
-
1
&&
idx
===
subs
.
length
-
1
;
return
idx
!==
-
1
&&
idx
===
subs
.
length
-
1
;
});
});
/**
* 底部「上一步」:无二级(整页叶子)不展示;有二级时首个大项的首个二级不展示(与 onPrev 无可回退一致)
*/
const
showInspectionPrevButton
=
computed
(()
=>
{
const
m
=
activeBigModule
.
value
;
if
(
!
m
||
activeBigKey
.
value
===
SCORE_BIG_KEY
)
return
false
;
if
(
m
.
hasSecondaryTabs
===
false
)
return
false
;
if
(
m
.
hasSecondaryTabs
===
true
)
{
const
mains
=
mainInspectionBigModules
.
value
;
const
mainIdx
=
mains
.
findIndex
((
mod
)
=>
mod
.
key
===
activeBigKey
.
value
);
const
subs
=
m
.
subTabs
;
const
subIdx
=
subs
.
findIndex
((
s
)
=>
s
.
key
===
activeSubKey
.
value
);
return
mainIdx
>
0
||
subIdx
>
0
;
}
return
m
.
hasSecondaryTabs
!==
false
;
});
const
currentLeafNodes
=
computed
(()
=>
activeSubTab
.
value
?.
leafNodes
??
[]);
const
currentLeafNodes
=
computed
(()
=>
activeSubTab
.
value
?.
leafNodes
??
[]);
async
function
initializeInspection
()
{
async
function
initializeInspection
()
{
...
@@ -329,6 +346,7 @@ export function useInspectModules(route: RouteLocationNormalizedLoaded) {
...
@@ -329,6 +346,7 @@ export function useInspectModules(route: RouteLocationNormalizedLoaded) {
progressTotal
,
progressTotal
,
progressDone
,
progressDone
,
isLastSubTabOfActiveBigModule
,
isLastSubTabOfActiveBigModule
,
showInspectionPrevButton
,
activeSubTab
,
activeSubTab
,
currentLeafNodes
,
currentLeafNodes
,
templateDefaultData
,
templateDefaultData
,
...
...
apps/web/venus-usedcar-quality/src/views/car-detail/index.vue
View file @
19b5824
...
@@ -107,9 +107,9 @@
...
@@ -107,9 +107,9 @@
完成检测
完成检测
</van-button>
</van-button>
</
template
>
</
template
>
<!-- 普通检测页:有二级时
上一步 +
下一步;无二级时仅下一步(全宽) -->
<!-- 普通检测页:有二级时
首个二级无上一步,其余上一步+
下一步;无二级时仅下一步(全宽) -->
<
template
v-else
>
<
template
v-else
>
<van-button
v-if=
"
activeBigModule?.hasSecondaryTabs !== false
"
<van-button
v-if=
"
showInspectionPrevButton
"
class=
"btn-save"
class=
"btn-save"
:loading=
"submitting"
:loading=
"submitting"
plain
plain
...
@@ -210,6 +210,7 @@ const {
...
@@ -210,6 +210,7 @@ const {
progressTotal
,
progressTotal
,
progressDone
,
progressDone
,
activeSubTab
,
activeSubTab
,
showInspectionPrevButton
,
currentLeafNodes
,
currentLeafNodes
,
initializeInspection
,
initializeInspection
,
onOpenModulePicker
,
onOpenModulePicker
,
...
...
apps/web/venus-usedcar-quality/src/views/car-list/index.vue
View file @
19b5824
...
@@ -4,6 +4,7 @@ import type { ReportItem } from "@/types/views/car-list";
...
@@ -4,6 +4,7 @@ import type { ReportItem } from "@/types/views/car-list";
import
{
computed
,
onActivated
,
ref
,
watch
}
from
"vue"
;
import
{
computed
,
onActivated
,
ref
,
watch
}
from
"vue"
;
import
{
useRouter
}
from
"vue-router"
;
import
{
useRouter
}
from
"vue-router"
;
import
{
getWorkOrderH5Url
}
from
"@/api/modules/work-order"
;
import
{
getInspectReportPage
}
from
"@/api/modules/inspect-report"
;
import
{
getInspectReportPage
}
from
"@/api/modules/inspect-report"
;
import
PageTop
from
"@/components/PageTop.vue"
;
import
PageTop
from
"@/components/PageTop.vue"
;
...
@@ -99,8 +100,17 @@ async function onRefresh() {
...
@@ -99,8 +100,17 @@ async function onRefresh() {
}
}
}
}
async function openReportByWorkOrderId(id: string) {
const h5Url = (await getWorkOrderH5Url(id)).trim();
if (h5Url) {
window.location.href = h5Url;
return;
}
void router.push({ name: "InspectReport", query: { recordId: id } });
}
function onViewReport(item: ReportItem) {
function onViewReport(item: ReportItem) {
void
router.push({ name: "CarDetail", params: { id: String(item.id) } }
);
void
openReportByWorkOrderId(String(item.id)
);
}
}
watch([keyword], () => {
watch([keyword], () => {
...
...
apps/web/venus-usedcar-quality/src/views/home/index.vue
View file @
19b5824
...
@@ -5,7 +5,7 @@ import type { AuditStatus, WorkOrderStatus } from "@/types/views/work-order-comm
...
@@ -5,7 +5,7 @@ import type { AuditStatus, WorkOrderStatus } from "@/types/views/work-order-comm
import
{
computed
,
ref
,
watch
}
from
"vue"
;
import
{
computed
,
ref
,
watch
}
from
"vue"
;
import
{
useRouter
}
from
"vue-router"
;
import
{
useRouter
}
from
"vue-router"
;
import
{
getWorkOrderCountByStatus
,
getWorkOrderPage
}
from
"@/api/modules/work-order"
;
import
{
getWorkOrderCountByStatus
,
getWorkOrder
H5Url
,
getWorkOrder
Page
}
from
"@/api/modules/work-order"
;
import
PageTop
from
"@/components/PageTop.vue"
;
import
PageTop
from
"@/components/PageTop.vue"
;
import
WorkOrderStatusTags
from
"@/components/WorkOrderStatusTags.vue"
;
import
WorkOrderStatusTags
from
"@/components/WorkOrderStatusTags.vue"
;
...
@@ -169,13 +169,22 @@ function viewWorkOrder(item: WorkOrderItem) :void{
...
@@ -169,13 +169,22 @@ function viewWorkOrder(item: WorkOrderItem) :void{
router
.
push
({
name
:
"WorkOrderDetail"
,
params
:
{
id
:
item
.
id
}
});
router
.
push
({
name
:
"WorkOrderDetail"
,
params
:
{
id
:
item
.
id
}
});
}
}
function
viewReport
(
item
:
WorkOrderItem
)
{
async
function
openReportByWorkOrderId
(
id
:
string
)
{
const
h5Url
=
(
await
getWorkOrderH5Url
(
id
)).
trim
();
if
(
h5Url
)
{
window
.
location
.
href
=
h5Url
;
return
;
}
void
router
.
push
({
void
router
.
push
({
name
:
"InspectReport"
,
name
:
"InspectReport"
,
query
:
{
recordId
:
i
tem
.
i
d
},
query
:
{
recordId
:
id
},
});
});
}
}
function
viewReport
(
item
:
WorkOrderItem
)
{
void
openReportByWorkOrderId
(
item
.
id
);
}
function
showRejectReason
(
_item
:
WorkOrderItem
)
{
function
showRejectReason
(
_item
:
WorkOrderItem
)
{
rejectReasonContent
.
value
=
_item
.
auditContent
??
""
;
rejectReasonContent
.
value
=
_item
.
auditContent
??
""
;
rejectReasonDialogVisible
.
value
=
true
;
rejectReasonDialogVisible
.
value
=
true
;
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment