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 585fe59d
authored
Mar 26, 2026
by
yancanhua
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix: 自测问题修改
1 parent
e396e2d7
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
8 deletions
apps/web/venus-usedcar-quality/src/components/CustomizeForm/Index.vue
apps/web/venus-usedcar-quality/src/components/CustomizeForm/selectDatePicker.vue
apps/web/venus-usedcar-quality/src/components/CustomizeForm/selectDropdown.vue
apps/web/venus-usedcar-quality/src/components/CustomizeForm/Index.vue
View file @
585fe59
...
@@ -164,13 +164,18 @@ function setSubmitData() {
...
@@ -164,13 +164,18 @@ function setSubmitData() {
}
}
}
}
}
}
let
allowNoStatus
=
1
;
if
(
item
.
itemType
==
2
&&
dataList
.
length
)
{
allowNoStatus
=
2
;
}
if
(
resultStatus
.
value
)
{
allowNoStatus
=
3
;
}
// 每项都入列,便于大项/二级切换时静默保存仍能带上当前 Tab 全部叶子(未填则为空 data,仍会走保存接口)
// 每项都入列,便于大项/二级切换时静默保存仍能带上当前 Tab 全部叶子(未填则为空 data,仍会走保存接口)
returnData
.
push
({
returnData
.
push
({
nodeId
:
item
.
id
,
nodeId
:
item
.
id
,
nodeName
:
item
.
nodeName
,
nodeName
:
item
.
nodeName
,
resultStatus
:
resultStatus
.
value
?
3
:
1
,
resultStatus
:
allowNoStatus
,
remark
:
""
,
remark
:
""
,
data
:
dataList
,
data
:
dataList
,
});
});
...
@@ -287,14 +292,16 @@ defineExpose({
...
@@ -287,14 +292,16 @@ defineExpose({
<div
v-if=
"item.interactionType == 'text_input'"
>
<div
v-if=
"item.interactionType == 'text_input'"
>
<van-field
v-model=
"item.value"
clearable
:label=
"item.nodeName"
<van-field
v-model=
"item.value"
clearable
:label=
"item.nodeName"
:maxlength=
"getValidationRules(item).maxLength || 120"
:placeholder=
"item.placeholder"
:maxlength=
"getValidationRules(item).maxLength || 120"
:placeholder=
"item.placeholder"
:required=
"item.required === 1"
/>
:required=
"item.required === 1"
:disabled=
"item.editPermission == '0'"
input-align=
"right"
/>
</div>
</div>
<!-- 长文本输入框 -->
<!-- 长文本输入框 -->
<div
v-if=
"item.interactionType == 'textarea_input'"
>
<div
v-if=
"item.interactionType == 'textarea_input'"
>
<van-field
v-model=
"item.value"
autosize
clearable
:label=
"item.nodeName"
<van-field
v-model=
"item.value"
autosize
clearable
:label=
"item.nodeName"
:maxlength=
"getValidationRules(item).maxLength || 120"
:placeholder=
"item.placeholder"
:maxlength=
"getValidationRules(item).maxLength || 120"
:placeholder=
"item.placeholder"
:required=
"item.required === 1"
rows=
"2"
show-word-limit
type=
"textarea"
/>
:required=
"item.required === 1"
rows=
"2"
show-word-limit
type=
"textarea"
input-align=
"right"
/>
</div>
</div>
<!-- 数字输入框 -->
<!-- 数字输入框 -->
...
@@ -304,7 +311,8 @@ defineExpose({
...
@@ -304,7 +311,8 @@ defineExpose({
:maxlength=
"getValidationRules(item).maxLength || 120"
:maxlength=
"getValidationRules(item).maxLength || 120"
:min=
"getValidationRules(item).min || 0"
:placeholder=
"item.placeholder"
:min=
"getValidationRules(item).min || 0"
:placeholder=
"item.placeholder"
:required=
"item.required === 1"
step=
"0.01"
type=
"number"
:required=
"item.required === 1"
step=
"0.01"
type=
"number"
@
input=
"(e) =>
{ item.value = parseFloat(item.value)?.toFixed(getValidationRules(item).decimalDigits || 2) || '' }" />
@
input=
"(e) =>
{ item.value = parseFloat(item.value)?.toFixed(getValidationRules(item).decimalDigits || 2) || '' }"
input-align="right" />
</div>
</div>
<!-- 单选框 -->
<!-- 单选框 -->
...
...
apps/web/venus-usedcar-quality/src/components/CustomizeForm/selectDatePicker.vue
View file @
585fe59
...
@@ -66,7 +66,7 @@ function onConfirm() {
...
@@ -66,7 +66,7 @@ function onConfirm() {
:placeholder=
"item.placeholder"
:placeholder=
"item.placeholder"
readonly
readonly
:required=
"item.required === 1"
:required=
"item.required === 1"
@
click=
"handleShowPicker"
/>
@
click=
"handleShowPicker"
input-align=
"right"
/>
<van-popup
v-model:show=
"showPicker"
<van-popup
v-model:show=
"showPicker"
destroy-on-close
destroy-on-close
position=
"bottom"
>
position=
"bottom"
>
...
...
apps/web/venus-usedcar-quality/src/components/CustomizeForm/selectDropdown.vue
View file @
585fe59
...
@@ -86,7 +86,7 @@ function onConfirm() {
...
@@ -86,7 +86,7 @@ function onConfirm() {
:placeholder=
"item.placeholder"
:placeholder=
"item.placeholder"
readonly
readonly
:required=
"item.required === 1"
:required=
"item.required === 1"
@
click=
"showPicker = true"
/>
@
click=
"showPicker = true"
input-align=
"right"
/>
<van-popup
v-model:show=
"showPicker"
<van-popup
v-model:show=
"showPicker"
destroy-on-close
destroy-on-close
position=
"bottom"
>
position=
"bottom"
>
...
...
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