Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
usedCarAuction
/
aus
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
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 ea330f04
authored
May 19, 2026
by
chenwq1
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix:修复bug
1 parent
d14bf3e5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
141 additions
and
35 deletions
aus-front/admin/package.json
aus-front/admin/pnpm-lock.yaml
aus-front/admin/src/views/detection/order/components/CustomizeForm.vue
aus-front/admin/src/views/detection/order/components/OperationLog.vue
aus-front/admin/src/views/detection/order/components/TestingScore.vue
aus-front/admin/package.json
View file @
ea330f0
...
...
@@ -20,7 +20,7 @@
"core-js"
:
"^3.6.5"
,
"dayjs"
:
"^1.10.7"
,
"echarts"
:
"^5.2.2"
,
"glsk-oss-jssdk"
:
"^1.0.
7
"
,
"glsk-oss-jssdk"
:
"^1.0.
6
"
,
"image-conversion"
:
"^2.1.1"
,
"ionicons"
:
"^8.0.9"
,
"lib"
:
"file:../lib"
,
...
...
aus-front/admin/pnpm-lock.yaml
View file @
ea330f0
...
...
@@ -45,8 +45,8 @@ importers:
specifier
:
^5.2.2
version
:
5.6.0
glsk-oss-jssdk
:
specifier
:
^1.0.
7
version
:
1.0.
7
specifier
:
^1.0.
6
version
:
1.0.
6
image-conversion
:
specifier
:
^2.1.1
version
:
2.1.1
...
...
@@ -1826,8 +1826,8 @@ packages:
resolution
:
{
integrity
:
sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==
}
engines
:
{
node
:
'
>=10'
}
glsk-oss-jssdk@1.0.
7
:
resolution
:
{
integrity
:
sha512-
e5uQWWD+f8UJ/zE7F1qJi09YvSMhX3iAbglJuwOOstMv0aVulX8gA3tdn8zPruS0fxzqrcpE9BNhwnETuHbSpw
==
}
glsk-oss-jssdk@1.0.
6
:
resolution
:
{
integrity
:
sha512-
uifUcPNbb6Roas0Dlx6LRldHPwU1yQqJbQRldUaNB+e6stFvn9XrsewCueNDUty3cZw4NCg3yao2WVCUm3T2Og
==
}
good-listener@1.2.2
:
resolution
:
{
integrity
:
sha512-goW1b+d9q/HIwbVYZzZ6SsTr4IgE+WA44A0GmPIQstuOrgsFcT7VEJ48nmr9GaRtNu0XTKacFLGnBPAM6Afouw==
}
...
...
@@ -5014,7 +5014,7 @@ snapshots:
merge2
:
1.4.1
slash
:
3.0.0
glsk-oss-jssdk@1.0.
7
:
glsk-oss-jssdk@1.0.
6
:
dependencies
:
ali-oss
:
6.23.0
axios
:
1.15.0
...
...
aus-front/admin/src/views/detection/order/components/CustomizeForm.vue
View file @
ea330f0
This diff is collapsed.
Click to expand it.
aus-front/admin/src/views/detection/order/components/OperationLog.vue
View file @
ea330f0
...
...
@@ -52,8 +52,22 @@
<
script
lang=
"ts"
>
import
{
Component
,
Vue
}
from
"vue-facing-decorator"
;
import
{
DetectionController
}
from
"@/api/DetectionController"
;
import
{
CopyOutlined
}
from
"@ant-design/icons-vue"
;
import
{
message
}
from
"ant-design-vue"
;
import
{
h
,
type
VNode
}
from
"vue"
;
@
Component
({
components
:
{}
})
function
formatLogValue
(
value
:
unknown
):
string
{
if
(
value
==
null
||
value
===
""
)
{
return
"-"
;
}
return
String
(
value
);
}
function
hasCopyableValue
(
value
:
unknown
):
boolean
{
return
value
!=
null
&&
String
(
value
).
trim
()
!==
""
;
}
@
Component
({
components
:
{
CopyOutlined
}
})
export
default
class
OperationLog
extends
Vue
{
workOrderId
:
any
=
""
;
logList
:
any
[]
=
[];
...
...
@@ -63,29 +77,57 @@ export default class OperationLog extends Vue {
loading
=
false
;
hasMore
=
true
;
detailColumns
:
any
[]
=
[
{
title
:
"变更项"
,
dataIndex
:
"fieldLabel"
,
key
:
"fieldLabel"
,
width
:
200
,
ellipsis
:
true
,
},
{
title
:
"变更前的值"
,
dataIndex
:
"beforeValue"
,
key
:
"beforeValue"
,
width
:
280
,
ellipsis
:
true
,
},
{
title
:
"变更后的值"
,
dataIndex
:
"afterValue"
,
key
:
"afterValue"
,
detailColumns
:
any
[]
=
[];
created
()
{
this
.
detailColumns
=
this
.
buildDetailColumns
();
}
buildDetailColumns
()
{
const
renderCell
=
(
text
:
unknown
)
=>
this
.
renderValueCell
(
text
);
const
valueColumn
=
(
title
:
string
,
dataIndex
:
string
,
key
:
string
)
=>
({
title
,
dataIndex
,
key
,
width
:
280
,
ellipsis
:
true
,
},
];
customRender
:
({
text
}:
{
text
:
unknown
})
=>
renderCell
(
text
),
});
return
[
{
title
:
"变更项"
,
dataIndex
:
"fieldLabel"
,
key
:
"fieldLabel"
,
width
:
200
,
ellipsis
:
true
,
},
valueColumn
(
"变更前的值"
,
"beforeValue"
,
"beforeValue"
),
valueColumn
(
"变更后的值"
,
"afterValue"
,
"afterValue"
),
];
}
renderValueCell
=
(
value
:
unknown
):
VNode
=>
{
const
display
=
formatLogValue
(
value
);
const
children
:
VNode
[]
=
[
h
(
"span"
,
{
class
:
"op-log-value-text"
,
title
:
display
},
display
),
];
if
(
hasCopyableValue
(
value
))
{
children
.
push
(
h
(
"a"
,
{
class
:
"op-log-copy-btn"
,
onClick
:
(
e
:
Event
)
=>
{
e
.
stopPropagation
();
e
.
preventDefault
();
void
this
.
copyLogValue
(
value
);
},
},
[
h
(
CopyOutlined
),
" 复制"
],
),
);
}
return
h
(
"div"
,
{
class
:
"op-log-value-cell"
},
children
);
};
isChangeLog
(
item
:
any
)
{
const
type
=
Number
(
item
?.
operationType
);
...
...
@@ -142,6 +184,19 @@ export default class OperationLog extends Vue {
if
(
!
str
)
return
""
;
return
String
(
str
).
charAt
(
0
);
}
async
copyLogValue
(
value
:
unknown
)
{
const
text
=
formatLogValue
(
value
);
if
(
text
===
"-"
)
{
return
;
}
try
{
await
navigator
.
clipboard
.
writeText
(
text
);
message
.
success
(
"复制成功"
);
}
catch
{
message
.
error
(
"复制失败"
);
}
}
}
</
script
>
...
...
@@ -260,4 +315,43 @@ export default class OperationLog extends Vue {
.p-l-8
{
padding-left
:
8px
;
}
</
style
>
<
style
lang=
"less"
>
.op-log-detail-popover
.op-log-detail-table
.ant-table-cell
{
vertical-align
:
middle
;
}
.op-log-detail-popover
.op-log-value-cell
{
display
:
flex
;
align-items
:
center
;
gap
:
16px
;
width
:
100%
;
padding-right
:
4px
;
}
.op-log-detail-popover
.op-log-value-text
{
flex
:
1
;
min-width
:
0
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
white-space
:
nowrap
;
padding-right
:
4px
;
}
.op-log-detail-popover
.op-log-copy-btn
{
flex-shrink
:
0
;
margin-left
:
4px
;
padding-left
:
12px
;
font-size
:
12px
;
color
:
#1956fe
;
white-space
:
nowrap
;
cursor
:
pointer
;
border-left
:
1px
solid
#e8eaed
;
}
.op-log-detail-popover
.op-log-copy-btn
:hover
{
color
:
#0d3fd4
;
}
</
style
>
aus-front/admin/src/views/detection/order/components/TestingScore.vue
View file @
ea330f0
...
...
@@ -362,13 +362,13 @@ export default class TestingScore extends Vue {
postData
=
{
taskId
:
0
,
exteriorScore
:
0
,
exteriorScore
:
null
as
number
|
null
,
exteriorComment
:
""
,
skeletonLevel
:
""
,
skeletonComment
:
""
,
interiorLevel
:
""
,
interiorComment
:
""
,
overallScore
:
0
,
overallScore
:
null
as
number
|
null
,
overallComment
:
""
,
};
...
...
@@ -411,14 +411,26 @@ export default class TestingScore extends Vue {
return
changed
.
filter
((
k
)
=>
!
ignoreKeys
.
has
(
k
));
}
/** 评分为 0 视为已填写;仅 null / undefined / 空字符串 视为未填 */
isScoreFilled
(
value
:
unknown
):
boolean
{
if
(
value
===
0
||
value
===
"0"
)
{
return
true
;
}
if
(
value
===
null
||
value
===
undefined
||
value
===
""
)
{
return
false
;
}
const
n
=
Number
(
value
);
return
!
Number
.
isNaN
(
n
);
}
hasRequiredUnfilled
():
boolean
{
return
!
this
.
postData
.
exteriorScore
return
!
this
.
isScoreFilled
(
this
.
postData
.
exteriorScore
)
||
!
this
.
postData
.
exteriorComment
||
!
this
.
postData
.
skeletonLevel
||
!
this
.
postData
.
skeletonComment
||
!
this
.
postData
.
interiorLevel
||
!
this
.
postData
.
interiorComment
||
!
this
.
postData
.
overallScore
||
!
this
.
isScoreFilled
(
this
.
postData
.
overallScore
)
||
!
this
.
postData
.
overallComment
;
}
...
...
@@ -458,7 +470,7 @@ export default class TestingScore extends Vue {
}
submitForm
()
{
if
(
!
this
.
postData
.
exteriorScore
)
{
if
(
!
this
.
isScoreFilled
(
this
.
postData
.
exteriorScore
)
)
{
message
.
error
(
"请输入外观评分"
);
return
;
}
...
...
@@ -482,7 +494,7 @@ export default class TestingScore extends Vue {
message
.
error
(
"请查验车辆内饰相关部位和程度"
);
return
;
}
if
(
!
this
.
postData
.
overallScore
)
{
if
(
!
this
.
isScoreFilled
(
this
.
postData
.
overallScore
)
)
{
message
.
error
(
"请输入综合评分"
);
return
;
}
...
...
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