Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-app-operator-master
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lanbaoming
jiedao-app-operator-master
Commits
79aa69fc
Commit
79aa69fc
authored
Mar 24, 2025
by
knight
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
集运线路服务费配置增加验证
parent
39890aec
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
19 deletions
+33
-19
index.vue
src/views/ecw/warehouse/index.vue
+33
-19
No files found.
src/views/ecw/warehouse/index.vue
View file @
79aa69fc
...
...
@@ -582,7 +582,7 @@
</div>
<br
/>
<el-form
ref=
"lineform"
:model=
"lineform"
:rules=
"
lineform.
rules"
label-width=
"160px"
>
<el-form
ref=
"lineform"
:model=
"lineform"
:rules=
"rules"
label-width=
"160px"
>
<el-form-item
:label=
"$t('始发港服务')"
>
<el-checkbox-group
v-model=
"lineform.otherService"
>
<el-checkbox
...
...
@@ -652,9 +652,9 @@
<!-- 集运服务费设置 -->
<
template
>
<el-form-item
:label=
"$t('集运服务费')"
>
<el-form-item
:label=
"$t('集运服务费')"
prop=
"consServiceFeeCurrency"
>
<el-input-number
v-model=
"lineform.consServiceFee"
:controls=
"false"
:precision=
"2"
:step=
"0.1"
@
change=
"handleServiceFeeChange"
></el-input-number>
<el-select
v-model=
"lineform.consServiceFeeCurrency"
style=
"margin-left: 20px;"
clearable
:placeholder=
"$t('请选择币种')"
>
<el-select
v-model=
"lineform.consServiceFeeCurrency"
style=
"margin-left: 20px;"
clearable
:placeholder=
"$t('请选择币种')"
>
<el-option
v-for=
"item in currencyList"
:disabled=
"item.status === 1"
...
...
@@ -666,7 +666,7 @@
</
template
>
<!-- 集运验货服务费设置 -->
<
template
>
<el-form-item
:label=
"$t('集运验货服务费')"
>
<el-form-item
:label=
"$t('集运验货服务费')"
prop=
"consInspectionFeeCurrency"
>
<el-input-number
v-model=
"lineform.consInspectionFee"
:controls=
"false"
:precision=
"2"
:step=
"0.1"
></el-input-number>
<el-select
v-model=
"lineform.consInspectionFeeCurrency"
style=
"margin-left: 20px;"
clearable
:placeholder=
"$t('请选择币种')"
>
<el-option
...
...
@@ -1094,20 +1094,6 @@ export default {
consVolumeLimit
:
""
,
stockDurationLimit
:
""
,
rules
:{
consServiceFeeCurrency
:
[
{
validator
:
(
rule
,
value
,
callback
)
=>
{
if
(
this
.
lineform
.
consServiceFee
!=
null
&&
!
value
)
{
callback
(
new
Error
(
this
.
$t
(
'
集运服务费币种不能为空
'
)));
}
else
{
callback
();
}
},
trigger
:
[
'
blur
'
,
'
change
'
]
}
],
}
},
startName
:
""
,
destName
:
""
,
...
...
@@ -1207,6 +1193,32 @@ export default {
},
],
consServiceFeeCurrency
:
[
{
validator
:
(
rule
,
value
,
callback
)
=>
{
if
(
this
.
lineform
.
consServiceFee
>
0
&&
!
value
)
{
callback
(
new
Error
(
this
.
$t
(
'
集运服务费币种不能为空
'
)));
}
else
{
callback
();
}
},
trigger
:
[
'
blur
'
,
'
change
'
]
}
],
consInspectionFeeCurrency
:
[
{
validator
:
(
rule
,
value
,
callback
)
=>
{
if
(
this
.
lineform
.
consInspectionFee
>
0
&&
!
value
)
{
callback
(
new
Error
(
this
.
$t
(
'
集运验货服务费币种不能为空
'
)));
}
else
{
callback
();
}
},
trigger
:
[
'
blur
'
,
'
change
'
]
}
],
},
nodeId
:
this
.
$route
.
query
.
nodeId
,
// 枚举
...
...
@@ -1590,8 +1602,10 @@ export default {
},
submitLineForm
()
{
this
.
$refs
[
"
lineform
"
].
validate
((
valid
,
errors
)
=>
{
this
.
$refs
[
"
lineform
"
].
validate
((
valid
,
errors
)
=>
{
if
(
valid
)
{
// 校验通过,执行保存逻辑
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment