Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
confucius
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
罗超
confucius
Commits
9955fb1d
Commit
9955fb1d
authored
Feb 09, 2022
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
a823b3b8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
87 additions
and
40 deletions
+87
-40
b2bAllCustomer.vue
src/pages/sale/b2bAllCustomer.vue
+85
-38
b2bcustomerapprove.vue
src/pages/sale/b2bcustomerapprove.vue
+2
-2
No files found.
src/pages/sale/b2bAllCustomer.vue
View file @
9955fb1d
...
...
@@ -10,54 +10,75 @@
white-space
:
nowrap
;
width
:
400px
;
}
</
style
>
<
template
>
<div
class=
"page-body"
>
<div
class=
"page-search row items-center"
>
<div
class=
"col row wrap q-mr-lg q-col-gutter-md"
>
<div
class=
"col-3"
>
<q-input
@
input=
"resetSearch"
filled
clearable
v-model=
"msg.CustomerName"
label=
"同业名称"
maxlength=
"20"
/>
</div>
<div
class=
"col-3"
>
<q-input
@
input=
"resetSearch"
filled
clearable
v-model=
"msg.CustomerId"
label=
"同业ID"
maxlength=
"20"
/>
</div>
<div
class=
"col-3"
>
<q-input
@
input=
"resetSearch"
filled
clearable
v-model=
"msg.ContactNumber"
label=
"电话"
maxlength=
"20"
/>
</div>
<div
class=
"col-3"
>
<q-select
@
input=
"resetSearch"
clearable
filled
v-model=
"msg.ApproveState"
:options=
"ApproveStateList"
emit-value
map-options
label=
"审核状态"
/>
<div>
<q-tabs
style=
"margin-bottom:20px;"
v-model=
"tabCheck"
@
input=
"resetSearch()"
narrow-indicator
dense
align=
"left"
class=
"text-primary"
>
<q-tab
:ripple=
"false"
:name=
"1"
label=
"联系人"
/>
<q-tab
:ripple=
"false"
:name=
"2"
label=
"同行管理"
/>
</q-tabs>
</div>
<template
v-if=
"tabCheck==1"
>
<div
class=
"page-search row items-center"
>
<div
class=
"col row wrap q-mr-lg q-col-gutter-md"
>
<div
class=
"col-3"
>
<q-input
@
input=
"resetSearch"
filled
clearable
v-model=
"msg.CustomerName"
label=
"同业名称"
maxlength=
"20"
/>
</div>
<div
class=
"col-3"
>
<q-input
@
input=
"resetSearch"
filled
clearable
v-model=
"msg.CustomerId"
label=
"同业ID"
maxlength=
"20"
/>
</div>
<div
class=
"col-3"
>
<q-input
@
input=
"resetSearch"
filled
clearable
v-model=
"msg.ContactNumber"
label=
"电话"
maxlength=
"20"
/>
</div>
<div
class=
"col-3"
>
<q-select
@
input=
"resetSearch"
clearable
filled
v-model=
"msg.ApproveState"
:options=
"ApproveStateList"
emit-value
map-options
label=
"审核状态"
/>
</div>
</div>
</div>
</div>
<div
class=
"page-content"
>
<div>
<q-tabs
style=
"margin-bottom:20px;"
v-model=
"tabCheck"
@
input=
"resetSearch()"
narrow-indicator
dense
align=
"left"
class=
"text-primary"
>
<q-tab
:ripple=
"false"
:name=
"1"
label=
"正式客户"
/>
<q-tab
:ripple=
"false"
:name=
"2"
label=
"非正式客户"
/>
<q-tab
:ripple=
"false"
:name=
"3"
label=
"未通过客户"
/>
<q-tab
:ripple=
"false"
:name=
"4"
label=
"黑名单客户"
/>
</q-tabs>
<div
class=
"page-content"
>
<b2bcustomlist
:dataList=
"dataList"
:authObj=
"authObj"
:loading=
"loading"
@
success=
"getList"
:visibleColumns=
"visibleColumns"
sticky=
"sticky-tow-column-table sticky-right-column-table"
></b2bcustomlist>
<q-pagination
class=
"full-width justify-end"
v-model=
"msg.pageIndex"
color=
"primary"
:max=
"pageCount"
:input=
"true"
@
input=
"changePage"
/>
</div>
<b2bcustomlist
:dataList=
"dataList"
:authObj=
"authObj"
:loading=
"loading"
@
success=
"getList"
:visibleColumns=
"visibleColumns"
sticky=
"sticky-tow-column-table sticky-right-column-table"
></b2bcustomlist>
<q-pagination
class=
"full-width justify-end"
v-model=
"msg.pageIndex"
color=
"primary"
:max=
"pageCount"
:input=
"true"
@
input=
"changePage"
/>
</div>
</
template
>
<
template
v-if=
"tabCheck==2"
>
<div
class=
"page-search row items-center"
>
<div
class=
"col row wrap q-mr-lg q-col-gutter-md"
>
<div
class=
"col-3"
>
<q-input
@
input=
"resetSearch"
filled
clearable
v-model=
"categoryMsg.CategoryName"
label=
"同业名称"
maxlength=
"20"
/>
</div>
</div>
</div>
<customcategorylist
:dataList=
"dataList"
:loading=
"loading"
@
success=
"getList"
sticky=
"sticky-tow-column-table sticky-right-column-table"
>
</customcategorylist>
<q-pagination
class=
"full-width justify-end"
v-model=
"categoryMsg.pageIndex"
color=
"primary"
:max=
"categoryMsg.pageCount"
:input=
"true"
@
input=
"changeCategoryPage"
/>
</
template
>
</div>
</template>
<
script
>
import
{
getAllCustomer
}
from
"../../api/sale/peemanagement"
;
import
{
queryCustomerCategoryPage
}
from
"../../api/users/user"
;
import
b2bcustomlist
from
"../../components/sale/b2bcustomlist"
;
import
customcategorylist
from
"../../components/sale/customcategorylist"
export
default
{
meta
:
{
title
:
"同行管理"
},
components
:
{
b2bcustomlist
b2bcustomlist
,
customcategorylist
},
data
()
{
return
{
...
...
@@ -107,6 +128,15 @@
isShowEdit
:
true
,
//显示新增、修改、删除
isShowBankBook
:
true
,
//显示幸福存折
isShowRebate
:
true
//是否显示返佣
},
categoryMsg
:
{
pageIndex
:
1
,
pageSize
:
12
,
rowsPerPage
:
12
,
CategoryName
:
""
,
//客户名称
CatetoryType
:
""
,
//类型
pageCount
:
0
,
IsQueryAll
:
1
}
};
},
...
...
@@ -127,22 +157,39 @@
this
.
msg
.
pageIndex
=
val
;
this
.
getList
();
},
//同行翻页
changeCategoryPage
(
val
)
{
this
.
categoryMsg
.
pageIndex
=
val
;
this
.
getList
();
},
//获取分页数据
getList
()
{
this
.
msg
.
QCustomerState
=
this
.
tabCheck
;
getAllCustomer
(
this
.
msg
)
.
then
(
res
=>
{
this
.
loading
=
true
;
this
.
dataList
=
[];
if
(
this
.
tabCheck
==
1
)
{
this
.
msg
.
QCustomerState
=
this
.
tabCheck
;
getAllCustomer
(
this
.
msg
)
.
then
(
res
=>
{
this
.
dataList
=
res
.
Data
.
PageData
;
this
.
loading
=
false
;
this
.
pageCount
=
res
.
Data
.
PageCount
;
})
.
catch
(()
=>
{
this
.
loading
=
false
;
});
}
else
if
(
this
.
tabCheck
==
2
){
queryCustomerCategoryPage
(
this
.
categoryMsg
).
then
(
res
=>
{
this
.
dataList
=
res
.
Data
.
PageData
;
this
.
loading
=
false
;
this
.
pageCount
=
res
.
Data
.
PageCount
;
})
.
catch
(()
=>
{
this
.
loading
=
false
;
this
.
categoryMsg
.
pageCount
=
res
.
Data
.
PageCount
;
});
}
}
}
};
</
script
>
<
style
lang=
"sass"
>
@import
url('~assets/css/table.sass')
</
style
>
\ No newline at end of file
</
style
>
src/pages/sale/b2bcustomerapprove.vue
View file @
9955fb1d
...
...
@@ -63,8 +63,8 @@
loading
:
false
,
visibleColumns
:
[
"CustomerName"
,
"CustomerType"
,
"
Enterprise
Name"
,
"CustomerType
Name
"
,
"
Category
Name"
,
"ContactNumber"
,
"StuNum"
,
"OrderNum"
,
...
...
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