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
ae92723d
Commit
ae92723d
authored
Oct 22, 2023
by
dragondean@qq.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
订单加特需筛选
parent
c9d6ed79
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
3 deletions
+18
-3
index.vue
src/views/ecw/order/index.vue
+18
-3
No files found.
src/views/ecw/order/index.vue
View file @
ae92723d
...
@@ -124,6 +124,13 @@
...
@@ -124,6 +124,13 @@
<el-form-item
:label=
"$t('出货渠道')"
prop=
"channelId"
v-if=
"channelList.length"
>
<el-form-item
:label=
"$t('出货渠道')"
prop=
"channelId"
v-if=
"channelList.length"
>
<selector
:options=
"channelList"
:label-field=
"$l('name')"
value-field=
"channelId"
v-model=
"queryParams.channelId"
></selector>
<selector
:options=
"channelList"
:label-field=
"$l('name')"
value-field=
"channelId"
v-model=
"queryParams.channelId"
></selector>
</el-form-item>
</el-form-item>
<el-form-item
:label=
"$t('特需')"
prop=
"packageType"
>
<el-select
v-model=
"queryParams.packageTypeArr"
multiple
:placeholder=
"$t('请选择')"
clearable
>
<
template
v-for=
"item in getDictDatas(DICT_TYPE.ORDER_SPECIAL_NEEDS)"
>
<el-option
:label=
"$l(item, 'label')"
:value=
"item.value"
></el-option>
</
template
>
</el-select>
</el-form-item>
<el-form-item>
<el-form-item>
<el-button
type=
"primary"
icon=
"el-icon-search"
@
click=
"handleQuery"
:loading=
"loading"
>
{{$t('搜索')}}
</el-button>
<el-button
type=
"primary"
icon=
"el-icon-search"
@
click=
"handleQuery"
:loading=
"loading"
>
{{$t('搜索')}}
</el-button>
<el-button
icon=
"el-icon-refresh"
@
click=
"resetQuery"
>
{{$t('重置')}}
</el-button>
<el-button
icon=
"el-icon-refresh"
@
click=
"resetQuery"
>
{{$t('重置')}}
</el-button>
...
@@ -561,6 +568,7 @@ import { getCurrencyPage } from "@/api/ecw/currency";
...
@@ -561,6 +568,7 @@ import { getCurrencyPage } from "@/api/ecw/currency";
import
SplitRevoke
from
"
@/views/ecw/order/components/SplitRevoke
"
;
import
SplitRevoke
from
"
@/views/ecw/order/components/SplitRevoke
"
;
import
{
getChannelList
}
from
"
@/api/ecw/channel
"
;
import
{
getChannelList
}
from
"
@/api/ecw/channel
"
;
import
Template
from
"
@/views/cms/template/index.vue
"
;
import
Template
from
"
@/views/cms/template/index.vue
"
;
import
{
getDictDatas
}
from
"
@/utils/dict
"
;
export
default
{
export
default
{
name
:
"
EcwOrderIndex
"
,
name
:
"
EcwOrderIndex
"
,
components
:
{
components
:
{
...
@@ -602,7 +610,8 @@ export default {
...
@@ -602,7 +610,8 @@ export default {
// 查询参数
// 查询参数
queryParams
:
{
queryParams
:
{
page
:
1
,
page
:
1
,
rows
:
10
rows
:
10
,
packageTypeArr
:
[]
},
},
warehouseList
:[],
warehouseList
:[],
// tradeCityList: [],
// tradeCityList: [],
...
@@ -734,6 +743,7 @@ export default {
...
@@ -734,6 +743,7 @@ export default {
}
}
},
},
methods
:
{
methods
:
{
getDictDatas
,
// 取消拆单申请
// 取消拆单申请
splitRevoke
(
row
){
splitRevoke
(
row
){
...
@@ -844,6 +854,10 @@ export default {
...
@@ -844,6 +854,10 @@ export default {
getList
()
{
getList
()
{
this
.
loading
=
true
;
this
.
loading
=
true
;
console
.
log
(
'
this.combinedQueryParams
'
,
this
.
combinedQueryParams
)
console
.
log
(
'
this.combinedQueryParams
'
,
this
.
combinedQueryParams
)
const
query
=
{...
this
.
combinedQueryParams
}
if
(
query
.
packageTypeArr
&&
query
.
packageTypeArr
.
length
){
query
.
packageType
=
query
.
packageTypeArr
.
join
(
'
,
'
)
}
let
func
=
getOrderPage
let
func
=
getOrderPage
if
(
this
.
mine
){
if
(
this
.
mine
){
func
=
getMyOrderPage
func
=
getMyOrderPage
...
@@ -856,7 +870,7 @@ export default {
...
@@ -856,7 +870,7 @@ export default {
func
=
deptOrderPage
func
=
deptOrderPage
}
}
// 执行查询
// 执行查询
func
(
this
.
combinedQueryParams
).
then
(
response
=>
{
func
(
query
).
then
(
response
=>
{
// 部分情况下,订单后面的操作下拉菜单会显示按钮,但是下来没有选项,在elTable组件更新的时候会导致渲染错误,所以要在更新渲染前清空一次list让table彻底重新渲染,避免部分更新导致异常
// 部分情况下,订单后面的操作下拉菜单会显示按钮,但是下来没有选项,在elTable组件更新的时候会导致渲染错误,所以要在更新渲染前清空一次list让table彻底重新渲染,避免部分更新导致异常
this
.
list
=
[]
this
.
list
=
[]
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
...
@@ -890,7 +904,8 @@ export default {
...
@@ -890,7 +904,8 @@ export default {
resetQuery
()
{
resetQuery
()
{
this
.
queryParams
=
{
this
.
queryParams
=
{
page
:
1
,
page
:
1
,
rows
:
10
rows
:
10
,
packageTypeArr
:
[]
}
}
this
.
noParam
.
value
=
''
this
.
noParam
.
value
=
''
this
.
prodParam
.
value
=
''
this
.
prodParam
.
value
=
''
...
...
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