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
54d35d1c
Commit
54d35d1c
authored
Sep 18, 2022
by
我在何方
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复bug
parent
6653bd1e
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
348 additions
and
171 deletions
+348
-171
createLog.vue
src/views/ecw/offer/createLog.vue
+30
-16
detail.vue
src/views/ecw/offer/detail.vue
+298
-138
logList.vue
src/views/ecw/offer/logList.vue
+13
-14
prepayDeal.vue
src/views/ecw/order/prepayDeal.vue
+7
-3
No files found.
src/views/ecw/offer/createLog.vue
View file @
54d35d1c
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
<el-form-item
:label=
"$t('跟进时间')"
prop=
"followUpTime"
style=
"width: 46%;display: inline-block"
>
<el-form-item
:label=
"$t('跟进时间')"
prop=
"followUpTime"
style=
"width: 46%;display: inline-block"
>
<el-date-picker
clearable
v-model=
"form.followUpTime"
value-format=
"yyyy-MM-dd HH:mm:ss"
format=
"yyyy-MM-dd HH:mm:ss"
type=
"datetime"
:placeholder=
"$t('选择跟进时间')"
/>
<el-date-picker
clearable
v-model=
"form.followUpTime"
value-format=
"yyyy-MM-dd HH:mm:ss"
format=
"yyyy-MM-dd HH:mm:ss"
type=
"datetime"
:placeholder=
"$t('选择跟进时间')"
/>
</el-form-item>
</el-form-item>
<el-form-item
:label=
"$t('
跟进业务员
')"
prop=
"followUpSalesmanId"
style=
"width: 46%;display: inline-block;;margin-left:8%"
>
<el-form-item
:label=
"$t('
客户经理
')"
prop=
"followUpSalesmanId"
style=
"width: 46%;display: inline-block;;margin-left:8%"
>
<el-select
v-model=
"form.followUpSalesmanId"
:placeholder=
"$t('请选择跟进业务员')"
>
<el-select
v-model=
"form.followUpSalesmanId"
:placeholder=
"$t('请选择跟进业务员')"
>
<el-option
v-for=
"item in creatorData"
<el-option
v-for=
"item in creatorData"
:key=
"item.id"
:label=
"item.nickname"
:value=
"item.id"
/>
:key=
"item.id"
:label=
"item.nickname"
:value=
"item.id"
/>
...
@@ -21,13 +21,12 @@
...
@@ -21,13 +21,12 @@
</el-form-item>
</el-form-item>
<el-form-item
:label=
"$t('联系人')"
prop=
"contacts"
style=
"width: 46%;display: inline-block"
>
<el-form-item
:label=
"$t('联系人')"
prop=
"contacts"
style=
"width: 46%;display: inline-block"
>
<el-select
v-model=
"form.contacts"
:placeholder=
"$t('请选择联系人')"
>
<el-select
v-model=
"form.contacts"
:placeholder=
"$t('请选择联系人')"
>
<el-option
v-for=
"item in contactsData"
<el-option
v-for=
"item in contactsData"
:key=
"item.id"
:label=
"item.name"
:value=
"item.id"
/>
:key=
"item.customerId"
:label=
"item.name"
:value=
"item.customerId"
/>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
:label=
"$t('跟进方式')"
prop=
"followUpMethod"
style=
"width: 46%;display: inline-block;margin-left:8%"
>
<el-form-item
:label=
"$t('跟进方式')"
prop=
"followUpMethod"
style=
"width: 46%;display: inline-block;margin-left:8%"
>
<dict-selector
<dict-selector
:type=
"DICT_TYPE.
ECW_OFFER
_METHOD"
:type=
"DICT_TYPE.
CUSTOMER_FOLLOW
_METHOD"
:placeholder=
"$t('请选择跟进方式')"
:placeholder=
"$t('请选择跟进方式')"
v-model=
"form.followUpMethod"
v-model=
"form.followUpMethod"
form-type=
"select"
form-type=
"select"
...
@@ -54,6 +53,8 @@
...
@@ -54,6 +53,8 @@
import
{
userList
}
from
"
@/api/system/user
"
import
{
userList
}
from
"
@/api/system/user
"
import
{
getCustomerContactsListByCustomer
}
from
"
@/api/ecw/customerContacts
"
import
{
getCustomerContactsListByCustomer
}
from
"
@/api/ecw/customerContacts
"
import
{
DICT_TYPE
}
from
'
@/utils/dict
'
import
{
DICT_TYPE
}
from
'
@/utils/dict
'
import
{
getOffer
}
from
'
@/api/ecw/offer
'
import
{
getCustomerContactsSelect
}
from
'
@/api/ecw/customerContacts
'
export
default
{
export
default
{
name
:
"
OfferLog
"
,
name
:
"
OfferLog
"
,
components
:
{
components
:
{
...
@@ -69,39 +70,52 @@
...
@@ -69,39 +70,52 @@
form
:
{
form
:
{
type
:
'
2
'
,
type
:
'
2
'
,
offerId
:
0
,
offerId
:
0
,
number
:
0
number
:
0
,
},
},
relationId
:
0
,
relationId
:
0
,
// 表单校验
// 表单校验
rules
:
{
rules
:
{
type
:
[{
required
:
true
,
message
:
this
.
$t
(
"
请选择跟进类型
"
),
trigger
:
"
change
"
}],
type
:
[{
required
:
true
,
message
:
this
.
$t
(
"
请选择跟进类型
"
),
trigger
:
"
change
"
}],
followUpTime
:
[{
required
:
true
,
message
:
this
.
$t
(
"
跟进时间不能为空
"
),
trigger
:
"
blur
"
}],
followUpTime
:
[{
required
:
true
,
message
:
this
.
$t
(
"
跟进时间不能为空
"
),
trigger
:
"
blur
"
}],
followUpSalesmanId
:
[{
required
:
true
,
message
:
this
.
$t
(
"
跟进业务员
不能为空
"
),
trigger
:
"
change
"
}],
followUpSalesmanId
:
[{
required
:
true
,
message
:
this
.
$t
(
"
客户经理
不能为空
"
),
trigger
:
"
change
"
}],
contacts
:
[{
required
:
true
,
message
:
this
.
$t
(
"
联系人不能为空
"
),
trigger
:
"
blur
"
}],
contacts
:
[{
required
:
true
,
message
:
this
.
$t
(
"
联系人不能为空
"
),
trigger
:
"
blur
"
}],
followUpMethod
:
[{
required
:
true
,
message
:
this
.
$t
(
"
请选择跟进方式
"
),
trigger
:
"
change
"
}],
followUpMethod
:
[{
required
:
true
,
message
:
this
.
$t
(
"
请选择跟进方式
"
),
trigger
:
"
change
"
}],
customerFeedback
:
[{
required
:
true
,
message
:
this
.
$t
(
"
客户反馈不能为空
"
),
trigger
:
"
blur
"
}],
customerFeedback
:
[{
required
:
true
,
message
:
this
.
$t
(
"
客户反馈不能为空
"
),
trigger
:
"
blur
"
}],
processingResults
:
[{
required
:
true
,
message
:
this
.
$t
(
"
处理结果不能为空
"
),
trigger
:
"
blur
"
}],
processingResults
:
[{
required
:
true
,
message
:
this
.
$t
(
"
处理结果不能为空
"
),
trigger
:
"
blur
"
}],
}
},
list
:[]
};
};
},
},
created
()
{
created
()
{
if
(
this
.
$route
.
query
.
offerId
){
if
(
this
.
$route
.
query
.
offerId
){
this
.
form
.
offerId
=
this
.
$route
.
query
.
offerId
this
.
form
.
offerId
=
this
.
$route
.
query
.
offerId
}
this
.
getList
();
if
(
this
.
$route
.
query
.
relationId
){
this
.
relationId
=
this
.
$route
.
query
.
relationId
this
.
getContactsData
()
}
}
if
(
this
.
$route
.
query
.
number
){
if
(
this
.
$route
.
query
.
number
){
this
.
form
.
number
=
this
.
$route
.
query
.
number
this
.
form
.
number
=
this
.
$route
.
query
.
number
}
}
userList
(
'
salesman
'
).
then
(
res
=>
this
.
creatorData
=
res
.
data
)
userList
(
'
documentary customer service
'
).
then
(
res
=>
this
.
creatorData
=
res
.
data
)
},
},
methods
:
{
methods
:
{
getList
()
{
let
that
=
this
// 执行查询
getOffer
(
that
.
form
.
offerId
).
then
(
response
=>
{
that
.
list
=
response
.
data
;
that
.
getContactsData
()
})
},
getContactsData
(){
getContactsData
(){
getCustomerContactsListByCustomer
({
customerId
:
this
.
relationId
}).
then
(
response
=>
{
getCustomerContactsSelect
({
ids
:
[
this
.
list
.
consigneeId
,
this
.
list
.
consignorId
].
join
(
'
,
'
)}).
then
((
res
)
=>
{
this
.
contactsData
=
response
.
data
if
(
res
.
data
.
list
.
length
>
0
){
this
.
contactsData
.
push
({
name
:
res
.
data
.
list
[
0
].
contactsName
+
'
(
'
+
this
.
$t
(
'
发货人
'
)
+
'
)
'
,
id
:
res
.
data
.
list
[
0
].
customerContactsId
})
this
.
contactsData
.
push
({
name
:
res
.
data
.
list
[
1
].
contactsName
+
'
(
'
+
this
.
$t
(
'
收货人
'
)
+
'
)
'
,
id
:
res
.
data
.
list
[
1
].
customerContactsId
})
}
})
})
// getCustomerContactsListByCustomer({customerId:this.relationId}).then(response => {
// this.contactsData = response.data
// })
},
},
/** 提交按钮 */
/** 提交按钮 */
submitForm
()
{
submitForm
()
{
...
@@ -114,7 +128,7 @@
...
@@ -114,7 +128,7 @@
this
.
form
.
followUpMethod
=
parseInt
(
this
.
form
.
followUpMethod
)
this
.
form
.
followUpMethod
=
parseInt
(
this
.
form
.
followUpMethod
)
createOfferLog
(
this
.
form
).
then
(
response
=>
{
createOfferLog
(
this
.
form
).
then
(
response
=>
{
this
.
$modal
.
msgSuccess
(
this
.
$t
(
"
新增成功
"
));
this
.
$modal
.
msgSuccess
(
this
.
$t
(
"
新增成功
"
));
this
.
open
=
false
;
this
.
$store
.
dispatch
(
'
tagsView/delCurrentView
'
)
});
});
});
});
},
},
...
...
src/views/ecw/offer/detail.vue
View file @
54d35d1c
This diff is collapsed.
Click to expand it.
src/views/ecw/offer/logList.vue
View file @
54d35d1c
<
template
>
<
template
>
<div
class=
"app-container"
>
<div
class=
"app-container"
>
<el-card>
<el-card>
<div
slot=
"header"
class=
"card-title"
>
跟进记录列表
</div>
<div
slot=
"header"
class=
"card-title"
>
{{
$t
(
'
跟进记录列表
'
)
}}
</div>
<!-- 列表 -->
<!-- 列表 -->
<div
class=
"offer-header"
>
<div
class=
"offer-header"
>
<span
style=
"font-size: 15px;"
>
报价单号
:
{{
number
}}
</span>
<span
style=
"font-size: 15px;"
>
{{
$t
(
'
报价单号
'
)
}}
:
{{
number
}}
</span>
<el-button
type=
"primary"
plain
icon=
"el-icon-plus"
size=
"mini"
@
click=
"handleAdd"
<el-button
type=
"primary"
plain
icon=
"el-icon-plus"
size=
"mini"
@
click=
"handleAdd"
>
新增
</el-button>
>
{{
$t
(
'
新增
'
)
}}
</el-button>
</div>
</div>
<el-table
v-loading=
"loading"
:data=
"list"
>
<el-table
v-loading=
"loading"
:data=
"list"
>
<el-table-column
label=
"序号
"
align=
"center"
prop=
"id"
type=
"index"
>
<el-table-column
:label=
"$t('序号')
"
align=
"center"
prop=
"id"
type=
"index"
>
<template
slot-scope=
"scope"
>
<template
slot-scope=
"scope"
>
<span>
{{
scope
.
$index
+
1
}}
</span>
<span>
{{
scope
.
$index
+
1
}}
</span>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"跟进类型
"
align=
"center"
prop=
"type"
>
<el-table-column
:label=
"$t('跟进类型')
"
align=
"center"
prop=
"type"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<dict-tag
:type=
"DICT_TYPE.ECW_OFFER_TYPE"
:value=
"scope.row.type"
></dict-tag>
<dict-tag
:type=
"DICT_TYPE.ECW_OFFER_TYPE"
:value=
"scope.row.type"
></dict-tag>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"联系人
"
align=
"center"
prop=
"contactName"
/>
<el-table-column
:label=
"$t('联系人')
"
align=
"center"
prop=
"contactName"
/>
<el-table-column
label=
"跟进方式
"
align=
"center"
prop=
"followUpMethod"
>
<el-table-column
:label=
"$t('跟进方式')
"
align=
"center"
prop=
"followUpMethod"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<dict-tag
:type=
"DICT_TYPE.
ECW_OFFER
_METHOD"
:value=
"scope.row.followUpMethod"
></dict-tag>
<dict-tag
:type=
"DICT_TYPE.
CUSTOMER_FOLLOW
_METHOD"
:value=
"scope.row.followUpMethod"
></dict-tag>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"跟进时间
"
align=
"center"
prop=
"followUpTime"
width=
"180"
>
<el-table-column
:label=
"$t('跟进时间')
"
align=
"center"
prop=
"followUpTime"
width=
"180"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<span>
{{
scope
.
row
.
followUpTime
}}
</span>
<span>
{{
scope
.
row
.
followUpTime
}}
</span>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"客户反馈
"
align=
"center"
prop=
"customerFeedback"
/>
<el-table-column
:label=
"$t('客户反馈')
"
align=
"center"
prop=
"customerFeedback"
/>
<el-table-column
label=
"处理结果
"
align=
"center"
prop=
"processingResults"
/>
<el-table-column
:label=
"$t('处理结果')
"
align=
"center"
prop=
"processingResults"
/>
<el-table-column
label=
"跟进业务员
"
align=
"center"
prop=
"followUpSalesmanName"
/>
<el-table-column
:label=
"$t('客户经理')
"
align=
"center"
prop=
"followUpSalesmanName"
/>
</el-table>
</el-table>
<pagination
v-show=
"total > 0"
:total=
"total"
:page.sync=
"params.page"
:limit.sync=
"params.rows"
<pagination
v-show=
"total > 0"
:total=
"total"
:page.sync=
"params.page"
:limit.sync=
"params.rows"
...
@@ -101,8 +101,7 @@ export default {
...
@@ -101,8 +101,7 @@ export default {
path
:
"
/offer/createLog
"
,
path
:
"
/offer/createLog
"
,
query
:{
query
:{
offerId
:
this
.
params
.
offerId
,
offerId
:
this
.
params
.
offerId
,
number
:
this
.
number
,
number
:
this
.
number
relationId
:
this
.
relationId
,
}
}
});
});
},
},
...
...
src/views/ecw/order/prepayDeal.vue
View file @
54d35d1c
...
@@ -112,7 +112,11 @@
...
@@ -112,7 +112,11 @@
</el-table-column>
</el-table-column>
<el-table-column
:label=
"$t('中文名')"
align=
"center"
prop=
"prodTitleZh"
/>
<el-table-column
:label=
"$t('中文名')"
align=
"center"
prop=
"prodTitleZh"
/>
<el-table-column
:label=
"$t('英文名')"
align=
"center"
prop=
"prodTitleEn"
/>
<el-table-column
:label=
"$t('英文名')"
align=
"center"
prop=
"prodTitleEn"
/>
<el-table-column
:label=
"$t('品牌')"
align=
"center"
prop=
"brand"
/>
<el-table-column
:label=
"$t('品牌')"
align=
"center"
prop=
"brandType"
>
<
template
slot-scope=
"scope"
>
<dict-tag
:type=
"DICT_TYPE.ECW_IS_BRAND"
:value=
"scope.row.brandType"
></dict-tag>
</
template
>
</el-table-column>
<el-table-column
:label=
"$t('填单箱数')"
prop=
"num"
/>
<el-table-column
:label=
"$t('填单箱数')"
prop=
"num"
/>
<el-table-column
:label=
"$t('入仓箱数')"
>
<el-table-column
:label=
"$t('入仓箱数')"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
...
@@ -304,12 +308,12 @@
...
@@ -304,12 +308,12 @@
if
(
response
.
data
.
hasOwnProperty
(
'
orderItemId
'
)){
if
(
response
.
data
.
hasOwnProperty
(
'
orderItemId
'
)){
that
.
getShopData
(
response
.
data
.
orderItemId
)
that
.
getShopData
(
response
.
data
.
orderItemId
)
}
}
if
(
that
.
orderExceptionData
.
orderExceptionType
==
'
order_pay_exception
'
){
if
(
that
.
orderExceptionData
.
orderExceptionType
==
'
order_pay_exception
'
){
that
.
getOrderFeeByIdData
()
that
.
getOrderFeeByIdData
()
that
.
getPreExceptionData
()
that
.
getPreExceptionData
()
}
}
});
});
},
},
getOrderData
(){
getOrderData
(){
...
...
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