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
3679cf11
Commit
3679cf11
authored
May 18, 2020
by
renjintao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
工艺更改单
parent
80da2cd7
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
33 deletions
+25
-33
add.vue
pages/technology/details/routinghcorder/add.vue
+3
-2
index.vue
pages/technology/details/routinghcorder/index.vue
+14
-7
index.vue
pages/technology/index.vue
+8
-24
No files found.
pages/technology/details/routinghcorder/add.vue
View file @
3679cf11
...
...
@@ -165,7 +165,8 @@ export default {
},
props
:
{
v
:
Object
,
eid
:
Number
eid
:
Number
,
headid
:
Number
,
},
mounted
()
{
// if (this.eid > 0) {
...
...
@@ -191,7 +192,7 @@ export default {
if
(
v
)
{
this
.
disabled
=
true
;
this
.
entity
.
handlingOpinions
=
this
.
entity
.
handlingOpinionsId
this
.
entity
.
routingHeaderId
=
this
.
headid
;
Api
.
create
(
this
.
entity
)
.
then
(
r
=>
{
this
.
disabled
=
false
;
...
...
pages/technology/details/routinghcorder/index.vue
View file @
3679cf11
<
template
>
<div>
<DataGrid
:columns=
"columns"
ref=
"grid"
:action=
"action"
>
<DataGrid
:columns=
"columns"
ref=
"grid"
:action=
"action"
:conditions=
"easySearch"
>
<template
slot=
"easySearch"
>
<Form
ref=
"formInline"
:model=
"easySearch"
inline
>
<FormItem
prop=
"keys"
>
<Input
placeholder=
"请输入关键字更改单编号"
v-model=
"easySearch.keys.value"
v-width=
"260"
/>
<Input
placeholder=
"请输入关键字更改单编号"
v-model=
"easySearch.keys.value"
v-width=
"260"
/>
</FormItem>
<FormItem>
<Button
type=
"primary"
@
click=
"search"
>
查询
</Button>
...
...
@@ -19,7 +19,7 @@
</
template
>
</DataGrid>
<Modal
v-model=
"modal"
:title=
"title"
width=
"1200"
footer-hide
scrollable
>
<component
:is=
"detail"
:eid=
"curId"
@
on-close=
"cancel"
@
on-ok=
"ok"
/>
<component
:is=
"detail"
:eid=
"curId"
:headid=
"hid"
@
on-close=
"cancel"
@
on-ok=
"ok"
/>
</Modal>
</div>
</template>
...
...
@@ -43,8 +43,13 @@ export default {
keys
:
{
op
:
"changeorderCode,"
,
value
:
null
},
routingHeaderId
:
{
op
:
"Equal"
,
value
:
this
.
$http
.
common
.
getquerystring
(
"id"
)
}
},
hid
:
0
,
modal
:
false
,
title
:
"新增"
,
detail
:
null
,
...
...
@@ -75,7 +80,7 @@ export default {
align
:
"left"
,
high
:
true
,
type
:
"user"
,
width
:
140
,
width
:
140
},
{
key
:
"technicalName"
,
...
...
@@ -103,7 +108,7 @@ export default {
title
:
this
.
l
(
"quantity"
),
align
:
"right"
,
high
:
true
,
width
:
100
,
width
:
100
},
{
key
:
"status"
,
...
...
@@ -165,7 +170,7 @@ export default {
attrs
:
{
oprate
:
"edit"
},
on
:
{
click
:
()
=>
this
.
edit
(
params
.
row
.
id
)
}
},
params
.
row
.
status
==
1
?
"编辑"
:
''
params
.
row
.
status
==
1
?
"编辑"
:
""
),
h
(
"op"
,
...
...
@@ -173,7 +178,7 @@ export default {
attrs
:
{
oprate
:
"delete"
},
on
:
{
click
:
()
=>
this
.
remove
(
params
.
row
.
id
)
}
},
params
.
row
.
status
==
1
?
"删除"
:
""
params
.
row
.
status
==
1
?
"删除"
:
""
)
]);
}
...
...
@@ -183,6 +188,7 @@ export default {
},
mounted
()
{
console
.
log
(
this
);
this
.
search
()
},
async
fetch
({
store
,
params
})
{
await
store
.
dispatch
(
"loadDictionary"
);
// 加载数据字典
...
...
@@ -198,6 +204,7 @@ export default {
},
add
()
{
this
.
curId
=
0
;
this
.
hid
=
this
.
$http
.
common
.
getquerystring
(
"id"
);
this
.
title
=
"新增"
;
this
.
detail
=
()
=>
import
(
"./add"
);
this
.
modal
=
true
;
...
...
pages/technology/index.vue
View file @
3679cf11
...
...
@@ -60,6 +60,7 @@
:eid=
"curId"
:uid=
"uId"
:title=
"title"
:headid=
"hid"
@
on-close=
"cancel"
@
on-ok=
"ok"
/>
...
...
@@ -143,6 +144,7 @@ export default {
easySearch
:
{
keys
:
{
op
:
"unicode,name,code"
,
value
:
null
}
},
hid
:
0
,
modal
:
false
,
title
:
"新增"
,
info
:
null
,
...
...
@@ -320,8 +322,8 @@ export default {
h
(
"op"
,
{
attrs
:
{
oprate
:
"detail"
}
//
on: { click: () => this.TechnologyChange(params.row) }
attrs
:
{
oprate
:
"detail"
}
,
on
:
{
click
:
()
=>
this
.
TechnologyChange
(
params
.
row
)
}
},
params
.
row
.
approvalStatus
==
1
?
"新增更改单"
:
""
),
...
...
@@ -484,28 +486,10 @@ export default {
},
//工艺更改
TechnologyChange
(
row
)
{
this
.
$refs
.
routingchangeorder
.
flag
=
0
;
this
.
$refs
.
routingchangeorder
.
routing_header_Id
=
row
.
id
;
var
userId
=
this
.
$store
.
state
.
userInfo
.
userId
;
let
parma
=
{
Id
:
userId
};
this
.
$refs
.
routingchangeorder
.
changeorder_code
=
""
;
this
.
$http
.
sysUser
.
getuserinfo
(
parma
).
then
(
res
=>
{
if
(
res
.
result
)
{
this
.
$refs
.
routingchangeorder
.
formValidate
=
{
technical_name
:
row
.
name
,
technical_code
:
row
.
code
,
department_name
:
res
.
result
.
departmentTitle
,
propose_user_name
:
res
.
result
.
userName
};
}
});
var
url1
=
`
${
designUrl
}
/routingheader/GetCodeByType?code=JSWJGGD`
;
service
.
get
(
`
${
url1
}
`
).
then
(
response
=>
{
this
.
$refs
.
routingchangeorder
.
changeorder_code
=
response
.
result
;
});
this
.
$refs
.
routingchangeorder
.
modelChange
=
true
;
this
.
hid
=
row
.
id
;
this
.
title
=
"新增"
;
this
.
detail
=
()
=>
import
(
"./details/routinghcorder/add"
);
this
.
modal
=
true
;
},
Main
(
data
)
{
...
...
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