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
9ec1198e
Commit
9ec1198e
authored
Nov 29, 2024
by
zhengyi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
客户详情订单列表搜索框调整
parent
242a00a0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
84 additions
and
28 deletions
+84
-28
query.vue
src/views/ecw/customer/query.vue
+84
-28
No files found.
src/views/ecw/customer/query.vue
View file @
9ec1198e
...
@@ -94,47 +94,71 @@
...
@@ -94,47 +94,71 @@
<el-tab-pane
name=
"order"
:label=
"$t('订单')"
>
<el-tab-pane
name=
"order"
:label=
"$t('订单')"
>
<el-card
class=
"box-card"
>
<el-card
class=
"box-card"
>
<div
slot=
"header"
class=
"clearfix"
>
<div
slot=
"header"
class=
"clearfix"
>
<el-form
:inline=
"true"
size=
"small"
label-width=
"100px"
>
<el-form
:inline=
"true"
size=
"small"
label-width=
"100px"
class=
"search-z"
>
<div
class=
"search-z"
>
<div
class=
"search-z"
>
<el-form-item
:label=
"$t('编号')"
prop=
"orderNo"
>
<el-input
v-model.trim=
"noParam.value"
:placeholder=
"$t('请输入订单号、唛头、提单号')"
clearable
class=
"w-200"
@
input=
"replaceSpace(noParam, 'value')"
@
keyup.enter.native=
"handleQuery"
>
<
template
slot=
"prepend"
>
<dict-selector
:type=
"DICT_TYPE.ORDER_QUERY_NO_FIELD"
defaultable
v-model=
"noParam.key"
/>
</
template
>
</el-input>
</el-form-item>
<el-form-item
:label=
"$t('运输方式:')"
>
<el-form-item
:label=
"$t('运输方式:')"
>
<dict-selector
:type=
"DICT_TYPE.ECW_TRANSPORT_TYPE"
v-model=
"queryParams.transportId"
formatter=
"number"
/>
<dict-selector
:type=
"DICT_TYPE.ECW_TRANSPORT_TYPE"
v-model=
"queryParams.transportId"
formatter=
"number"
/>
</el-form-item>
</el-form-item>
<el-form-item
:label=
"$t('订单状态:')"
>
<el-form-item
:label=
"$t('订单状态:')"
>
<dict-selector
:type=
"DICT_TYPE.ORDER_STATUS"
v-model=
"queryParams.status"
/>
<dict-selector
:type=
"DICT_TYPE.ORDER_STATUS"
v-model=
"queryParams.status"
/>
</el-form-item>
</el-form-item>
<el-form-item
:label=
"$t('报关方式:')"
>
<el-form-item
:label=
"$t('报关方式:')"
v-show=
"showSearch"
>
<dict-selector
:type=
"DICT_TYPE.ECW_CUSTOMS_TYPE"
v-model=
"queryParams.customsTypes"
multiple
/>
<dict-selector
:type=
"DICT_TYPE.ECW_CUSTOMS_TYPE"
v-model=
"queryParams.customsTypes"
multiple
/>
</el-form-item>
</el-form-item>
<el-form-item
:label=
"$t('控货:')"
>
<el-form-item
:label=
"$t('控货:')"
v-show=
"showSearch"
>
<dict-selector
:type=
"DICT_TYPE.INFRA_BOOLEAN_STRING"
v-model=
"queryParams.isCargoControl"
/>
<dict-selector
:type=
"DICT_TYPE.INFRA_BOOLEAN_STRING"
v-model=
"queryParams.isCargoControl"
/>
</el-form-item>
</el-form-item>
<el-form-item
:label=
"$t('始发仓:')"
prop=
"startWarehouseIds"
>
<el-form-item
:label=
"$t('始发仓:')"
prop=
"startWarehouseIds"
v-show=
"showSearch"
>
<el-select
v-model=
"queryParams.startWarehouseIds"
multiple
:placeholder=
"$t('请选择始发仓')"
clearable
@
change=
"handleQuery"
>
<el-select
v-model=
"queryParams.startWarehouseIds"
multiple
: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>
<el-form-item
:label=
"$t('目的国:')"
prop=
"destCountryId"
>
<el-form-item
:label=
"$t('目的国:')"
prop=
"destCountryId"
v-show=
"showSearch"
>
<el-select
v-model=
"destCountryId"
multiple
:placeholder=
"$t('请选择目的国')"
clearable
@
change=
"handleQuery"
>
<el-select
v-model=
"destCountryId"
multiple
:placeholder=
"$t('请选择目的国')"
clearable
@
change=
"handleQuery"
>
<el-option
v-for=
"item in AddressProvince"
:key=
"item.guojia"
:label=
"item.guojiaName"
:value=
"item.guojia"
></el-option>
<el-option
v-for=
"item in AddressProvince"
:key=
"item.guojia"
: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"
v-show=
"showSearch"
>
<el-select
v-model=
"objectiveId"
multiple
:placeholder=
"$t('请选择目的城市')"
style=
"width: 200px"
clearable
@
change=
"handleQuery"
>
<el-select
v-model=
"objectiveId"
multiple
:placeholder=
"$t('请选择目的城市')"
style=
"width: 200px"
clearable
@
change=
"handleQuery"
>
<el-option
v-for=
"item in AddressCity"
:key=
"item.shi"
:label=
"item.shiName"
:value=
"item.shi"
></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"
v-show=
"showSearch"
>
<el-select
v-model=
"destWarehouseId"
multiple
:placeholder=
"$t('请选择目的仓')"
style=
"width: 200px"
clearable
@
change=
"handleQuery"
>
<el-select
v-model=
"destWarehouseId"
multiple
:placeholder=
"$t('请选择目的仓')"
style=
"width: 200px"
clearable
@
change=
"handleQuery"
>
<el-option
v-for=
"item in AddressTown"
:key=
"item.id"
:label=
"item.titleZh"
:value=
"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>
<div
class=
"search-time"
>
<!-- <div class="search-time">-->
<el-form-item
:label=
"$t('入仓时间:')"
>
<div
class=
"flex pb-20"
>
<el-date-picker
v-model=
"rucangtime"
@
change=
"changeDate"
value-format=
"yyyy-MM-dd HH:mm:ss"
type=
"datetimerange"
range-separator=
"-"
:start-placeholder=
"$t('开始日期')"
:end-placeholder=
"$t('结束日期')"
/>
<!-- <el-form-item :label="$t('入仓时间:')">-->
</el-form-item>
<!-- <el-date-picker v-model="rucangtime" @change="changeDate" value-format="yyyy-MM-dd HH:mm:ss" type="datetimerange" range-separator="-" :start-placeholder="$t('开始日期')" :end-placeholder="$t('结束日期')" />-->
<!-- </el-form-item>-->
<div
v-show=
"showSearch"
>
<dict-selector
:type=
"DICT_TYPE.ECW_BEGINTIME_TYPE_ENDTIME"
:filter=
"(item) => item.value != 'PickTime'"
v-model=
"dateFilterType"
defaultable
class=
"w-200 mr-5"
v-show=
"showSearch"
/>
<el-date-picker
v-model=
"dateFilter"
type=
"datetimerange"
range-separator=
"-"
:start-placeholder=
"$t('开始日期')"
:end-placeholder=
"$t('结束日期')"
value-format=
"yyyy-MM-dd HH:mm:ss"
@
change=
"handleQuery"
>
</el-date-picker>
<el-form-item
style=
"padding-left: 20px"
>
<el-form-item
style=
"padding-left: 20px"
>
<el-button
type=
"primary"
@
click=
"getorderList"
>
{{ $t("搜索") }}
</el-button>
<el-button
type=
"primary"
@
click=
"getOrderList"
>
{{ $t("搜索") }}
</el-button>
<el-button
type=
"primary"
@
click=
"handleOrderReset"
>
{{ $t("重置") }}
</el-button>
</el-form-item>
</div>
</div>
<div
v-show=
"!showSearch"
>
<el-form-item
style=
"padding-left: 50px"
>
<el-button
type=
"primary"
@
click=
"getOrderList"
>
{{ $t("搜索") }}
</el-button>
<el-button
type=
"primary"
@
click=
"handleOrderReset"
>
{{ $t("重置") }}
</el-button>
<el-button
type=
"primary"
@
click=
"handleOrderReset"
>
{{ $t("重置") }}
</el-button>
</el-form-item>
</el-form-item>
</div>
</div>
...
@@ -144,6 +168,7 @@
...
@@ -144,6 +168,7 @@
<!-- 订单列表显示搜索条件对应箱数、仓库实测、收款方数、重量 -->
<!-- 订单列表显示搜索条件对应箱数、仓库实测、收款方数、重量 -->
{{ $t("合计:{totalNum}箱,{totalVolume}m³(测) {totalChargeVolume}m³(重) {totalWeight}KG(测), {totalChargeWeight}kg(收费)", statisticsOrder) }}
{{ $t("合计:{totalNum}箱,{totalVolume}m³(测) {totalChargeVolume}m³(重) {totalWeight}KG(测), {totalChargeWeight}kg(收费)", statisticsOrder) }}
</el-col>
</el-col>
<right-toolbar
:showSearch.sync=
"showSearch"
@
queryTable=
"getOrderList"
></right-toolbar>
</el-row>
</el-row>
</div>
</div>
<el-descriptions
:column=
"2"
>
<el-descriptions
:column=
"2"
>
...
@@ -233,7 +258,7 @@
...
@@ -233,7 +258,7 @@
<el-table-column
:label=
"$t('客户经理')"
align=
"center"
prop=
"customerServiceName"
/>
<el-table-column
:label=
"$t('客户经理')"
align=
"center"
prop=
"customerServiceName"
/>
<el-table-column
:label=
"$t('业绩归属客户方')"
align=
"center"
prop=
"customerName"
/>
<el-table-column
:label=
"$t('业绩归属客户方')"
align=
"center"
prop=
"customerName"
/>
</el-table>
</el-table>
<pagination
@
pagination=
"get
o
rderList"
:page.sync=
"queryParams.page"
:limit.sync=
"queryParams.rows"
:total=
"orderTotal"
></pagination>
<pagination
@
pagination=
"get
O
rderList"
:page.sync=
"queryParams.page"
:limit.sync=
"queryParams.rows"
:total=
"orderTotal"
></pagination>
</el-card>
</el-card>
</el-tab-pane>
</el-tab-pane>
<el-tab-pane
name=
"quote"
:label=
"$t('报价')"
>
<el-tab-pane
name=
"quote"
:label=
"$t('报价')"
>
...
@@ -295,7 +320,6 @@
...
@@ -295,7 +320,6 @@
<el-form-item
:label=
"$t('创建时间')"
>
<el-form-item
:label=
"$t('创建时间')"
>
<el-date-picker
v-model=
"queryTmp.createTime"
type=
"datetimerange"
range-separator=
"-"
:start-placeholder=
"$t('开始日期')"
:end-placeholder=
"$t('结束日期')"
value-format=
"yyyy-MM-dd HH:mm:ss"
@
change=
"handleQuery"
>
</el-date-picker>
<el-date-picker
v-model=
"queryTmp.createTime"
type=
"datetimerange"
range-separator=
"-"
:start-placeholder=
"$t('开始日期')"
:end-placeholder=
"$t('结束日期')"
value-format=
"yyyy-MM-dd HH:mm:ss"
@
change=
"handleQuery"
>
</el-date-picker>
</el-form-item>
</el-form-item>
<el-form-item
style=
"padding-left: 20px"
>
<el-form-item
style=
"padding-left: 20px"
>
<el-button
type=
"primary"
@
click=
"getInfoListOfferPage"
>
{{ $t("搜索") }}
</el-button>
<el-button
type=
"primary"
@
click=
"getInfoListOfferPage"
>
{{ $t("搜索") }}
</el-button>
<el-button
type=
"primary"
@
click=
"handleOfferReset"
>
{{ $t("重置") }}
</el-button>
<el-button
type=
"primary"
@
click=
"handleOfferReset"
>
{{ $t("重置") }}
</el-button>
...
@@ -762,7 +786,7 @@ export default {
...
@@ -762,7 +786,7 @@ export default {
// this.getBrankByCustomerList()//品牌授权
// this.getBrankByCustomerList()//品牌授权
// this.getCustomerGrade()
// this.getCustomerGrade()
// this.creditLogPage()//等级日志
// this.creditLogPage()//等级日志
this
.
get
o
rderList
()
//订单
this
.
get
O
rderList
()
//订单
// this.getInfoListOfferPage()//报价
// this.getInfoListOfferPage()//报价
this
.
getOrderStatistics
()
//数据
this
.
getOrderStatistics
()
//数据
// this.creditScoreStatisticFn() //信用日志
// this.creditScoreStatisticFn() //信用日志
...
@@ -778,7 +802,7 @@ export default {
...
@@ -778,7 +802,7 @@ export default {
this
.
destCountryId
=
""
this
.
destCountryId
=
""
this
.
destWarehouseId
=
""
this
.
destWarehouseId
=
""
this
.
objectiveId
=
""
this
.
objectiveId
=
""
this
.
get
o
rderList
()
//订单
this
.
get
O
rderList
()
//订单
break
break
case
"
quote
"
:
case
"
quote
"
:
this
.
destCountryId
=
""
this
.
destCountryId
=
""
...
@@ -873,6 +897,8 @@ export default {
...
@@ -873,6 +897,8 @@ export default {
7
:
this
.
$t
(
"
跟进中
"
)
7
:
this
.
$t
(
"
跟进中
"
)
},
},
dialogVisible
:
false
,
dialogVisible
:
false
,
// 显示搜索条件
showSearch
:
false
,
DICT_TYPE
,
DICT_TYPE
,
getDictDataLabel
,
getDictDataLabel
,
getDictDatas2
,
getDictDatas2
,
...
@@ -884,6 +910,8 @@ export default {
...
@@ -884,6 +910,8 @@ export default {
customerContacts
:
[],
customerContacts
:
[],
memberList
:
[],
memberList
:
[],
relation
:
1
,
relation
:
1
,
dateFilterType
:
""
,
//日期筛选类别
dateFilter
:
[],
//筛选日期
customer
:
{
customer
:
{
id
:
undefined
,
id
:
undefined
,
number
:
undefined
,
number
:
undefined
,
...
@@ -968,6 +996,11 @@ export default {
...
@@ -968,6 +996,11 @@ export default {
pageNo
:
1
,
pageNo
:
1
,
pageSize
:
10
pageSize
:
10
},
},
// 编号搜索条件
noParam
:
{
key
:
"
numberKey
"
,
value
:
""
},
infoListReceiptTotal
:
0
,
infoListReceiptTotal
:
0
,
country
:
""
,
country
:
""
,
showMore
:
false
,
showMore
:
false
,
...
@@ -1130,8 +1163,16 @@ export default {
...
@@ -1130,8 +1163,16 @@ export default {
})
})
},
},
//订单
//订单
getorderList
()
{
getOrderList
()
{
let
queryParams
=
{}
let
timeParams
=
{}
if
(
this
.
dateFilterType
&&
this
.
dateFilter
)
{
timeParams
[
"
begin
"
+
this
.
dateFilterType
]
=
this
.
dateFilter
[
0
]
timeParams
[
"
end
"
+
this
.
dateFilterType
]
=
this
.
dateFilter
[
1
]
}
let
queryParams
=
Object
.
assign
({},
this
.
queryParams
,
timeParams
)
if
(
this
.
noParam
.
value
)
{
queryParams
[
this
.
noParam
.
key
]
=
this
.
noParam
.
value
}
//目的国
//目的国
if
(
this
.
destCountryId
!=
null
&&
this
.
destCountryId
!=
""
)
{
if
(
this
.
destCountryId
!=
null
&&
this
.
destCountryId
!=
""
)
{
queryParams
.
destCountryIds
=
this
.
destCountryId
queryParams
.
destCountryIds
=
this
.
destCountryId
...
@@ -1156,13 +1197,28 @@ export default {
...
@@ -1156,13 +1197,28 @@ export default {
}
}
})
})
},
},
// 自动去除空格
replaceSpace
(
obj
,
field
)
{
obj
[
field
]
=
obj
[
field
].
replace
(
/
\s
+/g
,
""
)
},
handleOrderReset
()
{
handleOrderReset
()
{
this
.
destCountryId
=
null
this
.
destCountryId
=
null
this
.
objectiveId
=
null
this
.
destWarehouseId
=
null
this
.
destWarehouseId
=
null
this
.
queryParams
=
{
rows
:
10
,
page
:
1
}
this
.
objectiveId
=
null
this
.
getorderList
()
this
.
destCountryIds
=
[]
this
.
rucangtime
=
[]
this
.
destWarehouseIds
=
[]
this
.
objectiveIds
=
[]
this
.
noParam
.
value
=
""
this
.
dateFilter
=
[]
this
.
queryParams
=
{
page
:
1
,
rows
:
10
,
packageTypeArr
:
[],
channelId
:
""
,
goodsTypes
:
[],
channelIds
:
[]
}
this
.
getOrderList
()
},
},
formatQuery
()
{
formatQuery
()
{
let
obj
=
{}
let
obj
=
{}
...
@@ -1286,7 +1342,7 @@ export default {
...
@@ -1286,7 +1342,7 @@ export default {
handleQuery
()
{
handleQuery
()
{
if
(
this
.
activeName
==
"
order
"
)
{
if
(
this
.
activeName
==
"
order
"
)
{
this
.
queryParams
.
page
=
1
this
.
queryParams
.
page
=
1
this
.
get
o
rderList
()
this
.
get
O
rderList
()
}
else
if
(
this
.
activeName
==
"
quote
"
)
{
}
else
if
(
this
.
activeName
==
"
quote
"
)
{
this
.
infoListOfferFrom
.
pageNo
=
1
this
.
infoListOfferFrom
.
pageNo
=
1
this
.
getInfoListOfferPage
()
this
.
getInfoListOfferPage
()
...
...
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