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
a43fe07b
Commit
a43fe07b
authored
Apr 29, 2020
by
renjintao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
technology
parent
0dedb03b
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
511 additions
and
197 deletions
+511
-197
details.vue
pages/technology/details.vue
+0
-1
api.js
pages/technology/details/api.js
+27
-20
add.vue
pages/technology/details/routingqccard/add.vue
+8
-8
api.js
pages/technology/details/routingqccard/api.js
+0
-3
detail.vue
pages/technology/details/routingqccard/detail.vue
+1
-1
edit.vue
pages/technology/details/routingqccard/edit.vue
+4
-2
index.vue
pages/technology/details/routingqccard/index.vue
+17
-8
search.vue
pages/technology/details/routingqccard/search.vue
+41
-3
add.vue
pages/technology/details/routingsupporting/add.vue
+34
-14
edit.vue
pages/technology/details/routingsupporting/edit.vue
+34
-6
index.vue
pages/technology/details/routingsupporting/index.vue
+310
-127
search.vue
pages/technology/details/routingsupporting/search.vue
+35
-4
No files found.
pages/technology/details.vue
View file @
a43fe07b
...
...
@@ -51,7 +51,6 @@
</Menu>
</div>
<div
class=
"bottom_box"
>
{{
headerId
}}
<nuxt-child
keep-alive
:headerid=
"headerId"
></nuxt-child>
</div>
</div>
...
...
pages/technology/details/api.js
View file @
a43fe07b
import
Api
from
'@/plugins/request'
export
default
{
index
:
`
${
technologyUrl
}
routingdetail/paged`
,
paged
(
params
){
return
Api
.
post
(
`
${
technologyUrl
}
routingdetail/paged`
,
params
);
},
get
(
params
){
return
Api
.
get
(
`
${
technologyUrl
}
routingdetail/get`
,
params
);
},
create
(
params
){
return
Api
.
post
(
`
${
technologyUrl
}
routingdetail/create`
,
params
);
},
update
(
params
){
return
Api
.
post
(
`
${
technologyUrl
}
routingdetail/update`
,
params
);
},
delete
(
id
)
{
return
Api
.
delete
(
`
${
technologyUrl
}
routingdetail/delete`
,{
params
:{
id
:
id
}});
},
deletes
(
params
)
{
return
Api
.
post
(
`
${
technologyUrl
}
routingdetail/batchdelete`
,
params
);
}
}
\ No newline at end of file
index
:
`
${
technologyUrl
}
routingdetail/paged`
,
paged
(
params
)
{
return
Api
.
post
(
`
${
technologyUrl
}
routingdetail/paged`
,
params
);
},
get
(
params
)
{
return
Api
.
get
(
`
${
technologyUrl
}
routingdetail/get`
,
params
);
},
create
(
params
)
{
return
Api
.
post
(
`
${
technologyUrl
}
routingdetail/create`
,
params
);
},
update
(
params
)
{
return
Api
.
post
(
`
${
technologyUrl
}
routingdetail/update`
,
params
);
},
delete
(
id
)
{
return
Api
.
delete
(
`
${
technologyUrl
}
routingdetail/delete`
,
{
params
:
{
id
:
id
}
});
},
deletes
(
params
)
{
return
Api
.
post
(
`
${
technologyUrl
}
routingdetail/batchdelete`
,
params
);
},
pagedDetails
(
params
)
{
//获取工序列表
return
Api
.
get
(
`
${
technologyUrl
}
routingdetail/getlistbyheaderid`
,
params
);
},
}
pages/technology/details/routingqccard/add.vue
View file @
a43fe07b
...
...
@@ -166,6 +166,7 @@
</
template
>
<
script
>
import
Api
from
"./api"
;
import
ApiDetail
from
"../api"
;
export
default
{
name
:
"Add"
,
data
()
{
...
...
@@ -174,7 +175,7 @@ export default {
entity
:
{
routingHeaderId
:
null
,
routingDetailId
:
null
,
routingStepId
:
null
,
routingStepId
:
0
,
checkContent
:
""
,
checkType
:
null
,
checkParams
:
""
,
...
...
@@ -209,15 +210,13 @@ export default {
},
props
:
{
v
:
Object
,
eid
:
Number
eid
:
Number
,
headid
:
Number
,
},
mounted
()
{
this
.
loadDetails
();
this
.
parms
.
eid
=
this
.
$u
.
guid
()
this
.
$refs
.
refFile
.
intFiles
()
if
(
this
.
eid
>
0
)
{
this
.
load
(
this
.
eid
);
}
},
methods
:
{
handleSubmit
()
{
...
...
@@ -238,6 +237,7 @@ export default {
this
.
entity
.
qualityTemplateName
=
JSON
.
stringify
(
names
).
replace
(
'['
,
''
).
replace
(
']'
,
''
).
replace
(
/
\"
/g
,
''
)
//附件本地库暂存文件名称
this
.
entity
.
qualityTemplate
=
JSON
.
stringify
(
url
).
replace
(
'['
,
''
).
replace
(
']'
,
''
).
replace
(
/
\"
/g
,
''
)
}
this
.
entity
.
routingHeaderId
=
this
.
headid
Api
.
create
(
this
.
entity
)
.
then
(
r
=>
{
...
...
@@ -271,9 +271,9 @@ export default {
loadDetails
()
{
//获取工序列表
let
parms
=
{
headerID
:
181
headerID
:
this
.
headid
};
Api
.
pagedDetails
(
parms
).
then
(
r
=>
{
Api
Detail
.
pagedDetails
(
parms
).
then
(
r
=>
{
let
tempDetails
=
r
.
result
;
let
tempD
=
[];
tempDetails
.
forEach
(
data
=>
{
...
...
@@ -310,7 +310,7 @@ export default {
},
eid
(
v
)
{
if
(
v
>
0
)
{
this
.
load
(
v
);
//
this.load(v);
}
}
}
...
...
pages/technology/details/routingqccard/api.js
View file @
a43fe07b
...
...
@@ -23,7 +23,4 @@ export default {
deletes
(
params
)
{
return
Api
.
post
(
`
${
technologyUrl
}
routingqccard/batchdelete`
,
params
);
},
pagedDetails
(
params
)
{
//获取工序列表
return
Api
.
get
(
`
${
technologyUrl
}
routingdetail/getlistbyheaderid`
,
params
);
},
}
pages/technology/details/routingqccard/detail.vue
View file @
a43fe07b
...
...
@@ -26,7 +26,7 @@
<Filed
:span=
"12"
:name=
"l('samplingBatch')"
>
{{
entity
.
samplingBatch
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('checkType')"
>
<state
code=
"QC.checktype"
v-modev=
"entity.checkType+''
"
></state>
<state
code=
"QC.checktype"
:value=
"entity.checkType+''"
type=
"text
"
></state>
</Filed>
<Filed
:span=
"12"
:name=
"l('routingStepId')"
v-if=
"false"
>
{{
entity
.
routingStepId
}}
</Filed>
...
...
pages/technology/details/routingqccard/edit.vue
View file @
a43fe07b
...
...
@@ -156,6 +156,7 @@
</
template
>
<
script
>
import
Api
from
"./api"
;
import
ApiDetail
from
"../api"
;
export
default
{
name
:
"Edit"
,
data
()
{
...
...
@@ -175,6 +176,7 @@ export default {
};
},
props
:
{
headid
:
Number
,
eid
:
Number
},
mounted
()
{
...
...
@@ -218,9 +220,9 @@ export default {
loadDetails
()
{
//获取工序列表
let
parms
=
{
headerID
:
181
headerID
:
this
.
headid
};
Api
.
pagedDetails
(
parms
).
then
(
r
=>
{
Api
Detail
.
pagedDetails
(
parms
).
then
(
r
=>
{
let
tempDetails
=
r
.
result
;
let
tempD
=
[];
tempDetails
.
forEach
(
data
=>
{
...
...
pages/technology/details/routingqccard/index.vue
View file @
a43fe07b
<
template
>
<div>
{{
info
}}
<DataGrid
:columns=
"columns"
ref=
"grid"
:action=
"action"
>
<DataGrid
:columns=
"columns"
ref=
"grid"
:conditions=
"easySearch"
:action=
"action"
>
<template
slot=
"easySearch"
>
<Form
ref=
"formInline"
:model=
"easySearch"
inline
>
<FormItem
prop=
"keys"
>
...
...
@@ -16,14 +15,14 @@
</Form>
</
template
>
<
template
slot=
"searchForm"
>
<Search
/>
<Search
:headid=
"hid"
/>
</
template
>
<
template
slot=
"buttons"
>
<Button
type=
"primary"
@
click=
"add"
>
新增
</Button>
</
template
>
</DataGrid>
<Modal
v-model=
"modal"
:title=
"title"
width=
"1200"
footer-hide
>
<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>
...
...
@@ -40,9 +39,7 @@ export default {
author
:
"henq"
,
description
:
"routing_qc_card 4/27/2020 10:31:00 AM"
},
props
:
{
info
:
{
type
:
String
}
},
props
:
[
"headerid"
],
data
()
{
return
{
action
:
Api
.
index
,
...
...
@@ -51,12 +48,14 @@ export default {
op
:
"checkParams,measurementUnit,qualityTemplate,remark,productionRequirement,standard,qualityTemplateName,samplingBatch"
,
value
:
null
}
},
routingHeaderId
:
{
op
:
"Equal"
,
value
:
-
1
}
},
modal
:
false
,
title
:
"新增"
,
detail
:
null
,
curId
:
0
,
hid
:
0
,
columns
:
[
{
key
:
"id"
,
title
:
this
.
l
(
"id"
),
hide
:
true
,
align
:
"left"
},
{
...
...
@@ -256,9 +255,18 @@ export default {
downUrl
:
fileUrlDown
,
fileUrlPath
:
""
};
},
created
()
{
if
(
this
.
headerid
!=-
1
){
this
.
easySearch
.
routingHeaderId
.
value
=
this
.
headerid
;
}
else
{
this
.
easySearch
.
routingHeaderId
.
value
=
this
.
$route
.
query
.
id
;
}
this
.
hid
=
Number
(
this
.
easySearch
.
routingHeaderId
.
value
)
},
mounted
()
{
console
.
log
(
this
);
this
.
search
()
},
async
fetch
({
store
,
params
})
{
await
store
.
dispatch
(
"loadDictionary"
);
// 加载数据字典
...
...
@@ -274,6 +282,7 @@ export default {
},
add
()
{
this
.
curId
=
0
;
this
.
title
=
"新增"
;
this
.
detail
=
()
=>
import
(
"./add"
);
this
.
modal
=
true
;
...
...
pages/technology/details/routingqccard/search.vue
View file @
a43fe07b
...
...
@@ -8,7 +8,13 @@
</Col>
<Col
:span=
"12"
v-if=
"condition.routingDetailId.show"
>
<FormItem
:label=
"l('routingDetailId')"
prop=
"routingDetailId"
>
<Input
v-model=
"condition.routingDetailId.value"
></Input>
<Select
v-model=
"condition.routingDetailId.value"
>
<Option
v-for=
"(item,index) in routingDetailList"
:value=
"item.value"
:key=
"index"
>
{{
item
.
label
}}
</Option>
</Select>
</FormItem>
</Col>
...
...
@@ -129,8 +135,12 @@
</
template
>
<
script
>
import
Api
from
"./api"
;
import
ApiDetail
from
"../api"
;
export
default
{
name
:
"Add"
,
props
:
{
headid
:
Number
,
},
data
()
{
return
{
condition
:
{
...
...
@@ -139,7 +149,7 @@ export default {
lastModificationTime
:
{
op
:
"Range"
,
value
:
null
,
show
:
true
},
lastModifierUserId
:
{
op
:
"Equal"
,
value
:
null
,
show
:
true
},
deletionTime
:
{
op
:
"Range"
,
value
:
null
,
show
:
false
},
routingHeaderId
:
{
op
:
"Equal"
,
value
:
null
,
show
:
false
},
routingHeaderId
:
{
op
:
"Equal"
,
value
:
this
.
headid
,
show
:
false
},
routingDetailId
:
{
op
:
"Equal"
,
value
:
null
,
show
:
true
},
routingStepId
:
{
op
:
"Equal"
,
value
:
null
,
show
:
false
},
checkType
:
{
op
:
"Equal"
,
value
:
null
,
show
:
true
},
...
...
@@ -159,8 +169,12 @@ export default {
inspectionTime
:
{
op
:
"Equal"
,
value
:
null
,
show
:
true
},
sampling
:
{
op
:
"Equal"
,
value
:
null
,
show
:
true
},
samplingBatch
:
{
op
:
"Equal"
,
value
:
null
,
show
:
true
}
}
},
routingDetailList
:
[],
};
},
mounted
()
{
this
.
loadDetails
();
},
methods
:
{
handleClose
()
{
...
...
@@ -169,6 +183,30 @@ export default {
l
(
key
)
{
key
=
"routing_qc_card"
+
"."
+
key
;
return
this
.
$t
(
key
);
},
loadDetails
()
{
//获取工序列表
let
parms
=
{
headerID
:
this
.
headid
};
ApiDetail
.
pagedDetails
(
parms
).
then
(
r
=>
{
let
tempDetails
=
r
.
result
;
let
tempD
=
[];
tempDetails
.
forEach
(
data
=>
{
let
tempObj
=
{};
tempObj
.
value
=
data
.
id
;
tempObj
.
label
=
data
.
name
;
tempD
.
push
(
tempObj
);
});
this
.
routingDetailList
=
tempD
;
});
},
},
watch
:
{
headid
(
v
)
{
if
(
v
>
0
)
{
// this.load(v);
}
}
}
};
...
...
pages/technology/details/routingsupporting/add.vue
View file @
a43fe07b
...
...
@@ -17,15 +17,22 @@
<Input
v-model=
"entity.extend"
></Input>
</FormItem>
</Col>
-->
<Col
:span=
"8"
>
<Col
:span=
"8"
>
<FormItem
:label=
"l('routingHeaderId')"
prop=
"routingHeaderId"
>
<InputNumber
v-model=
"entity.routingHeaderId"
></InputNumber>
</FormItem>
</Col>
-->
<Col
:span=
"8"
>
<FormItem
:label=
"l('routingDetailId')"
prop=
"routingDetailId"
>
<InputNumber
v-model=
"entity.routingDetailId"
></InputNumber>
<Select
v-model=
"entity.routingDetailId"
>
<Option
v-for=
"(item,index) in routingDetailList"
:value=
"item.value"
:key=
"index"
>
{{
item
.
label
}}
</Option>
</Select>
</FormItem>
</Col>
<Col
:span=
"8"
>
...
...
@@ -93,7 +100,7 @@
</Col>
<Col
:span=
"24"
>
<FormItem
:label=
"l('remark')"
prop=
"remark"
>
<Input
v-model=
"entity.remark"
type=
"textarea"
:rows=
"2"
></Input>
<Input
v-model=
"entity.remark"
type=
"textarea"
:rows=
"2"
></Input>
</FormItem>
</Col>
</Row>
...
...
@@ -105,6 +112,7 @@
</
template
>
<
script
>
import
Api
from
"./api"
;
import
ApiDetail
from
"../api"
;
export
default
{
name
:
"Add"
,
data
()
{
...
...
@@ -113,7 +121,7 @@ export default {
entity
:
{
routingHeaderId
:
null
,
routingDetailId
:
null
,
routingStepId
:
null
,
routingStepId
:
0
,
quantity
:
null
,
materialId
:
null
,
materialType
:
""
,
...
...
@@ -132,23 +140,24 @@ export default {
},
rules
:
{
name
:
[{
required
:
true
,
message
:
"必填"
,
trigger
:
"blur"
}]
}
},
routingDetailList
:
[],
};
},
props
:
{
v
:
Object
,
eid
:
Number
eid
:
Number
,
headid
:
Number
},
mounted
()
{
if
(
this
.
eid
>
0
)
{
this
.
load
(
this
.
eid
);
}
this
.
loadDetails
();
},
methods
:
{
handleSubmit
()
{
this
.
$refs
.
form
.
validate
(
v
=>
{
if
(
v
)
{
this
.
disabled
=
true
;
this
.
entity
.
routingHeaderId
=
this
.
headid
;
Api
.
create
(
this
.
entity
)
.
then
(
r
=>
{
this
.
disabled
=
false
;
...
...
@@ -170,10 +179,21 @@ export default {
handleClose
()
{
this
.
$emit
(
"on-close"
);
},
load
(
v
)
{
Api
.
get
({
id
:
v
}).
then
(
r
=>
{
this
.
entity
=
r
.
result
;
this
.
entity
.
id
=
0
;
loadDetails
()
{
//获取工序列表
let
parms
=
{
headerID
:
this
.
headid
};
ApiDetail
.
pagedDetails
(
parms
).
then
(
r
=>
{
let
tempDetails
=
r
.
result
;
let
tempD
=
[];
tempDetails
.
forEach
(
data
=>
{
let
tempObj
=
{};
tempObj
.
value
=
data
.
id
;
tempObj
.
label
=
data
.
name
;
tempD
.
push
(
tempObj
);
});
this
.
routingDetailList
=
tempD
;
});
},
l
(
key
)
{
...
...
pages/technology/details/routingsupporting/edit.vue
View file @
a43fe07b
...
...
@@ -17,15 +17,22 @@
<Input
v-model=
"entity.extend"
></Input>
</FormItem>
</Col>
-->
<Col
:span=
"8"
>
<Col
:span=
"8"
>
<FormItem
:label=
"l('routingHeaderId')"
prop=
"routingHeaderId"
>
<InputNumber
v-model=
"entity.routingHeaderId"
></InputNumber>
</FormItem>
</Col>
-->
<Col
:span=
"8"
>
<FormItem
:label=
"l('routingDetailId')"
prop=
"routingDetailId"
>
<InputNumber
v-model=
"entity.routingDetailId"
></InputNumber>
<FormItem
:label=
"l('routingDetailName')"
prop=
"routingDetailId"
>
<Select
v-model=
"entity.routingDetailId"
>
<Option
v-for=
"(item,index) in routingDetailList"
:value=
"item.value"
:key=
"index"
>
{{
item
.
label
}}
</Option>
</Select>
</FormItem>
</Col>
<Col
:span=
"8"
>
...
...
@@ -93,7 +100,7 @@
</Col>
<Col
:span=
"24"
>
<FormItem
:label=
"l('remark')"
prop=
"remark"
>
<Input
v-model=
"entity.remark"
type=
"textarea"
:rows=
"2"
></Input>
<Input
v-model=
"entity.remark"
type=
"textarea"
:rows=
"2"
></Input>
</FormItem>
</Col>
</Row>
...
...
@@ -105,6 +112,7 @@
</
template
>
<
script
>
import
Api
from
"./api"
;
import
ApiDetail
from
"../api"
;
export
default
{
name
:
"Edit"
,
data
()
{
...
...
@@ -113,13 +121,16 @@ export default {
entity
:
{},
rules
:
{
name
:
[{
required
:
true
,
message
:
"必填"
,
trigger
:
"blur"
}]
}
},
routingDetailList
:
[]
};
},
props
:
{
headid
:
Number
,
eid
:
Number
},
mounted
()
{
this
.
loadDetails
();
if
(
this
.
eid
>
0
)
{
this
.
load
(
this
.
eid
);
}
...
...
@@ -152,6 +163,23 @@ export default {
}
});
},
loadDetails
()
{
//获取工序列表
let
parms
=
{
headerID
:
this
.
headid
};
ApiDetail
.
pagedDetails
(
parms
).
then
(
r
=>
{
let
tempDetails
=
r
.
result
;
let
tempD
=
[];
tempDetails
.
forEach
(
data
=>
{
let
tempObj
=
{};
tempObj
.
value
=
data
.
id
;
tempObj
.
label
=
data
.
name
;
tempD
.
push
(
tempObj
);
});
this
.
routingDetailList
=
tempD
;
});
},
handleClose
()
{
this
.
$emit
(
"on-close"
);
},
...
...
pages/technology/details/routingsupporting/index.vue
View file @
a43fe07b
<
template
>
<div>
<DataGrid
:columns=
"columns"
ref=
"grid"
:action=
"action"
><template
slot=
"easySearch"
><Form
ref=
"formInline"
:model=
"easySearch"
inline
><FormItem
prop=
"keys"
><Input
placeholder=
"请输入关键字物料类型/物料编号/物料名称/牌号/规格/型号规格/材质/采购标准/质量等级/备注/产品图号"
v-model=
"easySearch.keys.value"
/>
</FormItem>
<FormItem><Button
type=
"primary"
@
click=
"search"
>
查询
</Button></FormItem>
</Form></
template
>
<
template
slot=
"searchForm"
>
<Search
/>
</
template
>
<
template
slot=
"buttons"
>
<Button
type=
"primary"
@
click=
"add"
>
新增
</Button>
</
template
>
</DataGrid>
<Modal
v-model=
"modal"
:title=
"title"
width=
"1200"
footer-hide
>
<component
:is=
"detail"
:eid=
"curId"
@
on-close=
"cancel"
@
on-ok=
"ok"
/>
</Modal>
</div>
<div>
<DataGrid
:columns=
"columns"
ref=
"grid"
:conditions=
"easySearch"
:action=
"action"
>
<template
slot=
"easySearch"
>
<Form
ref=
"formInline"
:model=
"easySearch"
inline
>
<FormItem
prop=
"keys"
>
<Input
placeholder=
"请输入关键字物料类型/物料编号/物料名称/牌号/规格/型号规格/材质/采购标准/质量等级/备注/产品图号"
v-model=
"easySearch.keys.value"
/>
</FormItem>
<FormItem>
<Button
type=
"primary"
@
click=
"search"
>
查询
</Button>
</FormItem>
</Form>
</
template
>
<
template
slot=
"searchForm"
>
<Search
:headid=
"hid"
/>
</
template
>
<
template
slot=
"buttons"
>
<Button
type=
"primary"
@
click=
"add"
>
新增
</Button>
</
template
>
</DataGrid>
<Modal
v-model=
"modal"
:title=
"title"
width=
"1200"
footer-hide
>
<component
:is=
"detail"
:eid=
"curId"
:headid=
"hid"
@
on-close=
"cancel"
@
on-ok=
"ok"
/>
</Modal>
</div>
</template>
<
script
>
import
Api
from
'./api'
import
Search
from
'./search'
import
Api
from
"./api"
;
import
Search
from
"./search"
;
export
default
{
name
:
'list'
,
components
:{
name
:
"list"
,
components
:
{
Search
},
head
:
{
title
:
"工艺配套表"
,
author
:
"henq"
,
description
:
"routingsupporting 4/27/2020 10:35:33 AM"
,
},
},
head
:
{
title
:
"工艺配套表"
,
author
:
"henq"
,
description
:
"routingsupporting 4/27/2020 10:35:33 AM"
},
props
:
[
"headerid"
],
data
()
{
return
{
action
:
Api
.
index
,
easySearch
:
{
keys
:{
op
:
"materialType,materialNumber,nameMaterial,brand,specifications,xhgg,texture,procurementStandards,qualityGrade,remark,drawNum"
,
value
:
null
}
},
modal
:
false
,
title
:
"新增"
,
detail
:
null
,
curId
:
0
,
return
{
action
:
Api
.
index
,
easySearch
:
{
keys
:
{
op
:
"materialType,materialNumber,nameMaterial,brand,specifications,xhgg,texture,procurementStandards,qualityGrade,remark,drawNum"
,
value
:
null
},
routingHeaderId
:
{
op
:
"Equal"
,
value
:
-
1
}
},
modal
:
false
,
title
:
"新增"
,
detail
:
null
,
curId
:
0
,
hid
:
0
,
columns
:
[
{
key
:
"id"
,
title
:
this
.
l
(
"id"
)
,
hide
:
true
,
align
:
"left"
},
{
key
:
"creationTime"
,
title
:
this
.
l
(
"creationTime"
)
,
hide
:
true
,
align
:
"left"
},
{
key
:
"creatorUserId"
,
title
:
this
.
l
(
"creatorUserId"
)
,
hide
:
true
,
align
:
"left"
},
{
key
:
"lastModificationTime"
,
title
:
this
.
l
(
"lastModificationTime"
)
,
hide
:
true
,
align
:
"left"
},
{
key
:
"lastModifierUserId"
,
title
:
this
.
l
(
"lastModifierUserId"
)
,
hide
:
true
,
align
:
"left"
},
{
key
:
"isDeleted"
,
title
:
this
.
l
(
"isDeleted"
)
,
hide
:
true
,
align
:
"left"
},
{
key
:
"deletionTime"
,
title
:
this
.
l
(
"deletionTime"
)
,
hide
:
true
,
align
:
"left"
},
{
key
:
"deleterUserId"
,
title
:
this
.
l
(
"deleterUserId"
)
,
hide
:
true
,
align
:
"left"
},
{
key
:
"routingHeaderId"
,
title
:
this
.
l
(
"routingHeaderId"
)
,
align
:
"left"
,
high
:
true
},
{
key
:
"routingDetailId"
,
title
:
this
.
l
(
"routingDetailId"
)
,
align
:
"left"
,
high
:
true
},
{
key
:
"routingStepId"
,
title
:
this
.
l
(
"routingStepId"
)
,
align
:
"left"
,
high
:
true
},
{
key
:
"quantity"
,
title
:
this
.
l
(
"quantity"
)
,
align
:
"left"
,
high
:
true
},
{
key
:
"materialId"
,
title
:
this
.
l
(
"materialId"
)
,
align
:
"left"
,
high
:
true
},
{
key
:
"materialType"
,
title
:
this
.
l
(
"materialType"
)
,
align
:
"left"
,
easy
:
true
,
high
:
true
,
code
:
'mes_xingchi_resource.material.materialReType'
},
{
key
:
"materialNumber"
,
title
:
this
.
l
(
"materialNumber"
)
,
align
:
"left"
,
easy
:
true
,
high
:
true
},
{
key
:
"nameMaterial"
,
title
:
this
.
l
(
"nameMaterial"
)
,
align
:
"left"
,
easy
:
true
,
high
:
true
},
{
key
:
"brand"
,
title
:
this
.
l
(
"brand"
)
,
align
:
"left"
,
easy
:
true
,
high
:
true
},
{
key
:
"specifications"
,
title
:
this
.
l
(
"specifications"
)
,
align
:
"left"
,
easy
:
true
,
high
:
true
},
{
key
:
"xhgg"
,
title
:
this
.
l
(
"xhgg"
)
,
align
:
"left"
,
easy
:
true
,
high
:
true
},
{
key
:
"texture"
,
title
:
this
.
l
(
"texture"
)
,
align
:
"left"
,
easy
:
true
,
high
:
true
},
{
key
:
"procurementStandards"
,
title
:
this
.
l
(
"procurementStandards"
)
,
align
:
"left"
,
easy
:
true
,
high
:
true
},
{
key
:
"qualityGrade"
,
title
:
this
.
l
(
"qualityGrade"
)
,
align
:
"left"
,
easy
:
true
,
high
:
true
},
{
key
:
"state"
,
title
:
this
.
l
(
"state"
)
,
align
:
"left"
,
high
:
true
,
code
:
'Process.Status'
},
{
key
:
"remark"
,
title
:
this
.
l
(
"remark"
)
,
align
:
"left"
,
easy
:
true
,
high
:
true
},
{
key
:
"drawNum"
,
title
:
this
.
l
(
"drawNum"
)
,
align
:
"left"
,
easy
:
true
,
high
:
true
},
{
title
:
'操作'
,
key
:
'action'
,
width
:
140
,
align
:
'center'
,
render
:
(
h
,
params
)
=>
{
return
h
(
'div'
,
{
class
:
"action"
},
[
h
(
'op'
,
{
attrs
:
{
oprate
:
'detail'
},
on
:
{
click
:
()
=>
this
.
view
(
params
.
row
.
id
)
}
},
'查看'
),
//h('op', { attrs: { oprate: 'copy' }, on: { click: () => this.copy(params.row.id) } }, '克隆'),
h
(
'op'
,
{
attrs
:
{
oprate
:
'edit'
},
on
:
{
click
:
()
=>
this
.
edit
(
params
.
row
.
id
)
}
},
'编辑'
),
h
(
'op'
,
{
attrs
:
{
oprate
:
'delete'
},
on
:
{
click
:
()
=>
this
.
remove
(
params
.
row
.
id
)
}
},
'删除'
)
])
}
},
{
key
:
"id"
,
title
:
this
.
l
(
"id"
),
hide
:
true
,
align
:
"left"
},
{
key
:
"creationTime"
,
title
:
this
.
l
(
"creationTime"
),
hide
:
true
,
align
:
"left"
},
{
key
:
"creatorUserId"
,
title
:
this
.
l
(
"creatorUserId"
),
hide
:
true
,
align
:
"left"
},
{
key
:
"lastModificationTime"
,
title
:
this
.
l
(
"lastModificationTime"
),
hide
:
true
,
align
:
"left"
},
{
key
:
"lastModifierUserId"
,
title
:
this
.
l
(
"lastModifierUserId"
),
hide
:
true
,
align
:
"left"
},
{
key
:
"isDeleted"
,
title
:
this
.
l
(
"isDeleted"
),
hide
:
true
,
align
:
"left"
},
{
key
:
"deletionTime"
,
title
:
this
.
l
(
"deletionTime"
),
hide
:
true
,
align
:
"left"
},
{
key
:
"deleterUserId"
,
title
:
this
.
l
(
"deleterUserId"
),
hide
:
true
,
align
:
"left"
},
{
key
:
"routingHeaderId"
,
title
:
this
.
l
(
"routingHeaderId"
),
align
:
"left"
,
high
:
true
},
{
key
:
"routingDetailId"
,
title
:
this
.
l
(
"routingDetailId"
),
align
:
"left"
,
high
:
true
},
{
key
:
"routingStepId"
,
title
:
this
.
l
(
"routingStepId"
),
align
:
"left"
,
high
:
true
},
{
key
:
"quantity"
,
title
:
this
.
l
(
"quantity"
),
align
:
"left"
,
high
:
true
},
{
key
:
"materialId"
,
title
:
this
.
l
(
"materialId"
),
align
:
"left"
,
high
:
true
},
{
key
:
"materialType"
,
title
:
this
.
l
(
"materialType"
),
align
:
"left"
,
easy
:
true
,
high
:
true
,
code
:
"mes_xingchi_resource.material.materialReType"
},
{
key
:
"materialNumber"
,
title
:
this
.
l
(
"materialNumber"
),
align
:
"left"
,
easy
:
true
,
high
:
true
},
{
key
:
"nameMaterial"
,
title
:
this
.
l
(
"nameMaterial"
),
align
:
"left"
,
easy
:
true
,
high
:
true
},
{
key
:
"brand"
,
title
:
this
.
l
(
"brand"
),
align
:
"left"
,
easy
:
true
,
high
:
true
},
{
key
:
"specifications"
,
title
:
this
.
l
(
"specifications"
),
align
:
"left"
,
easy
:
true
,
high
:
true
},
{
key
:
"xhgg"
,
title
:
this
.
l
(
"xhgg"
),
align
:
"left"
,
easy
:
true
,
high
:
true
},
{
key
:
"texture"
,
title
:
this
.
l
(
"texture"
),
align
:
"left"
,
easy
:
true
,
high
:
true
},
{
key
:
"procurementStandards"
,
title
:
this
.
l
(
"procurementStandards"
),
align
:
"left"
,
easy
:
true
,
high
:
true
},
{
key
:
"qualityGrade"
,
title
:
this
.
l
(
"qualityGrade"
),
align
:
"left"
,
easy
:
true
,
high
:
true
},
{
key
:
"state"
,
title
:
this
.
l
(
"state"
),
align
:
"left"
,
high
:
true
,
code
:
"Process.Status"
},
{
key
:
"remark"
,
title
:
this
.
l
(
"remark"
),
align
:
"left"
,
easy
:
true
,
high
:
true
},
{
key
:
"drawNum"
,
title
:
this
.
l
(
"drawNum"
),
align
:
"left"
,
easy
:
true
,
high
:
true
},
{
title
:
"操作"
,
key
:
"action"
,
width
:
140
,
align
:
"center"
,
render
:
(
h
,
params
)
=>
{
return
h
(
"div"
,
{
class
:
"action"
},
[
h
(
"op"
,
{
attrs
:
{
oprate
:
"detail"
},
on
:
{
click
:
()
=>
this
.
view
(
params
.
row
.
id
)
}
},
"查看"
),
//h('op', { attrs: { oprate: 'copy' }, on: { click: () => this.copy(params.row.id) } }, '克隆'),
h
(
"op"
,
{
attrs
:
{
oprate
:
"edit"
},
on
:
{
click
:
()
=>
this
.
edit
(
params
.
row
.
id
)
}
},
"编辑"
),
h
(
"op"
,
{
attrs
:
{
oprate
:
"delete"
},
on
:
{
click
:
()
=>
this
.
remove
(
params
.
row
.
id
)
}
},
"删除"
)
]);
}
}
]
};
},
created
()
{
if
(
this
.
headerid
!=
-
1
)
{
this
.
easySearch
.
routingHeaderId
.
value
=
this
.
headerid
;
}
else
{
this
.
easySearch
.
routingHeaderId
.
value
=
this
.
$route
.
query
.
id
;
}
this
.
hid
=
Number
(
this
.
easySearch
.
routingHeaderId
.
value
)
},
mounted
(){
mounted
()
{
console
.
log
(
this
);
this
.
search
();
},
async
fetch
({
store
,
params
})
{
await
store
.
dispatch
(
'loadDictionary'
)
// 加载数据字典
},
methods
:{
ok
()
{
this
.
$refs
.
grid
.
load
()
this
.
modal
=
false
this
.
curId
=
0
;
},
search
()
{
this
.
$refs
.
grid
.
reload
(
this
.
easySearch
)
},
add
()
{
this
.
curId
=
0
;
this
.
title
=
"新增"
;
this
.
detail
=
()
=>
import
(
'./add'
)
this
.
modal
=
true
;
},
copy
(
id
)
{
this
.
curId
=
id
;
this
.
title
=
"克隆"
;
this
.
detail
=
()
=>
import
(
'./add'
)
this
.
modal
=
true
;
},
view
(
id
)
{
this
.
curId
=
id
;
this
.
title
=
"详情"
;
this
.
detail
=
()
=>
import
(
'./detail'
)
this
.
modal
=
true
;
},
edit
(
id
)
{
this
.
curId
=
id
;
this
.
title
=
"编辑"
;
this
.
detail
=
()
=>
import
(
'./edit'
)
this
.
modal
=
true
;
},
remove
(
id
)
{
Api
.
delete
(
id
).
then
((
r
)
=>
{
if
(
r
.
success
)
{
this
.
$refs
.
grid
.
load
();
this
.
$Message
.
success
(
'删除成功'
)
}
})
},
cancel
()
{
this
.
curId
=
0
;
this
.
modal
=
false
},
l
(
key
)
{
let
vkey
=
"routingsupporting"
+
"."
+
key
;
return
this
.
$t
(
vkey
)
||
key
}
async
fetch
({
store
,
params
})
{
await
store
.
dispatch
(
"loadDictionary"
);
// 加载数据字典
},
methods
:
{
ok
()
{
this
.
$refs
.
grid
.
load
();
this
.
modal
=
false
;
this
.
curId
=
0
;
},
search
()
{
this
.
$refs
.
grid
.
reload
(
this
.
easySearch
);
},
add
()
{
this
.
curId
=
0
;
this
.
hid
=
Number
(
this
.
headerid
);
this
.
title
=
"新增"
;
this
.
detail
=
()
=>
import
(
"./add"
);
this
.
modal
=
true
;
},
copy
(
id
)
{
this
.
curId
=
id
;
this
.
title
=
"克隆"
;
this
.
detail
=
()
=>
import
(
"./add"
);
this
.
modal
=
true
;
},
view
(
id
)
{
this
.
curId
=
id
;
this
.
title
=
"详情"
;
this
.
detail
=
()
=>
import
(
"./detail"
);
this
.
modal
=
true
;
},
edit
(
id
)
{
this
.
curId
=
id
;
this
.
hid
=
Number
(
this
.
headerid
);
this
.
title
=
"编辑"
;
this
.
detail
=
()
=>
import
(
"./edit"
);
this
.
modal
=
true
;
},
remove
(
id
)
{
Api
.
delete
(
id
).
then
(
r
=>
{
if
(
r
.
success
)
{
this
.
$refs
.
grid
.
load
();
this
.
$Message
.
success
(
"删除成功"
);
}
});
},
cancel
()
{
this
.
curId
=
0
;
this
.
modal
=
false
;
},
l
(
key
)
{
let
vkey
=
"routingsupporting"
+
"."
+
key
;
return
this
.
$t
(
vkey
)
||
key
;
}
}
}
}
;
</
script
>
<
style
lang=
"less"
>
</
style
>
\ No newline at end of file
pages/technology/details/routingsupporting/search.vue
View file @
a43fe07b
...
...
@@ -8,7 +8,13 @@
</Col>
<Col
:span=
"12"
v-if=
"condition.routingDetailId.show"
>
<FormItem
:label=
"l('routingDetailId')"
prop=
"routingDetailId"
>
<Input
v-model=
"condition.routingDetailId.value"
></Input>
<Select
v-model=
"condition.routingDetailId.value"
>
<Option
v-for=
"(item,index) in routingDetailList"
:value=
"item.value"
:key=
"index"
>
{{
item
.
label
}}
</Option>
</Select>
</FormItem>
</Col>
<Col
:span=
"12"
v-if=
"condition.routingStepId.show"
>
...
...
@@ -94,12 +100,16 @@
</
template
>
<
script
>
import
Api
from
"./api"
;
import
ApiDetail
from
"../api"
;
export
default
{
name
:
"Add"
,
props
:
{
headid
:
Number
,
},
data
()
{
return
{
condition
:
{
routingHeaderId
:
{
op
:
"Equal"
,
value
:
null
,
show
:
tru
e
},
routingHeaderId
:
{
op
:
"Equal"
,
value
:
this
.
headid
,
show
:
fals
e
},
routingDetailId
:
{
op
:
"Equal"
,
value
:
null
,
show
:
true
},
routingStepId
:
{
op
:
"Equal"
,
value
:
null
,
show
:
false
},
quantity
:
{
op
:
"Equal"
,
value
:
null
,
show
:
true
},
...
...
@@ -116,8 +126,12 @@ export default {
state
:
{
op
:
"Equal"
,
value
:
null
,
show
:
true
},
remark
:
{
op
:
"Equal"
,
value
:
null
,
show
:
false
},
drawNum
:
{
op
:
"Equal"
,
value
:
null
,
show
:
true
}
}
},
routingDetailList
:
[],
};
},
mounted
()
{
this
.
loadDetails
();
},
methods
:
{
handleClose
()
{
...
...
@@ -126,7 +140,24 @@ export default {
l
(
key
)
{
key
=
"routingsupporting"
+
"."
+
key
;
return
this
.
$t
(
key
);
}
},
loadDetails
()
{
//获取工序列表
let
parms
=
{
headerID
:
this
.
headid
};
ApiDetail
.
pagedDetails
(
parms
).
then
(
r
=>
{
let
tempDetails
=
r
.
result
;
let
tempD
=
[];
tempDetails
.
forEach
(
data
=>
{
let
tempObj
=
{};
tempObj
.
value
=
data
.
id
;
tempObj
.
label
=
data
.
name
;
tempD
.
push
(
tempObj
);
});
this
.
routingDetailList
=
tempD
;
});
},
}
};
</
script
>
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