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
d41f6c6c
Commit
d41f6c6c
authored
Nov 13, 2024
by
xiamw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复bug 价格列表:目的国、目的地、目的仓搜索,点击重置按钮无效
parent
215b3751
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
70 additions
and
61 deletions
+70
-61
index.vue
src/components/RoutersSelector/index.vue
+61
-52
index.vue
src/views/ecw/coupon/index.vue
+9
-9
No files found.
src/components/RoutersSelector/index.vue
View file @
d41f6c6c
...
...
@@ -11,7 +11,10 @@
</el-select>
{{$t('目的国')}}:
<el-select
:placeholder=
"$t('请选择目的国')"
v-model=
"destCountryId"
clearable
>
<el-select
:placeholder=
"$t('请选择目的国')"
v-model=
"destCountryIds"
multiple
clearable
>
<el-option
v-for=
"item in countryList"
:key=
"item.id"
:label=
"$l(item, 'title')"
:value=
"item.id"
/>
</el-select>
...
...
@@ -21,11 +24,17 @@
<el-option v-for="item in importCityList" :key="item.id" :label="item.titleZh" :value="item.id" />
</el-select>
-->
<el-select
:placeholder=
"$t('请选择目的城市')"
v-model=
"destCityId"
clearable
>
<el-select
:placeholder=
"$t('请选择目的城市')"
v-model=
"destCityIds"
multiple
clearable
>
<el-option
v-for=
"item in AddressCity"
:key=
"item.shi"
:label=
"item.shiName"
:value=
"item.shi"
/>
</el-select>
{{$t('目的仓')}}:
<el-select
:placeholder=
"$t('请选择目的仓')"
v-model=
"destWarehouseId"
clearable
>
<el-select
:placeholder=
"$t('请选择目的仓')"
v-model=
"destWarehouseIds"
multiple
clearable
>
<el-option
v-for=
"item in AddressTown"
:key=
"item.id"
:label=
"item.titleZh"
:value=
"item.id"
/>
</el-select>
...
...
@@ -134,10 +143,10 @@ export default {
countryList
:
[],
//目的国
AddressCity
:
[],
//目的地
AddressTown
:
[],
//目的仓
destCountryId
:
null
,
destCityId
:
null
,
destWarehouseId
:
null
,
destCountryId
s
:
null
,
destCityId
s
:
null
,
destWarehouseId
s
:
null
,
}
},
computed
:{
...
...
@@ -283,17 +292,17 @@ export default {
//每当值省份值改变时其下地区值进行清空
this
.
AddressCity
=
[];
this
.
AddressTown
=
[];
this
.
destWarehouseId
=
""
;
this
.
destCityId
=
""
;
this
.
destWarehouseId
s
=
""
;
this
.
destCityId
s
=
""
;
this
.
findByprovinceCode
();
if
(
this
.
destCountryId
==
""
)
{
if
(
this
.
destCountryId
s
==
""
)
{
//1 是所有区域,2 国家,3是市,
this
.
getAddressCity
()
this
.
getAddressTown
()
}
else
if
(
this
.
destCountryId
!=
""
&&
this
.
destCityId
==
""
&&
this
.
destWarehouseId
==
""
this
.
destCountryId
s
!=
""
&&
this
.
destCityId
s
==
""
&&
this
.
destWarehouseId
s
==
""
)
{
this
.
getAddressTown
()
}
...
...
@@ -304,35 +313,35 @@ export default {
deep
:
true
,
//深度监听 目的仓
handler
()
{
this
.
AddressTown
=
[];
this
.
destWarehouseId
=
""
;
this
.
destWarehouseId
s
=
""
;
this
.
findBycityCode
();
if
(
this
.
destCityId
!=
""
&&
this
.
destCountryId
!=
""
&&
this
.
destWarehouseId
==
""
this
.
destCityId
s
!=
""
&&
this
.
destCountryId
s
!=
""
&&
this
.
destWarehouseId
s
==
""
)
{
//获取当前城市值id,获取该城市下区域
}
else
if
(
this
.
destCountryId
==
""
&&
this
.
destCityId
==
""
&&
this
.
destWarehouseId
==
""
this
.
destCountryId
s
==
""
&&
this
.
destCityId
s
==
""
&&
this
.
destWarehouseId
s
==
""
)
{
this
.
getAddressTown
()
}
else
if
(
this
.
destCountryId
!=
""
&&
this
.
destCityId
==
""
&&
this
.
destWarehouseId
==
""
this
.
destCountryId
s
!=
""
&&
this
.
destCityId
s
==
""
&&
this
.
destWarehouseId
s
==
""
)
{
this
.
findByprovinceCode
()
this
.
getAddressTown
()
}
else
if
(
this
.
destCountryId
==
""
&&
this
.
destCityId
!=
""
&&
this
.
destWarehouseId
==
""
this
.
destCountryId
s
==
""
&&
this
.
destCityId
s
!=
""
&&
this
.
destWarehouseId
s
==
""
)
{
//获取当前城市值id,获取该城市下区域
}
this
.
getOpenedRouterList
()
this
.
getChannelList
()
...
...
@@ -342,22 +351,22 @@ export default {
deep
:
true
,
//深度监听
handler
()
{
if
(
this
.
destCountryId
!=
""
&&
this
.
destCityId
!=
""
&&
this
.
destWarehouseId
==
""
this
.
destCountryId
s
!=
""
&&
this
.
destCityId
s
!=
""
&&
this
.
destWarehouseId
s
==
""
)
{
//获取当前城市值id,获取该城市下区域
this
.
findBycityCode
()
}
else
if
(
this
.
destCountryId
!=
""
&&
this
.
destCityId
==
""
&&
this
.
destWarehouseId
==
""
this
.
destCountryId
s
!=
""
&&
this
.
destCityId
s
==
""
&&
this
.
destWarehouseId
s
==
""
)
{
this
.
getAddressTown
()
}
else
if
(
this
.
destCountryId
==
""
&&
this
.
destCityId
!=
""
&&
this
.
destWarehouseId
==
""
this
.
destCountryId
s
==
""
&&
this
.
destCityId
s
!=
""
&&
this
.
destWarehouseId
s
==
""
)
{
this
.
findBycityCode
()
}
...
...
@@ -394,7 +403,7 @@ export default {
if
(
this
.
type
==
'
sea
'
)
return
let
query
=
{
// cityId: this.importCity
cityId
:
this
.
destCityId
cityId
:
this
.
destCityId
s
}
getChannelList
(
query
).
then
(
res
=>
{
this
.
channelList
=
res
.
data
...
...
@@ -407,9 +416,9 @@ export default {
},
changeOption
(){
if
(
!
this
.
option
)
return
this
.
destCountryId
=
+
this
.
option
.
destCountryId
||
null
this
.
destCityId
=
+
this
.
option
.
destCityId
||
null
this
.
destWarehouseId
=
+
this
.
option
.
destWarehouseId
||
null
this
.
destCountryId
s
=
+
this
.
option
.
destCountryId
||
null
this
.
destCityId
s
=
+
this
.
option
.
destCityId
||
null
this
.
destWarehouseId
s
=
+
this
.
option
.
destWarehouseId
||
null
// this.importCity = +this.option.importCity || null
this
.
exportCity
=
+
this
.
option
.
exportCity
||
null
this
.
transportType
=
this
.
option
.
transportId
||
null
...
...
@@ -428,14 +437,14 @@ export default {
if
(
this
.
exportCity
){
params
.
startCityId
=
this
.
exportCity
}
if
(
this
.
destCountryId
){
params
.
destCountryId
=
this
.
destCountryId
if
(
this
.
destCountryId
s
){
params
.
destCountryId
s
=
this
.
destCountryId
}
if
(
this
.
destCityId
){
params
.
destCityId
=
this
.
destCityId
if
(
this
.
destCityId
s
){
params
.
destCityId
s
=
this
.
destCityIds
}
if
(
this
.
destWarehouseId
){
params
.
destWarehouseId
=
this
.
destWarehouseId
if
(
this
.
destWarehouseId
s
){
params
.
destWarehouseId
s
=
this
.
destWarehouseIds
}
const
res
=
await
openedRouterList
(
params
)
this
.
openedRouterList
=
res
.
data
.
filter
(
item
=>
{
...
...
@@ -511,18 +520,18 @@ export default {
})
},
findByprovinceCode
()
{
if
(
this
.
destCountryId
!=
null
&&
this
.
destCountryId
!=
''
)
{
if
(
this
.
destCountryId
s
!=
null
&&
this
.
destCountryIds
!=
''
)
{
//获取当前省份值id,获取该省份下城市 destCountryId provinceCode
getRegionList
(
2
,
this
.
destCountryId
).
then
(({
data
})
=>
{
getRegionList
(
2
,
this
.
destCountryId
s
).
then
(({
data
})
=>
{
this
.
AddressCity
=
data
;
})
}
},
findBycityCode
()
{
if
(
this
.
destCityId
!=
null
&&
this
.
destCityId
!=
''
)
{
if
(
this
.
destCityId
s
!=
null
&&
this
.
destCityIds
!=
''
)
{
//获取当前城市值id,获取该城市下区域
getRegionList
(
3
,
this
.
destCityId
).
then
(({
data
})
=>
{
getRegionList
(
3
,
this
.
destCityId
s
).
then
(({
data
})
=>
{
this
.
AddressTown
=
data
;
})
}
...
...
src/views/ecw/coupon/index.vue
View file @
d41f6c6c
...
...
@@ -34,14 +34,15 @@
</el-form-item>
<el-form-item
:label=
"$t('有效期')"
prop=
"validDays"
>
<el-input
v-model.trim=
"queryParams.validDays"
:placeholder=
"$t('请输入有效期')"
clearable
@
keyup.enter.native=
"handleQuery"
onkeyup=
"this.value=this.value.replace(/(^\s*)|(\s*$)/g,'')"
/>
<el-form-item
:label=
"$t('结束时间')"
>
<el-date-picker
v-model=
"dateRangeEndTime"
type=
"daterange"
:start-placeholder=
"$t('开始日期')"
value-format=
"yyyy-MM-dd"
:end-placeholder=
"$t('结束日期')"
>
</el-date-picker>
</el-form-item>
<el-form-item
:label=
"$t('创建时间')"
>
...
...
@@ -103,7 +104,6 @@
<div>
{{
parseTime
(
scope
.
row
.
createTime
)
}}
</div>
</
template
>
</el-table-column>
<el-table-column
:label=
"$t('有效期(天)')"
align=
"center"
prop=
"validDays"
width=
"90"
/>
<el-table-column
:label=
"$t('开始时间')"
align=
"center"
prop=
"startTime"
width=
"100"
>
<
template
slot-scope=
"scope"
>
...
...
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