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
ee004922
Commit
ee004922
authored
May 23, 2023
by
houjn@hikoon.cn
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of
http://gitlab.jdshangmen.com/jiedao-app/jiedao-app-operator
into release
parents
a30ea970
46645f6d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
19 deletions
+23
-19
customerContacts.js
src/api/ecw/customerContacts.js
+9
-5
edit.vue
src/views/ecw/customer/edit.vue
+10
-10
associatedOrder.vue
src/views/ecw/order/associatedOrder.vue
+4
-4
No files found.
src/api/ecw/customerContacts.js
View file @
ee004922
...
@@ -71,9 +71,13 @@ export function exportCustomerContactsExcel(query) {
...
@@ -71,9 +71,13 @@ export function exportCustomerContactsExcel(query) {
// 根据客户ID获得联系人列表
// 根据客户ID获得联系人列表
export
function
getCustomerContactsListByCustomer
(
query
)
{
export
function
getCustomerContactsListByCustomer
(
query
)
{
return
request
({
if
(
query
.
customerId
){
url
:
'
/ecw/customer-contacts/list-by-customer
'
,
return
request
({
method
:
'
get
'
,
url
:
'
/ecw/customer-contacts/list-by-customer
'
,
params
:
query
method
:
'
get
'
,
})
params
:
query
})
}
else
{
return
Promise
.
resolve
()
}
}
}
src/views/ecw/customer/edit.vue
View file @
ee004922
...
@@ -587,9 +587,10 @@ export default {
...
@@ -587,9 +587,10 @@ export default {
this
.
reset
()
this
.
reset
()
// this.getUserMemberUserFn()
// this.getUserMemberUserFn()
if
(
this
.
customerId
!==
'
0
'
)
{
if
(
this
.
customerId
!==
'
0
'
)
{
let
customerId
=
this
.
customerId
// 编辑客户
// 编辑客户
this
.
getCustomer
(
this
.
customerId
).
then
(()
=>
{
this
.
getCustomer
(
this
.
customerId
).
then
(()
=>
{
getCustomerContactsListByCustomer
({
customerId
:
this
.
customerId
}).
then
(
r
=>
{
getCustomerContactsListByCustomer
({
customerId
:
customerId
}).
then
(
r
=>
{
this
.
form
.
customerContacts
=
r
.
data
this
.
form
.
customerContacts
=
r
.
data
let
list
=
this
.
form
.
customerContacts
.
map
(
item
=>
item
.
userid
);
let
list
=
this
.
form
.
customerContacts
.
map
(
item
=>
item
.
userid
);
if
(
list
.
length
>
0
){
if
(
list
.
length
>
0
){
...
@@ -604,16 +605,15 @@ export default {
...
@@ -604,16 +605,15 @@ export default {
}
}
})
})
// 打开重泡货开关
// 打开重泡货开关
if
(
this
.
form
.
weightUnit
){
if
(
this
.
form
.
weightUnit
){
this
.
showZhong
=
true
this
.
showZhong
=
true
}
}
if
(
this
.
form
.
lightUnit
){
if
(
this
.
form
.
lightUnit
){
this
.
showPao
=
true
this
.
showPao
=
true
}
}
// 获取重泡货路线
// 获取重泡货路线
getCustomerLines
(
this
.
customerId
).
then
(
res
=>
{
getCustomerLines
(
customerId
).
then
(
res
=>
{
this
.
zhongLines
=
res
.
data
.
filter
(
item
=>
item
.
zhongPaoType
==
1
)
this
.
zhongLines
=
res
.
data
.
filter
(
item
=>
item
.
zhongPaoType
==
1
)
this
.
paoLines
=
res
.
data
.
filter
(
item
=>
item
.
zhongPaoType
==
2
)
this
.
paoLines
=
res
.
data
.
filter
(
item
=>
item
.
zhongPaoType
==
2
)
if
(
this
.
zhongLines
.
length
)
this
.
showZhong1
=
true
if
(
this
.
zhongLines
.
length
)
this
.
showZhong1
=
true
...
...
src/views/ecw/order/associatedOrder.vue
View file @
ee004922
...
@@ -20,7 +20,7 @@
...
@@ -20,7 +20,7 @@
{{
$t
(
'
已加入关联订单列表
'
)
}}
{{
$t
(
'
已加入关联订单列表
'
)
}}
</h1>
</h1>
<div
style=
"flex: 1;margin-left: 20px;"
>
<div
style=
"flex: 1;margin-left: 20px;"
>
<el-button
:disabled=
"multipleSelection.length === 0"
type=
"primary"
@
click=
"batchGuanlianOrderByOrderId(multipleSelection.map(e =>(
{orderId:
orderId,relateOrderId:e.o
rderId})))" >
{{
$t
(
'
批量移出
'
)
}}
</el-button>
<el-button
:disabled=
"multipleSelection.length === 0"
type=
"primary"
@
click=
"batchGuanlianOrderByOrderId(multipleSelection.map(e =>(
{orderId:
e.orderId,relateOrderId:e.relateO
rderId})))" >
{{
$t
(
'
批量移出
'
)
}}
</el-button>
</div>
</div>
<div>
<div>
<el-button
type=
"primary"
@
click=
"$router.push(`/order/add-associated-order/$
{orderId}`)">
{{
$t
(
'
添加关联订单
'
)
}}
</el-button>
<el-button
type=
"primary"
@
click=
"$router.push(`/order/add-associated-order/$
{orderId}`)">
{{
$t
(
'
添加关联订单
'
)
}}
</el-button>
...
@@ -69,7 +69,7 @@
...
@@ -69,7 +69,7 @@
<
/el-table-column
>
<
/el-table-column
>
<
el
-
table
-
column
:
label
=
"
$t('操作')
"
>
<
el
-
table
-
column
:
label
=
"
$t('操作')
"
>
<
template
v
-
slot
:
default
=
'
scope
'
>
<
template
v
-
slot
:
default
=
'
scope
'
>
<
el
-
button
type
=
"
text
"
@
click
=
"
guanlianOrderByOrderId(
scope.row.orderId
)
"
>
<
el
-
button
type
=
"
text
"
@
click
=
"
guanlianOrderByOrderId(
{orderId:scope.row.orderId,relateOrderId:scope.row.relateOrderId
}
)
"
>
{{
$t
(
'
移出
'
)
}}
{{
$t
(
'
移出
'
)
}}
<
/el-button
>
<
/el-button
>
<
/template
>
<
/template
>
...
@@ -147,8 +147,8 @@ export default {
...
@@ -147,8 +147,8 @@ export default {
}
}
}
)
}
)
}
,
}
,
guanlianOrderByOrderId
(
id
){
guanlianOrderByOrderId
(
params
){
deleteGuanlianOrderByOrderId
(
{
orderId
:
this
.
orderId
,
relateOrderId
:
id
}
).
then
(
r
=>
{
deleteGuanlianOrderByOrderId
(
params
).
then
(
r
=>
{
if
(
r
.
code
===
0
){
if
(
r
.
code
===
0
){
this
.
getList
()
this
.
getList
()
this
.
$message
.
success
(
this
.
$t
(
'
操作成功
'
));
this
.
$message
.
success
(
this
.
$t
(
'
操作成功
'
));
...
...
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