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
Show 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,7 +739,7 @@ export default {
...
@@ -739,7 +739,7 @@ export default {
this
.
objectiveId
=
""
;
this
.
objectiveId
=
""
;
this
.
destWarehouseId
=
""
;
this
.
destWarehouseId
=
""
;
this
.
findByprovinceCode
();
this
.
findByprovinceCode
();
//重新加载目的城市
if
(
this
.
destCountryId
==
""
&&
this
.
objectiveId
==
""
){
getRegionList
(
4
,
4
).
then
(({
data
})
=>
{
getRegionList
(
4
,
4
).
then
(({
data
})
=>
{
this
.
AddressCity
=
data
;
this
.
AddressCity
=
data
;
})
})
...
@@ -755,6 +755,32 @@ export default {
...
@@ -755,6 +755,32 @@ export default {
});
});
}
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 {
...
@@ -762,17 +788,80 @@ export default {
objectiveId
:
{
objectiveId
:
{
deep
:
true
,
//深度监听
deep
:
true
,
//深度监听
handler
()
{
handler
()
{
this
.
AddressTown
=
[]
;
this
.
destWarehouseId
=
""
;
this
.
findBycityCode
();
this
.
findBycityCode
();
getRegionList
(
5
,
5
).
then
(({
data
})
=>
{
if
(
this
.
objectiveId
!=
""
&&
this
.
destCountryId
!=
""
&&
this
.
destWarehouseId
==
""
){
//获取当前城市值id,获取该城市下区域
getRegionList
(
3
,
this
.
objectiveId
).
then
(({
data
})
=>
{
this
.
AddressTown
=
data
;
this
.
AddressTown
=
data
;
})
})
.
catch
(
error
=>
{
.
catch
(
error
=>
{
console
.
log
(
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
:
{
computed
:
{
// 导出的权限字符串
// 导出的权限字符串
...
@@ -917,6 +1006,7 @@ export default {
...
@@ -917,6 +1006,7 @@ export default {
//获取当前省份值id,获取该省份下城市 destCountryId provinceCode
//获取当前省份值id,获取该省份下城市 destCountryId provinceCode
getRegionList
(
2
,
this
.
destCountryId
).
then
(({
data
})
=>
{
getRegionList
(
2
,
this
.
destCountryId
).
then
(({
data
})
=>
{
this
.
AddressCity
=
data
;
this
.
AddressCity
=
data
;
})
})
...
@@ -926,6 +1016,7 @@ export default {
...
@@ -926,6 +1016,7 @@ export default {
},
},
findBycityCode
()
{
findBycityCode
()
{
//获取当前城市值id,获取该城市下区域
//获取当前城市值id,获取该城市下区域
getRegionList
(
3
,
this
.
objectiveId
).
then
(({
data
})
=>
{
getRegionList
(
3
,
this
.
objectiveId
).
then
(({
data
})
=>
{
this
.
AddressTown
=
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