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
4973afc9
Commit
4973afc9
authored
May 19, 2020
by
renjintao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
工艺规程、工艺更改单审批相关
parent
71eabcfa
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
148 additions
and
134 deletions
+148
-134
add.vue
pages/technology/add.vue
+10
-2
edit.vue
pages/technology/details/routinghcorder/edit.vue
+135
-129
index.vue
pages/technology/details/routinghcorder/index.vue
+2
-2
index.vue
pages/technology/index.vue
+1
-1
No files found.
pages/technology/add.vue
View file @
4973afc9
...
...
@@ -196,7 +196,15 @@ export default {
},
rules
:
{
name
:
[{
required
:
true
,
message
:
"必填"
,
trigger
:
"blur"
}],
code
:
[{
required
:
true
,
message
:
"必填"
,
trigger
:
"blur"
}]
code
:
[{
required
:
true
,
message
:
"必填"
,
trigger
:
"blur"
}],
routingType
:
[
{
required
:
true
,
message
:
"请选择工艺类型"
,
trigger
:
"change"
,
type
:
"number"
}
]
},
parms
:
{
app
:
"technology"
,
...
...
pages/technology/details/routinghcorder/edit.vue
View file @
4973afc9
...
...
@@ -68,7 +68,12 @@
</Col>
<Col
span=
"8"
>
<FormItem
:label=
"l('effectiveDate')"
prop=
"effectiveDate"
>
<DatePicker
type=
"date"
v-model=
"entity.effectiveDate"
style=
"width:100%"
format=
"yyyy/MM/dd"
></DatePicker>
<DatePicker
type=
"date"
v-model=
"entity.effectiveDate"
style=
"width:100%"
format=
"yyyy/MM/dd"
></DatePicker>
</FormItem>
</Col>
<Col
span=
"24"
>
...
...
@@ -151,6 +156,7 @@ export default {
this
.
$refs
.
form
.
validate
(
v
=>
{
if
(
v
)
{
this
.
disabled
=
true
;
this
.
entity
.
status
=
1
;
//修改后(未通过审核或新建的)的状态都为待送审
Api
.
update
(
this
.
entity
)
.
then
(
r
=>
{
this
.
disabled
=
false
;
...
...
@@ -174,42 +180,42 @@ export default {
},
handleImg
(
e
)
{
console
.
warn
(
e
);
let
file
=
null
let
file
=
null
;
if
(
e
.
clipboardData
&&
e
.
clipboardData
.
items
[
0
]
&&
e
.
clipboardData
.
items
[
0
].
type
&&
e
.
clipboardData
.
items
[
0
].
type
.
indexOf
(
'image'
)
>
-
1
e
.
clipboardData
.
items
[
0
].
type
.
indexOf
(
"image"
)
>
-
1
)
{
//这里就是判断是否有粘贴进来的文件且文件为图片格式
file
=
e
.
clipboardData
.
items
[
0
].
getAsFile
()
let
reader
=
new
FileReader
()
reader
.
readAsDataURL
(
file
)
file
=
e
.
clipboardData
.
items
[
0
].
getAsFile
();
let
reader
=
new
FileReader
();
reader
.
readAsDataURL
(
file
);
setTimeout
(()
=>
{
var
img
=
'<img src="'
+
reader
.
result
+
'" alt=""/>'
this
.
entity
.
beforeChangeContent
+=
img
},
1000
)
var
img
=
'<img src="'
+
reader
.
result
+
'" alt=""/>'
;
this
.
entity
.
beforeChangeContent
+=
img
;
},
1000
);
// new R
}
},
handleImg1
(
e
)
{
console
.
warn
(
e
);
let
file
=
null
let
file
=
null
;
if
(
e
.
clipboardData
&&
e
.
clipboardData
.
items
[
0
]
&&
e
.
clipboardData
.
items
[
0
].
type
&&
e
.
clipboardData
.
items
[
0
].
type
.
indexOf
(
'image'
)
>
-
1
e
.
clipboardData
.
items
[
0
].
type
.
indexOf
(
"image"
)
>
-
1
)
{
//这里就是判断是否有粘贴进来的文件且文件为图片格式
file
=
e
.
clipboardData
.
items
[
0
].
getAsFile
()
let
reader
=
new
FileReader
()
reader
.
readAsDataURL
(
file
)
file
=
e
.
clipboardData
.
items
[
0
].
getAsFile
();
let
reader
=
new
FileReader
();
reader
.
readAsDataURL
(
file
);
setTimeout
(()
=>
{
var
img
=
'<img src="'
+
reader
.
result
+
'" alt=""/>'
this
.
entity
.
afterChangeContent
+=
img
},
1000
)
var
img
=
'<img src="'
+
reader
.
result
+
'" alt=""/>'
;
this
.
entity
.
afterChangeContent
+=
img
;
},
1000
);
// new R
}
...
...
pages/technology/details/routinghcorder/index.vue
View file @
4973afc9
...
...
@@ -173,7 +173,7 @@ export default {
attrs
:
{
oprate
:
"edit"
},
on
:
{
click
:
()
=>
this
.
edit
(
params
.
row
.
id
)
}
},
params
.
row
.
status
==
1
?
"编辑"
:
""
params
.
row
.
status
==
1
||
params
.
row
.
status
==
4
?
"编辑"
:
""
),
h
(
"op"
,
...
...
@@ -181,7 +181,7 @@ export default {
attrs
:
{
oprate
:
"delete"
},
on
:
{
click
:
()
=>
this
.
remove
(
params
.
row
.
id
)
}
},
params
.
row
.
status
==
1
?
"删除"
:
""
params
.
row
.
status
==
1
||
params
.
row
.
status
==
4
?
"删除"
:
""
),
h
(
"op"
,
...
...
pages/technology/index.vue
View file @
4973afc9
...
...
@@ -275,7 +275,7 @@ export default {
{
title
:
"操作"
,
key
:
"action"
,
width
:
32
0
,
width
:
26
0
,
align
:
"left"
,
render
:
(
h
,
params
)
=>
{
return
h
(
"div"
,
{
class
:
"action"
},
[
...
...
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