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
3e29bccd
Commit
3e29bccd
authored
Apr 21, 2024
by
liuzeheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
目的国、目的城市筛选
parent
e130c261
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
107 additions
and
48 deletions
+107
-48
order.js
src/api/ecw/order.js
+5
-5
index.vue
src/views/ecw/order/index.vue
+102
-43
No files found.
src/api/ecw/order.js
View file @
3e29bccd
...
@@ -1057,10 +1057,10 @@ export function getOrderWarehouseDeleted(orderId,orderItem){
...
@@ -1057,10 +1057,10 @@ export function getOrderWarehouseDeleted(orderId,orderItem){
})
})
}
}
//获得目的国、目的城市、目的仓
export
function
getRegionList
(
type
,
regionId
){
export
function
getWarehouseTreeRegionList
(
tradeType
){
return
request
({
return
request
({
url
:
'
/ecw/warehouse/getWarehouseTreeRegionList?tradeType=1
'
,
url
:
'
/ecw/warehouse/getRegionList?type=
'
+
type
+
'
®ionId=
'
+
regionId
,
method
:
'
get
'
method
:
'
get
'
,
})
})
}
}
\ No newline at end of file
src/views/ecw/order/index.vue
View file @
3e29bccd
...
@@ -30,33 +30,43 @@
...
@@ -30,33 +30,43 @@
>
>
</el-date-picker>
</el-date-picker>
</el-form-item>
</el-form-item>
<div>
<el-form-item
:label=
"$t('始发仓')"
prop=
"startWarehouseId"
>
<el-form-item
:label=
"$t('始发仓')"
prop=
"startWarehouseId"
>
<el-select
v-model=
"queryParams.startWarehouseId"
:placeholder=
"$t('请选择始发仓')"
clearable
@
change=
"handleQuery"
>
<el-select
v-model=
"queryParams.startWarehouseId"
:placeholder=
"$t('请选择始发仓')"
clearable
@
change=
"handleQuery"
>
<el-option
v-for=
"item in exportWarehouseList"
:label=
"$l(item, 'title')"
:value=
"item.id"
:key=
"item.id"
></el-option>
<el-option
v-for=
"item in exportWarehouseList"
:label=
"$l(item, 'title')"
:value=
"item.id"
:key=
"item.id"
></el-option>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<div>
<el-form-item
:label=
"$t('目的国')"
prop=
"destCountryId"
>
<el-select
v-model=
"queryParams.destCountryId"
:placeholder=
"$t('请选择目的国')"
clearable
@
change=
"handleQuery"
>
<el-option
v-for=
"item in importCountryList"
:key=
"item.guojia"
:label=
"item.guojiaName"
:value=
"item.id"
/></el-option>
<el-form-item
:label=
"$t('目的国')"
prop=
"destCountryId"
>
<el-select
v-model=
"destCountryId"
:label=
"destCountryId"
:placeholder=
"$t('请选择目的国')"
clearable
@
change=
"handleQuery"
>
<el-option
v-for=
"item in AddressProvince"
:key=
"item.shi"
:label=
"item.guojiaName"
:value=
"item.guojia"
></el-option>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
:label=
"$t('目的城市')"
prop=
"objectiveId"
>
<el-form-item
:label=
"$t('目的城市')"
prop=
"objectiveId"
>
<el-select
v-model=
"queryParams.objectiveId"
:placeholder=
"$t('请选择目的城市')"
clearable
@
change=
"handleQuery"
>
<el-select
v-model=
"objectiveId"
:placeholder=
"$t('请根据目的国选择目的城市')"
style=
"width: 200px"
clearable
@
change=
"handleQuery"
>
<el-option
v-for=
"item in importCityList"
:key=
"item.shi"
:value=
"item.shi"
:label=
"item.shiName"
></el-option>
<el-option
v-for=
"item in AddressCity"
:key=
"item.shi"
:label=
"item.shiName"
:value=
"item.shi"
></el-option>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
:label=
"$t('目的仓')"
prop=
"destWarehouseId"
>
<el-form-item
:label=
"$t('目的仓')"
prop=
"destWarehouseId"
>
<el-select
v-model=
"queryParams.destWarehouseId"
:placeholder=
"$t('请选择目的仓')"
clearable
@
change=
"handleQuery"
>
<el-select
v-model=
"destWarehouseId"
:placeholder=
"$t('请根据目的城市选择目的仓')"
style=
"width: 200px"
clearable
@
change=
"handleQuery"
>
<el-option
v-for=
"item in importWarehouseList"
:label=
"$l(item, 'title')"
:value=
"item.id"
:key=
"item.id"
></el-option>
<el-option
v-for=
"item in AddressTown"
:key=
"item.id"
:label=
"item.titleZh"
:value=
"item.id"
></el-option>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
</div>
</div>
<el-form-item
:label=
"$t('运输方式')"
prop=
"transportId"
v-if=
"!transportId"
>
<el-form-item
:label=
"$t('运输方式')"
prop=
"transportId"
v-if=
"!transportId"
>
<dict-selector
:type=
"DICT_TYPE.ECW_TRANSPORT_TYPE"
v-model.number=
"queryParams.transportId"
clearable
@
change=
"handleQuery"
/>
<dict-selector
:type=
"DICT_TYPE.ECW_TRANSPORT_TYPE"
v-model.number=
"queryParams.transportId"
clearable
@
change=
"handleQuery"
/>
</el-form-item>
</el-form-item>
...
@@ -585,7 +595,7 @@ import {
...
@@ -585,7 +595,7 @@ import {
exportShipFee
,
exportShipFee
,
exportUnload
,
splitCancelApply
,
orderSplitRevoke
,
setCanShipment
,
setCanNotShipment
exportUnload
,
splitCancelApply
,
orderSplitRevoke
,
setCanShipment
,
setCanNotShipment
,
getParentOrder
,
,
getParentOrder
,
get
WarehouseTree
RegionList
getRegionList
}
from
"
@/api/ecw/order
"
;
}
from
"
@/api/ecw/order
"
;
/* import { getDictDatas, DICT_TYPE } from '@/utils/dict'; */
/* import { getDictDatas, DICT_TYPE } from '@/utils/dict'; */
...
@@ -623,6 +633,16 @@ export default {
...
@@ -623,6 +633,16 @@ export default {
},
},
data
()
{
data
()
{
return
{
return
{
AddressCity
:
[],
AddressProvince
:
[],
AddressTown
:
[],
destCountryId
:
''
,
countryId
:
''
,
//destCountryId:'',
objectiveId
:
''
,
destWarehouseId
:
''
,
// 选中数组
// 选中数组
ids
:
[],
ids
:
[],
//目的国
//目的国
...
@@ -705,8 +725,28 @@ export default {
...
@@ -705,8 +725,28 @@ export default {
watch
:{
watch
:{
isChinese
(){
isChinese
(){
this
.
getList
()
this
.
getList
()
},
// provinceCode destCountryId
destCountryId
:
{
//监听当前地区值的变化,于与上方地区值进行了双向绑定
deep
:
true
,
//深度监听
handler
()
{
//每当值省份值改变时其下地区值进行清空
this
.
AddressCity
=
[];
this
.
AddressTown
=
[];
this
.
objectiveId
=
""
;
this
.
destWarehouseId
=
""
;
this
.
findByprovinceCode
();
}
}
},
},
objectiveId
:
{
deep
:
true
,
//深度监听
handler
()
{
this
.
findBycityCode
();
}
}
},
computed
:
{
computed
:
{
// 导出的权限字符串
// 导出的权限字符串
exportPermiString
(){
exportPermiString
(){
...
@@ -733,7 +773,6 @@ export default {
...
@@ -733,7 +773,6 @@ export default {
// },
// },
importCountryList
(){
importCountryList
(){
return
this
.
countryList
.
filter
(
item
=>
item
.
id
!==
null
)
return
this
.
countryList
.
filter
(
item
=>
item
.
id
!==
null
)
//return this.countryList.filter(item => item.tradeType == 2 || item.tradeType == 3)
},
},
importCityList
(){
importCityList
(){
return
this
.
cityList
.
filter
(
item
=>
item
.
id
!==
null
)
return
this
.
cityList
.
filter
(
item
=>
item
.
id
!==
null
)
...
@@ -753,6 +792,7 @@ export default {
...
@@ -753,6 +792,7 @@ export default {
timeParams
[
'
begin
'
+
this
.
dateFilterType
]
=
this
.
dateFilter
[
0
]
timeParams
[
'
begin
'
+
this
.
dateFilterType
]
=
this
.
dateFilter
[
0
]
timeParams
[
'
end
'
+
this
.
dateFilterType
]
=
this
.
dateFilter
[
1
]
timeParams
[
'
end
'
+
this
.
dateFilterType
]
=
this
.
dateFilter
[
1
]
}
}
let
queryParams
=
Object
.
assign
({},
this
.
queryParams
,
timeParams
)
let
queryParams
=
Object
.
assign
({},
this
.
queryParams
,
timeParams
)
if
(
this
.
transportId
){
if
(
this
.
transportId
){
queryParams
.
transportId
=
this
.
transportId
queryParams
.
transportId
=
this
.
transportId
...
@@ -763,6 +803,13 @@ export default {
...
@@ -763,6 +803,13 @@ export default {
if
(
this
.
prodParam
.
value
){
if
(
this
.
prodParam
.
value
){
queryParams
[
this
.
prodParam
.
key
]
=
this
.
prodParam
.
value
queryParams
[
this
.
prodParam
.
key
]
=
this
.
prodParam
.
value
}
}
//目的国
queryParams
.
destCountryId
=
this
.
destCountryId
//目的城市
queryParams
.
objectiveId
=
this
.
objectiveId
//目的仓
queryParams
.
destWarehouseId
=
this
.
destWarehouseId
return
queryParams
return
queryParams
},
},
/*batchWarehouseAdjustment(){
/*batchWarehouseAdjustment(){
...
@@ -783,6 +830,7 @@ export default {
...
@@ -783,6 +830,7 @@ export default {
this
.
getList
()
this
.
getList
()
},
},
created
()
{
created
()
{
this
.
init
();
//
this
.
getTransportFromRoute
()
this
.
getTransportFromRoute
()
this
.
getList
();
this
.
getList
();
getProductAttrList
().
then
(
res
=>
this
.
productAttrList
=
res
.
data
)
getProductAttrList
().
then
(
res
=>
this
.
productAttrList
=
res
.
data
)
...
@@ -798,32 +846,42 @@ export default {
...
@@ -798,32 +846,42 @@ export default {
getChannelList
().
then
(
res
=>
this
.
channelList
=
res
.
data
)
getChannelList
().
then
(
res
=>
this
.
channelList
=
res
.
data
)
}
}
getWarehouseTreeRegionList
().
then
(
res
=>
{
},
this
.
countryList
=
res
.
data
methods
:
{
let
cityArray
=
[]
let
shi
=
[]
let
Warehouse
=
[]
res
.
data
.
map
(
item
=>
{
init
()
{
//加载时发起请求获取所有省份值
getRegionList
(
1
,
1
).
then
(({
data
})
=>
{
this
.
AddressProvince
=
data
;
console
.
log
(
this
.
AddressProvince
)
item
.
children
.
map
(
c
=>
{
})
.
catch
(
error
=>
{
console
.
log
(
error
);
});
},
findByprovinceCode
()
{
//获取当前省份值id,获取该省份下城市 destCountryId provinceCode
Warehouse
.
push
(
c
)
shi
.
push
(
c
)
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
=>
{
let
distinitCity
=
shi
.
filter
((
value
,
index
,
self
)
=>
{
console
.
log
(
error
);
return
self
.
indexOf
(
value
)
===
index
;
});
});
this
.
cityList
=
distinitCity
this
.
destWarehouseList
=
Warehouse
})
},
},
methods
:
{
getDictDatas
,
getDictDatas
,
...
@@ -941,6 +999,7 @@ export default {
...
@@ -941,6 +999,7 @@ export default {
query
.
packageType
=
query
.
packageTypeArr
.
join
(
'
,
'
)
query
.
packageType
=
query
.
packageTypeArr
.
join
(
'
,
'
)
}
}
let
func
=
getOrderPage
let
func
=
getOrderPage
if
(
this
.
mine
){
if
(
this
.
mine
){
func
=
getMyOrderPage
func
=
getMyOrderPage
/* return getMyOrderPage(this.combinedQueryParams).then(response => {
/* return getMyOrderPage(this.combinedQueryParams).then(response => {
...
...
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