Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
P
pda-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
pda
pda-ui
Commits
ed0dae68
Commit
ed0dae68
authored
Jan 22, 2024
by
全洪江
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
客户主数据tab页列表优化
parent
64f4fcef
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
420 additions
and
278 deletions
+420
-278
ClientContact.vue
src/views/mes/md/client/components/ClientContact.vue
+79
-19
PaymentRelation.vue
src/views/mes/md/client/components/PaymentRelation.vue
+13
-6
UrgeEmail.vue
src/views/mes/md/client/components/UrgeEmail.vue
+37
-10
index.vue
src/views/mes/md/client/index.vue
+3
-3
specProperty.vue
src/views/mes/md/product/components/specProperty.vue
+288
-240
No files found.
src/views/mes/md/client/components/ClientContact.vue
View file @
ed0dae68
...
...
@@ -52,17 +52,16 @@
<el-table
v-loading=
"loading"
:data=
"contactList"
@
selection-change=
"handleSelectionChange"
>
<el-table-column
type=
"selection"
width=
"55"
align=
"center"
/>
<el-table-column
label=
"跟单员"
align=
"center"
prop=
"id"
/>
<el-table-column
label=
"客户id"
align=
"center"
prop=
"clientId"
/>
<el-table-column
label=
"品牌ID"
align=
"center"
prop=
"brandId"
/>
<el-table-column
label=
"职位"
align=
"center"
prop=
"position"
/>
<el-table-column
label=
"联系人"
align=
"center"
prop=
"contact"
/>
<el-table-column
label=
"电话号码"
align=
"center"
prop=
"tel"
/>
<el-table-column
label=
"email"
align=
"center"
prop=
"email"
/>
<el-table-column
label=
"经营类型"
align=
"center"
prop=
"businessType"
/>
<el-table-column
label=
"工厂代号"
align=
"center"
prop=
"factoryCode"
/>
<el-table-column
label=
"跟单员"
align=
"center"
prop=
"merchandiser"
/>
<el-table-column
label=
"操作"
align=
"center"
class-name=
"small-padding fixed-width"
>
<el-table-column
label=
"客户id"
align=
"center"
prop=
"clientId"
width=
"100"
/>
<el-table-column
label=
"品牌ID"
align=
"center"
prop=
"brandId"
width=
"150"
/>
<el-table-column
label=
"职位"
align=
"center"
prop=
"position"
width=
"100"
/>
<el-table-column
label=
"联系人"
align=
"center"
prop=
"contact"
width=
"100"
/>
<el-table-column
label=
"电话号码"
align=
"center"
prop=
"tel"
width=
"150"
/>
<el-table-column
label=
"email"
align=
"center"
prop=
"email"
width=
"200"
/>
<el-table-column
label=
"经营类型"
align=
"center"
prop=
"businessType"
width=
"100"
/>
<el-table-column
label=
"工厂代号"
align=
"center"
prop=
"factoryCode"
width=
"100"
/>
<el-table-column
label=
"跟单员"
align=
"center"
prop=
"merchandiser"
width=
"100"
/>
<el-table-column
label=
"操作"
align=
"center"
class-name=
"small-padding fixed-width"
fixed=
"right"
width=
"200px"
>
<template
slot-scope=
"scope"
>
<el-button
size=
"mini"
...
...
@@ -91,13 +90,51 @@
:limit
.
sync=
"queryParams.pageSize"
@
pagination=
"getList"
/>
<!-- 添加或修改客户联系人对话框 -->
<el-dialog
:title=
"title"
:visible
.
sync=
"open"
width=
"500px"
append-to-body
>
<el-form
ref=
"form"
:model=
"form"
:rules=
"rules"
label-width=
"80px"
>
<el-form-item
label=
"品牌ID"
prop=
"brandId"
label-width=
"120px"
>
<el-input
v-model=
"form.brandId"
placeholder=
"请输入品牌ID"
/>
</el-form-item>
<el-form-item
label=
"职位"
prop=
"position"
label-width=
"120px"
>
<el-input
v-model=
"form.position"
placeholder=
"请输入职位"
/>
</el-form-item>
<el-form-item
label=
"联系人"
prop=
"contact"
label-width=
"120px"
>
<el-input
v-model=
"form.contact"
placeholder=
"请输入联系人"
/>
</el-form-item>
<el-form-item
label=
"电话号码"
prop=
"tel"
label-width=
"120px"
>
<el-input
v-model=
"form.tel"
placeholder=
"请输入电话号码"
/>
</el-form-item>
<el-form-item
label=
"email"
prop=
"email"
label-width=
"120px"
>
<el-input
v-model=
"form.email"
placeholder=
"请输入email"
/>
</el-form-item>
<el-form-item
label=
"经营类型"
prop=
"businessType"
label-width=
"120px"
>
<el-input
v-model=
"form.businessType"
placeholder=
"请输入经营类型"
/>
</el-form-item>
<el-form-item
label=
"工厂代号"
prop=
"spefactoryCodec"
label-width=
"120px"
>
<el-input
v-model=
"form.factoryCode"
placeholder=
"请输入产工厂代码"
/>
</el-form-item>
<el-form-item
label=
"跟单员"
prop=
"merchandiser"
label-width=
"120px"
>
<el-input
v-model=
"form.merchandiser"
placeholder=
"请输入跟单员"
/>
</el-form-item>
</el-form>
<div
slot=
"footer"
class=
"dialog-footer"
>
<el-button
type=
"primary"
@
click=
"submitForm"
>
确 定
</el-button>
<el-button
@
click=
"cancel"
>
取 消
</el-button>
</div>
</el-dialog>
</div>
</template>
<
script
>
import
{
listContact
}
from
'@/api/mes/md/clientContact'
import
{
listContact
,
addContact
,
updateContact
,
getContact
,
delContact
}
from
'@/api/mes/md/clientContact'
export
default
{
props
:
{
clientId
:
{
type
:
Number
|
undefined
,
default
:
undefined
},
},
data
()
{
return
{
// 遮罩层
...
...
@@ -112,7 +149,7 @@ export default {
showSearch
:
true
,
// 总条数
total
:
0
,
// 客户系人表格数据
// 客户
联
系人表格数据
contactList
:
[],
// 弹出层标题
title
:
''
,
...
...
@@ -127,13 +164,34 @@ export default {
// 表单参数
form
:
{},
// 表单校验
rules
:
{}
rules
:
{
brandId
:
[
{
required
:
true
,
trigger
:
'blur'
}
],
position
:
[
{
required
:
true
,
trigger
:
'blur'
}
],
contact
:
[
{
required
:
true
,
trigger
:
'blur'
}
],
tel
:
[
{
required
:
true
,
trigger
:
'blur'
}
],
businessType
:
[
{
required
:
true
,
trigger
:
'blur'
}
],
merchandiser
:
[
{
required
:
true
,
trigger
:
'blur'
}
]
}
}
},
methods
:
{
/** 查询客户系人列表 */
/** 查询客户
联
系人列表 */
getList
()
{
this
.
loading
=
true
this
.
queryParams
.
clientId
=
this
.
clientId
listContact
(
this
.
queryParams
).
then
(
response
=>
{
this
.
contactList
=
response
.
rows
this
.
total
=
response
.
total
...
...
@@ -148,7 +206,7 @@ export default {
reset
()
{
this
.
form
=
{
id
:
null
,
clientId
:
null
,
clientId
:
this
.
clientId
,
brandId
:
null
,
position
:
null
,
contact
:
null
,
...
...
@@ -184,7 +242,7 @@ export default {
handleAdd
()
{
this
.
reset
()
this
.
open
=
true
this
.
title
=
'添加客户系人'
this
.
title
=
'添加客户
联
系人'
},
/** 修改按钮操作 */
handleUpdate
(
row
)
{
...
...
@@ -193,7 +251,7 @@ export default {
getContact
(
id
).
then
(
response
=>
{
this
.
form
=
response
.
data
this
.
open
=
true
this
.
title
=
'修改客户系人'
this
.
title
=
'修改客户
联
系人'
})
},
/** 提交按钮 */
...
...
@@ -201,12 +259,14 @@ export default {
this
.
$refs
[
'form'
].
validate
(
valid
=>
{
if
(
valid
)
{
if
(
this
.
form
.
id
!=
null
)
{
updateContact
(
this
.
form
).
then
(
response
=>
{
this
.
$modal
.
msgSuccess
(
'修改成功'
)
this
.
open
=
false
this
.
getList
()
})
}
else
{
this
.
form
.
clientId
=
this
.
clientId
addContact
(
this
.
form
).
then
(
response
=>
{
this
.
$modal
.
msgSuccess
(
'新增成功'
)
this
.
open
=
false
...
...
@@ -219,7 +279,7 @@ export default {
/** 删除按钮操作 */
handleDelete
(
row
)
{
const
ids
=
row
.
id
||
this
.
ids
this
.
$modal
.
confirm
(
'是否确认删除
客户系人编号为"'
+
ids
+
'"的数据项
?'
).
then
(
function
()
{
this
.
$modal
.
confirm
(
'是否确认删除?'
).
then
(
function
()
{
return
delContact
(
ids
)
}).
then
(()
=>
{
this
.
getList
()
...
...
src/views/mes/md/client/components/PaymentRelation.vue
View file @
ed0dae68
...
...
@@ -48,9 +48,11 @@
<el-table
v-loading=
"loading"
:data=
"relationList"
@
selection-change=
"handleSelectionChange"
>
<el-table-column
type=
"selection"
width=
"55"
align=
"center"
/>
<el-table-column
label=
"支付方客户ID"
align=
"center"
prop=
"id"
/>
<el-table-column
label=
"客户id"
align=
"center"
prop=
"clientId"
/>
<el-table-column
label=
"支付方客户ID"
align=
"center"
prop=
"relatedClientId"
/>
<el-table-column
label=
"创建人"
align=
"center"
prop=
"createBy"
/>
<el-table-column
label=
"创建时间"
align=
"center"
prop=
"createTime"
/>
<el-table-column
label=
"修改时间"
align=
"center"
prop=
"updateTime"
/>
<el-table-column
label=
"操作"
align=
"center"
class-name=
"small-padding fixed-width"
>
<template
slot-scope=
"scope"
>
<el-button
...
...
@@ -82,10 +84,7 @@
<!-- 添加或修改客户付款信息关联对话框 -->
<el-dialog
:title=
"title"
:visible
.
sync=
"open"
width=
"500px"
append-to-body
>
<el-form
ref=
"form"
:model=
"form"
:rules=
"rules"
label-width=
"80px"
>
<el-form-item
label=
"客户id"
prop=
"clientId"
>
<el-input
v-model=
"form.clientId"
placeholder=
"请输入客户id"
/>
</el-form-item>
<el-form-item
label=
"支付方客户ID"
prop=
"relatedClientId"
>
<el-form-item
label=
"支付方客户ID"
prop=
"relatedClientId"
label-width=
"8em"
>
<el-input
v-model=
"form.relatedClientId"
placeholder=
"请输入支付方客户ID"
/>
</el-form-item>
</el-form>
...
...
@@ -102,6 +101,9 @@ import { listRelation, getRelation, delRelation, addRelation, updateRelation } f
export
default
{
name
:
"Relation"
,
props
:
{
clientId
:
{
type
:
Number
|
undefined
,
default
:
undefined
},
},
data
()
{
return
{
// 遮罩层
...
...
@@ -133,6 +135,9 @@ export default {
form
:
{},
// 表单校验
rules
:
{
relatedClientId
:
[{
required
:
true
,
trigger
:
'blur'
}]
}
};
},
...
...
@@ -143,6 +148,7 @@ export default {
/** 查询客户付款信息关联列表 */
getList
()
{
this
.
loading
=
true
;
this
.
queryParams
.
clientId
=
this
.
clientId
listRelation
(
this
.
queryParams
).
then
(
response
=>
{
this
.
relationList
=
response
.
rows
;
this
.
total
=
response
.
total
;
...
...
@@ -157,7 +163,7 @@ export default {
// 表单重置
reset
()
{
this
.
form
=
{
id
:
null
,
clientId
:
null
,
relatedClientId
:
null
,
createBy
:
null
,
createTime
:
null
,
updateBy
:
null
,
updateTime
:
null
};
id
:
null
,
clientId
:
this
.
clientId
,
relatedClientId
:
null
,
createBy
:
null
,
createTime
:
null
,
updateBy
:
null
,
updateTime
:
null
};
this
.
resetForm
(
"form"
);
},
/** 搜索按钮操作 */
...
...
@@ -203,6 +209,7 @@ export default {
this
.
getList
();
});
}
else
{
this
.
form
.
clientId
=
this
.
clientId
addRelation
(
this
.
form
).
then
(
response
=>
{
this
.
$modal
.
msgSuccess
(
"新增成功"
);
this
.
open
=
false
;
...
...
src/views/mes/md/client/components/UrgeEmail.vue
View file @
ed0dae68
...
...
@@ -53,11 +53,14 @@
<el-table
v-loading=
"loading"
:data=
"emailList"
@
selection-change=
"handleSelectionChange"
>
<el-table-column
type=
"selection"
width=
"55"
align=
"center"
/>
<el-table-column
label=
"是否开启"
align=
"center"
prop=
"id"
/>
<el-table-column
label=
"客户id"
align=
"center"
prop=
"clientId"
/>
<el-table-column
label=
"邮箱"
align=
"center"
prop=
"email"
/>
<el-table-column
label=
"联系人"
align=
"center"
prop=
"contact"
/>
<el-table-column
label=
"是否开启"
align=
"center"
prop=
"enableFlag"
/>
<el-table-column
label=
"是否启用"
align=
"center"
prop=
"enableFlag"
>
<template
slot-scope=
"scope"
>
<dict-tag
:options=
"dict.type.sys_yes_no"
:value=
"scope.row.enableFlag"
/>
</
template
>
</el-table-column>
<el-table-column
label=
"操作"
align=
"center"
class-name=
"small-padding fixed-width"
>
<
template
slot-scope=
"scope"
>
<el-button
...
...
@@ -90,17 +93,21 @@
<!-- 添加或修改催货款通知邮箱对话框 -->
<el-dialog
:title=
"title"
:visible
.
sync=
"open"
width=
"500px"
append-to-body
>
<el-form
ref=
"form"
:model=
"form"
:rules=
"rules"
label-width=
"80px"
>
<el-form-item
label=
"客户id"
prop=
"clientId"
>
<el-input
v-model=
"form.clientId"
placeholder=
"请输入客户id"
/>
</el-form-item>
<el-form-item
label=
"邮箱"
prop=
"email"
>
<el-input
v-model=
"form.email"
placeholder=
"请输入邮箱"
/>
</el-form-item>
<el-form-item
label=
"联系人"
prop=
"contact"
>
<el-input
v-model=
"form.contact"
placeholder=
"请输入联系人"
/>
</el-form-item>
<el-form-item
label=
"是否开启"
prop=
"enableFlag"
>
<el-input
v-model=
"form.enableFlag"
placeholder=
"请输入是否开启"
/>
<el-form-item
label=
"是否启用"
prop=
"enableFlag"
>
<el-select
v-model=
"form.enableFlag"
placeholder=
"请选择是或否"
>
<el-option
v-for=
"dict in dict.type.sys_yes_no"
:key=
"dict.value"
:label=
"dict.label"
:value=
"dict.value"
></el-option>
</el-select>
</el-form-item>
</el-form>
<div
slot=
"footer"
class=
"dialog-footer"
>
...
...
@@ -116,6 +123,10 @@ import { addEmail, delEmail, getEmail, listEmail, updateEmail } from '@/api/mes/
export
default
{
name
:
'Email'
,
dicts
:[
'sys_yes_no'
],
props
:
{
clientId
:
{
type
:
Number
|
undefined
,
default
:
undefined
},
},
data
()
{
return
{
// 遮罩层
...
...
@@ -140,18 +151,33 @@ export default {
queryParams
:
{
pageNum
:
1
,
pageSize
:
10
,
clientId
:
null
,
email
:
null
,
contact
:
null
,
enableFlag
:
null
clientId
:
null
,
email
:
null
,
contact
:
null
,
enableFlag
:
null
},
// 表单参数
form
:
{},
// 表单校验
rules
:
{}
rules
:
{
email
:
[
{
required
:
true
,
trigger
:
'blur'
}
],
contact
:
[
{
required
:
true
,
trigger
:
'blur'
}
],
contact
:
[
{
required
:
true
,
trigger
:
'blur'
}
],
enableFlag
:
[
{
required
:
true
,
trigger
:
'blur'
}
]
}
}
},
methods
:
{
/** 查询催货款通知邮箱列表 */
getList
()
{
this
.
loading
=
true
this
.
queryParams
.
clientId
=
this
.
clientId
listEmail
(
this
.
queryParams
).
then
(
response
=>
{
this
.
emailList
=
response
.
rows
this
.
total
=
response
.
total
...
...
@@ -167,7 +193,7 @@ export default {
reset
()
{
this
.
form
=
{
id
:
null
,
clientId
:
null
,
clientId
:
this
.
clientId
,
email
:
null
,
contact
:
null
,
enableFlag
:
null
,
...
...
@@ -221,6 +247,7 @@ export default {
this
.
getList
()
})
}
else
{
this
.
form
.
clientId
=
this
.
clientId
addEmail
(
this
.
form
).
then
(
response
=>
{
this
.
$modal
.
msgSuccess
(
'新增成功'
)
this
.
open
=
false
...
...
src/views/mes/md/client/index.vue
View file @
ed0dae68
...
...
@@ -243,13 +243,13 @@
<FinanceInfo
ref=
"FinanceInfo"
:form=
"form"
/>
</el-tab-pane>
<el-tab-pane
label=
"客户联系人"
name=
"ClientContact"
>
<ClientContact
ref=
"ClientContact"
/>
<ClientContact
ref=
"ClientContact"
:clientId=
"form.clientId"
/>
</el-tab-pane>
<el-tab-pane
label=
"催货款通知邮箱"
name=
"UrgeEmail"
>
<UrgeEmail
ref=
"UrgeEmail"
/>
<UrgeEmail
ref=
"UrgeEmail"
:clientId=
"form.clientId"
/>
</el-tab-pane>
<el-tab-pane
label=
"客户付款信息"
name=
"PaymentRelation"
>
<PaymentRelation
ref=
"PaymentRelation"
/>
<PaymentRelation
ref=
"PaymentRelation"
:clientId=
"form.clientId"
/>
</el-tab-pane>
<el-tab-pane
label=
"SAP特性"
name=
"SapProperty"
>
<SapPropertyData
ref=
"SapProperty"
/>
...
...
src/views/mes/md/product/components/specProperty.vue
View file @
ed0dae68
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