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
7a9b0d11
Commit
7a9b0d11
authored
May 06, 2020
by
renjintao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
order
parent
be29162c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
94 additions
and
35 deletions
+94
-35
index.vue
pages/mesPlan/index.vue
+35
-4
send.vue
pages/mesPlan/send.vue
+25
-19
edit.vue
pages/technology/details/routingqccard/edit.vue
+34
-12
No files found.
pages/mesPlan/index.vue
View file @
7a9b0d11
...
...
@@ -287,6 +287,37 @@ export default {
hide
:
true
,
type
:
"date"
},
{
key
:
"creatorUserId"
,
title
:
this
.
$t
(
"creatorUserId"
),
align
:
"left"
,
high
:
true
,
type
:
"user"
},
{
key
:
"creationTime"
,
title
:
this
.
$t
(
"creationTime"
),
align
:
"center"
,
high
:
true
,
width
:
180
},
{
key
:
"lastModifierUserId"
,
title
:
this
.
$t
(
"lastModifierUserId"
),
hide
:
true
,
align
:
"left"
,
high
:
true
,
type
:
"user"
},
{
key
:
"lastModificationTime"
,
title
:
this
.
$t
(
"lastModificationTime"
),
hide
:
true
,
align
:
"center"
,
high
:
true
,
width
:
180
},
{
title
:
"操作"
,
key
:
"action"
,
...
...
@@ -297,7 +328,7 @@ export default {
h
(
"op"
,
{
attrs
:
{
oprate
:
"detail"
,
},
attrs
:
{
oprate
:
"detail"
},
on
:
{
click
:
()
=>
this
.
detail
(
params
.
row
)
}
},
"查看"
...
...
@@ -305,7 +336,7 @@ export default {
h
(
"op"
,
{
attrs
:
{
oprate
:
"edit"
,
},
attrs
:
{
oprate
:
"edit"
},
on
:
{
click
:
()
=>
this
.
edit
(
params
.
row
)
},
style
:
(
params
.
row
.
status
==
1
&&
...
...
@@ -321,7 +352,7 @@ export default {
h
(
"op"
,
{
attrs
:
{
oprate
:
"remove"
,
},
attrs
:
{
oprate
:
"remove"
},
on
:
{
click
:
()
=>
this
.
remove
(
params
.
row
)
},
style
:
(
params
.
row
.
status
==
1
&&
...
...
@@ -336,7 +367,7 @@ export default {
h
(
"op"
,
{
attrs
:
{
oprate
:
"detail"
,
},
attrs
:
{
oprate
:
"detail"
},
on
:
{
click
:
()
=>
this
.
split
(
params
.
row
)
},
style
:
(
params
.
row
.
divideMark
!=
0
&&
...
...
pages/mesPlan/send.vue
View file @
7a9b0d11
...
...
@@ -19,7 +19,7 @@
>
<Row>
<Col
span=
"6"
>
<FormItem
label=
"生产
准备
"
style=
"width:100%"
prop=
"ProductingPreparationPeople"
>
<FormItem
label=
"生产
车间
"
style=
"width:100%"
prop=
"ProductingPreparationPeople"
>
<WorkShopSelect
ref=
"userSelected"
v-model=
"orderForm.ProductingPreparationPeople"
/>
</FormItem>
</Col>
...
...
@@ -74,36 +74,35 @@ export default {
},
columns1
:
[
{
title
:
"订单编码"
,
title
:
this
.
l
(
"mesCode"
)
,
key
:
"mesCode"
,
width
:
180
,
tooltip
:
true
},
{
title
:
"任务类型"
,
key
:
"taskType"
,
align
:
"center"
,
width
:
100
,
title
:
this
.
l
(
"productName"
),
key
:
"productName"
,
tooltip
:
true
},
{
title
:
"产品名称"
,
key
:
"productName"
,
tooltip
:
true
key
:
"drawnNumber"
,
title
:
this
.
l
(
"drawnNumber"
),
align
:
"center"
,
width
:
140
},
{
title
:
"阶段"
,
key
:
"
stage
"
,
width
:
8
0
title
:
this
.
l
(
"projectNumber"
)
,
key
:
"
projectNumber
"
,
width
:
14
0
},
{
title
:
"材料"
,
key
:
"
materialId
"
,
width
:
1
0
0
,
title
:
this
.
l
(
"batchNumber"
)
,
key
:
"
batchNumber
"
,
width
:
1
2
0
,
tooltip
:
true
},
{
title
:
"数量"
,
title
:
this
.
l
(
"quantity"
)
,
key
:
"quantity"
,
align
:
"right"
,
width
:
70
...
...
@@ -169,23 +168,30 @@ export default {
return
objStr
;
},
getTimeProductPFD
(
value
)
{
this
.
orderForm
.
ProductingPreparationFinishDate
=
this
.
getFormatDateEnd
(
value
);
this
.
orderForm
.
ProductingPreparationFinishDate
=
this
.
getFormatDateEnd
(
value
);
},
getTimeQuotationFD
(
value
)
{
this
.
orderForm
.
QuotationFinishDate
=
this
.
getFormatDateEnd
(
value
);
},
getFormatDateEnd
(
dates
)
{
getFormatDateEnd
(
dates
)
{
const
d
=
new
Date
(
dates
);
const
resDate
=
d
.
getFullYear
()
+
"-"
+
this
.
p
(
d
.
getMonth
()
+
1
)
+
"-"
+
this
.
p
(
d
.
getDate
())
+
" 23:59:59"
;
this
.
p
(
d
.
getDate
())
+
" 23:59:59"
;
return
resDate
;
},
p
(
s
)
{
return
s
<
10
?
"0"
+
s
:
s
;
},
l
(
key
)
{
let
vkey
=
"mes_plan"
+
"."
+
key
;
return
this
.
$t
(
vkey
)
||
key
;
}
},
created
()
{
...
...
pages/technology/details/routingqccard/edit.vue
View file @
7a9b0d11
...
...
@@ -81,8 +81,7 @@
</Col>
<Col
:span=
"24"
>
<FormItem
:label=
"l('qualityTemplateName')"
prop=
"qualityTemplateName"
>
<Input
v-model=
"entity.qualityTemplateName"
></Input>
<files
ref=
"refFile"
:parms=
"parms"
files
singleFile
/>
<files
ref=
"refFile"
:parms=
"parms"
files
singleFile
/>
</FormItem>
</Col>
<Col
:span=
"12"
>
...
...
@@ -162,22 +161,25 @@ export default {
data
()
{
return
{
disabled
:
false
,
entity
:
{},
entity
:
{
qualityTemplateName
:
""
,
qualityTemplate
:
""
},
rules
:
{
name
:
[{
required
:
true
,
message
:
"必填"
,
trigger
:
"blur"
}]
},
routingDetailList
:
[],
parms
:
{
app
:
'qccard'
,
eid
:
null
,
name
:
''
,
field
:
''
app
:
"qccard"
,
eid
:
this
.
eid
,
name
:
""
,
field
:
""
}
};
},
props
:
{
headid
:
Number
,
eName
:
String
,
eName
:
String
,
eid
:
Number
},
mounted
()
{
...
...
@@ -189,7 +191,7 @@ export default {
methods
:
{
load
(
v
)
{
Api
.
get
({
id
:
v
}).
then
(
r
=>
{
this
.
$refs
.
refFile
.
intFilesClone
()
this
.
$refs
.
refFile
.
intFilesClone
()
;
this
.
entity
=
r
.
result
;
});
},
...
...
@@ -197,6 +199,26 @@ export default {
this
.
$refs
.
form
.
validate
(
v
=>
{
if
(
v
)
{
this
.
disabled
=
true
;
this
.
entity
.
qualityTemplateName
=
""
;
this
.
entity
.
qualityTemplate
=
""
;
if
(
this
.
$refs
.
refFile
.
nameList
.
length
>
0
)
{
let
nameList
=
this
.
$refs
.
refFile
.
nameList
;
let
names
=
[];
let
url
=
[];
nameList
.
forEach
(
e
=>
{
names
.
push
(
e
.
fileName
);
url
.
push
(
e
.
filePath
);
});
this
.
entity
.
qualityTemplateName
=
JSON
.
stringify
(
names
)
.
replace
(
"["
,
""
)
.
replace
(
"]"
,
""
)
.
replace
(
/
\"
/g
,
""
);
//附件本地库暂存文件名称
this
.
entity
.
qualityTemplate
=
JSON
.
stringify
(
url
)
.
replace
(
"["
,
""
)
.
replace
(
"]"
,
""
)
.
replace
(
/
\"
/g
,
""
);
}
Api
.
update
(
this
.
entity
)
.
then
(
r
=>
{
this
.
disabled
=
false
;
...
...
@@ -231,11 +253,11 @@ export default {
tempObj
.
value
=
data
.
id
;
tempObj
.
label
=
data
.
name
;
tempD
.
push
(
tempObj
);
})
this
.
routingDetailList
=
tempD
})
;
this
.
routingDetailList
=
tempD
;
});
},
l
(
key
)
{
key
=
"routing_qc_card"
+
"."
+
key
;
return
this
.
$t
(
key
);
...
...
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