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
a5cd5154
Commit
a5cd5154
authored
Nov 03, 2024
by
xiamw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
价格列表查询条件优化
parent
480b92a2
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
304 additions
and
15 deletions
+304
-15
all-routes-list.vue
src/views/ecw/offer/all-routes-list.vue
+297
-14
blacklist.vue
src/views/ecw/productPrice/blacklist.vue
+7
-1
No files found.
src/views/ecw/offer/all-routes-list.vue
View file @
a5cd5154
...
...
@@ -15,25 +15,59 @@
:key=
"item.id"
></el-option>
</el-select>
</el-form-item>
<el-form-item
:label=
"$t('目的仓')"
prop=
"destWarehouseIdArr"
>
<el-select
multiple
v-model=
"queryParams.destWarehouseIdList"
multiple
:placeholder=
"$t('请选择目的仓')"
clearable
>
<el-option
v-for=
"item in importWarehouseList"
:label=
"$l(item, 'title')"
:value=
"item.id"
:key=
"item.id"
></el-option>
</el-select>
</el-form-item>
<el-form-item
:label=
"$t('出货渠道')"
prop=
"shippingChannel"
>
<el-select
v-model=
"queryParams.channelId"
:placeholder=
"$t('请选择出货渠道')"
clearable
>
<el-option
v-for=
"item in channelList"
:label=
"item.nameZh"
:value=
"item.channelId"
:key=
"item.channelId"
></el-option>
</el-select>
</el-form-item>
<el-form-item
label-width=
"200"
label=
"目的仓国家"
>
<el-select
style=
"width: 100%"
filterable
clearable
v-model=
"queryParams.destCountryId"
:placeholder=
"$t('请选择国家')"
>
<el-option
v-for=
"dict in countryList"
:key=
"dict.id"
:label=
"$l(dict,'title')"
:value=
"parseInt(dict.id)"
/>
<el-form-item
:label=
"$t('目的国')"
prop=
"destCountryId"
>
<el-select
v-model=
"destCountryId"
multiple
:label=
"destCountryId"
clearable
@
change=
"handleQuery"
>
<el-option
v-for=
"item in countryList"
:key=
"item.id"
:label=
"$l(item, 'title')"
:value=
"item.id"
>
</el-option>
</el-select>
</el-form-item>
<el-form-item
:label=
"$t('目的地')"
prop=
"destCityId"
>
<el-select
v-model=
"destCityId"
multiple
clearable
@
change=
"handleQuery"
>
<el-option
v-for=
"item in AddressCity"
:key=
"item.shi"
:label=
"item.shiName"
:value=
"item.shi"
></el-option>
</el-select>
</el-form-item>
<el-form-item
:label=
"$t('目的仓')"
prop=
"destWarehouseId"
>
<el-select
v-model=
"destWarehouseId"
clearable
multiple
@
change=
"handleQuery"
>
<el-option
v-for=
"item in AddressTown"
:key=
"item.id"
:label=
"item.titleZh"
:value=
"item.id"
></el-option>
</el-select>
</el-form-item>
<el-button
type=
"primary"
icon=
"el-icon-search"
@
click=
"handleQuery"
>
{{
$t
(
'
搜索
'
)
}}
</el-button>
</el-form-item>
</el-form>
...
...
@@ -97,8 +131,11 @@ import {
getPersonTargetPage
,
myAchievementByPage
}
from
"
@/api/ecw/deptTarget
"
;
import
{
getRegionList
}
from
"
@/api/ecw/order
"
;
import
{
listSimpleDepts
}
from
"
@/api/system/dept
"
;
import
{
getChannelList
}
from
'
@/api/ecw/channel
'
;
import
{
getTradeCityList
,
getListTree
}
from
"
@/api/ecw/region
"
;
import
{
getCityList
}
from
"
@/api/ecw/region
"
;
import
dayjs
from
"
dayjs
"
;
import
{
listServiceUser
}
from
"
@/api/system/user
"
;
import
{
getWarehouseList
}
from
'
@/api/ecw/warehouse
'
...
...
@@ -111,7 +148,19 @@ export default {
components
:
{},
data
()
{
return
{
countryList
:[],
AddressCity
:
[],
//目的城市
AddressProvince
:
[],
//省份
AddressTown
:
[],
//目的仓
countryList
:
[],
//目的国
warehouseList
:
[],
//目前仓
destCountryId
:
[],
destCityId
:
null
,
destWarehouseId
:
""
,
objectiveId
:
[],
// 遮罩层
loading
:
true
,
// 总条数
...
...
@@ -125,6 +174,10 @@ export default {
queryParams
:
{
page
:
1
,
rows
:
10
,
destCityId
:
null
,
//目的城市
destCountryId
:
null
,
//目的国
destWarehouseId
:
null
,
//目的仓
objectiveId
:
null
,
},
// 表单校验
...
...
@@ -132,6 +185,168 @@ export default {
warehouseList
:
[]
};
},
watch
:
{
destCountryId
:
{
//监听当前地区值的变化,于与上方地区值进行了双向绑定
deep
:
true
,
//深度监听
handler
()
{
//每当值省份值改变时其下地区值进行清空
this
.
AddressCity
=
[];
this
.
AddressTown
=
[];
this
.
destWarehouseId
=
""
;
this
.
destCityId
=
""
;
this
.
findByprovinceCode
();
if
(
this
.
destCountryId
==
""
)
{
//1 是所有区域,2 国家,3是市,
getRegionList
(
4
,
4
)
.
then
(({
data
})
=>
{
this
.
AddressCity
=
data
;
})
.
catch
((
error
)
=>
{
console
.
log
(
error
);
});
getRegionList
(
5
,
5
)
.
then
(({
data
})
=>
{
this
.
AddressTown
=
data
;
})
.
catch
((
error
)
=>
{
console
.
log
(
error
);
});
}
else
if
(
this
.
destCountryId
!=
""
&&
this
.
objectiveId
==
""
&&
this
.
destWarehouseId
==
""
)
{
getRegionList
(
2
,
this
.
destCountryId
)
.
then
(({
data
})
=>
{
this
.
AddressCity
=
data
;
})
.
catch
((
error
)
=>
{
console
.
log
(
error
);
});
getRegionList
(
5
,
5
)
.
then
(({
data
})
=>
{
this
.
AddressTown
=
data
;
})
.
catch
((
error
)
=>
{
console
.
log
(
error
);
});
}
},
},
destCityId
:
{
deep
:
true
,
//深度监听 目的仓
handler
()
{
this
.
AddressTown
=
[];
this
.
destWarehouseId
=
""
;
this
.
findBycityCode
();
if
(
this
.
destCityId
!=
""
&&
this
.
destCountryId
!=
""
&&
this
.
destWarehouseId
==
""
)
{
//获取当前城市值id,获取该城市下区域
getRegionList
(
3
,
this
.
destCityId
)
.
then
(({
data
})
=>
{
this
.
AddressTown
=
data
;
})
.
catch
((
error
)
=>
{
console
.
log
(
error
);
});
}
else
if
(
this
.
destCountryId
==
""
&&
this
.
destCityId
==
""
&&
this
.
destWarehouseId
==
""
)
{
getRegionList
(
5
,
5
)
.
then
(({
data
})
=>
{
this
.
AddressTown
=
data
;
})
.
catch
((
error
)
=>
{
console
.
log
(
error
);
});
}
else
if
(
this
.
destCountryId
!=
""
&&
this
.
destCityId
==
""
&&
this
.
destWarehouseId
==
""
)
{
getRegionList
(
2
,
this
.
destCountryId
)
.
then
(({
data
})
=>
{
this
.
AddressCity
=
data
;
})
.
catch
((
error
)
=>
{
console
.
log
(
error
);
});
getRegionList
(
5
,
5
)
.
then
(({
data
})
=>
{
this
.
AddressTown
=
data
;
})
.
catch
((
error
)
=>
{
console
.
log
(
error
);
});
}
else
if
(
this
.
destCountryId
==
""
&&
this
.
destCityId
!=
""
&&
this
.
destWarehouseId
==
""
)
{
//获取当前城市值id,获取该城市下区域
getRegionList
(
3
,
this
.
destCityId
)
.
then
(({
data
})
=>
{
this
.
AddressTown
=
data
;
})
.
catch
((
error
)
=>
{
console
.
log
(
error
);
});
}
},
},
destWarehouseId
:
{
deep
:
true
,
//深度监听
handler
()
{
if
(
this
.
destCountryId
!=
""
&&
this
.
destCityId
!=
""
&&
this
.
destWarehouseId
==
""
)
{
//获取当前城市值id,获取该城市下区域
getRegionList
(
3
,
this
.
destCityId
)
.
then
(({
data
})
=>
{
this
.
AddressTown
=
data
;
})
.
catch
((
error
)
=>
{
console
.
log
(
error
);
});
}
else
if
(
this
.
destCountryId
!=
""
&&
this
.
destCityId
==
""
&&
this
.
destWarehouseId
==
""
)
{
getRegionList
(
5
,
5
)
.
then
(({
data
})
=>
{
this
.
AddressTown
=
data
;
})
.
catch
((
error
)
=>
{
console
.
log
(
error
);
});
}
else
if
(
this
.
destCountryId
==
""
&&
this
.
destCityId
!=
""
&&
this
.
destWarehouseId
==
""
)
{
getRegionList
(
3
,
this
.
destCityId
)
.
then
(({
data
})
=>
{
this
.
AddressTown
=
data
;
})
.
catch
((
error
)
=>
{
console
.
log
(
error
);
});
}
},
},
},
computed
:
{
DICT_TYPE
()
{
return
DICT_TYPE
...
...
@@ -154,6 +369,11 @@ export default {
})
this
.
getChannelList
();
this
.
getList
();
this
.
getData
();
//获取国家列表
this
.
getCountryList
();
listServiceUser
().
then
(
r
=>
{
this
.
customerServiceList
=
r
.
data
;
})
...
...
@@ -162,6 +382,62 @@ export default {
})
},
methods
:
{
findByprovinceCode
()
{
//获取当前省份值id,获取该省份下城市 destCountryId provinceCode
getRegionList
(
2
,
this
.
destCountryId
)
.
then
(({
data
})
=>
{
this
.
AddressCity
=
data
;
})
.
catch
((
error
)
=>
{
console
.
log
(
error
);
});
},
findBycityCode
()
{
//获取当前城市值id,获取该城市下区域
getRegionList
(
3
,
this
.
objectiveId
)
.
then
(({
data
})
=>
{
this
.
AddressTown
=
data
;
})
.
catch
((
error
)
=>
{
console
.
log
(
error
);
});
},
getData
()
{
//加载时发起请求获取所有省份值
getRegionList
(
1
,
1
)
.
then
(({
data
})
=>
{
this
.
AddressProvince
=
data
;
})
.
catch
((
error
)
=>
{
console
.
log
(
error
);
});
//目的城市
getRegionList
(
4
,
4
)
.
then
(({
data
})
=>
{
this
.
AddressCity
=
data
;
})
.
catch
((
error
)
=>
{
console
.
log
(
error
);
});
//目的仓
getRegionList
(
5
,
5
)
.
then
(({
data
})
=>
{
this
.
AddressTown
=
data
;
})
.
catch
((
error
)
=>
{
console
.
log
(
error
);
});
},
/* 国家 */
getCountryList
()
{
getListTree
({
treeType
:
1
}).
then
((
response
)
=>
{
this
.
countryList
=
response
.
data
;
});
},
getChannelList
()
{
getChannelList
().
then
(
res
=>
this
.
channelList
=
res
.
data
)
},
...
...
@@ -187,6 +463,13 @@ export default {
/** 搜索按钮操作 */
handleQuery
()
{
this
.
queryParams
.
page
=
1
;
//目的城市
this
.
queryParams
.
destCityId
=
this
.
destCityId
;
//目的国
this
.
queryParams
.
destCountryId
=
this
.
destCountryId
;
//目的仓
this
.
queryParams
.
destWarehouseId
=
this
.
destWarehouseId
;
this
.
getList
();
},
}
...
...
src/views/ecw/productPrice/blacklist.vue
View file @
a5cd5154
...
...
@@ -413,7 +413,6 @@ export default {
destCountryId
:
[],
destCityId
:
null
,
destWarehouseId
:
""
,
objectiveId
:
[],
//特性列表
...
...
@@ -974,6 +973,13 @@ export default {
/** 搜索按钮操作 */
handleQuery
()
{
this
.
queryParams
.
pageNo
=
1
;
//目的城市
this
.
queryParams
.
destCityId
=
this
.
destCityId
;
//目的国
this
.
queryParams
.
destCountryId
=
this
.
destCountryId
;
//目的仓
this
.
queryParams
.
destWarehouseId
=
this
.
destWarehouseId
;
this
.
getList
();
},
/** 重置按钮操作 */
...
...
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