Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tianjin
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
徐来柯
tianjin
Commits
b8d5afd5
Commit
b8d5afd5
authored
Jan 13, 2021
by
徐来柯
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
fb397017
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
97 additions
and
65 deletions
+97
-65
ProducSchedule.vue
src/views/education/ProducSchedule.vue
+0
-0
ProductionPlan.vue
src/views/education/ProductionPlan.vue
+0
-1
SchedulingPop.vue
src/views/education/component/SchedulingPop.vue
+58
-60
head.vue
src/views/education/component/head.vue
+38
-3
relateDialog.vue
src/views/education/component/relateDialog.vue
+1
-1
No files found.
src/views/education/ProducSchedule.vue
View file @
b8d5afd5
This diff is collapsed.
Click to expand it.
src/views/education/ProductionPlan.vue
View file @
b8d5afd5
...
...
@@ -199,7 +199,6 @@ export default {
},
// 保存变量
saveData
(
data
,
type
)
{
debugger
this
.
$refs
.
linePop
[
type
]
=
data
.
Name
this
.
relateShow
=
false
},
...
...
src/views/education/component/SchedulingPop.vue
View file @
b8d5afd5
...
...
@@ -16,12 +16,12 @@
<div
class=
"centen_row"
>
<span
class=
"centen_row_text"
>
生产计划编号:
</span>
<div
class=
"centen_row_select"
>
<el-select
@
change=
"orderFun()"
v-model=
"
value
"
placeholder=
"请选择"
>
<el-select
@
change=
"orderFun()"
v-model=
"
PlanID
"
placeholder=
"请选择"
>
<el-option
v-for=
"item in planArr"
:key=
"item.
PlanType
"
:label=
"item.P
lanTyp
e"
:value=
"item.
PlanType
"
>
:key=
"item.
ID
"
:label=
"item.P
roductNam
e"
:value=
"item.
ID
"
>
</el-option>
</el-select>
</div>
...
...
@@ -29,12 +29,12 @@
<div
class=
"centen_row"
style=
"margin-top: 10px"
>
<span
class=
"centen_row_text"
style=
"margin-left: 30px"
>
线体编号:
</span>
<div
class=
"centen_row_select"
>
<el-select
@
change=
"orderFun()"
v-model=
"
value
"
placeholder=
"请选择"
>
<el-select
@
change=
"orderFun()"
v-model=
"
LineID
"
placeholder=
"请选择"
>
<el-option
v-for=
"item in
planArr
"
:key=
"item.
PlanTyp
e"
:label=
"item.
PlanTyp
e"
:value=
"item.
PlanType
"
>
v-for=
"item in
lineList
"
:key=
"item.
Nam
e"
:label=
"item.
Nam
e"
:value=
"item.
ID
"
>
</el-option>
</el-select>
</div>
...
...
@@ -42,12 +42,12 @@
<div
class=
"centen_row"
style=
"margin-top:10px"
>
<span
class=
"centen_row_text"
style=
"margin-left: 30px"
>
操作员:
</span>
<div
class=
"centen_row_select"
>
<el-select
v-model=
"
value1
"
placeholder=
"请选择"
>
<el-select
v-model=
"
UserName
"
placeholder=
"请选择"
>
<el-option
v-for=
"item in
Line
Arr"
:key=
"item
.LineName
"
:label=
"item
.LineName
"
:value=
"item
.LineName
"
>
v-for=
"item in
ren
Arr"
:key=
"item"
:label=
"item"
:value=
"item"
>
</el-option>
</el-select>
</div>
...
...
@@ -55,20 +55,14 @@
<div
class=
"centen_row"
style=
"margin-top:10px"
>
<span
class=
"centen_row_text"
style=
"margin-left: 30px"
>
排程数量:
</span>
<div
class=
"centen_row_select"
>
<el-select
v-model=
"value3"
placeholder=
"请选择"
>
<el-option
v-for=
"item in renArr"
:key=
"item.UserName"
:label=
"item.UserName"
:value=
"item.UserName"
>
</el-option>
</el-select>
<input
v-model=
"Quantity"
class=
"schedule_input"
/>
</div>
</div>
<div
class=
"centen_row"
style=
"margin-top:10px"
>
<span
class=
"centen_row_text"
>
线体状态信号:
</span>
<span
@
click=
"openRelate"
class=
"relateBtn"
>
。 。 。
</span>
<input
v-model=
"LinVar"
disabled
class=
"line_input"
/>
<span
@
click=
"openRelate('LinVar')"
class=
"relateBtn"
>
选 择
</span>
</div>
</div>
...
...
@@ -84,18 +78,22 @@
export
default
{
data
()
{
return
{
value
:
''
,
value1
:
''
,
value3
:
''
,
num
:
''
,
titleText
:
''
,
lineList
:
[],
planArr
:[],
LineArr
:[],
renArr
:[],
valuedata
:[],
editDataArr
:[]
editDataArr
:[],
LinVar
:
''
,
PlanID
:
''
,
LineID
:
''
,
UserName
:
''
,
Quantity
:
''
,
}
},
props
:[
'typePop'
,
'data'
],
...
...
@@ -110,10 +108,11 @@ export default {
url
:
`/api/Schedule/Schedule_WindowQuery?argID=
${
id
}
`
,
}).
then
((
res
)
=>
{
this
.
editDataArr
=
res
.
data
.
data
this
.
value
=
res
.
data
.
data
.
PlanType
this
.
value1
=
res
.
data
.
data
.
LineName
this
.
value3
=
res
.
data
.
data
.
UserName
this
.
num
=
res
.
data
.
data
.
Quantity
this
.
PlanID
=
res
.
data
.
data
.
PlanID
this
.
LineID
=
res
.
data
.
data
.
LineID
this
.
UserName
=
res
.
data
.
data
.
UserName
this
.
Quantity
=
res
.
data
.
data
.
Quantity
this
.
LinVar
=
res
.
data
.
data
.
LinVar
}).
catch
(
function
(
err
){
console
.
log
(
'err'
,
err
)
...
...
@@ -124,6 +123,7 @@ export default {
this
.
queryPlan
()
this
.
queryLine
()
this
.
queryRen
()
this
.
getLines
()
},
directives
:
{
drag
:
function
(
el
)
{
...
...
@@ -152,31 +152,25 @@ export default {
methods
:{
//查询生产订单
queryPlan
(){
var
value
=
''
var
id
=
'00000000-0000-0000-0000-000000000000'
this
.
$axios
({
method
:
"post"
,
url
:
`/api/Plan/Plan_Query?argKeyWord
=
${
value
}
&&argID=
${
id
}
`
,
url
:
`/api/Plan/Plan_Query?argKeyWord
&argWhere&Stime&Etime
`
,
}).
then
((
res
)
=>
{
this
.
planArr
=
[]
for
(
let
i
=
0
;
i
<
res
.
data
.
data
.
length
;
i
++
){
var
value
=
{
ProductID
:
res
.
data
.
data
[
i
].
ProductID
,
//产品id
ProductName
:
res
.
data
.
data
[
i
].
ProductName
,
//产品名称
ProductType
:
res
.
data
.
data
[
i
].
ProductType
,
//产品型号
PlanID
:
res
.
data
.
data
[
i
].
ID
,
//计划id
PlanType
:
res
.
data
.
data
[
i
].
PID
,
//订单编号
Status
:
res
.
data
.
data
[
i
].
Status
}
this
.
planArr
.
push
(
value
)
}
this
.
planArr
=
res
.
data
.
data
}).
catch
(
function
(
err
){
console
.
log
(
'err'
,
err
)
})
},
openRelate
()
{
this
.
$emit
(
'openRelate'
)
getLines
()
{
this
.
$axios
({
method
:
"post"
,
url
:
`/api/MaterialDelivery/MaterialDelivery_LinesData`
,
}).
then
((
res
)
=>
{
this
.
lineList
=
res
.
data
.
data
})
},
openRelate
(
type
)
{
this
.
$emit
(
'openRelate'
,
type
)
},
//订单选择
orderFun
(){
...
...
@@ -232,14 +226,7 @@ export default {
method
:
"post"
,
url
:
`/api/Schedule/Schedule_WindowUserQuery`
,
}).
then
((
res
)
=>
{
this
.
renArr
=
[]
for
(
let
i
=
0
;
i
<
res
.
data
.
data
.
length
;
i
++
){
var
value
=
{
ID
:
res
.
data
.
data
[
i
],
UserName
:
res
.
data
.
data
[
i
],
}
this
.
renArr
.
push
(
value
)
}
this
.
renArr
=
res
.
data
.
data
}).
catch
(
function
(
err
){
console
.
log
(
'err'
,
err
)
})
...
...
@@ -286,10 +273,13 @@ export default {
NO
:
'1'
,
ID
:
id
,
SID
:
timeid
,
UserName
:
this
.
value3
,
Quantity
:
this
.
Quantity
,
UserName
:
this
.
UserName
,
LineID
:
this
.
LineID
,
PlanID
:
this
.
PlanID
,
LinVar
:
this
.
LinVar
,
StartDt
:
''
,
EndDt
:
''
,
Quantity
:
this
.
num
}
for
(
let
i
=
0
;
i
<
this
.
planArr
.
length
;
i
++
){
if
(
this
.
value
==
this
.
planArr
[
i
].
PlanType
){
...
...
@@ -330,6 +320,15 @@ export default {
}
</
style
>
<
style
lang=
"scss"
scoped
>
.line_input
{
height
:
40px
;
width
:
214px
;
margin-left
:
32px
;
}
.schedule_input
{
height
:
40px
;
width
:
310px
}
.scPopBox
{
width
:
820px
;
height
:
550px
;
...
...
@@ -373,7 +372,7 @@ export default {
width
:
75px
;
height
:
40px
;
display
:
inline-block
;
margin-left
:
32
px
;
margin-left
:
20
px
;
text-align
:
center
;
line-height
:
40px
;
cursor
:
pointer
;
...
...
@@ -386,7 +385,6 @@ export default {
font-family
:
Microsoft
YaHei
;
font-weight
:
400
;
color
:rgba
(
51
,
51
,
51
,
1
)
;
margin-right
:
20px
;
}
.popCenten
{
width
:
737px
;
...
...
src/views/education/component/head.vue
View file @
b8d5afd5
...
...
@@ -43,7 +43,7 @@
<el-input
type=
"text"
@
input=
"inputchargeFun()"
v-model=
"input"
:placeholder=
"placeText"
></el-input>
</div>
<div>
<div
v-if=
"type=== '10'"
class=
"bottom"
@
click=
"searchQuery"
>
查询
</div>
<div
v-if=
"type=== '10'
|| type === '8'
"
class=
"bottom"
@
click=
"searchQuery"
>
查询
</div>
<div
class=
"bottom"
v-else
@
click=
"query()"
>
查询
</div>
</div>
<div
v-if=
"type == 9"
class=
"add xy"
>
...
...
@@ -90,14 +90,14 @@ export default {
},
props
:[
'type'
],
created
(){
if
(
this
.
type
==
'6'
||
this
.
type
==
'8'
){
if
(
this
.
type
==
'6'
){
this
.
placeText
=
'请输入关键字'
this
.
headText
=
'产品名称'
this
.
queryProduct
()
}
else
if
(
this
.
type
==
9
){
this
.
placeText
=
'请输入关键字'
this
.
headText
=
'设备名称'
}
else
if
(
this
.
type
===
'10'
||
this
.
type
===
'11'
||
this
.
type
===
'12'
){
}
else
if
(
this
.
type
===
'10'
||
this
.
type
===
'11'
||
this
.
type
===
'12'
||
this
.
type
==
'8'
){
this
.
placeText
=
'请输入关键字'
if
(
this
.
type
===
'10'
)
{
this
.
productNameArr
=
[
...
...
@@ -149,6 +149,41 @@ export default {
name
:
'线体名称'
}
]
}
else
if
(
this
.
type
===
'8'
)
{
this
.
productNameArr
=
[
{
id
:
'不限'
,
name
:
' '
},
{
id
:
'生产排程编号'
,
name
:
'生产排程编号'
},
{
id
:
'产品编号'
,
name
:
'产品编号'
},
{
id
:
'产品名称'
,
name
:
'产品名称'
},
{
id
:
'产品描述'
,
name
:
'产品描述'
},
{
id
:
'计划交货日期'
,
name
:
'计划交货日期'
},
{
id
:
'操作员'
,
name
:
'操作员'
},
{
id
:
'生产排程状态'
,
name
:
'生产排程状态'
}
]
}
}
else
{
this
.
placeText
=
'请输入名称'
...
...
src/views/education/component/relateDialog.vue
View file @
b8d5afd5
...
...
@@ -268,7 +268,7 @@ export default {
return
}
}
if
(
this
.
relateType
===
'VStatus'
)
{
if
(
this
.
relateType
===
'VStatus'
||
this
.
relateType
===
'LinVar'
)
{
if
(
this
.
currentRow
.
DateType
.
indexOf
(
'二进制'
)
!==
-
1
)
{
return
this
.
$emit
(
'conserve'
,
this
.
currentRow
,
this
.
relateType
)
}
else
{
...
...
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