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
2da1ad55
Commit
2da1ad55
authored
Apr 26, 2020
by
周远喜
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'product' of
http://git.mes123.com/zhouyx/mes-ui
into product
parents
4548e6a5
4e70dd41
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
77 additions
and
81 deletions
+77
-81
dictionary.vue
components/page/dictionary.vue
+64
-62
index.vue
pages/aps/plan/index.vue
+13
-19
No files found.
components/page/dictionary.vue
View file @
2da1ad55
<
template
>
<div>
<div>
<RadioGroup
v-if=
"type === 'radio'"
ref=
"dicradio"
...
...
@@ -12,10 +12,11 @@
:disabled=
"item.disabled"
:label=
"item.value"
:key=
"index"
:border=
"border"
>
<span
:title=
"item.value"
>
{{
item
.
label
}}
</span>
</Radio
>
</RadioGroup>
</Radio
>
</RadioGroup>
<Select
v-else
:placeholder=
"placeholder"
...
...
@@ -33,30 +34,32 @@
:key=
"item.value"
:label=
"item.label"
>
<span
:title=
"item.value"
>
{{
item
.
label
}}
</span>
<span
:title=
"item.value"
>
{{
item
.
label
}}
</span>
</Option>
</Select>
</div>
</div>
</
template
>
<
script
>
export
default
{
model
:
{
prop
:
'value'
,
event
:
'on-change'
prop
:
"value"
,
event
:
"on-change"
},
props
:
{
code
:
String
,
value
:
[
String
,
Number
,
Array
],
placeholder
:
{
type
:
String
,
default
:
'请选择'
default
:
"请选择"
},
type
:
{
// 显示形式: select 或者radio
type
:
String
,
default
:
'Select'
default
:
"Select"
},
border
:
{
//radio可以选择border属性
type
:
Boolean
,
default
:
false
},
multiple
:
{
//是否多选
...
...
@@ -76,18 +79,17 @@ export default {
limit
:
{
//限制只在此值范围内进行选择,其它值禁用选择。
type
:
String
,
default
:
''
default
:
""
}
},
data
()
{
return
{
name
:
this
.
value
,
data
:
[]
}
}
;
},
created
()
{
this
.
data
=
this
.
$store
.
getters
.
dictionaryByKey
(
this
.
code
)
this
.
data
=
this
.
$store
.
getters
.
dictionaryByKey
(
this
.
code
);
},
mounted
()
{
// if(this.value==undefined||this.value==''||this.value==null)
...
...
@@ -105,46 +107,46 @@ export default {
methods
:
{
change
(
event
)
{
this
.
$emit
(
'on-change'
,
event
)
this
.
$emit
(
"on-change"
,
event
);
}
},
computed
:
{
dic
()
{
let
result
=
[]
let
limit
=
this
.
limit
.
split
(
','
)
this
.
data
.
forEach
(
(
u
)
=>
{
let
v
=
u
.
code
let
s
=
u
.
status
let
result
=
[]
;
let
limit
=
this
.
limit
.
split
(
","
);
this
.
data
.
forEach
(
u
=>
{
let
v
=
u
.
code
;
let
s
=
u
.
status
;
try
{
v
=
parseInt
(
u
.
code
)
v
=
parseInt
(
u
.
code
)
;
}
catch
(
err
)
{
console
.
warn
(
'数据字典值请设置为int'
)
console
.
warn
(
"数据字典值请设置为int"
);
}
var
disabled
=
this
.
disabled
//false
var
disabled
=
this
.
disabled
;
//false
if
(
!
this
.
disabled
&&
!
this
.
$u
.
isNull
(
this
.
limit
))
{
disabled
=
limit
.
indexOf
(
v
+
''
)
==
-
1
disabled
=
limit
.
indexOf
(
v
+
""
)
==
-
1
;
}
if
(
!
this
.
disabled
)
{
disabled
=
s
==
1
?
true
:
false
disabled
=
s
==
1
?
true
:
false
;
}
result
.
push
({
label
:
u
.
name
,
value
:
v
,
disabled
:
disabled
})
})
return
result
})
;
})
;
return
result
;
}
},
watch
:
{
value
:
{
handler
(
v
,
o
)
{
this
.
name
=
v
this
.
name
=
v
;
},
deep
:
true
}
}
}
}
;
</
script
>
<
style
lang=
"less"
>
.w200 {
...
...
pages/aps/plan/index.vue
View file @
2da1ad55
...
...
@@ -82,14 +82,8 @@
<Modal
v-model=
"scheduleModal"
title=
"移入排产"
width=
"800"
>
<p>
</p>
<h4>
请选择排产模型:
</h4>
<RadioGroup
v-model=
"scheduleType"
class=
"radioList"
@
on-change=
"onchangeScheduleType"
>
<Radio
label=
"1"
border
>
APS排产
</Radio>
<Radio
label=
"4"
border
>
智能排产
</Radio>
<Radio
label=
"2"
border
>
整机排产
</Radio>
<Radio
label=
"3"
border
>
流水排产
</Radio>
</RadioGroup>
<p
class=
"pl30 pt10"
v-show=
"scheduleType!=''"
>
<Dictionary
code=
"aps.plan.scheduleType"
v-model=
"scheduleType"
class=
"radioList"
border=
"true"
type=
"radio"
@
on-change=
"onchangeScheduleType"
></Dictionary>
<p
class=
"pl30 pt10"
v-show=
"scheduleType!=null"
>
确定将订单
<span
class=
"fwBold"
>
{{resultsOrderList}}
</span>
移入
<span
class=
"red fwBold"
>
{{scheduleTypeName}}
</span>
?
...
...
@@ -370,7 +364,7 @@ export default {
dispatchStatus
:
0
,
//派发标识
scheduleStatus
:
0
,
//排产标识
resultsOrderList
:
""
,
scheduleType
:
""
,
scheduleType
:
null
,
scheduleTypeName
:
""
};
},
...
...
@@ -456,7 +450,7 @@ export default {
},
modalSchedule
()
{
//移入排产
this
.
scheduleType
=
""
;
this
.
scheduleType
=
null
;
this
.
scheduleTypeName
=
""
;
this
.
listBatchIds
=
this
.
listBatchIds1
;
if
(
this
.
scheduleStatus
==
1
)
{
...
...
@@ -470,7 +464,7 @@ export default {
this
.
canselFooter
();
this
.
resultsOrderList
=
value
.
mesCode
;
this
.
listBatchIds
=
[
value
.
id
];
this
.
scheduleType
=
""
;
this
.
scheduleType
=
null
;
this
.
scheduleTypeName
=
""
;
if
(
value
.
mainRoutingSetStatus
==
0
)
{
//this.dispatchStatus = 1
...
...
@@ -487,12 +481,12 @@ export default {
this
.
$refs
.
orderSupport
.
loaddata
(
value
.
id
);
},
scheduleOk
()
{
if
(
this
.
scheduleType
==
""
)
{
if
(
this
.
scheduleType
==
null
)
{
this
.
$Message
.
error
(
"请选择排产模型"
);
}
else
{
let
params
=
{
ids
:
this
.
listBatchIds
,
poolType
:
Number
(
this
.
scheduleType
)
poolType
:
this
.
scheduleType
};
Api
.
moveinbatch
(
params
)
.
then
(
r
=>
{
...
...
@@ -614,13 +608,13 @@ export default {
//移入排产前选择排产模型
onchangeScheduleType
(
val
)
{
switch
(
val
)
{
case
"4"
:
case
4
:
this
.
scheduleTypeName
=
"智能排产"
;
break
;
case
"2"
:
case
2
:
this
.
scheduleTypeName
=
"整机排产"
;
break
;
case
"3"
:
case
3
:
this
.
scheduleTypeName
=
"流水排产"
;
break
;
default
:
...
...
@@ -630,13 +624,13 @@ export default {
//移入排产成功后给标题增加数量
changeCountOut
(
type
,
count
)
{
switch
(
type
)
{
case
"4"
:
//智能排产池排产订单数量
case
4
:
//智能排产池排产订单数量
this
.
$store
.
commit
(
"setCountAi"
,
this
.
$store
.
state
.
countAi
+
count
);
break
;
case
"2"
:
//整机排产池排产订单数量
case
2
:
//整机排产池排产订单数量
this
.
$store
.
commit
(
"setCountAll"
,
this
.
$store
.
state
.
countAll
+
count
);
break
;
case
"3"
:
//流水排产池排产订单数量
case
3
:
//流水排产池排产订单数量
this
.
$store
.
commit
(
"setCountRun"
,
this
.
$store
.
state
.
countRun
+
count
);
break
;
default
:
...
...
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