Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx
/
gl_tape
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
3
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 679cedec
authored
Dec 11, 2025
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'SAAS+V5.5.0' of
http://192.168.3.233:8090/glsx/gl_tape
into SAAS+V5.5.0
2 parents
38411541
bd87d02f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
10 deletions
pages/boutique/tool/components/CreateOrder.vue
pages/boutique/tool/components/CreateOrder.vue
View file @
679cede
...
@@ -218,7 +218,7 @@ export default {
...
@@ -218,7 +218,7 @@ export default {
positionTypeList
:
[],
positionTypeList
:
[],
valueKey
:
''
,
valueKey
:
''
,
totalPrice
:
0
,
totalPrice
:
0
,
validateState
:
true
,
validateState
:
true
,
// 产品槽位配置,用于循环渲染产品组件
// 产品槽位配置,用于循环渲染产品组件
productSlots
:
{
productSlots
:
{
frontGear
:
true
,
frontGear
:
true
,
...
@@ -285,7 +285,12 @@ export default {
...
@@ -285,7 +285,12 @@ export default {
// 防止从补录进来4s店收款为禁用
// 防止从补录进来4s店收款为禁用
const
cell
=
this
.
formList
[
2
].
find
(
item
=>
item
.
value
==
'payeeType'
)
const
cell
=
this
.
formList
[
2
].
find
(
item
=>
item
.
value
==
'payeeType'
)
if
(
cell
)
{
if
(
cell
)
{
// 编辑订单时,使用已有的payeeType值,新建订单时使用默认值1
if
(
!
this
.
orderObj
.
id
)
{
cell
.
current
=
1
cell
.
current
=
1
}
else
{
cell
.
current
=
this
.
orderObj
.
payeeType
}
cell
.
radioList
[
1
].
disabled
=
false
cell
.
radioList
[
1
].
disabled
=
false
}
}
this
.
getConfig
()
this
.
getConfig
()
...
@@ -387,17 +392,19 @@ export default {
...
@@ -387,17 +392,19 @@ export default {
this
.
orderObj
.
customer
[
val
.
value
]
=
this
.
orderObj
[
val
.
value
]
this
.
orderObj
.
customer
[
val
.
value
]
=
this
.
orderObj
[
val
.
value
]
// VIN车架号动态校验:车架号字段,动态转换为大写
// VIN车架号动态校验:车架号字段,动态转换为大写
let
standNoVal
=
this
.
orderObj
.
standNo
;
let
standNoVal
=
this
.
orderObj
.
standNo
if
(
val
.
value
===
'standNo'
&&
standNoVal
)
{
if
(
val
.
value
===
'standNo'
&&
standNoVal
)
{
this
.
orderObj
.
standNo
=
formatVinInput
(
standNoVal
)
this
.
orderObj
.
standNo
=
formatVinInput
(
standNoVal
)
validateVin
(
this
.
orderObj
.
standNo
).
then
(
result
=>
{
validateVin
(
this
.
orderObj
.
standNo
)
console
.
log
(
"validateVin"
,
result
);
.
then
(
result
=>
{
let
{
valid
}
=
result
.
data
;
console
.
log
(
'validateVin'
,
result
)
let
{
valid
}
=
result
.
data
this
.
validateState
=
valid
this
.
validateState
=
valid
// 校验成功,所有提示已在公共方法中处理
// 校验成功,所有提示已在公共方法中处理
console
.
log
(
'车架号校验成功:'
,
result
)
console
.
log
(
'车架号校验成功:'
,
result
)
}).
catch
(
err
=>
{
})
console
.
log
(
"validateVinErr"
,
result
);
.
catch
(
err
=>
{
console
.
log
(
'validateVinErr'
,
result
)
})
})
}
}
},
},
...
@@ -478,16 +485,16 @@ export default {
...
@@ -478,16 +485,16 @@ export default {
async
submit
()
{
async
submit
()
{
// VIN车架号-动态校验
// VIN车架号-动态校验
const
carVin
=
this
.
orderObj
.
standNo
const
carVin
=
this
.
orderObj
.
standNo
console
.
log
(
"validateState"
,
this
.
validateState
);
console
.
log
(
'validateState'
,
this
.
validateState
)
if
(
carVin
)
{
if
(
carVin
)
{
// 前置判断
// 前置判断
if
(
carVin
.
length
!==
17
)
{
if
(
carVin
.
length
!==
17
)
{
uni
.
showToast
({
title
:
'请输入 17 位有效字符(支持大写 A-H/J-N/P-Z、0-9)'
,
icon
:
'none'
})
uni
.
showToast
({
title
:
'请输入 17 位有效字符(支持大写 A-H/J-N/P-Z、0-9)'
,
icon
:
'none'
})
return
false
return
false
}
}
// 根据接口校验结果判断
// 根据接口校验结果判断
if
(
carVin
.
length
===
17
&&
!
this
.
validateState
)
{
if
(
carVin
.
length
===
17
&&
!
this
.
validateState
)
{
uni
.
showToast
({
title
:
'车架号校验不匹配,请核对后重新输入'
,
icon
:
'none'
})
uni
.
showToast
({
title
:
'车架号校验不匹配,请核对后重新输入'
,
icon
:
'none'
})
return
false
return
false
}
}
}
}
...
...
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