Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mes-ui
Project
Project
Details
Activity
Releases
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-ui
Commits
c79dc093
Commit
c79dc093
authored
Apr 17, 2020
by
仇晓婷
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
部门加属性字段
parent
40a5e8f6
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
4 deletions
+22
-4
Addrow.vue
pages/basicData/department/Addrow.vue
+8
-2
add.vue
pages/basicData/department/add.vue
+7
-1
edit.vue
pages/basicData/department/edit.vue
+7
-1
No files found.
pages/basicData/department/Addrow.vue
View file @
c79dc093
...
...
@@ -35,7 +35,7 @@
<Radio
label=
"1"
>
是
</Radio>
<Radio
label=
"0"
>
否
</Radio>
</RadioGroup>
-->
<CheckboxGroup
v-model=
"entity.
isProduction
"
>
<CheckboxGroup
v-model=
"entity.
property
"
>
<Checkbox
label=
"1"
>
生产班组
</Checkbox>
<Checkbox
label=
"2"
>
排产资源
</Checkbox>
</CheckboxGroup>
...
...
@@ -94,13 +94,19 @@ export default {
handleSubmit
()
{
this
.
$refs
[
"form"
].
validate
(
value
=>
{
if
(
value
)
{
if
(
this
.
entity
.
property
[
0
]
==
1
||
this
.
entity
.
property
[
1
]
==
1
)
{
this
.
entity
.
isProduction
=
1
;
}
else
{
this
.
entity
.
isProduction
=
0
;
}
let
paramsdata
=
{
name
:
this
.
entity
.
title02
,
//部门名称
parent_Id
:
this
.
entity
.
id
,
//上级部门 [id]
code
:
this
.
entity
.
departcode
,
//部门编号
organization_Id
:
this
.
entity
.
organization_Id
,
//组织类型 [id]
location
:
this
.
entity
.
location
,
//省市县
isProduction
:
this
.
entity
.
isProduction
//是否生产班组:1是,0否
isProduction
:
this
.
entity
.
isProduction
,
//是否生产班组:1是,0否
property
:
this
.
entity
.
property
//属性
};
Api
.
create
(
paramsdata
)
.
then
(
r
=>
{
...
...
pages/basicData/department/add.vue
View file @
c79dc093
...
...
@@ -84,6 +84,11 @@ export default {
handleSubmit
()
{
this
.
$refs
[
"form"
].
validate
(
value
=>
{
if
(
value
)
{
if
(
this
.
entity
.
property
[
0
]
==
1
||
this
.
entity
.
property
[
1
]
==
1
)
{
this
.
entity
.
isProduction
=
1
;
}
else
{
this
.
entity
.
isProduction
=
0
;
}
let
location
;
if
(
this
.
entity
.
location
)
{
location
=
this
.
entity
.
location
.
join
(
","
);
...
...
@@ -96,7 +101,8 @@ export default {
code
:
this
.
entity
.
departcode
,
//部门编号
organization_Id
:
this
.
entity
.
organization_Id
,
//组织类型 [id]
location
:
location
,
//省市县
isProduction
:
this
.
entity
.
isProduction
//是否生产班组:1是,0否
isProduction
:
this
.
entity
.
isProduction
,
//是否生产班组:1是,0否
property
:
this
.
entity
.
property
//属性
};
Api
.
create
(
paramsdata
)
.
then
(
r
=>
{
...
...
pages/basicData/department/edit.vue
View file @
c79dc093
...
...
@@ -87,6 +87,11 @@ export default {
handleSubmit
()
{
this
.
$refs
[
"form"
].
validate
(
value
=>
{
if
(
value
)
{
if
(
this
.
entity
.
property
[
0
]
==
1
||
this
.
entity
.
property
[
1
]
==
1
)
{
this
.
entity
.
isProduction
=
1
;
}
else
{
this
.
entity
.
isProduction
=
0
;
}
let
paramsdata
=
{
id
:
this
.
entity
.
id
,
name
:
this
.
entity
.
name
,
//部门名称
...
...
@@ -95,7 +100,8 @@ export default {
organizationType
:
this
.
entity
.
organizationType
,
//组织类型 [name]
organization_Id
:
this
.
entity
.
organization_Id
,
//组织类型 [id]
location
:
this
.
city_level
.
join
(
","
),
//省市县
isProduction
:
this
.
entity
.
isProduction
//是否生产班组:1是,0否
isProduction
:
this
.
entity
.
isProduction
,
//是否生产班组:1是,0否
property
:
this
.
entity
.
property
//属性
};
Api
.
update
(
paramsdata
)
.
then
(
r
=>
{
...
...
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