Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
mes-ui
Project
Project
Details
Activity
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
mes
mes-ui
Commits
67935d71
Commit
67935d71
authored
Feb 05, 2024
by
全洪江
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
客户主数据主页和tab页面修改
parent
ef6d89c1
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
117 additions
and
107 deletions
+117
-107
Account.vue
src/views/mes/md/client/components/Account.vue
+8
-8
ClientContact.vue
src/views/mes/md/client/components/ClientContact.vue
+7
-7
PaymentRelation.vue
src/views/mes/md/client/components/PaymentRelation.vue
+9
-9
UrgeEmail.vue
src/views/mes/md/client/components/UrgeEmail.vue
+7
-7
index.vue
src/views/mes/md/client/index.vue
+86
-76
No files found.
src/views/mes/md/client/components/Account.vue
View file @
67935d71
...
...
@@ -133,7 +133,7 @@ export default {
name
:
'Account'
,
dicts
:
[
'sys_yes_no'
],
props
:
{
client
Id
:
{
type
:
Number
|
undefined
,
default
:
undefined
},
client
Code
:
{
type
:
String
|
undefined
,
default
:
undefined
},
},
data
()
{
return
{
...
...
@@ -159,7 +159,7 @@ export default {
queryParams
:
{
pageNum
:
1
,
pageSize
:
10
,
client
Id
:
this
.
clientId
,
bank
:
null
,
bankAccount
:
null
,
accountName
:
null
,
enableFlag
:
null
client
Code
:
this
.
clientCode
,
bank
:
null
,
bankAccount
:
null
,
accountName
:
null
,
enableFlag
:
null
},
// 表单参数
form
:
{},
...
...
@@ -172,7 +172,7 @@ export default {
getList
()
{
this
.
accountList
=
[]
this
.
total
=
0
if
(
!
this
.
queryParams
.
client
Id
)
return
if
(
!
this
.
queryParams
.
client
Code
)
return
this
.
loading
=
true
pageAccount
(
this
.
queryParams
).
then
(
response
=>
{
this
.
accountList
=
response
.
data
.
records
...
...
@@ -189,7 +189,7 @@ export default {
reset
()
{
this
.
form
=
{
id
:
null
,
client
Id
:
this
.
clientId
,
client
Code
:
this
.
clientCode
,
bank
:
null
,
bankAccount
:
null
,
accountName
:
null
,
...
...
@@ -235,7 +235,7 @@ export default {
},
/** 提交按钮 */
submitForm
()
{
if
(
!
this
.
form
.
client
Id
)
return
this
.
$message
.
error
(
"请先创建客户"
)
if
(
!
this
.
form
.
client
Code
)
return
this
.
$message
.
error
(
"请先创建客户"
)
this
.
$refs
[
'form'
].
validate
(
valid
=>
{
if
(
valid
)
{
if
(
this
.
form
.
id
!=
null
)
{
...
...
@@ -246,7 +246,7 @@ export default {
})
}
else
{
addAccount
(
this
.
form
).
then
(
response
=>
{
this
.
form
.
client
Id
=
this
.
clientId
this
.
form
.
client
Code
=
this
.
clientCode
this
.
$modal
.
msgSuccess
(
'新增成功'
)
this
.
open
=
false
this
.
getList
()
...
...
@@ -273,8 +273,8 @@ export default {
},
`account_
${
new
Date
().
getTime
()}
.xlsx`
)
},
init
(
form
)
{
if
(
!
form
.
client
Id
)
return
this
.
queryParams
.
client
Id
=
form
.
clientId
if
(
!
form
.
client
Code
)
return
this
.
queryParams
.
client
Code
=
form
.
clientCode
this
.
getList
()
}
}
...
...
src/views/mes/md/client/components/ClientContact.vue
View file @
67935d71
...
...
@@ -137,7 +137,7 @@ import {listBrandByCondition} from '@/api/mes/md/brand'
export
default
{
props
:
{
client
Id
:
{
type
:
Number
|
undefined
,
default
:
undefined
},
client
Code
:
{
type
:
String
|
undefined
,
default
:
undefined
},
},
data
()
{
return
{
...
...
@@ -174,7 +174,7 @@ export default {
queryParams
:
{
pageNum
:
1
,
pageSize
:
10
,
client
Id
:
null
,
client
Code
:
null
,
},
// 表单参数
form
:
{},
...
...
@@ -203,7 +203,7 @@ export default {
/** 查询客户联系人列表 */
getList
()
{
this
.
loading
=
true
this
.
queryParams
.
client
Id
=
this
.
clientId
this
.
queryParams
.
client
Code
=
this
.
clientCode
listContact
(
this
.
queryParams
).
then
(
response
=>
{
console
.
log
(
response
,
111
)
this
.
contactList
=
response
.
rows
...
...
@@ -219,7 +219,7 @@ export default {
reset
()
{
this
.
form
=
{
id
:
null
,
client
Id
:
this
.
clientId
,
client
Code
:
this
.
clientCode
,
brandName
:
null
,
position
:
null
,
...
...
@@ -279,7 +279,7 @@ export default {
this
.
getList
()
})
}
else
{
this
.
form
.
client
Id
=
this
.
clientId
this
.
form
.
client
Code
=
this
.
clientCode
addContact
(
this
.
form
).
then
(
response
=>
{
this
.
$modal
.
msgSuccess
(
'新增成功'
)
this
.
open
=
false
...
...
@@ -307,8 +307,8 @@ export default {
},
`contact_
${
new
Date
().
getTime
()}
.xlsx`
)
},
init
(
form
)
{
if
(
!
form
.
client
Id
)
return
this
.
queryParams
.
client
Id
=
form
.
clientId
if
(
!
form
.
client
Code
)
return
this
.
queryParams
.
client
Code
=
form
.
clientCode
this
.
getList
()
},
/** 远程搜索 */
...
...
src/views/mes/md/client/components/PaymentRelation.vue
View file @
67935d71
...
...
@@ -92,7 +92,7 @@ import { listClient } from '@/api/mes/md/client'
export
default
{
name
:
"Relation"
,
props
:
{
client
Id
:
{
type
:
Number
|
undefined
,
default
:
undefined
},
client
Code
:
{
type
:
String
|
undefined
,
default
:
undefined
},
},
data
()
{
return
{
...
...
@@ -118,8 +118,8 @@ export default {
queryParams
:
{
pageNum
:
1
,
pageSize
:
10
,
client
Id
:
null
,
relatedClient
Id
:
null
,
client
Code
:
null
,
relatedClient
Code
:
null
,
},
// 表单参数
form
:
{},
...
...
@@ -136,7 +136,7 @@ export default {
/** 查询客户付款信息关联列表 */
getList
()
{
this
.
loading
=
true
;
this
.
queryParams
.
client
Id
=
this
.
clientId
this
.
queryParams
.
client
Code
=
this
.
clientCode
listRelation
(
this
.
queryParams
).
then
(
response
=>
{
this
.
relationList
=
response
.
rows
;
this
.
total
=
response
.
total
;
...
...
@@ -152,8 +152,8 @@ export default {
reset
()
{
this
.
form
=
{
id
:
null
,
client
Id
:
this
.
clientId
,
relatedClient
Id
:
null
,
client
Code
:
this
.
clientCode
,
relatedClient
Code
:
null
,
createBy
:
null
,
createTime
:
null
,
updateBy
:
null
,
...
...
@@ -204,7 +204,7 @@ export default {
this
.
getList
();
});
}
else
{
this
.
form
.
client
Id
=
this
.
clientId
this
.
form
.
client
Code
=
this
.
clientCode
addRelation
(
this
.
form
).
then
(
response
=>
{
this
.
$modal
.
msgSuccess
(
"新增成功"
);
this
.
open
=
false
;
...
...
@@ -236,8 +236,8 @@ export default {
listClient
({
clientName
:
key
,
pageNum
:
1
,
pageSize
:
100
}).
then
(
res
=>
this
.
clientList
=
res
.
rows
)
},
init
(
form
)
{
if
(
!
form
.
client
Id
)
return
this
.
queryParams
.
client
Id
=
form
.
clientId
if
(
!
form
.
client
Code
)
return
this
.
queryParams
.
client
Code
=
form
.
clientCode
this
.
getList
()
}
}
...
...
src/views/mes/md/client/components/UrgeEmail.vue
View file @
67935d71
...
...
@@ -108,7 +108,7 @@ export default {
name
:
'Email'
,
dicts
:
[
'sys_yes_no'
],
props
:
{
client
Id
:
{
type
:
Number
|
undefined
,
default
:
undefined
},
client
Code
:
{
type
:
String
|
undefined
,
default
:
undefined
},
},
data
()
{
return
{
...
...
@@ -134,7 +134,7 @@ export default {
queryParams
:
{
pageNum
:
1
,
pageSize
:
10
,
client
Id
:
null
,
client
Code
:
null
,
email
:
null
,
contact
:
null
,
enableFlag
:
null
},
// 表单参数
...
...
@@ -157,7 +157,7 @@ export default {
/** 查询催货款通知邮箱列表 */
getList
()
{
this
.
loading
=
true
this
.
queryParams
.
client
Id
=
this
.
clientId
this
.
queryParams
.
client
Code
=
this
.
clientCode
listEmail
(
this
.
queryParams
).
then
(
response
=>
{
this
.
emailList
=
response
.
rows
this
.
total
=
response
.
total
...
...
@@ -173,7 +173,7 @@ export default {
reset
()
{
this
.
form
=
{
id
:
null
,
client
Id
:
this
.
clientId
,
client
Code
:
this
.
clientCode
,
email
:
null
,
contact
:
null
,
enableFlag
:
null
,
...
...
@@ -227,7 +227,7 @@ export default {
this
.
getList
()
})
}
else
{
this
.
form
.
client
Id
=
this
.
clientId
this
.
form
.
client
Code
=
this
.
clientCode
addEmail
(
this
.
form
).
then
(
response
=>
{
this
.
$modal
.
msgSuccess
(
'新增成功'
)
this
.
open
=
false
...
...
@@ -255,8 +255,8 @@ export default {
},
`email_
${
new
Date
().
getTime
()}
.xlsx`
)
},
init
(
form
)
{
if
(
!
form
.
client
Id
)
return
this
.
queryParams
.
client
Id
=
form
.
clientId
if
(
!
form
.
client
Code
)
return
this
.
queryParams
.
client
Code
=
form
.
clientCode
this
.
getList
()
}
}
...
...
src/views/mes/md/client/index.vue
View file @
67935d71
This diff is collapsed.
Click to expand it.
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