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
de8758bb
Commit
de8758bb
authored
May 01, 2024
by
liuzeheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
目的仓筛选
parent
af17f86a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
96 additions
and
5 deletions
+96
-5
index.vue
src/views/ecw/order/index.vue
+96
-5
No files found.
src/views/ecw/order/index.vue
View file @
de8758bb
...
...
@@ -739,8 +739,8 @@ export default {
this
.
objectiveId
=
""
;
this
.
destWarehouseId
=
""
;
this
.
findByprovinceCode
();
//重新加载目的城市
getRegionList
(
4
,
4
).
then
(({
data
})
=>
{
if
(
this
.
destCountryId
==
""
&&
this
.
objectiveId
==
""
){
getRegionList
(
4
,
4
).
then
(({
data
})
=>
{
this
.
AddressCity
=
data
;
})
.
catch
(
error
=>
{
...
...
@@ -753,6 +753,32 @@ export default {
.
catch
(
error
=>
{
console
.
log
(
error
);
});
}
else
if
(
this
.
destCountryId
!=
""
&&
this
.
objectiveId
==
""
&&
this
.
destWarehouseId
==
""
){
getRegionList
(
5
,
5
).
then
(({
data
})
=>
{
this
.
AddressTown
=
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);
// });
}
...
...
@@ -762,17 +788,80 @@ export default {
objectiveId
:
{
deep
:
true
,
//深度监听
handler
()
{
this
.
AddressTown
=
[]
;
this
.
destWarehouseId
=
""
;
this
.
findBycityCode
();
getRegionList
(
5
,
5
).
then
(({
data
})
=>
{
if
(
this
.
objectiveId
!=
""
&&
this
.
destCountryId
!=
""
&&
this
.
destWarehouseId
==
""
){
//获取当前城市值id,获取该城市下区域
getRegionList
(
3
,
this
.
objectiveId
).
then
(({
data
})
=>
{
this
.
AddressTown
=
data
;
})
.
catch
(
error
=>
{
console
.
log
(
error
);
});
}
else
if
(
this
.
destCountryId
==
""
&&
this
.
objectiveId
==
""
&&
this
.
destWarehouseId
==
""
){
getRegionList
(
5
,
5
).
then
(({
data
})
=>
{
this
.
AddressTown
=
data
;
}).
catch
(
error
=>
{
console
.
log
(
error
);
});
}
// else if(this.objectiveId!="" && this.objectiveId=="" ){
// getRegionList(5, 5).then(({data}) => {
// this.AddressTown = data;
// }).catch(error => {
// console.log(error);
// });
// }
}
}
},
destWarehouseId
:{
deep
:
true
,
//深度监听
handler
()
{
if
(
this
.
objectiveId
!=
""
&&
this
.
destCountryId
!=
""
&&
this
.
destWarehouseId
==
""
){
//获取当前城市值id,获取该城市下区域
getRegionList
(
3
,
this
.
objectiveId
).
then
(({
data
})
=>
{
this
.
AddressTown
=
data
;
})
.
catch
(
error
=>
{
console
.
log
(
error
);
});
}
else
if
(
this
.
destCountryId
!=
""
&&
this
.
objectiveId
==
""
&&
this
.
destWarehouseId
==
""
){
getRegionList
(
5
,
5
).
then
(({
data
})
=>
{
this
.
AddressTown
=
data
;
})
.
catch
(
error
=>
{
console
.
log
(
error
);
});
}
else
if
(
this
.
objectiveId
==
""
&&
this
.
destWarehouseId
==
""
){
getRegionList
(
5
,
5
).
then
(({
data
})
=>
{
this
.
AddressTown
=
data
;
})
.
catch
(
error
=>
{
console
.
log
(
error
);
});
}
}
},
},
computed
:
{
// 导出的权限字符串
...
...
@@ -916,6 +1005,7 @@ export default {
findByprovinceCode
()
{
//获取当前省份值id,获取该省份下城市 destCountryId provinceCode
getRegionList
(
2
,
this
.
destCountryId
).
then
(({
data
})
=>
{
this
.
AddressCity
=
data
;
...
...
@@ -926,6 +1016,7 @@ export default {
},
findBycityCode
()
{
//获取当前城市值id,获取该城市下区域
getRegionList
(
3
,
this
.
objectiveId
).
then
(({
data
})
=>
{
this
.
AddressTown
=
data
;
...
...
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