Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
dj-car-life-system
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 a8576756
authored
Nov 13, 2025
by
张立顺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix bug
1 parent
0b2cecb5
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
55 additions
and
29 deletions
src/common/constants.js
src/router/modules/920_usedCarManagement.js
src/views/usedCarManagement/deliveryOrderManagement/index.vue
src/views/usedCarManagement/vehicleManagement/index.vue
src/common/constants.js
View file @
a857675
...
@@ -1651,13 +1651,13 @@ export const oaFlowPaymentStatusOpt = [
...
@@ -1651,13 +1651,13 @@ export const oaFlowPaymentStatusOpt = [
// 工单状态:0-待交付 1-准备交付 2-交付完成
// 工单状态:0-待交付 1-准备交付 2-交付完成
export
const
orderStatusMap
=
[
export
const
orderStatusMap
=
[
{
confId
:
"-1"
,
confValue
:
"已取消"
,
color
:
"#FDB757"
},
{
confId
:
"-1"
,
confValue
:
"已取消"
,
color
:
"#FDB757"
},
{
confId
:
"0"
,
confValue
:
"待交付"
,
color
:
"#FDB757"
},
{
confId
:
0
,
confValue
:
"待交付"
,
color
:
"#FDB757"
},
{
confId
:
"1"
,
confValue
:
"交付中"
,
color
:
"#FDB757"
},
{
confId
:
"1"
,
confValue
:
"交付中"
,
color
:
"#FDB757"
},
{
confId
:
"2"
,
confValue
:
"交付完成"
,
color
:
"#2CCA74"
}
{
confId
:
"2"
,
confValue
:
"交付完成"
,
color
:
"#2CCA74"
}
]
]
// 尾款支付状态:0-未支付 1-已结清
// 尾款支付状态:0-未支付 1-已结清
export
const
tailPayStatusMap
=
[
export
const
tailPayStatusMap
=
[
{
confId
:
"0"
,
confValue
:
"未
支付"
,
color
:
"#FDB757"
},
{
confId
:
0
,
confValue
:
"待
支付"
,
color
:
"#FDB757"
},
{
confId
:
"1"
,
confValue
:
"已结清"
,
color
:
"#2CCA74"
}
{
confId
:
"1"
,
confValue
:
"已结清"
,
color
:
"#2CCA74"
}
]
]
...
...
src/router/modules/920_usedCarManagement.js
View file @
a857675
...
@@ -209,12 +209,12 @@ export const routerName = {
...
@@ -209,12 +209,12 @@ export const routerName = {
}
}
]
]
},
},
{
//
{
authId
:
"9200402"
,
//
authId: "9200402",
parentId
:
"92004"
,
//
parentId: "92004",
label
:
"状态变更"
,
//
label: "状态变更",
handle
:
"handleChangeStatus"
//
handle: "handleChangeStatus"
},
//
},
{
{
authId
:
"9200403"
,
authId
:
"9200403"
,
parentId
:
"92004"
,
parentId
:
"92004"
,
...
...
src/views/usedCarManagement/deliveryOrderManagement/index.vue
View file @
a857675
...
@@ -5,9 +5,9 @@
...
@@ -5,9 +5,9 @@
<d2-search
ref=
"showSearch"
class=
"show-search"
:search-form=
"searchForm"
:label-width=
"'120px'"
<d2-search
ref=
"showSearch"
class=
"show-search"
:search-form=
"searchForm"
:label-width=
"'120px'"
:search-select-obj=
"searchSelectObj"
:form-data=
"showFormData"
>
:search-select-obj=
"searchSelectObj"
:form-data=
"showFormData"
>
<div
class=
"input"
slot=
"sourceNoInput"
>
<div
class=
"input"
slot=
"sourceNoInput"
>
<el-input
clear
v-model=
"searchSelectObj.sourceNo"
placeholder=
"请输入来源单号"
clearable
:maxlength=
"20"
<el-input
clear
v-model=
"searchSelectObj.sourceNo"
placeholder=
"请输入来源单号"
clearable
:maxlength=
"20"
@
input=
"filterSourceNo
"
@
input=
"filterSourceNo"
@
compositionstart=
"isComposing = true
"
@
composition
start=
"isComposing = true"
@
composition
end=
"handleCompositionEnd"
></el-input>
@
compositionend=
"handleCompositionEnd"
></el-input>
</div>
</div>
</d2-search>
</d2-search>
<div
class=
"up-btns"
>
<div
class=
"up-btns"
>
...
@@ -33,14 +33,14 @@
...
@@ -33,14 +33,14 @@
<div
slot=
"orderStatusHtml"
slot-scope=
"scope"
>
<div
slot=
"orderStatusHtml"
slot-scope=
"scope"
>
<div
class=
"online-status"
>
<div
class=
"online-status"
>
<span
class=
"dot"
:style=
"
{
<span
class=
"dot"
:style=
"
{
background:
baseData.orderStatusMap
.find(
background:
((baseData.orderStatusMap || [])
.find(
(item) =>
item.confId == scope.scope.orderStatus
(item) =>
String(item.confId) === String(scope.scope.orderStatus)
)
.color
)
|| {}).color || ''
}">
</span>
}">
</span>
{{
{{
baseData
.
orderStatusMap
.
find
(
((
baseData
.
orderStatusMap
||
[])
.
find
(
(
item
)
=>
item
.
confId
==
scope
.
scope
.
orderStatus
(
item
)
=>
String
(
item
.
confId
)
===
String
(
scope
.
scope
.
orderStatus
)
)
.
confValue
)
||
{
}
).
confValue
||
'--'
}}
}}
<
/div
>
<
/div
>
<
/div
>
<
/div
>
...
@@ -48,14 +48,14 @@
...
@@ -48,14 +48,14 @@
<
div
slot
=
"tailPayStatusHtml"
slot
-
scope
=
"scope"
>
<
div
slot
=
"tailPayStatusHtml"
slot
-
scope
=
"scope"
>
<
div
class
=
"online-status"
>
<
div
class
=
"online-status"
>
<
span
class
=
"dot"
:
style
=
"
{
<
span
class
=
"dot"
:
style
=
"
{
background:
baseData.tailPayStatusMap
.find(
background
:
((
baseData
.
tailPayStatusMap
||
[])
.
find
(
(item) =>
item.confId == scope.scope.paymentStatus
(
item
)
=>
String
(
item
.
confId
)
===
String
(
scope
.
scope
.
paymentStatus
)
)
.color
)
||
{
}
).
color
||
''
}"
><
/span
>
}"
><
/span
>
{{
{{
baseData
.
tailPayStatusMap
.
find
(
((
baseData
.
tailPayStatusMap
||
[])
.
find
(
(
item
)
=>
item
.
confId
==
scope
.
scope
.
paymentStatus
(
item
)
=>
String
(
item
.
confId
)
===
String
(
scope
.
scope
.
paymentStatus
)
)
.
confValue
)
||
{
}
).
confValue
||
'--'
}}
}}
<
/div
>
<
/div
>
<
/div
>
<
/div
>
...
@@ -180,7 +180,7 @@ export default {
...
@@ -180,7 +180,7 @@ export default {
width
:
"160px"
width
:
"160px"
}
,
}
,
{
{
label
:
"成交"
,
label
:
"成交
时间
"
,
prop
:
"transactionTime"
,
prop
:
"transactionTime"
,
width
:
"160px"
width
:
"160px"
}
,
}
,
...
@@ -339,7 +339,7 @@ export default {
...
@@ -339,7 +339,7 @@ export default {
type
:
'selectDatePicker'
,
type
:
'selectDatePicker'
,
selectName
:
'divisionOrPayDate'
,
selectName
:
'divisionOrPayDate'
,
isClear
:
true
,
isClear
:
true
,
itemStyle
:
"width: 9
0
%;"
,
itemStyle
:
"width: 9
4
%;"
,
selectWidth
:
"165px"
,
selectWidth
:
"165px"
,
pickerOptions
:
'rangePickerOptions'
,
pickerOptions
:
'rangePickerOptions'
,
selectOption
:
[{
selectOption
:
[{
...
...
src/views/usedCarManagement/vehicleManagement/index.vue
View file @
a857675
...
@@ -4,6 +4,11 @@
...
@@ -4,6 +4,11 @@
<div
class=
"header"
slot=
"header"
>
<div
class=
"header"
slot=
"header"
>
<d2-search
ref=
"showSearch"
class=
"show-search"
:search-form=
"searchForm"
:form-data=
"showFormData"
<d2-search
ref=
"showSearch"
class=
"show-search"
:search-form=
"searchForm"
:form-data=
"showFormData"
labelWidth=
"130px"
>
labelWidth=
"130px"
>
<div
class=
"input"
slot=
"sourceNoInput"
>
<el-input
clear
v-model=
"searchSelectObj.sourceNo"
placeholder=
"请输入来源单号"
clearable
:maxlength=
"20"
@
input=
"filterSourceNo"
@
compositionstart=
"isComposing = true"
@
compositionend=
"handleCompositionEnd"
></el-input>
</div>
</d2-search>
</d2-search>
<div
class=
"up-btns"
>
<div
class=
"up-btns"
>
<el-button
:id=
"tableParams.btnId"
size=
"small"
type=
"primary"
handle
>
<el-button
:id=
"tableParams.btnId"
size=
"small"
type=
"primary"
handle
>
...
@@ -118,10 +123,11 @@ export default {
...
@@ -118,10 +123,11 @@ export default {
},
},
{
{
label
:
"车源号"
,
label
:
"车源号"
,
name
:
"sourceNo"
,
// name: "sourceNo",
type
:
"input"
,
// type: "input",
isClear
:
true
,
// isClear: true,
maxlength
:
20
// maxlength: 20,
addHtml
:
'sourceNoInput'
},
},
{
{
label
:
"车型"
,
label
:
"车型"
,
...
@@ -356,6 +362,26 @@ export default {
...
@@ -356,6 +362,26 @@ export default {
close
:
"d2admin/page/close"
close
:
"d2admin/page/close"
}),
}),
...
mapActions
(
"d2admin/user"
,
[
"actionSetDownloadList"
]),
...
mapActions
(
"d2admin/user"
,
[
"actionSetDownloadList"
]),
// 只允许英文字母/数字/ASCII 可见特殊字符(过滤中文及非 ASCII)
filterSourceNo
(
val
)
{
if
(
this
.
isComposing
)
return
const
sanitized
=
(
val
||
""
).
replace
(
/
[^\x
20-
\x
7E
]
/g
,
""
)
const
limited
=
sanitized
.
slice
(
0
,
20
)
if
(
val
!==
limited
)
{
this
.
searchSelectObj
.
sourceNo
=
limited
}
},
// 处理中文输入法组合输入结束后统一过滤
handleCompositionEnd
()
{
this
.
isComposing
=
false
const
val
=
this
.
searchSelectObj
.
sourceNo
||
""
const
limited
=
val
.
replace
(
/
[^\x
20-
\x
7E
]
/g
,
""
).
slice
(
0
,
20
)
if
(
val
!==
limited
)
{
this
.
$nextTick
(()
=>
{
this
.
searchSelectObj
.
sourceNo
=
limited
})
}
},
handleReset
()
{
handleReset
()
{
this
.
searchForm
=
this
.
$options
.
data
.
call
(
this
).
searchForm
this
.
searchForm
=
this
.
$options
.
data
.
call
(
this
).
searchForm
this
.
$refs
.
vehicleManagementTable
.
refreshTable
(
true
,
true
)
this
.
$refs
.
vehicleManagementTable
.
refreshTable
(
true
,
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