Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
CRM
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
华国豪
CRM
Commits
092031c3
Commit
092031c3
authored
Apr 24, 2022
by
罗超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
9879337c
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
303 additions
and
164 deletions
+303
-164
init.css
src/assets/css/init.css
+1
-1
clueManagement.vue
src/components/clueManagement/clueManagement.vue
+0
-2
Agreement.vue
src/components/guestManagement/Agreement.vue
+198
-62
customerInfoBox.vue
src/components/guestManagement/customerInfoBox.vue
+3
-2
guestManagement.vue
src/components/guestManagement/guestManagement.vue
+41
-1
ticketOrder.vue
src/components/guestManagement/ticketOrder.vue
+48
-94
index.vue
src/views/index.vue
+12
-2
No files found.
src/assets/css/init.css
View file @
092031c3
...
...
@@ -272,7 +272,7 @@ textarea {
resize
:
none
!important
;
}
.el-dialog__wrapper
{
background-color
:
rgb
(
245
,
246
,
249
);
/* background-color: rgb(245, 246, 249); */
}
.el-dialog
{
box-shadow
:
2px
1px
3px
0px
rgba
(
0
,
0
,
0
,
0.3
);
...
...
src/components/clueManagement/clueManagement.vue
View file @
092031c3
...
...
@@ -586,8 +586,6 @@
if
(
type
===
3
)
{
this
.
multipleSelection
.
push
(
this
.
CustomerId
)
}
this
.
transferVisible
=
true
return
if
(
this
.
ruleList
.
length
==
0
){
this
.
transferVisible
=
true
}
else
{
...
...
src/components/guestManagement/Agreement.vue
View file @
092031c3
<
style
>
<
style
scoped
>
.add-Enclosure
{
display
:
flex
;
justify-content
:
space-between
;
}
.add-Enclosure-left
{
display
:
flex
;
}
</
style
>
<
template
>
<div
class=
"Business"
>
<div
class=
"add-Enclosure"
>
<el-row
:gutter=
"12"
>
<el-col
:span=
"8"
>
<el-input
size=
"mini"
placeholder=
"输入订单ID"
v-model=
"msg.OrderId"
label=
"订单ID"
@
blur=
"getList"
></el-input>
</el-col>
<el-col
:span=
"8"
>
<el-select
size=
"mini"
width=
"200"
v-model=
"msg.TicketStatus"
placeholder=
"请选择"
@
change=
"getList"
>
<el-option
v-for=
"(item,index) in ticketingStatusList"
:key=
"index"
:label=
"item.Name"
:value=
"item.id"
></el-option>
</el-select>
</el-col>
</el-row>
<el-button
plain
icon=
"el-icon-plus"
type=
"primary"
size=
"mini"
class=
"margin-right0"
@
click=
"addBusiness"
>
创建订单
</el-button>
</div>
<el-table
v-loading=
"loading"
stripe
ref=
"multipleTable"
:data=
"dataList"
tooltip-effect=
"dark"
style=
"width: 100%"
row-class-name=
"font-size-12"
>
<el-table-column
prop=
"BusinessName"
label=
"订单号"
show-overflow-tooltip
>
<template
slot-scope=
"scope"
>
<p
@
click=
"openDetails(scope)"
class=
"font-color-link cp"
>
{{
scope
.
row
.
BusinessName
}}
</p>
</
template
>
</el-table-column>
<el-table-column
prop=
"BudgetPrice"
label=
"订单金额"
show-overflow-tooltip
>
</el-table-column>
<el-table-column
prop=
"CustomerName"
label=
"实收"
show-overflow-tooltip
>
</el-table-column>
<el-table-column
prop=
"BusinessStatusStr"
label=
"退款"
show-overflow-tooltip
>
</el-table-column>
<el-table-column
label=
"手续费"
show-overflow-tooltip
>
</el-table-column>
<el-table-column
label=
"待收"
show-overflow-tooltip
>
</el-table-column>
<el-table-column
label=
"成本"
show-overflow-tooltip
>
</el-table-column>
<el-table-column
label=
"出票状态"
show-overflow-tooltip
>
</el-table-column>
<el-table-column
label=
"客户需求"
show-overflow-tooltip
>
</el-table-column>
<el-table-column
label=
"操作"
show-overflow-tooltip
>
</el-table-column>
</el-table>
<div
class=
"page-content"
>
<el-table
v-loading=
"loading"
stripe
ref=
"multipleTable"
:data=
"dataList"
tooltip-effect=
"dark"
style=
"width: 100%"
row-class-name=
"font-size-12"
>
<el-table-column
prop=
"CreateByName"
label=
"下单人"
show-overflow-tooltip
>
</el-table-column>
<el-table-column
label=
"订单号"
show-overflow-tooltip
>
<template
slot-scope=
"scope"
>
<p
@
click=
"openDetails(scope)"
class=
"font-color-link cp"
>
{{
scope
.
row
.
OrderId
}}
</p>
</
template
>
</el-table-column>
<el-table-column
label=
"订单状态"
show-overflow-tooltip
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
OrderStatus
==
1
?
"正常"
:
"取消"
}}
</
template
>
</el-table-column>
<el-table-column
label=
"地址"
show-overflow-tooltip
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
StartCityName
}}
=>
{{
scope
.
row
.
EndCityName
}}
</
template
>
</el-table-column>
<el-table-column
prop=
"GuestCount"
label=
"客人数"
show-overflow-tooltip
>
</el-table-column>
<el-table-column
prop=
"Money"
label=
"订单金额"
show-overflow-tooltip
>
</el-table-column>
<el-table-column
prop=
"IncomeMoney"
label=
"实收"
show-overflow-tooltip
>
</el-table-column>
<el-table-column
prop=
"PayMoney"
label=
"付款"
show-overflow-tooltip
>
</el-table-column>
<el-table-column
prop=
"BackMoney"
label=
"退款"
show-overflow-tooltip
>
</el-table-column>
<el-table-column
prop=
"TaxMoney"
label=
"手续费"
show-overflow-tooltip
>
</el-table-column>
<el-table-column
prop=
""
label=
"待收"
show-overflow-tooltip
>
</el-table-column>
<el-table-column
prop=
""
label=
"成本"
show-overflow-tooltip
>
</el-table-column>
<el-table-column
prop=
"PayFinance"
label=
"付款单据"
show-overflow-tooltip
>
</el-table-column>
<el-table-column
prop=
"IncomeFinance"
label=
"收入单据"
show-overflow-tooltip
>
</el-table-column>
<el-table-column
prop=
"BackFinance"
label=
"退款单据"
show-overflow-tooltip
>
</el-table-column>
<el-table-column
prop=
"TicketStatusName"
label=
"出票状态"
show-overflow-tooltip
>
</el-table-column>
<el-table-column
prop=
"Remark"
label=
"客户需求"
show-overflow-tooltip
>
</el-table-column>
<el-table-column
prop=
"EnterName"
label=
"业务员"
show-overflow-tooltip
>
</el-table-column>
<el-table-column
prop=
"CreateTime"
label=
"下单时间"
show-overflow-tooltip
>
</el-table-column>
<el-table-column
label=
"操作"
show-overflow-tooltip
>
</el-table-column>
</el-table>
</div>
<div
v-if=
"dataList.length"
>
<el-pagination
class=
"Mypagination"
background
@
current-change=
"handleCurrentChange"
:page-sizes=
"[30, 60, 90, 100]"
:page-size=
"msg.pageSize"
layout=
"sizes, prev, pager, next"
@
size-change=
"handleSizeChange"
:total=
"total"
>
</el-pagination>
</div>
</div>
</template>
<
script
>
...
...
@@ -68,27 +153,74 @@ export default {
props
:
[
"ID"
,
"BusinessType"
],
data
()
{
return
{
ticketingStatusList
:[],
dataList
:
[],
loading
:
false
,
msg
:
{
pageIndex
:
1
,
pageSize
:
10
,
OrderId
:
""
,
GuestId
:
""
,
TicketStatus
:
0
,
OrderStatus
:
""
,
StartCityName
:
""
,
EndCityName
:
""
,
EnterID
:
""
},
total
:
0
};
},
watch
:
{},
watch
:
{
ID
:
{
handler
(
val
,
oldVal
)
{
this
.
getList
();
},
deep
:
true
,
},
},
mounted
()
{
this
.
GetBusinessList
();
this
.
getList
();
this
.
GetTicketStatusEnumList
()
},
methods
:
{
openDetails
(
scope
)
{
console
.
log
(
scope
.
row
.
ID
);
this
.
MsgBus
.
$emit
(
"busnessDrawerShow"
,
scope
.
row
.
ID
,
1
);
},
GetBusinessList
()
{
// 获取出票状态枚举
GetTicketStatusEnumList
(){
let
$this
=
this
this
.
msg
.
GuestId
=
$this
.
ID
console
.
log
(
this
.
msg
.
GuestId
,
'this.msg.GuestId'
)
this
.
apipost
(
"/api/Order/GetTicketStatusEnumList"
,
{},
(
res
)
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
ticketingStatusList
=
res
.
data
.
data
;
let
data
=
{
Name
:
'全部'
,
id
:
0
}
this
.
ticketingStatusList
.
unshift
(
data
)
}
else
{
this
.
$message
.
error
(
res
.
data
.
message
);
}
}
);
},
getList
()
{
this
.
loading
=
true
;
this
.
apipost
(
"/api/
Customer/GetBusiness
List"
,
{
CustomerId
:
this
.
ID
,
CustomerType
:
1
}
,
"/api/
Order/GetGuestOrderPage
List"
,
this
.
msg
,
(
res
)
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
console
.
log
(
res
.
data
.
data
);
this
.
dataList
=
res
.
data
.
data
;
this
.
total
=
res
.
data
.
data
.
count
;
this
.
loading
=
false
}
else
{
this
.
$message
.
error
(
res
.
data
.
message
);
}
...
...
@@ -101,6 +233,10 @@ export default {
},
guanlian
()
{},
jiechuguanlian
()
{},
handleSizeChange
(
val
)
{
this
.
msg
.
pageSize
=
val
;
this
.
getList
();
},
},
};
</
script
>
src/components/guestManagement/customerInfoBox.vue
View file @
092031c3
...
...
@@ -121,7 +121,7 @@
<Business
v-if=
"activeName === '5'"
:ID=
"CustomerId"
/>
</el-tab-pane>
<el-tab-pane
label=
"订单"
name=
"6"
>
<Agreement
/>
<Agreement
:ID=
"CustomerId"
/>
</el-tab-pane>
<el-tab-pane
label=
"回款"
name=
"7"
v-if=
"false"
>
<MoneyBack
/>
...
...
@@ -238,7 +238,8 @@
this
.
$emit
(
"transferS"
,
3
);
}
else
if
(
command
===
"g"
)
{}
},
handleClick
(
tab
,
event
)
{},
handleClick
(
tab
,
event
)
{
},
editCust
()
{
this
.
$emit
(
"editCustS"
,
1
);
},
...
...
src/components/guestManagement/guestManagement.vue
View file @
092031c3
...
...
@@ -271,6 +271,7 @@
},
data
()
{
return
{
ruleList
:[],
queryType2
:
[{
label
:
"客户名称"
,
show
:
true
,
...
...
@@ -634,7 +635,36 @@
if
(
type
===
3
)
{
this
.
multipleSelection
.
push
(
this
.
CustomerId
);
}
this
.
transferVisible
=
true
;
if
(
this
.
ruleList
.
length
==
0
){
this
.
transferVisible
=
true
}
else
{
let
tips
=
'系统已开启自动分配,无法指定推送,是否继续推送?'
this
.
$confirm
(
tips
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(()
=>
{
let
ids
if
(
this
.
CustomerId
){
ids
=
this
.
CustomerId
}
else
{
ids
=
this
.
multipleSelection
.
join
(
','
)
}
this
.
apipost
(
'/api/Customer/AutoTransferCustomer'
,
{
IDs
:
ids
},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
$message
.
success
(
res
.
data
.
message
);
this
.
getList
()
}
})
}).
catch
(()
=>
{
this
.
$message
({
type
:
'info'
,
message
:
'已取消'
});
});
}
}
else
{
if
(
this
.
transferMsg
.
EmpId
===
""
)
{
return
this
.
$message
.
error
(
"请选择变更负责人!"
);
...
...
@@ -681,6 +711,15 @@
this
.
CustomerId
=
scope
.
row
.
ID
;
this
.
CustomerName
=
scope
.
row
.
GusetName
;
},
// 获取是否开启规则
GetCustomerAllotRule
(){
this
.
apipost
(
'/api/Customer/GetCustomerAllotRule'
,
{},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
ruleList
=
res
.
data
.
data
.
EmpList
}
})
},
handleSizeChange
(
val
)
{
this
.
msg
.
pageSize
=
val
;
this
.
getList
();
...
...
@@ -710,6 +749,7 @@
});
this
.
total
=
res
.
data
.
data
.
count
;
this
.
loading
=
false
;
this
.
GetCustomerAllotRule
()
}
}
);
...
...
src/components/guestManagement/ticketOrder.vue
View file @
092031c3
This diff is collapsed.
Click to expand it.
src/views/index.vue
View file @
092031c3
...
...
@@ -91,7 +91,9 @@
</div>
<!-- 添加机票订单 -->
<div
v-if=
"dialogTicketOrderVisible"
>
<ticketOrder
:name=
"dialogTicketOrderVisibleName"
:ID=
"TicketOrderID"
:GuestId=
"GuestId"
type=
"1"
/>
<ticketOrder
:name=
"dialogTicketOrderVisibleName"
:ID=
"TicketOrderID"
:GuestId=
"GuestId"
:msg=
"msg"
type=
"1"
/>
</div>
<!-- 客户信息抽屉 -->
<el-drawer
...
...
@@ -285,6 +287,14 @@ export default {
GuestId
:
0
,
};
},
watch
:{
// ID: {
// handler(val, oldVal){
// this.TicketOrderID = val
// },
// deep:true
// }
},
mounted
()
{
this
.
userInfo
=
this
.
getLocalStorage
();
this
.
Employee
();
...
...
@@ -308,7 +318,7 @@ export default {
this
.
MsgBus
.
$on
(
"closeBusinessDialogBox"
,
function
()
{
$this
.
dialogBusinessVisible
=
false
;
});
this
.
MsgBus
.
$on
(
"addTicketOrderBoxOpen"
,
function
(
GuestId
)
{
this
.
MsgBus
.
$on
(
"addTicketOrderBoxOpen"
,
function
(
GuestId
,
a
,
b
)
{
$this
.
GuestId
=
GuestId
;
$this
.
dialogTicketOrderVisible
=
true
;
this
.
dialogTicketOrderVisibleName
=
"新建机票订单"
;
...
...
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