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
b9ae5e9d
Commit
b9ae5e9d
authored
Jan 17, 2024
by
jzc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增品牌及品牌联系人功能
parent
d379c011
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
507 additions
and
28 deletions
+507
-28
brand.js
src/api/mes/md/brand.js
+6
-6
brandcontact.js
src/api/mes/md/brandcontact.js
+53
-0
index.vue
src/views/mes/md/brand/index.vue
+32
-22
index.vue
src/views/mes/md/brandcontact/index.vue
+416
-0
No files found.
src/api/mes/md/brand.js
View file @
b9ae5e9d
import
request
from
'@/utils/request'
// 查询
生产用途
列表
// 查询
品牌
列表
export
function
listBrand
(
query
)
{
return
request
({
url
:
'/mes/md/brand/list'
,
...
...
@@ -9,7 +9,7 @@ export function listBrand(query) {
})
}
// 查询所有
有效生产用途
// 查询所有
品牌
export
function
listAllBrand
()
{
return
request
({
url
:
'/mes/md/brand/listAll'
,
...
...
@@ -18,7 +18,7 @@ export function listAllBrand() {
}
// 查询
生产用途
详细
// 查询
品牌
详细
export
function
getBrand
(
brandId
)
{
return
request
({
url
:
'/mes/md/brand/'
+
brandId
,
...
...
@@ -26,7 +26,7 @@ export function getBrand(brandId) {
})
}
// 新增
生产用途
// 新增
品牌
export
function
addBrand
(
data
)
{
return
request
({
url
:
'/mes/md/brand'
,
...
...
@@ -35,7 +35,7 @@ export function addBrand(data) {
})
}
// 修改
生产用途
// 修改
品牌
export
function
updateBrand
(
data
)
{
return
request
({
url
:
'/mes/md/brand'
,
...
...
@@ -44,7 +44,7 @@ export function updateBrand(data) {
})
}
// 删除
生产用途
// 删除
品牌
export
function
delBrand
(
brandId
)
{
return
request
({
url
:
'/mes/md/brand/'
+
brandId
,
...
...
src/api/mes/md/brandcontact.js
0 → 100644
View file @
b9ae5e9d
import
request
from
'@/utils/request'
// 查询品牌联系人列表
export
function
listContact
(
query
)
{
return
request
({
url
:
'/md/contact/list'
,
method
:
'get'
,
params
:
query
})
}
// 查询品牌联系人详细
export
function
getContact
(
brandContactId
)
{
return
request
({
url
:
'/md/contact/'
+
brandContactId
,
method
:
'get'
})
}
// 新增品牌联系人
export
function
addContact
(
data
)
{
return
request
({
url
:
'/md/contact'
,
method
:
'post'
,
data
:
data
})
}
// 修改品牌联系人
export
function
updateContact
(
data
)
{
return
request
({
url
:
'/md/contact'
,
method
:
'put'
,
data
:
data
})
}
// 删除品牌联系人
export
function
delContact
(
brandContactId
)
{
return
request
({
url
:
'/md/contact/'
+
brandContactId
,
method
:
'delete'
})
}
// 查询品牌列表(不传参查所有)
export
function
listBrand
(
query
)
{
return
request
({
url
:
'/md/contact/listBrand'
,
method
:
'get'
,
params
:
query
})
}
src/views/mes/md/brand/index.vue
View file @
b9ae5e9d
...
...
@@ -24,22 +24,29 @@
@
keyup
.
enter
.
native=
"handleQuery"
/>
</el-form-item>
<el-form-item
label=
"集团"
prop=
"group"
>
<el-form-item
label=
"集团"
prop=
"group
Name
"
>
<el-input
v-model=
"queryParams.group"
v-model=
"queryParams.group
Name
"
placeholder=
"请输入集团"
clearable
@
keyup
.
enter
.
native=
"handleQuery"
/>
</el-form-item>
<el-form-item
label=
"是否启用"
prop=
"enableFlag"
>
<el-input
v-model=
"queryParams.enableFlag"
placeholder=
"请输入是否启用"
clearable
@
keyup
.
enter
.
native=
"handleQuery"
/>
</el-form-item>
<el-form-item
label=
"是否启用"
prop=
"enableFlag"
>
<el-select
v-model=
"queryParams.enableFlag"
placeholder=
"是否启用"
clearable
style=
"width: 215px"
>
<el-option
v-for=
"dict in dict.type.sys_yes_no"
:key=
"dict.value"
:label=
"dict.label"
:value=
"dict.value"
/>
</el-select>
</el-form-item>
<el-form-item>
<el-button
type=
"primary"
...
...
@@ -132,7 +139,7 @@
<el-table-column
label=
"集团"
align=
"center"
prop=
"group"
prop=
"group
Name
"
:show-overflow-tooltip=
"true"
/>
<el-table-column
...
...
@@ -278,8 +285,8 @@
</el-row>
<el-row>
<el-col
:span=
"7"
>
<el-form-item
label=
"集团"
prop=
"group"
>
<el-input
v-model=
"form.group"
placeholder=
"请输入所属集团名称"
/>
<el-form-item
label=
"集团"
prop=
"group
Name
"
>
<el-input
v-model=
"form.group
Name
"
placeholder=
"请输入所属集团名称"
/>
</el-form-item>
</el-col>
<el-col
:span=
"10"
>
...
...
@@ -389,11 +396,12 @@ export default {
pageSize
:
10
,
brandCode
:
null
,
brandName
:
null
,
group
:
null
,
group
Name
:
null
,
enableFlag
:
null
,
},
// 表单参数
form
:
{},
brandList
:[],
// 表单校验
rules
:
{
brandCode
:
[
...
...
@@ -402,7 +410,7 @@ export default {
brandName
:
[
{
required
:
true
,
message
:
"品牌名称不能为空"
,
trigger
:
"blur"
},
],
group
:
[
group
Name
:
[
{
required
:
true
,
message
:
"集团不能为空"
,
trigger
:
"blur"
},
],
enableFlag
:
[
...
...
@@ -435,7 +443,7 @@ export default {
brandId
:
null
,
brandCode
:
null
,
brandName
:
null
,
group
:
null
,
group
Name
:
null
,
address
:
null
,
salesContact
:
null
,
devContact
:
null
,
...
...
@@ -465,7 +473,7 @@ export default {
},
// 多选框选中数据
handleSelectionChange
(
selection
)
{
this
.
ids
=
selection
.
map
((
item
)
=>
item
.
usage
Id
);
this
.
ids
=
selection
.
map
((
item
)
=>
item
.
brand
Id
);
this
.
single
=
selection
.
length
!==
1
;
this
.
multiple
=
!
selection
.
length
;
},
...
...
@@ -494,7 +502,7 @@ export default {
getBrand
(
brandId
).
then
((
response
)
=>
{
this
.
form
=
response
.
data
;
this
.
open
=
true
;
this
.
title
=
"修改
生产用途
"
;
this
.
title
=
"修改
品牌信息
"
;
this
.
optType
=
"edit"
;
});
},
...
...
@@ -519,12 +527,14 @@ export default {
});
},
/** 删除按钮操作 */
handleDelete
(
row
)
{
const
usageIds
=
row
.
usageId
||
this
.
ids
;
handleDelete
()
{
const
brandIds
=
this
.
ids
.
join
(
','
);
console
.
log
(
brandIds
)
this
.
$modal
.
confirm
(
"是否确认删除
生产用途
?"
)
.
confirm
(
"是否确认删除
品牌
?"
)
.
then
(
function
()
{
return
del
Usage
(
usage
Ids
);
return
del
Brand
(
brand
Ids
);
})
.
then
(()
=>
{
this
.
getList
();
...
...
src/views/mes/md/brandcontact/index.vue
0 → 100644
View file @
b9ae5e9d
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