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
be1c7349
Commit
be1c7349
authored
Sep 21, 2023
by
dragondean@qq.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
切换路线自动重置,加已选择的路线数提示
parent
071386a7
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
13 deletions
+19
-13
index.vue
src/components/RoutersSelector/index.vue
+16
-11
batchEdit.vue
src/views/ecw/productPrice/batchEdit.vue
+3
-2
No files found.
src/components/RoutersSelector/index.vue
View file @
be1c7349
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
<div>
<div>
<div
class=
"filters mb-10"
>
<div
class=
"filters mb-10"
>
{{
$t
(
'
运输方式
'
)
}}
{{
$t
(
'
运输方式
'
)
}}
<dict-selector
:type=
'DICT_TYPE.ECW_TRANSPORT_TYPE'
v-model=
"transportType"
:placeholder=
"$t('请选择运输方式')"
style=
"width:150px"
/>
<dict-selector
:type=
'DICT_TYPE.ECW_TRANSPORT_TYPE'
v-model=
"transportType"
:placeholder=
"$t('请选择运输方式')"
clearable
style=
"width:150px"
/>
{{
$t
(
'
始发地
'
)
}}
:
{{
$t
(
'
始发地
'
)
}}
:
<el-select
:placeholder=
"$t('请选择始发地')"
v-model=
"exportCity"
clearable
>
<el-select
:placeholder=
"$t('请选择始发地')"
v-model=
"exportCity"
clearable
>
...
@@ -19,11 +19,12 @@
...
@@ -19,11 +19,12 @@
<el-option
v-for=
"item in channelList"
:key=
"item.channelId"
:label=
"item.nameZh"
:value=
"item.channelId"
/>
<el-option
v-for=
"item in channelList"
:key=
"item.channelId"
:label=
"item.nameZh"
:value=
"item.channelId"
/>
</el-select>
</el-select>
</div>
</div>
<div
class=
"mb-10"
>
<div
class=
"mb-10
flex-row
"
>
<el-radio-group
v-model=
"checkAll"
>
<el-radio-group
v-model=
"checkAll"
>
<el-radio
:label=
"true"
>
{{
$t
(
'
全选
'
)
}}
</el-radio>
<el-radio
:label=
"true"
>
{{
$t
(
'
全选
'
)
}}
</el-radio>
<el-radio
:label=
"false"
>
{{
$t
(
'
全不选
'
)
}}
</el-radio>
<el-radio
:label=
"false"
>
{{
$t
(
'
全不选
'
)
}}
</el-radio>
</el-radio-group>
</el-radio-group>
<el-link
class=
"ml-20"
type=
"danger"
>
{{
$t
(
'
已选择{n
}
条路线
'
,
{
n
:
selectedRoutes
.
length
}
)
}}
<
/el-link
>
<
/div
>
<
/div
>
<
el
-
row
class
=
""
:
gutter
=
"
10
"
>
<
el
-
row
class
=
""
:
gutter
=
"
10
"
>
<
template
v
-
for
=
"
(item, index) in filteredRouterList
"
>
<
template
v
-
for
=
"
(item, index) in filteredRouterList
"
>
...
@@ -189,6 +190,10 @@ export default {
...
@@ -189,6 +190,10 @@ export default {
this
.
changeOption
()
this
.
changeOption
()
}
}
}
,
// 显示的路线发生变化之后,清空已勾选的路线
filteredRouterList
(){
this
.
selectedRoutes
=
[]
}
}
}
,
}
,
created
(){
created
(){
...
...
src/views/ecw/productPrice/batchEdit.vue
View file @
be1c7349
...
@@ -346,7 +346,7 @@ export default {
...
@@ -346,7 +346,7 @@ export default {
this
.
$set
(
this
.
form
,
'
allVolumeUnit
'
,
unit
)
this
.
$set
(
this
.
form
,
'
allVolumeUnit
'
,
unit
)
}
,
}
,
submitForm
()
{
submitForm
()
{
this
.
$refs
[
"
form
"
].
validate
(
valid
=>
{
this
.
$refs
[
"
form
"
].
validate
(
async
(
valid
)
=>
{
if
(
!
valid
)
{
if
(
!
valid
)
{
return
;
return
;
}
}
...
@@ -377,6 +377,7 @@ export default {
...
@@ -377,6 +377,7 @@ export default {
if
(
data
.
lineChannelList
.
length
<
1
){
if
(
data
.
lineChannelList
.
length
<
1
){
return
this
.
$message
.
error
(
this
.
$t
(
'
请选择需要修改的路线
'
))
return
this
.
$message
.
error
(
this
.
$t
(
'
请选择需要修改的路线
'
))
}
}
await
this
.
$confirm
(
this
.
$t
(
'
已选择{n
}
条路线,确认提交修改?
'
,
{
n
:
data
.
lineChannelList
.
length
}
))
this
.
loading
=
true
this
.
loading
=
true
batchUpdateProductPrice
(
data
).
then
(
response
=>
{
batchUpdateProductPrice
(
data
).
then
(
response
=>
{
this
.
$modal
.
msgSuccess
(
this
.
$t
(
"
修改成功
"
));
this
.
$modal
.
msgSuccess
(
this
.
$t
(
"
修改成功
"
));
...
...
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