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
dde9ef48
Commit
dde9ef48
authored
Jan 19, 2024
by
全洪江
1
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of
http://git.local.topsunit.com/mes/mes-ui
into dev
parents
cd8e9f0e
5ea187fc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
84 additions
and
12 deletions
+84
-12
brandContactIndex.vue
src/views/mes/md/brand/brandContactIndex.vue
+79
-11
factory.vue
src/views/mes/md/product/components/factory.vue
+5
-1
No files found.
src/views/mes/md/brand/brandContactIndex.vue
View file @
dde9ef48
...
...
@@ -181,6 +181,7 @@
>
<el-table-column
type=
"selection"
width=
"55"
align=
"center"
/>
<!--
<el-table-column
label=
"品牌id"
align=
"center"
prop=
"brandId"
/>
-->
<el-table-column
label=
"品牌编码"
align=
"center"
prop=
"brandCode"
/>
<el-table-column
label=
"品牌名称"
align=
"center"
prop=
"brandName"
/>
<el-table-column
label=
"联系人"
align=
"center"
prop=
"contactName"
/>
<el-table-column
...
...
@@ -193,7 +194,7 @@
<el-table-column
label=
"部门"
align=
"center"
prop=
"department"
/>
<el-table-column
label=
"职位"
align=
"center"
prop=
"position"
/>
<el-table-column
label=
"邮箱地址"
align=
"center"
prop=
"mailbox"
/>
<
el-table-column
label=
"备注"
align=
"center"
prop=
"remark"
/
>
<
!--
<el-table-column
label=
"备注"
align=
"center"
prop=
"remark"
/>
--
>
<el-table-column
label=
"是否启用"
align=
"center"
prop=
"enableFlag"
>
<template
slot-scope=
"scope"
>
<dict-tag
...
...
@@ -209,6 +210,14 @@
class-name=
"small-padding fixed-width"
>
<
template
slot-scope=
"scope"
>
<el-button
size=
"mini"
type=
"text"
icon=
"el-icon-query"
@
click=
"handleView(scope.row)"
v-hasPermi=
"['mes:contact:query']"
>
查看
</el-button
>
<el-button
size=
"mini"
type=
"text"
...
...
@@ -239,7 +248,13 @@
<!-- 添加或修改品牌联系人对话框 -->
<el-dialog
:title=
"title"
:visible
.
sync=
"open"
width=
"960px"
append-to-body
>
<el-form
ref=
"form"
:model=
"form"
:rules=
"rules"
label-width=
"100px"
>
<el-form
ref=
"form"
:model=
"form"
:rules=
"rules"
:disabled=
"form.brandContactId&&optType!='edit'"
label-width=
"100px"
>
<!-- <el-form-item label="品牌id" prop="brandId">
<el-input v-model="form.brandId" placeholder="请输入品牌id" />
</el-form-item> -->
...
...
@@ -258,12 +273,13 @@
</el-col> -->
<el-col
:span=
"8"
>
<el-form-item
label=
"品牌
"
prop=
"brandNam
e"
>
<el-input
v-model=
"form.brand
Name"
placeholder=
"请选择品牌
"
>
<el-form-item
label=
"品牌
编码"
prop=
"brandCod
e"
>
<el-input
v-model=
"form.brand
Code"
readonly=
"readonly
"
>
<el-button
slot=
"append"
icon=
"el-icon-search"
@
click=
"handleBrandSelect"
:disabled=
"form.brandContactId"
></el-button>
</el-input>
</el-form-item>
...
...
@@ -273,12 +289,20 @@
></BrandSelect>
</el-col>
<el-col
:span=
"8"
>
<el-form-item
label=
"品牌名称"
prop=
"brandName"
>
<el-input
v-model=
"form.brandName"
readonly=
"readonly"
/>
</el-form-item>
</el-col>
<el-col
:span=
"8"
>
<el-form-item
label=
"联系人"
prop=
"contactName"
>
<el-input
v-model=
"form.contactName"
placeholder=
"请输入联系人"
/>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col
:span=
"8"
>
<el-form-item
label=
"联系人(英文名)"
prop=
"contactNameEn"
>
<el-input
...
...
@@ -287,9 +311,6 @@
/>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col
:span=
"8"
>
<el-form-item
label=
"联系电话"
prop=
"contactPhone"
>
<el-input
...
...
@@ -306,15 +327,14 @@
/>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col
:span=
"8"
>
<el-form-item
label=
"部门"
prop=
"department"
>
<el-input
v-model=
"form.department"
placeholder=
"请输入部门"
/>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col
:span=
"8"
>
<el-form-item
label=
"职位"
prop=
"position"
>
<el-input
v-model=
"form.position"
placeholder=
"请输入职位"
/>
...
...
@@ -330,6 +350,33 @@
<el-input v-model="form.enableFlag" placeholder="请输入是否启用(Y/N)" />
</el-form-item> -->
<!-- <el-col :span="8">
<el-form-item label="是否启用" prop="enableFlag">
<el-radio-group
v-model="form.enableFlag"
disabled
v-if="optType == 'view'"
>
<el-radio
v-for="dict in dict.type.sys_yes_no"
:key="dict.value"
:label="dict.value"
>{{ dict.label }}</el-radio
>
</el-radio-group>
<el-radio-group v-model="form.enableFlag" v-else>
<el-radio
v-for="dict in dict.type.sys_yes_no"
:key="dict.value"
:label="dict.value"
>{{ dict.label }}</el-radio
>
</el-radio-group>
</el-form-item>
</el-col> -->
</el-row>
<el-row>
<el-col
:span=
"8"
>
<el-form-item
label=
"是否启用"
prop=
"enableFlag"
>
<el-radio-group
...
...
@@ -355,6 +402,7 @@
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col
:span=
"24"
>
<el-form-item
label=
"备注"
prop=
"remark"
>
...
...
@@ -368,7 +416,12 @@
</el-row>
</el-form>
<div
slot=
"footer"
class=
"dialog-footer"
>
<el-button
type=
"primary"
@
click=
"submitForm"
>
确 定
</el-button>
<el-button
type=
"primary"
@
click=
"cancel"
v-if=
"optType == 'view'"
>
返回
</el-button
>
<el-button
type=
"primary"
@
click=
"submitForm"
v-if=
"optType != 'view'"
>
确 定
</el-button
>
<el-button
@
click=
"cancel"
>
取 消
</el-button>
</div>
</el-dialog>
...
...
@@ -474,6 +527,7 @@ export default {
this
.
form
=
{
brandContactId
:
null
,
brandId
:
null
,
brandCode
:
null
,
brandName
:
null
,
contactName
:
null
,
contactNameEn
:
null
,
...
...
@@ -488,6 +542,7 @@ export default {
createTime
:
null
,
updateBy
:
null
,
updateTime
:
null
,
status
:
"PREPARE"
,
};
this
.
resetForm
(
"form"
);
},
...
...
@@ -513,6 +568,7 @@ export default {
// this.getBrandList();
this
.
open
=
true
;
this
.
title
=
"添加品牌联系人"
;
this
.
optType
=
"add"
;
},
/** 修改按钮操作 */
handleUpdate
(
row
)
{
...
...
@@ -523,6 +579,18 @@ export default {
this
.
form
=
response
.
data
;
this
.
open
=
true
;
this
.
title
=
"修改品牌联系人"
;
this
.
optType
=
"edit"
;
});
},
// 查询明细按钮操作
handleView
(
row
)
{
this
.
reset
();
const
brandContactId
=
row
.
brandContactId
||
this
.
ids
;
getContact
(
brandContactId
).
then
((
response
)
=>
{
this
.
form
=
response
.
data
;
this
.
open
=
true
;
this
.
title
=
"查看品牌联系人信息"
;
this
.
optType
=
"view"
;
});
},
/** 提交按钮 */
...
...
src/views/mes/md/product/components/factory.vue
View file @
dde9ef48
...
...
@@ -238,8 +238,12 @@ export default {
if
(
row
!=
null
&&
row
!=
undefined
)
{
this
.
form
.
factoryId
=
row
.
factoryId
;
this
.
form
.
factoryName
=
row
.
factoryName
;
this
.
form
.
itemId
=
this
.
itemId
const
idx
=
this
.
factoryList
.
findIndex
(
itm
=>
itm
.
factoryId
==
row
.
factoryId
)
if
(
idx
>
-
1
)
{
this
.
$modal
.
msgError
(
"新增工厂失败,工厂已存在"
);
return
}
addFactory
(
this
.
form
).
then
((
response
)
=>
{
this
.
$modal
.
msgSuccess
(
"新增成功"
);
this
.
getList
();
...
...
全洪江
@hongjiang.quan
mentioned in commit
802deccc
·
Jan 19, 2024
mentioned in commit
802deccc
mentioned in commit 802decccfd7e9670c31f6e94a9c152488776daf6
Toggle commit list
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