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
9fd98ed7
Commit
9fd98ed7
authored
Jun 12, 2020
by
周远喜
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'product' of
http://git.mes123.com/zhouyx/mes-ui
into product
parents
56c4e473
891b434b
Hide whitespace changes
Inline
Side-by-side
Showing
25 changed files
with
774 additions
and
356 deletions
+774
-356
zh-CN.js
i18n/locale/zh-CN.js
+1
-0
add.vue
pages/materiel/classification/add.vue
+4
-1
api.js
pages/materiel/classification/api.js
+4
-0
edit.vue
pages/materiel/classification/edit.vue
+2
-0
index.vue
pages/materiel/classification/index.vue
+47
-37
masterData.vue
pages/materiel/classification/masterData.vue
+73
-29
sonAdd.vue
pages/materiel/classification/sonAdd.vue
+2
-1
add.vue
pages/materiel/codeRule/add.vue
+9
-2
detail.vue
pages/materiel/codeRule/detail.vue
+1
-0
edit.vue
pages/materiel/codeRule/edit.vue
+7
-1
index.vue
pages/materiel/codeRule/index.vue
+1
-0
add.vue
pages/materiel/masterData/add.vue
+1
-0
api.js
pages/materiel/masterData/api.js
+4
-1
details.vue
pages/materiel/masterData/details.vue
+77
-17
edit.vue
pages/materiel/masterData/edit.vue
+13
-12
index.vue
pages/materiel/masterData/index.vue
+42
-20
masterData.vue
pages/materiel/masterData/masterData.vue
+66
-40
api.js
pages/produce/execute/api.js
+17
-1
index.vue
pages/produce/execute/judgment/index.vue
+67
-37
orderInfos.vue
pages/produce/execute/judgment/orderInfos.vue
+12
-3
orderSendReview.vue
pages/produce/execute/judgment/orderSendReview.vue
+20
-3
add.vue
pages/produce/execute/taskTime/add.vue
+31
-14
index.vue
pages/produce/execute/taskTime/index.vue
+171
-131
orderlist.vue
pages/produce/orderlist.vue
+17
-6
search.vue
pages/produce/search.vue
+85
-0
No files found.
i18n/locale/zh-CN.js
View file @
9fd98ed7
...
@@ -1489,6 +1489,7 @@ export default {
...
@@ -1489,6 +1489,7 @@ export default {
description
:
'描述'
,
description
:
'描述'
,
levelNum
:
'编码分类层数'
,
levelNum
:
'编码分类层数'
,
codeLength
:
'编码分类位数'
,
codeLength
:
'编码分类位数'
,
materialCodeLength
:
'物料编码位数'
},
},
//转续列表
//转续列表
order_execute_handon
:{
order_execute_handon
:{
...
...
pages/materiel/classification/add.vue
View file @
9fd98ed7
...
@@ -55,6 +55,8 @@
...
@@ -55,6 +55,8 @@
></state>
></state>
<Dictionary
<Dictionary
v-else
v-else
@
on-change=
"setRow(row,index)"
v-model=
"row.dataType"
code=
"materail.category.dataType"
code=
"materail.category.dataType"
type=
"select"
type=
"select"
:value=
"row.dataType"
:value=
"row.dataType"
...
@@ -100,7 +102,8 @@ export default {
...
@@ -100,7 +102,8 @@ export default {
arr
:
[],
arr
:
[],
entity
:
{
entity
:
{
upId
:
0
,
upId
:
0
,
code
:
0
code
:
0
,
status
:
0
,
},
},
disabled
:
false
,
disabled
:
false
,
columns
:
[
columns
:
[
...
...
pages/materiel/classification/api.js
View file @
9fd98ed7
import
Api
from
'@/plugins/request'
import
Api
from
'@/plugins/request'
export
default
{
export
default
{
index
:
`
${
systemUrl
}
/category/paged`
,
paged
(
params
){
return
Api
.
post
(
`
${
systemUrl
}
/category/paged`
,
params
);
},
listTable
(
params
){
listTable
(
params
){
return
Api
.
post
(
`
${
systemUrl
}
/custompropertydefinition/list`
,
params
);
return
Api
.
post
(
`
${
systemUrl
}
/custompropertydefinition/list`
,
params
);
},
},
...
...
pages/materiel/classification/edit.vue
View file @
9fd98ed7
...
@@ -51,6 +51,8 @@
...
@@ -51,6 +51,8 @@
></state>
></state>
<Dictionary
<Dictionary
v-else
v-else
@
on-change=
"setRow(row,index)"
v-model=
"row.dataType"
code=
"materail.category.dataType"
code=
"materail.category.dataType"
type=
"select"
type=
"select"
:value=
"row.dataType"
:value=
"row.dataType"
...
...
pages/materiel/classification/index.vue
View file @
9fd98ed7
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
<Sider
width=
"300"
v-if=
"showMenu"
>
<Sider
width=
"300"
v-if=
"showMenu"
>
<div
class=
"p-list"
>
<div
class=
"p-list"
>
<h3>
<h3>
零部件库
<Dictionary
code=
"material.code.type"
v-model=
"type"
style=
"width:130px;float:left;"
></Dictionary>
<div
class=
"fr mr10 mt10"
>
<div
class=
"fr mr10 mt10"
>
<ButtonGroup
class=
"fr"
size=
"small"
>
<ButtonGroup
class=
"fr"
size=
"small"
>
<Button
icon=
"md-add"
title=
"新增顶级"
@
click=
"addNew"
></Button>
<Button
icon=
"md-add"
title=
"新增顶级"
@
click=
"addNew"
></Button>
...
@@ -53,7 +53,7 @@
...
@@ -53,7 +53,7 @@
</a>
</a>
</div>
</div>
<Content
:class=
"!showMenu?'con_bord':''"
>
<Content
:class=
"!showMenu?'con_bord':''"
>
<MasterData
ref=
"dataTable"
@
on-edit=
"editRow"
/>
<MasterData
ref=
"dataTable"
@
on-edit=
"editRow"
:root=
"root"
@
on-ok=
"ok"
/>
</Content>
</Content>
</Layout>
</Layout>
<Modal
v-model=
"modal"
:title=
"title"
width=
"1000"
footer-hide
:mask-closable=
"false"
>
<Modal
v-model=
"modal"
:title=
"title"
width=
"1000"
footer-hide
:mask-closable=
"false"
>
...
@@ -79,6 +79,10 @@ export default {
...
@@ -79,6 +79,10 @@ export default {
name
:
"classification"
,
name
:
"classification"
,
data
()
{
data
()
{
return
{
return
{
root
:
{
id
:
0
,
ids
:
[]
},
keys
:
""
,
keys
:
""
,
expand
:
false
,
expand
:
false
,
list
:
[],
list
:
[],
...
@@ -106,13 +110,13 @@ export default {
...
@@ -106,13 +110,13 @@ export default {
this
.
loadTree
();
this
.
loadTree
();
this
.
modal
=
false
;
this
.
modal
=
false
;
this
.
curId
=
0
;
this
.
curId
=
0
;
if
(
row
)
{
//
if (row) {
this
.
dataList
.
map
((
e
,
index
)
=>
{
//
this.dataList.map((e, index) => {
if
(
e
.
id
==
row
.
id
)
{
//
if (e.id == row.id) {
this
.
$set
(
this
.
$refs
.
dataTable
.
dataColumns
,
index
,
row
);
//
this.$set(this.$refs.dataTable.dataColumns, index, row);
}
//
}
});
//
});
}
//
}
},
},
addNew
()
{
addNew
()
{
this
.
curId
=
0
;
this
.
curId
=
0
;
...
@@ -186,34 +190,39 @@ export default {
...
@@ -186,34 +190,39 @@ export default {
}
}
}
}
},
},
data
.
title
data
.
title
+
"("
+
(
data
.
totalMaterialCount
==
undefined
?
"0"
:
data
.
totalMaterialCount
)
+
")"
);
);
},
},
handleSelect
(
data
)
{
handleSelect
(
data
)
{
let
tableData
=
[];
//
let tableData = [];
let
obj
=
{};
//
let obj = {};
let
children
=
0
;
//
let children = 0;
if
(
data
.
upId
==
0
&&
data
.
children
.
length
>
0
)
{
//
if (data.upId == 0 && data.children.length > 0) {
data
.
children
.
forEach
(
e
=>
{
//
data.children.forEach(e => {
if
(
e
.
children
.
length
>
0
)
{
//
if (e.children.length > 0) {
children
=
1
;
//
children = 1;
}
else
{
//
} else {
children
=
0
;
//
children = 0;
}
//
}
obj
=
{
//
obj = {
id
:
e
.
id
,
//
id: e.id,
name
:
e
.
name
,
//
name: e.name,
code
:
e
.
code
,
//
code: e.code,
status
:
e
.
status
,
//
status: e.status,
children
:
children
,
//
children: children,
upId
:
e
.
upId
,
//
upId: e.upId,
description
:
e
.
description
//
description: e.description
};
//
};
tableData
.
push
(
obj
);
//
tableData.push(obj);
});
//
});
this
.
dataList
=
tableData
;
//
this.dataList = tableData;
this
.
$refs
.
dataTable
.
dataColumns
=
tableData
;
//
this.$refs.dataTable.dataColumns = tableData;
}
//
}
},
},
loadTree
()
{
loadTree
()
{
let
conditions
=
[];
let
conditions
=
[];
...
@@ -238,19 +247,20 @@ export default {
...
@@ -238,19 +247,20 @@ export default {
// console.log(v);
// console.log(v);
// console.log(b);
// console.log(b);
let
ids
=
[];
let
ids
=
[];
ids
.
push
(
b
.
value
);
ids
.
push
(
b
.
id
);
if
(
b
.
children
)
{
if
(
b
.
children
)
{
addId
(
b
.
children
);
addId
(
b
.
children
);
function
addId
(
data
)
{
function
addId
(
data
)
{
data
.
map
(
u
=>
{
data
.
map
(
u
=>
{
ids
.
push
(
u
.
value
);
ids
.
push
(
u
.
id
);
if
(
u
.
children
)
{
if
(
u
.
children
)
{
addId
(
u
.
children
);
addId
(
u
.
children
);
}
}
});
});
}
}
}
}
// this.$emit("on-select", b.value, b, ids);
this
.
root
.
ids
=
ids
;
this
.
root
.
id
=
b
.
id
;
},
},
hide
()
{
hide
()
{
this
.
showMenu
=
false
;
this
.
showMenu
=
false
;
...
...
pages/materiel/classification/masterData.vue
View file @
9fd98ed7
<
template
>
<
template
>
<div
class=
"master-data"
>
<div
class=
"master-data"
>
<Table
border
:columns=
"columns"
:data=
"dataColumns"
:height=
"tableHeight"
></Table>
<!--
<Table
border
:columns=
"columns"
:data=
"dataColumns"
:height=
"tableHeight"
></Table>
-->
<DataGrid
:columns=
"columns"
ref=
"grid"
:action=
"action"
:high=
"false"
:height=
"750"
>
<template
slot=
"easySearch"
>
<Form
ref=
"formInline"
:model=
"easySearch"
inline
>
<FormItem
prop=
"keys"
>
<Input
placeholder=
"请输入编码/名称"
v-width=
"200"
v-model=
"easySearch.keys.value"
clearable
/>
</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>
</div>
</div>
</template>
</template>
<
script
>
<
script
>
import
Api
from
"./api"
;
import
Api
from
"./api"
;
export
default
{
export
default
{
name
:
"masterData"
,
name
:
"masterData"
,
props
:
[
"root"
],
data
()
{
data
()
{
return
{
return
{
action
:
Api
.
index
,
tableHeight
:
""
,
tableHeight
:
""
,
dataColumns
:
[],
dataColumns
:
[],
easySearch
:
{
keys
:
{
op
:
"code,name"
,
value
:
null
},
id
:
{
op
:
"In"
,
value
:
this
.
root
.
ids
}
},
columns
:
[
columns
:
[
// {
// {
// key: "index",
// key: "index",
...
@@ -32,21 +62,18 @@ export default {
...
@@ -32,21 +62,18 @@ export default {
key
:
"status"
,
key
:
"status"
,
title
:
"状态"
,
title
:
"状态"
,
align
:
"left"
,
align
:
"left"
,
render
:
(
h
,
params
)
=>
{
code
:
"materail.category.status"
return
h
(
"state"
,
{
// render: (h, params) => {
props
:
{
// return h("state", {
code
:
"materail.category.status"
,
// props: {
type
:
"text"
,
// code: "materail.category.status",
value
:
params
.
row
.
status
+
""
// type: "text",
}
// value: params.row.status + ""
});
// }
}
// });
},
// }
{
key
:
"banben"
,
title
:
"版本"
,
align
:
"left"
},
},
{
{
key
:
"description"
,
key
:
"description"
,
title
:
"描述"
,
title
:
"描述"
,
...
@@ -74,7 +101,7 @@ export default {
...
@@ -74,7 +101,7 @@ export default {
attrs
:
{
oprate
:
"delete"
},
attrs
:
{
oprate
:
"delete"
},
on
:
{
click
:
()
=>
this
.
remove
(
params
.
row
.
id
)
}
on
:
{
click
:
()
=>
this
.
remove
(
params
.
row
.
id
)
}
},
},
params
.
row
.
children
==
0
?
"删除"
:
"
"
"删除
"
)
)
]);
]);
}
}
...
@@ -98,26 +125,43 @@ export default {
...
@@ -98,26 +125,43 @@ export default {
};
};
},
},
methods
:
{
methods
:
{
search
()
{
this
.
$refs
.
grid
.
reload
(
this
.
easySearch
);
},
edit
(
row
)
{
edit
(
row
)
{
this
.
$emit
(
"on-edit"
,
row
);
this
.
$emit
(
"on-edit"
,
row
);
},
},
remove
(
id
)
{
remove
(
id
)
{
this
.
$Modal
.
confirm
({
Api
.
delete
(
id
).
then
(
r
=>
{
title
:
"删除"
,
if
(
r
.
success
)
{
content
:
"<p>您确定要删除吗?</p>"
,
this
.
$emit
(
"on-ok"
);
onOk
:
()
=>
{
this
.
$refs
.
grid
.
reload
(
this
.
easySearch
);
Api
.
delete
(
id
).
then
(
r
=>
{
this
.
$Message
.
success
(
"删除成功"
);
if
(
r
.
success
)
{
this
.
loadTree
();
this
.
$Message
.
success
(
"删除成功"
);
}
});
},
onCancel
:
()
=>
{
this
.
$Message
.
success
(
"取消删除"
);
}
}
});
});
}
}
// this.$Modal.confirm({
// title: "删除",
// content: "
<
p
>
您确定要删除吗?
<
/p>"
,
// onOk: () => {
// onCancel: () => {
// this.$Message.success("取消删除");
// }
// });
// }
},
watch
:
{
root
:
{
handler
(
newName
,
oldName
)
{
this
.
easySearch
.
id
.
value
=
newName
.
ids
;
if
(
newName
.
id
)
{
this
.
$refs
.
grid
.
reload
(
this
.
easySearch
);
}
},
immediate
:
true
,
deep
:
true
}
}
}
};
};
</
script
>
</
script
>
...
...
pages/materiel/classification/sonAdd.vue
View file @
9fd98ed7
...
@@ -50,7 +50,8 @@ export default {
...
@@ -50,7 +50,8 @@ export default {
return
{
return
{
entity
:
{
entity
:
{
upId
:
this
.
nodeInfo
.
id
,
upId
:
this
.
nodeInfo
.
id
,
code
:
0
code
:
0
,
status
:
0
},
},
upName
:
this
.
nodeInfo
.
title
,
upName
:
this
.
nodeInfo
.
title
,
disabled
:
false
,
disabled
:
false
,
...
...
pages/materiel/codeRule/add.vue
View file @
9fd98ed7
...
@@ -36,6 +36,11 @@
...
@@ -36,6 +36,11 @@
<InputNumber
v-model=
"entity.codeLength"
:max=
"5"
:min=
"1"
></InputNumber>
<InputNumber
v-model=
"entity.codeLength"
:max=
"5"
:min=
"1"
></InputNumber>
</FormItem>
</FormItem>
</Col>
</Col>
<Col
:span=
"12"
>
<FormItem
:label=
"l('materialCodeLength')"
prop=
"materialCodeLength"
>
<InputNumber
v-model=
"entity.materialCodeLength"
:max=
"10"
:min=
"1"
></InputNumber>
</FormItem>
</Col>
</Row>
</Row>
<FormItem>
<FormItem>
<Button
type=
"primary"
@
click=
"handleSubmit"
:disabled=
"disabled"
>
保存
</Button>
<Button
type=
"primary"
@
click=
"handleSubmit"
:disabled=
"disabled"
>
保存
</Button>
...
@@ -64,7 +69,8 @@ export default {
...
@@ -64,7 +69,8 @@ export default {
status
:
null
,
status
:
null
,
description
:
""
,
description
:
""
,
levelNum
:
null
,
levelNum
:
null
,
codeLength
:
null
codeLength
:
null
,
materialCodeLength
:
null
},
},
// formValidate:{
// formValidate:{
// name:'',type:'',status:'',levelNum:'',codeLength:''
// name:'',type:'',status:'',levelNum:'',codeLength:''
...
@@ -74,7 +80,8 @@ export default {
...
@@ -74,7 +80,8 @@ export default {
type
:
[{
required
:
true
,
message
:
"必填"
}],
type
:
[{
required
:
true
,
message
:
"必填"
}],
status
:
[{
required
:
true
,
message
:
"必填"
}],
status
:
[{
required
:
true
,
message
:
"必填"
}],
levelNum
:
[{
required
:
true
,
message
:
"必填"
}],
levelNum
:
[{
required
:
true
,
message
:
"必填"
}],
codeLength
:
[{
required
:
true
,
message
:
"必填"
}]
codeLength
:
[{
required
:
true
,
message
:
"必填"
}],
materialCodeLength
:
[{
required
:
true
,
message
:
"必填"
}]
}
}
};
};
},
},
...
...
pages/materiel/codeRule/detail.vue
View file @
9fd98ed7
...
@@ -14,6 +14,7 @@
...
@@ -14,6 +14,7 @@
<Filed
:span=
"24"
:name=
"l('description')"
>
{{
entity
.
description
}}
</Filed>
<Filed
:span=
"24"
:name=
"l('description')"
>
{{
entity
.
description
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('levelNum')"
>
{{
entity
.
levelNum
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('levelNum')"
>
{{
entity
.
levelNum
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('codeLength')"
>
{{
entity
.
codeLength
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('codeLength')"
>
{{
entity
.
codeLength
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('materialCodeLength')"
>
{{
entity
.
materialCodeLength
}}
</Filed>
</Row>
</Row>
</div>
</div>
...
...
pages/materiel/codeRule/edit.vue
View file @
9fd98ed7
...
@@ -36,6 +36,11 @@
...
@@ -36,6 +36,11 @@
<InputNumber
v-model=
"entity.codeLength"
disabled
:max=
"5"
:min=
"1"
></InputNumber>
<InputNumber
v-model=
"entity.codeLength"
disabled
:max=
"5"
:min=
"1"
></InputNumber>
</FormItem>
</FormItem>
</Col>
</Col>
<Col
:span=
"12"
>
<FormItem
:label=
"l('materialCodeLength')"
prop=
"materialCodeLength"
>
<InputNumber
v-model=
"entity.materialCodeLength"
disabled
:max=
"10"
:min=
"1"
></InputNumber>
</FormItem>
</Col>
</Row>
</Row>
<FormItem>
<FormItem>
<Button
type=
"primary"
@
click=
"handleSubmit"
:disabled=
"disabled"
>
保存
</Button>
<Button
type=
"primary"
@
click=
"handleSubmit"
:disabled=
"disabled"
>
保存
</Button>
...
@@ -56,7 +61,8 @@ export default {
...
@@ -56,7 +61,8 @@ export default {
type
:
[{
required
:
true
,
message
:
"必填"
}],
type
:
[{
required
:
true
,
message
:
"必填"
}],
status
:
[{
required
:
true
,
message
:
"必填"
}],
status
:
[{
required
:
true
,
message
:
"必填"
}],
levelNum
:
[{
required
:
true
,
message
:
"必填"
}],
levelNum
:
[{
required
:
true
,
message
:
"必填"
}],
codeLength
:
[{
required
:
true
,
message
:
"必填"
}]
codeLength
:
[{
required
:
true
,
message
:
"必填"
}],
materialCodeLength
:
[{
required
:
true
,
message
:
"必填"
}]
}
}
};
};
},
},
...
...
pages/materiel/codeRule/index.vue
View file @
9fd98ed7
...
@@ -54,6 +54,7 @@ keys:{op:"code,name",value:null}
...
@@ -54,6 +54,7 @@ keys:{op:"code,name",value:null}
{
key
:
"description"
,
title
:
this
.
l
(
"description"
)
,
align
:
"center"
,
high
:
true
},
{
key
:
"description"
,
title
:
this
.
l
(
"description"
)
,
align
:
"center"
,
high
:
true
},
{
key
:
"levelNum"
,
title
:
this
.
l
(
"levelNum"
)
,
align
:
"center"
,
high
:
true
,
hide
:
true
,
},
{
key
:
"levelNum"
,
title
:
this
.
l
(
"levelNum"
)
,
align
:
"center"
,
high
:
true
,
hide
:
true
,
},
{
key
:
"codeLength"
,
title
:
this
.
l
(
"codeLength"
)
,
align
:
"center"
,
high
:
true
,
hide
:
true
,
},
{
key
:
"codeLength"
,
title
:
this
.
l
(
"codeLength"
)
,
align
:
"center"
,
high
:
true
,
hide
:
true
,
},
{
key
:
"materialCodeLength"
,
title
:
this
.
l
(
"materialCodeLength"
)
,
align
:
"center"
,
high
:
true
,
hide
:
true
,
},
{
{
title
:
'操作'
,
title
:
'操作'
,
key
:
'action'
,
key
:
'action'
,
...
...
pages/materiel/masterData/add.vue
View file @
9fd98ed7
...
@@ -52,6 +52,7 @@ export default {
...
@@ -52,6 +52,7 @@ export default {
arr
:
[],
arr
:
[],
entity
:
{
entity
:
{
code
:
0
,
code
:
0
,
status
:
0
,
categoryId
:
this
.
nodeInfo
.
categoryId
,
//左侧树点击的id
categoryId
:
this
.
nodeInfo
.
categoryId
,
//左侧树点击的id
customProperties
:
{},
customProperties
:
{},
rootCategoryId
:
this
.
nodeInfo
.
rootCategoryId
//左侧树点击的数据的最顶层id
rootCategoryId
:
this
.
nodeInfo
.
rootCategoryId
//左侧树点击的数据的最顶层id
...
...
pages/materiel/masterData/api.js
View file @
9fd98ed7
import
Api
from
'@/plugins/request'
import
Api
from
'@/plugins/request'
export
default
{
export
default
{
index
:
`
${
systemUrl
}
/material/paged`
,
index
:
`
${
systemUrl
}
/material/paged`
,
lists
:
`
${
systemUrl
}
/actionlog/list`
,
paged
(
params
){
paged
(
params
){
return
Api
.
post
(
`
${
systemUrl
}
/material/paged`
,
params
);
return
Api
.
post
(
`
${
systemUrl
}
/material/paged`
,
params
);
},
},
...
@@ -19,5 +20,7 @@ export default {
...
@@ -19,5 +20,7 @@ export default {
delete
(
id
)
{
delete
(
id
)
{
return
Api
.
delete
(
`
${
systemUrl
}
/material/delete`
,{
params
:{
id
:
id
}});
return
Api
.
delete
(
`
${
systemUrl
}
/material/delete`
,{
params
:{
id
:
id
}});
},
},
categoryList
(
params
){
return
Api
.
post
(
`
${
systemUrl
}
/actionlog/list`
,
params
);
},
}
}
\ No newline at end of file
pages/materiel/masterData/details.vue
View file @
9fd98ed7
...
@@ -16,18 +16,20 @@
...
@@ -16,18 +16,20 @@
</div>
</div>
</Sider>
</Sider>
<Content
class=
"right-detail"
>
<Content
class=
"right-detail"
>
<div
class=
"btn"
>
<div
class=
"btn"
v-show=
"showFrom"
>
<
Button
type=
"primary"
>
编辑
</Button
>
<
!--
<Button
type=
"primary"
>
编辑
</Button>
--
>
<div
class=
"new-detail"
>
<div
class=
"new-detail"
>
<Row>
<Row>
<Filed
:span=
"8"
:name=
"l('routingHeaderName')+':'"
>
HHJK就开始上课uioiweiwuuu你和环境
</Filed>
<Filed
:span=
"8"
name=
"编码:"
>
{{
entity
.
code
}}
</Filed>
<Filed
:span=
"8"
:name=
"l('routingDetailName')+':'"
>
HHJK就开始上课
</Filed>
<Filed
:span=
"8"
name=
"名称:"
>
{{
entity
.
name
}}
</Filed>
<Filed
:span=
"8"
:name=
"l('standard')+':'"
>
HHJK就开始上课uioiweiwuuu你和环境
</Filed>
<Filed
:span=
"8"
name=
"状态:"
>
<Filed
:span=
"8"
:name=
"l('routingHeaderName')+':'"
>
HHJK就开始上课
</Filed>
<State
code=
"materail.category.status"
:value=
"parseInt(entity.status)"
/>
<Filed
:span=
"8"
:name=
"l('routingDetailName')+':'"
>
HHJK就开始上课
</Filed>
</Filed>
<Filed
:span=
"8"
:name=
"l('standard')+':'"
>
HHJK就开始上课
</Filed>
<Filed
:span=
"8"
name=
"版本:"
>
{{
entity
.
version
}}
</Filed>
<Filed
:span=
"8"
name=
"描述::"
>
{{
entity
.
description
}}
</Filed>
</Row>
</Row>
<Divider
/>
<
!--
<
Divider
/>
<div
class=
"title-h4"
>
engineering
</div>
<div
class=
"title-h4"
>
engineering
</div>
<Row>
<Row>
<Filed
:span=
"8"
:name=
"l('routingHeaderName')+':'"
>
HHJK就开始上课
</Filed>
<Filed
:span=
"8"
:name=
"l('routingHeaderName')+':'"
>
HHJK就开始上课
</Filed>
...
@@ -46,37 +48,62 @@
...
@@ -46,37 +48,62 @@
<Filed
:span=
"8"
:name=
"l('routingHeaderName')+':'"
>
HHJK就开始上课uioiweiwuuu你和环境
</Filed>
<Filed
:span=
"8"
:name=
"l('routingHeaderName')+':'"
>
HHJK就开始上课uioiweiwuuu你和环境
</Filed>
<Filed
:span=
"8"
:name=
"l('routingDetailName')+':'"
>
HHJK就开始上课
</Filed>
<Filed
:span=
"8"
:name=
"l('routingDetailName')+':'"
>
HHJK就开始上课
</Filed>
<Filed
:span=
"8"
:name=
"l('standard')+':'"
>
HHJK就开始上课
</Filed>
<Filed
:span=
"8"
:name=
"l('standard')+':'"
>
HHJK就开始上课
</Filed>
</Row>
</Row>
-->
</div>
</div>
</div>
</div>
<div
v-show=
"showTable"
>
<DataGrid
:columns=
"columns"
ref=
"grid"
:action=
"action"
:tool=
"false"
:height=
"750"
></DataGrid>
<!--
<Table
border
:columns=
"columns"
:data=
"data1"
:height=
"800"
></Table>
-->
</div>
</Content>
</Content>
</Layout>
</Layout>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
import
Api
from
"./api"
;
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
data1
:
[],
action
:
Api
.
lists
,
isactive
:
null
,
isactive
:
null
,
showFrom
:
false
,
showTable
:
false
,
rowId
:
""
,
entity
:
{},
easySearch
:
{
keys
:
{
op
:
"title"
,
value
:
""
},
table
:
{
op
:
"Equal"
,
value
:
"material"
},
tId
:
{
op
:
"Equal"
,
value
:
this
.
$route
.
query
.
id
}
},
listData
:
[
listData
:
[
{
{
lable
:
"属性"
lable
:
"属性"
},
},
{
{
lable
:
"图像"
lable
:
"历史记录"
},
}
{
],
lable
:
"图像"
columns
:
[
},
{
{
lable
:
"图像"
key
:
"name"
,
title
:
"名称"
,
align
:
"left"
},
},
{
{
lable
:
"图像"
key
:
"creationTime"
,
title
:
"名称"
,
align
:
"left"
}
}
]
]
};
};
},
},
created
()
{
this
.
rowId
=
this
.
$route
.
query
.
id
;
},
methods
:
{
methods
:
{
back
()
{
back
()
{
this
.
$router
.
push
({
this
.
$router
.
push
({
...
@@ -85,6 +112,39 @@ export default {
...
@@ -85,6 +112,39 @@ export default {
},
},
everyItem
(
li
,
i
)
{
everyItem
(
li
,
i
)
{
this
.
isactive
=
i
;
this
.
isactive
=
i
;
if
(
li
.
lable
==
"属性"
)
{
this
.
showFrom
=
true
;
this
.
showTable
=
false
;
Api
.
get
({
id
:
this
.
rowId
}).
then
(
r
=>
{
if
(
r
.
result
)
{
this
.
entity
=
r
.
result
;
}
});
}
else
{
this
.
showFrom
=
false
;
this
.
showTable
=
true
;
this
.
$refs
.
grid
.
reload
(
this
.
easySearch
);
// this.easySearch = {
// conditions: [
// {
// fieldName: "table",
// fieldValue: "material",
// conditionalType: "Equal"
// },
// {
// fieldName: "tId",
// fieldValue: this.rowId,
// conditionalType: "Equal"
// }
// ]
// };
// Api.categoryList(this.easySearch).then(r => {
// if (r.result) {
// this.data1 = r.result;
// }
// });
}
},
},
l
(
key
)
{
l
(
key
)
{
key
=
"routing_qc_card"
+
"."
+
key
;
key
=
"routing_qc_card"
+
"."
+
key
;
...
...
pages/materiel/masterData/edit.vue
View file @
9fd98ed7
...
@@ -46,12 +46,12 @@
...
@@ -46,12 +46,12 @@
<
script
>
<
script
>
import
Api
from
"./api"
;
import
Api
from
"./api"
;
export
default
{
export
default
{
props
:
[
"nodeInfo"
],
props
:
[
"nodeInfo"
,
'eid'
],
data
()
{
data
()
{
return
{
return
{
arr
:
[],
arr
:
[],
entity
:
{
entity
:
{
id
:
this
.
nodeInfo
.
id
,
id
:
this
.
e
id
,
code
:
0
,
code
:
0
,
categoryId
:
this
.
nodeInfo
.
categoryId
,
//左侧树点击的id
categoryId
:
this
.
nodeInfo
.
categoryId
,
//左侧树点击的id
customProperties
:
{},
customProperties
:
{},
...
@@ -71,7 +71,7 @@ export default {
...
@@ -71,7 +71,7 @@ export default {
},
},
methods
:
{
methods
:
{
get
()
{
get
()
{
Api
.
get
({
id
:
this
.
nodeInfo
.
id
}).
then
(
r
=>
{
Api
.
get
({
id
:
this
.
e
id
}).
then
(
r
=>
{
if
(
r
.
result
)
{
if
(
r
.
result
)
{
this
.
entity
=
r
.
result
;
this
.
entity
=
r
.
result
;
}
}
...
@@ -79,15 +79,16 @@ export default {
...
@@ -79,15 +79,16 @@ export default {
},
},
remove
(
index
,
row
)
{
remove
(
index
,
row
)
{
if
(
row
.
add
==
0
)
{
//新增的删除,直接删
// if (row.add == 0) {
this
.
checkList
.
splice
(
index
,
1
);
// //新增的删除,直接删
}
else
{
// this.checkList.splice(index, 1);
row
.
action
=
2
;
//返回的默认删除,删除后保存在arr数组中,添加标识action = 2,然后点击保存的时候,一起传给后台
// } else {
this
.
$set
(
this
.
checkList
,
index
,
row
);
// row.action = 2; //返回的默认删除,删除后保存在arr数组中,添加标识action = 2,然后点击保存的时候,一起传给后台
this
.
arr
.
push
(
row
);
// this.$set(this.checkList, index, row);
this
.
checkList
.
splice
(
index
,
1
);
// this.arr.push(row);
}
// this.checkList.splice(index, 1);
// }
},
},
setRow
(
row
,
index
)
{
setRow
(
row
,
index
)
{
this
.
$set
(
this
.
checkList
,
index
,
row
);
this
.
$set
(
this
.
checkList
,
index
,
row
);
...
...
pages/materiel/masterData/index.vue
View file @
9fd98ed7
...
@@ -4,9 +4,9 @@
...
@@ -4,9 +4,9 @@
<Sider
width=
"300"
v-if=
"showMenu"
>
<Sider
width=
"300"
v-if=
"showMenu"
>
<div
class=
"p-list"
>
<div
class=
"p-list"
>
<h3>
<h3>
零部件库
<Dictionary
code=
"material.code.type"
v-model=
"type"
style=
"width:130px;float:left;"
></Dictionary>
<div
class=
"fr mr10 mt10"
>
<div
class=
"fr mr10 mt10"
>
<ButtonGroup
class=
"fr"
size=
"small"
>
<ButtonGroup
class=
"fr
ddi
"
size=
"small"
>
<!--
<Button
icon=
"md-add"
title=
"新增顶级"
@
click=
"addNew"
></Button>
-->
<!--
<Button
icon=
"md-add"
title=
"新增顶级"
@
click=
"addNew"
></Button>
-->
<Button
<Button
:icon=
"expand ? 'md-arrow-dropright' : 'md-arrow-dropdown'"
:icon=
"expand ? 'md-arrow-dropright' : 'md-arrow-dropdown'"
...
@@ -34,7 +34,7 @@
...
@@ -34,7 +34,7 @@
</a>
</a>
</div>
</div>
<Content
:class=
"!showMenu?'con_bord':''"
>
<Content
:class=
"!showMenu?'con_bord':''"
>
<MasterData
ref=
"dataTable"
:nodeInfo=
"nodeInfo"
/>
<MasterData
ref=
"dataTable"
:nodeInfo=
"nodeInfo"
@
on-ok=
"ok"
/>
</Content>
</Content>
</Layout>
</Layout>
</div>
</div>
...
@@ -50,12 +50,14 @@ export default {
...
@@ -50,12 +50,14 @@ export default {
name
:
"masterData"
,
name
:
"masterData"
,
data
()
{
data
()
{
return
{
return
{
type
:
""
,
keys
:
""
,
keys
:
""
,
expand
:
false
,
expand
:
false
,
list
:
[],
list
:
[],
nodeInfo
:
{
nodeInfo
:
{
categoryId
:
0
,
categoryId
:
0
,
rootCategoryId
:
0
rootCategoryId
:
0
,
ids
:
[]
},
},
modal
:
false
,
modal
:
false
,
title
:
"新增"
,
title
:
"新增"
,
...
@@ -78,15 +80,15 @@ export default {
...
@@ -78,15 +80,15 @@ export default {
},
},
ok
(
row
)
{
ok
(
row
)
{
this
.
loadTree
();
this
.
loadTree
();
this
.
modal
=
false
;
//
this.modal = false;
this
.
curId
=
0
;
//
this.curId = 0;
if
(
row
)
{
//
if (row) {
this
.
dataList
.
map
((
e
,
index
)
=>
{
//
this.dataList.map((e, index) => {
if
(
e
.
id
==
row
.
id
)
{
//
if (e.id == row.id) {
this
.
$set
(
this
.
$refs
.
dataTable
.
dataColumns
,
index
,
row
);
//
this.$set(this.$refs.dataTable.dataColumns, index, row);
}
//
}
});
//
});
}
//
}
},
},
cancel
()
{
cancel
()
{
this
.
curId
=
0
;
this
.
curId
=
0
;
...
@@ -102,12 +104,15 @@ export default {
...
@@ -102,12 +104,15 @@ export default {
}
}
}
}
},
},
data
.
title
data
.
title
+
"("
+
(
data
.
totalMaterialCount
==
undefined
?
"0"
:
data
.
totalMaterialCount
)
+
")"
);
);
},
},
handleSelect
(
root
,
data
)
{
handleSelect
(
root
,
data
)
{
// console.log(root);
let
pid
=
null
;
//定义最顶级id
let
pid
=
null
;
//定义最顶级id
let
upId
=
data
.
upId
;
let
upId
=
data
.
upId
;
let
roots
=
root
;
let
roots
=
root
;
...
@@ -124,7 +129,6 @@ export default {
...
@@ -124,7 +129,6 @@ export default {
});
});
}
}
addId
(
roots
,
upId
);
addId
(
roots
,
upId
);
this
.
nodeInfo
.
categoryId
=
data
.
id
;
this
.
nodeInfo
.
categoryId
=
data
.
id
;
if
(
pid
==
null
)
{
if
(
pid
==
null
)
{
this
.
nodeInfo
.
rootCategoryId
=
data
.
id
;
this
.
nodeInfo
.
rootCategoryId
=
data
.
id
;
...
@@ -151,7 +155,22 @@ export default {
...
@@ -151,7 +155,22 @@ export default {
toggle
()
{
toggle
()
{
this
.
expand
=
!
this
.
expand
;
this
.
expand
=
!
this
.
expand
;
},
},
change
(
v
,
b
)
{},
change
(
v
,
b
)
{
let
ids
=
[];
ids
.
push
(
b
.
value
);
if
(
b
.
children
)
{
addId
(
b
.
children
);
function
addId
(
data
)
{
data
.
map
(
u
=>
{
ids
.
push
(
u
.
value
);
if
(
u
.
children
)
{
addId
(
u
.
children
);
}
});
}
}
this
.
nodeInfo
.
ids
=
ids
;
},
hide
()
{
hide
()
{
this
.
showMenu
=
false
;
this
.
showMenu
=
false
;
}
}
...
@@ -190,7 +209,7 @@ export default {
...
@@ -190,7 +209,7 @@ export default {
background: rgba(255, 255, 255, 1);
background: rgba(255, 255, 255, 1);
margin-right: 10px;
margin-right: 10px;
box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.15);
box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.15);
height: 8
7
vh;
height: 8
8
vh;
h4 {
h4 {
height: 30px;
height: 30px;
...
@@ -209,6 +228,9 @@ export default {
...
@@ -209,6 +228,9 @@ export default {
background: rgba(245, 246, 250, 1);
background: rgba(245, 246, 250, 1);
opacity: 1;
opacity: 1;
padding-left: 10px;
padding-left: 10px;
.ddi {
margin-top: 3px;
}
}
}
.search {
.search {
height: 50px;
height: 50px;
...
@@ -256,7 +278,7 @@ export default {
...
@@ -256,7 +278,7 @@ export default {
box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.15);
box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.15);
overflow: auto;
overflow: auto;
padding: 10px;
padding: 10px;
height: 8
7
vh;
height: 8
8
vh;
overflow-y: hidden;
overflow-y: hidden;
}
}
}
}
...
...
pages/materiel/masterData/masterData.vue
View file @
9fd98ed7
<
template
>
<
template
>
<div
class=
"master-data"
>
<div
class=
"master-data"
>
<DataGrid
:columns=
"columns"
ref=
"grid"
:action=
"action"
:initsearch=
"sets"
:high=
"false"
>
<DataGrid
:columns=
"columns"
ref=
"grid"
:action=
"action"
:initsearch=
"sets"
:high=
"false"
:height=
"750"
>
<template
slot=
"easySearch"
>
<template
slot=
"easySearch"
>
<Form
ref=
"formInline"
:model=
"easySearch"
inline
>
<Form
ref=
"formInline"
:model=
"easySearch"
inline
>
<FormItem
prop=
"keys"
>
<FormItem
prop=
"keys"
>
...
@@ -47,6 +54,7 @@ export default {
...
@@ -47,6 +54,7 @@ export default {
data
()
{
data
()
{
return
{
return
{
action
:
Api
.
index
,
action
:
Api
.
index
,
modal
:
false
,
modal
:
false
,
title
:
"新增"
,
title
:
"新增"
,
curId
:
0
,
curId
:
0
,
...
@@ -56,15 +64,11 @@ export default {
...
@@ -56,15 +64,11 @@ export default {
v
.
rootCategoryId
=
this
.
nodeInfo
.
rootCategoryId
;
v
.
rootCategoryId
=
this
.
nodeInfo
.
rootCategoryId
;
},
},
easySearch
:
{
easySearch
:
{
keys
:
{
op
:
"Code,Name"
,
value
:
null
}
keys
:
{
op
:
"code,name"
,
value
:
null
},
// categoryId: {
categoryId
:
{
// op: "In",
op
:
"In"
,
// value: this.nodeInfo.categoryId
value
:
this
.
nodeInfo
.
ids
// },
}
// rootCategoryId: {
// op: "In",
// value: this.nodeInfo.rootCategoryId
// }
},
},
columns
:
[
columns
:
[
// {
// {
...
@@ -74,7 +78,7 @@ export default {
...
@@ -74,7 +78,7 @@ export default {
// width: 60
// width: 60
// },
// },
{
{
key
:
"
C
ode"
,
key
:
"
c
ode"
,
title
:
"编码"
,
title
:
"编码"
,
align
:
"left"
,
align
:
"left"
,
render
:
(
h
,
params
)
=>
{
render
:
(
h
,
params
)
=>
{
...
@@ -83,20 +87,20 @@ export default {
...
@@ -83,20 +87,20 @@ export default {
{
{
props
:
{},
props
:
{},
on
:
{
on
:
{
click
:
()
=>
this
.
details
(
params
.
row
)
click
:
()
=>
this
.
details
(
params
.
row
.
id
)
}
}
},
},
params
.
row
.
C
ode
params
.
row
.
c
ode
);
);
}
}
},
},
{
{
key
:
"
N
ame"
,
key
:
"
n
ame"
,
title
:
"名称"
,
title
:
"名称"
,
align
:
"left"
align
:
"left"
},
},
{
{
key
:
"
S
tatus"
,
key
:
"
s
tatus"
,
title
:
"状态"
,
title
:
"状态"
,
align
:
"left"
,
align
:
"left"
,
render
:
(
h
,
params
)
=>
{
render
:
(
h
,
params
)
=>
{
...
@@ -104,18 +108,18 @@ export default {
...
@@ -104,18 +108,18 @@ export default {
props
:
{
props
:
{
code
:
"materail.category.status"
,
code
:
"materail.category.status"
,
type
:
"text"
,
type
:
"text"
,
value
:
params
.
row
.
S
tatus
+
""
value
:
params
.
row
.
s
tatus
+
""
}
}
});
});
}
}
},
},
{
{
key
:
"
V
ersion"
,
key
:
"
v
ersion"
,
title
:
"版本"
,
title
:
"版本"
,
align
:
"left"
align
:
"left"
},
},
{
{
key
:
"
D
escription"
,
key
:
"
d
escription"
,
title
:
"描述"
,
title
:
"描述"
,
align
:
"left"
align
:
"left"
},
},
...
@@ -140,7 +144,7 @@ export default {
...
@@ -140,7 +144,7 @@ export default {
attrs
:
{
oprate
:
"delete"
},
attrs
:
{
oprate
:
"delete"
},
on
:
{
click
:
()
=>
this
.
remove
(
params
.
row
.
id
)
}
on
:
{
click
:
()
=>
this
.
remove
(
params
.
row
.
id
)
}
},
},
params
.
row
.
children
==
0
?
"删除"
:
"
"
"删除
"
)
)
]);
]);
}
}
...
@@ -151,7 +155,10 @@ export default {
...
@@ -151,7 +155,10 @@ export default {
async
fetch
({
store
,
params
})
{
async
fetch
({
store
,
params
})
{
await
store
.
dispatch
(
"loadDictionary"
);
// 加载数据字典
await
store
.
dispatch
(
"loadDictionary"
);
// 加载数据字典
},
},
created
()
{},
created
()
{
// this.$refs.grid.reload(this.easySearch);
},
methods
:
{
methods
:
{
search
()
{
search
()
{
this
.
$refs
.
grid
.
reload
(
this
.
easySearch
);
this
.
$refs
.
grid
.
reload
(
this
.
easySearch
);
...
@@ -163,31 +170,45 @@ export default {
...
@@ -163,31 +170,45 @@ export default {
this
.
modal
=
true
;
this
.
modal
=
true
;
},
},
edit
(
row
)
{
edit
(
row
)
{
this
.
nodeInfo
.
id
=
row
.
Id
;
console
.
log
(
row
);
this
.
curId
=
row
.
id
;
this
.
title
=
"编辑"
;
this
.
title
=
"编辑"
;
this
.
detail
=
()
=>
import
(
"./edit"
);
this
.
detail
=
()
=>
import
(
"./edit"
);
this
.
modal
=
true
;
this
.
modal
=
true
;
},
},
remove
(
id
)
{
remove
(
id
)
{
this
.
$Modal
.
confirm
({
alert
(
id
);
title
:
"删除"
,
Api
.
delete
(
id
).
then
(
r
=>
{
content
:
"<p>您确定要删除吗?</p>"
,
if
(
r
.
success
)
{
onOk
:
()
=>
{
this
.
$emit
(
"on-ok"
);
Api
.
delete
(
id
).
then
(
r
=>
{
this
.
$refs
.
grid
.
reload
(
this
.
easySearch
);
if
(
r
.
success
)
{
this
.
$Message
.
success
(
"删除成功"
);
this
.
loadTree
();
this
.
$Message
.
success
(
"删除成功"
);
}
});
},
onCancel
:
()
=>
{
this
.
$Message
.
success
(
"取消删除"
);
}
}
});
});
// this.$Modal.confirm({
// title: "删除",
// content: "
<
p
>
您确定要删除吗?
<
/p>"
,
// onOk: () => {
// alert(1);
// Api.delete({ id: this.eid }).then(r => {
// if (r.success) {
// this.$emit("on-ok");
// this.$Message.success("删除成功");
// }
// });
// },
// onCancel: () => {
// this.$Message.success("取消删除");
// }
// });
},
},
details
()
{
details
(
id
)
{
this
.
$router
.
push
({
this
.
$router
.
push
({
path
:
"/materiel/masterData/details"
path
:
"/materiel/masterData/details"
,
query
:
{
id
:
id
}
});
});
},
},
ok
()
{
ok
()
{
...
@@ -201,10 +222,15 @@ export default {
...
@@ -201,10 +222,15 @@ export default {
}
}
},
},
watch
:
{
watch
:
{
"nodeInfo.categoryId"
(
v
)
{
nodeInfo
:
{
if
(
v
)
{
handler
(
newName
,
oldName
)
{
this
.
$refs
.
grid
.
reload
(
this
.
easySearch
);
this
.
easySearch
.
categoryId
.
value
=
newName
.
ids
;
}
if
(
newName
.
categoryId
)
{
this
.
$refs
.
grid
.
reload
(
this
.
easySearch
);
}
},
immediate
:
true
,
deep
:
true
}
}
}
}
};
};
...
...
pages/produce/execute/api.js
View file @
9fd98ed7
...
@@ -9,6 +9,10 @@ export default {
...
@@ -9,6 +9,10 @@ export default {
submitData
(
params
)
{
submitData
(
params
)
{
return
Api
.
post
(
`
${
PlanUrl
}
/orderexecutequalityrecord/checkdispatchproduct`
,
params
);
return
Api
.
post
(
`
${
PlanUrl
}
/orderexecutequalityrecord/checkdispatchproduct`
,
params
);
},
},
// 质量判定获取不合格品送审编号
getshenliNo
(
params
)
{
return
Api
.
post
(
`
${
PlanUrl
}
/orderexecutebadproduct/create`
,
params
);
},
//工单联合信息
//工单联合信息
orderanddispatchinfos
(
params
)
{
orderanddispatchinfos
(
params
)
{
return
Api
.
get
(
`
${
PlanUrl
}
/orderexecutenew/orderanddispatchinfos`
,
params
);
return
Api
.
get
(
`
${
PlanUrl
}
/orderexecutenew/orderanddispatchinfos`
,
params
);
...
@@ -46,8 +50,20 @@ export default {
...
@@ -46,8 +50,20 @@ export default {
getentryusers
(
params
)
{
getentryusers
(
params
)
{
return
Api
.
get
(
`
${
PlanUrl
}
/orderexecutenew/entryusers`
,
params
);
return
Api
.
get
(
`
${
PlanUrl
}
/orderexecutenew/entryusers`
,
params
);
},
},
//工时分配--总工时待分配
//工时分配--工时列表
getentrylist
(
params
)
{
return
Api
.
post
(
`
${
technologyUrl
}
workhours/list`
,
params
);
},
//工时分配--总工时待分配workhours/
getallhours
(
params
)
{
getallhours
(
params
)
{
return
Api
.
post
(
`
${
technologyUrl
}
workhours/allhours`
,
params
);
return
Api
.
post
(
`
${
technologyUrl
}
workhours/allhours`
,
params
);
},
},
//工时分配--新增保存
subcreatehours
(
params
)
{
return
Api
.
post
(
`
${
technologyUrl
}
workhours/createmore`
,
params
);
},
//工时分配--删除一条
deletehours
(
params
)
{
return
Api
.
delete
(
`
${
technologyUrl
}
workhours/delete?id=`
+
params
);
},
}
}
\ No newline at end of file
pages/produce/execute/judgment/index.vue
View file @
9fd98ed7
...
@@ -86,7 +86,7 @@
...
@@ -86,7 +86,7 @@
<div
class=
"list02"
>
<div
class=
"list02"
>
<Tag
<Tag
type=
"dot"
class=
"tag_card02"
type=
"dot"
class=
"tag_card02"
v-for=
"(item,index) in feilist"
:key=
"i
ndex
"
v-for=
"(item,index) in feilist"
:key=
"i
tem.id
"
:name=
"item.id"
:checkable=
"false"
:name=
"item.id"
:checkable=
"false"
closable
@
on-close=
"feiClose"
closable
@
on-close=
"feiClose"
>
{{
item
.
prefix
}}
.
{{
item
.
code
}}
</Tag>
>
{{
item
.
prefix
}}
.
{{
item
.
code
}}
</Tag>
...
@@ -114,9 +114,9 @@
...
@@ -114,9 +114,9 @@
</Form>
</Form>
</div>
</div>
</div>
</div>
<div
class=
"futer flex fc-ev"
v-if=
"ranglist.length>0||fanlist.length>0||feilist.length>0"
>
<div
class=
"futer flex fc-ev"
v-if=
"
hegelist.length>0||
ranglist.length>0||fanlist.length>0||feilist.length>0"
>
<Button
class=
"button"
size=
"large"
type=
"primary"
@
click=
"sendOrder"
v-if=
"feilist.length>0"
>
送审
</Button>
<Button
class=
"button"
size=
"large"
type=
"primary"
@
click=
"sendOrder"
v-if=
"feilist.length>0"
>
送审
</Button>
<Button
class=
"button"
size=
"large"
type=
"primary"
@
click=
"submit"
v-else
>
提交
</Button>
<Button
class=
"button"
size=
"large"
type=
"primary"
@
click=
"submit"
v-else
>
保存
</Button>
<!-- :disabled="hegelist.length!=0&&fanlist.length!=0&&ranglist.length!=0" -->
<!-- :disabled="hegelist.length!=0&&fanlist.length!=0&&ranglist.length!=0" -->
<Button
class=
"button"
size=
"large"
@
click=
"toOrder"
>
取消
</Button>
<Button
class=
"button"
size=
"large"
@
click=
"toOrder"
>
取消
</Button>
</div>
</div>
...
@@ -174,15 +174,16 @@ export default {
...
@@ -174,15 +174,16 @@ export default {
ranglist
:
[],
ranglist
:
[],
fanlist
:
[],
fanlist
:
[],
feilist
:
[],
feilist
:
[],
titleCode
:
''
,
//送审单号
problemList
:
[
problemList
:
[
{
problem
:
"问题描述01"
},
{
problem
:
"问题描述01"
,
id
:
1
},
{
problem
:
"问题描述02"
},
{
problem
:
"问题描述02"
,
id
:
2
},
{
problem
:
"问题描述03"
}
{
problem
:
"问题描述03"
,
id
:
3
}
],
],
blameList
:
[
blameList
:
[
{
user
:
"责任人01"
},
{
user
:
"责任人01"
,
id
:
1
},
{
user
:
"责任人02"
},
{
user
:
"责任人02"
,
id
:
2
},
{
user
:
"责任人03"
}
{
user
:
"责任人03"
,
id
:
3
}
]
]
};
};
},
},
...
@@ -219,7 +220,8 @@ export default {
...
@@ -219,7 +220,8 @@ export default {
}
}
if
(
u
.
productStatus
==
4
){
if
(
u
.
productStatus
==
4
){
this
.
fanlist
.
push
(
u
)
this
.
fanlist
.
push
(
u
)
}
if
(
u
.
productStatus
==
0
){
}
if
(
u
.
productStatus
==
0
){
this
.
cardlist
.
push
(
u
)
this
.
cardlist
.
push
(
u
)
}
}
});
});
...
@@ -331,19 +333,19 @@ export default {
...
@@ -331,19 +333,19 @@ export default {
okModal
()
{
okModal
()
{
let
unmb
=
this
.
num
;
let
unmb
=
this
.
num
;
if
(
unmb
==
1
)
{
if
(
unmb
==
1
)
{
this
.
cansol
hege
();
this
.
cansol
Rang
();
this
.
suModal
=
false
;
this
.
suModal
=
false
;
}
}
if
(
unmb
==
2
)
{
if
(
unmb
==
2
)
{
this
.
cansolf
ei
();
this
.
cansolf
an
();
this
.
suModal
=
false
;
this
.
suModal
=
false
;
}
}
if
(
unmb
==
3
)
{
if
(
unmb
==
3
)
{
this
.
cansol
Rang
();
this
.
cansol
fei
();
this
.
suModal
=
false
;
this
.
suModal
=
false
;
}
}
if
(
unmb
==
4
)
{
if
(
unmb
==
0
)
{
this
.
cansol
fan
();
this
.
cansol
hege
();
this
.
suModal
=
false
;
this
.
suModal
=
false
;
}
}
},
},
...
@@ -544,6 +546,7 @@ export default {
...
@@ -544,6 +546,7 @@ export default {
}
}
}
}
}
}
// console.log(lists)
let
parmes
=
{
let
parmes
=
{
dispatchId
:
this
.
$route
.
query
.
id
,
dispatchId
:
this
.
$route
.
query
.
id
,
orderId
:
this
.
$route
.
query
.
orderId
,
orderId
:
this
.
$route
.
query
.
orderId
,
...
@@ -551,50 +554,77 @@ export default {
...
@@ -551,50 +554,77 @@ export default {
};
};
Api
.
submitData
(
parmes
).
then
(
res
=>
{
Api
.
submitData
(
parmes
).
then
(
res
=>
{
if
(
res
.
success
){
if
(
res
.
success
){
this
.
$Message
.
success
(
"
提交
成功!"
);
this
.
$Message
.
success
(
"
保存
成功!"
);
}
else
{
}
else
{
this
.
$Message
.
success
(
"
提交
失败~"
);
this
.
$Message
.
success
(
"
保存
失败~"
);
}
}
})
})
},
},
// 打开送审
// 打开送审
sendOrder
()
{
sendOrder
()
{
let
orderse
=
[]
let
orderse
=
[]
let
orderIds
=
[]
this
.
feilist
.
map
(
item
=>
{
this
.
feilist
.
map
(
item
=>
{
orderse
.
push
(
item
.
prefix
+
'.'
+
item
.
code
)
orderse
.
push
(
item
.
prefix
+
'.'
+
item
.
code
)
orderIds
.
push
(
item
.
id
)
})
})
let
strOder
=
orderse
.
join
(
","
)
// console.log(strOder)
let
strOder
=
orderse
.
join
(
","
)
this
.
entity
.
cause
=
this
.
orderForm
.
question
;
this
.
entity
.
cause
=
this
.
orderForm
.
question
;
this
.
entity
.
reporter
=
this
.
orderForm
.
useroption
;
this
.
entity
.
reporter
=
this
.
orderForm
.
useroption
;
this
.
entity
.
strOder
=
strOder
;
// console.log(this.entity)
this
.
entity
.
strOder
=
strOder
;
this
.
entity
.
orderIds
=
orderIds
;
this
.
$refs
[
"formValidate"
].
validate
(
valid
=>
{
this
.
$refs
[
"formValidate"
].
validate
(
valid
=>
{
if
(
valid
)
{
if
(
valid
)
{
this
.
submit
()
//提交状态改变
this
.
submit
()
//提交状态改变
let
parmeseData
=
this
.
entity
// console.log(parmeseData) this.$Message.success("送审")
let
parme
=
{
reason
:
this
.
entity
.
cause
,
personLiableId
:
this
.
entity
.
reporter
,
dispatchId
:
this
.
$route
.
query
.
id
,
orderId
:
this
.
$route
.
query
.
orderId
,
productIds
:
this
.
entity
.
orderIds
,
}
Api
.
getshenliNo
(
parme
).
then
(
res
=>
{
if
(
res
.
success
){
// this.$refs.orderSendReview.info.orderInfo.code = res.result.code
this
.
entity
.
code
=
res
.
result
.
code
this
.
entity
.
idlist
=
res
.
result
.
id
}
else
{
console
.
log
(
"获取编号失败"
)
}
})
let
parmeseData
=
this
.
entity
// this.$Message.success("送审")
console
.
info
(
parmeseData
)
this
.
ModalOrder
=
true
;
this
.
ModalOrder
=
true
;
this
.
$refs
.
orderSendReview
.
alertFun
(
parmeseData
);
this
.
$refs
.
orderSendReview
.
alertFun
(
parmeseData
);
}
}
});
});
},
},
// 确定送审
// 确定送审
orderSendOk
()
{
orderSendOk
()
{
ahis
.
$Message
.
success
(
"送审中..."
);
// console.log("old->",this.entity)
// let operatorIdList = this.$refs.orderSendReview.returnDataList();
let
orderids
=
[]
// let itemCode = this.formdata.unqualified_order_code;
orderids
.
push
(
this
.
entity
.
idlist
)
// this.dataListRetrunNew.code = itemCode;
console
.
log
(
"new->"
,
this
.
entity
)
// this.dataListRetrunNew.operatorIdList = operatorIdList;
let
parmese
=
{
// this.$http.order
schemaId
:
"c2e09c9b-02a9-4188-97a6-cdb68d50a64a"
,
// .batchOrderStart(this.dataListRetrunNew)
idList
:
orderids
,
// .then(response => {
code
:
this
.
entity
.
code
,
// if (response.success) {
operatorIdList
:
this
.
$refs
.
orderSendReview
.
returnDataList
(),
// this.loadchangelist();
}
// this.$Message.info("送审成功!");
// this.dataListRetrunNew.idList = [];
this
.
$http
.
order
// } else {
.
batchOrderStart
(
parmese
)
// this.$Message.error("送审失败!");
.
then
(
response
=>
{
// }
if
(
response
.
success
)
{
// this.modalInfo = false;
this
.
loadchangelist
();
// });
this
.
$Message
.
info
(
"送审成功!"
);
this
.
dataListRetrunNew
.
idList
=
[];
}
else
{
this
.
$Message
.
error
(
"送审失败!"
);
}
this
.
modalInfo
=
false
;
});
},
},
// 取消 返回工单列表
// 取消 返回工单列表
toOrder
()
{
toOrder
()
{
...
...
pages/produce/execute/judgment/orderInfos.vue
View file @
9fd98ed7
...
@@ -3,15 +3,18 @@
...
@@ -3,15 +3,18 @@
<Row>
<Row>
<Filed
:span=
"12"
:name=
"l('productName')"
>
{{
info
.
orderInfo
.
productName
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('productName')"
>
{{
info
.
orderInfo
.
productName
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('drawnNumber')"
>
{{
info
.
orderInfo
.
drawnNumber
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('drawnNumber')"
>
{{
info
.
orderInfo
.
drawnNumber
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('status')"
>
{{
info
.
orderInfo
.
status
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('status')"
>
<state
code=
"plan.order.status"
ref=
"state"
:value=
"info.orderInfo.status"
type=
"text"
></state>
</Filed>
<Filed
:span=
"12"
:name=
"l('mesCode')"
>
{{
info
.
orderInfo
.
mesCode
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('mesCode')"
>
{{
info
.
orderInfo
.
mesCode
}}
</Filed>
<Filed
:span=
"12"
name=
"批次号"
>
{{
info
.
orderInfo
.
batchNumber
}}
</Filed>
<Filed
:span=
"12"
name=
"批次号"
>
{{
info
.
orderInfo
.
batchNumber
}}
</Filed>
<!--
<Filed
:span=
"
8"
:name=
"l('batchNumber')"
>
{{
info
.
orderInfo
.
batchNumber
}}
</Filed>
-->
<!--
<Filed
:span=
"
12"
name=
"派工数量"
>
{{
info
.
orderInfo
.
dispatchQuantity
}}
</Filed>
-->
<Filed
:span=
"12"
:name=
"l('quantity')"
>
{{
info
.
orderInfo
.
quantity
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('quantity')"
>
{{
info
.
orderInfo
.
quantity
}}
</Filed>
<Filed
:span=
"12"
name=
"节点日期"
>
{{
info
.
orderInfo
.
demandFinishDate
}}
</Filed>
<Filed
:span=
"12"
name=
"节点日期"
>
{{
info
.
orderInfo
.
demandFinishDate
}}
</Filed>
<Filed
:span=
"12"
name=
"工序名称"
>
{{
info
.
orderInfo
.
seqName
}}
</Filed>
<Filed
:span=
"12"
name=
"问题原因"
>
{{
info
.
orderInfo
.
cause
}}
</Filed>
<Filed
:span=
"12"
name=
"问题原因"
>
{{
info
.
orderInfo
.
cause
}}
</Filed>
<Filed
:span=
"12"
name=
"责任归属"
>
{{
info
.
orderInfo
.
reporter
}}
</Filed>
<Filed
:span=
"12"
name=
"责任归属"
>
{{
info
.
orderInfo
.
reporter
}}
</Filed>
<
Filed
:span=
"12"
name=
"不合格产品号"
>
{{
info
.
orderInfo
.
demandFinishDate
}}
</Filed
>
<
!--
<Filed
:span=
"12"
name=
"送审编号"
>
{{
info
.
orderInfo
.
code
}}
</Filed>
--
>
<Filed
:span=
"24"
name=
"不合格产品"
>
{{
info
.
orderInfo
.
strOder
}}
</Filed>
<Filed
:span=
"24"
name=
"不合格产品"
>
{{
info
.
orderInfo
.
strOder
}}
</Filed>
<!--
<Filed
:span=
"8"
:name=
"l('stage')"
>
<!--
<Filed
:span=
"8"
:name=
"l('stage')"
>
<state
code=
"plan.order.stage"
:value=
"info.orderInfo.stage+''"
type=
"text"
></state>
<state
code=
"plan.order.stage"
:value=
"info.orderInfo.stage+''"
type=
"text"
></state>
...
@@ -46,6 +49,12 @@ export default {
...
@@ -46,6 +49,12 @@ export default {
key
=
'order_list'
+
'.'
+
key
key
=
'order_list'
+
'.'
+
key
return
this
.
$t
(
key
)
return
this
.
$t
(
key
)
}
}
},
watch
:{
info
(
n
,
o
){
console
.
log
(
n
)
console
.
log
(
o
)
}
}
}
}
}
</
script
>
</
script
>
\ No newline at end of file
pages/produce/execute/judgment/orderSendReview.vue
View file @
9fd98ed7
...
@@ -15,6 +15,7 @@
...
@@ -15,6 +15,7 @@
</
template
>
</
template
>
<
script
>
<
script
>
// import Api from "../api";
import
OrderInfos
from
'./orderInfos'
import
OrderInfos
from
'./orderInfos'
import
Process
from
'@/components/orderOperator/process'
import
Process
from
'@/components/orderOperator/process'
export
default
{
export
default
{
...
@@ -80,7 +81,7 @@ export default {
...
@@ -80,7 +81,7 @@ export default {
}
}
},
},
created
()
{
created
()
{
var
theight
=
window
.
innerHeight
-
6
3
0
+
'px'
var
theight
=
window
.
innerHeight
-
6
5
0
+
'px'
this
.
divHeight
=
theight
this
.
divHeight
=
theight
},
},
mounted
()
{
mounted
()
{
...
@@ -88,7 +89,7 @@ export default {
...
@@ -88,7 +89,7 @@ export default {
///浏览器窗口大小变化
///浏览器窗口大小变化
return
(()
=>
{
return
(()
=>
{
window
.
screenHeight
=
window
.
innerHeight
window
.
screenHeight
=
window
.
innerHeight
this
.
divHeight
=
window
.
screenHeight
-
6
3
0
+
'px'
this
.
divHeight
=
window
.
screenHeight
-
6
5
0
+
'px'
})()
})()
}
}
},
},
...
@@ -96,7 +97,23 @@ export default {
...
@@ -96,7 +97,23 @@ export default {
alertFun
(
parmeseData
){
alertFun
(
parmeseData
){
console
.
warn
(
parmeseData
)
console
.
warn
(
parmeseData
)
this
.
info
.
orderInfo
=
parmeseData
this
.
info
.
orderInfo
=
parmeseData
alert
(
"加载数据"
)
// let parme = {
// reason: parmeseData.cause,
// personLiableId: parmeseData.reporter,
// dispatchId: this.$route.query.id,
// orderId: this.$route.query.orderId,
// productIds: parmeseData.orderIds,
// }
// Api.getshenliNo(parme).then(res=>{
// if(res.success){
// this.info.orderInfo.push(code = res.resoult.code)
// parmeseData.code = res.resoult.code
// this.$refs.orderSendReview.info.orderInfo.code = res.resoult.code
// this.entity.code = res.resoult.code
// }else{
// console.log("获取编号失败")
// }
// })
},
},
intData
(
data
)
{
intData
(
data
)
{
console
.
warn
(
data
)
console
.
warn
(
data
)
...
...
pages/produce/execute/taskTime/add.vue
View file @
9fd98ed7
...
@@ -66,7 +66,7 @@
...
@@ -66,7 +66,7 @@
<Col
span=
"24"
>
<Col
span=
"24"
>
<FormItem
label=
"分配工时"
prop=
"setTime"
>
<FormItem
label=
"分配工时"
prop=
"setTime"
>
<!--
<InputNumber
:max=
"30"
:min=
"0"
v-model=
"value1"
></InputNumber>
天
-->
<!--
<InputNumber
:max=
"30"
:min=
"0"
v-model=
"value1"
></InputNumber>
天
-->
<InputNumber
:max=
"maxHour"
:min=
"1"
v-model=
"entity.workHour"
@
on-change=
"testChange"
></InputNumber>
工时
<InputNumber
:max=
"maxHour"
:min=
"1"
v-model=
"entity.workHour"
@
on-change=
"testChange"
></InputNumber>
工时
<!--
<InputNumber
:max=
"59"
:min=
"1"
v-model=
"value1"
></InputNumber>
分钟
-->
<!--
<InputNumber
:max=
"59"
:min=
"1"
v-model=
"value1"
></InputNumber>
分钟
-->
</FormItem>
</FormItem>
</Col>
</Col>
...
@@ -104,27 +104,27 @@ export default {
...
@@ -104,27 +104,27 @@ export default {
userName
:
"张珊珊1"
,
userName
:
"张珊珊1"
,
cardNo
:
"08965481"
,
cardNo
:
"08965481"
,
id
:
1
id
:
1
},
},{
{
checked
:
false
,
checked
:
false
,
userName
:
"张珊珊2"
,
userName
:
"张珊珊2"
,
cardNo
:
"08965482"
,
cardNo
:
"08965482"
,
id
:
2
id
:
2
},
},
{
checked
:
false
,
userName
:
"张珊珊3"
,
cardNo
:
"08965483"
,
id
:
3
}
]
]
};
};
},
},
created
(){},
created
(){},
methods
:
{
methods
:
{
handleSubmit
()
{
handleSubmit
()
{
this
.
listMan
.
map
(
item
=>
{
if
(
item
.
checked
){
this
.
entity
.
cardNo
=
item
.
cardNo
}
})
console
.
log
(
this
.
entity
);
console
.
log
(
this
.
entity
);
this
.
$emit
(
"on-ok"
,
this
.
entity
);
this
.
$emit
(
"on-ok"
,
this
.
entity
);
this
.
showSelect
=
true
// this.entity={}
},
},
//单选框
//单选框
radioChange
(
val
)
{
radioChange
(
val
)
{
...
@@ -132,6 +132,12 @@ export default {
...
@@ -132,6 +132,12 @@ export default {
},
},
handleClose
()
{
handleClose
()
{
this
.
$emit
(
"on-close"
);
this
.
$emit
(
"on-close"
);
this
.
entity
=
{
cardNo
:
""
,
oldUserse
:
null
,
userse
:
null
,
workHour
:
1
,
}
},
},
checkItem
(
i
)
{
checkItem
(
i
)
{
if
(
this
.
userflag
){
if
(
this
.
userflag
){
...
@@ -153,10 +159,12 @@ export default {
...
@@ -153,10 +159,12 @@ export default {
});
});
oolist
.
map
(
u
=>
{
oolist
.
map
(
u
=>
{
if
(
u
.
checked
)
{
if
(
u
.
checked
)
{
this
.
entity
.
oldUserse
=
u
.
userName
;
this
.
entity
.
userName
=
u
.
userName
;
this
.
entity
.
userId
=
u
.
id
this
.
showSelect
=
false
this
.
showSelect
=
false
}
else
{
}
else
{
this
.
entity
.
oldUserse
=
''
;
this
.
entity
.
userName
=
''
;
this
.
entity
.
userId
=
''
}
}
});
});
if
(
oolist
.
length
==
0
){
if
(
oolist
.
length
==
0
){
...
@@ -165,15 +173,24 @@ export default {
...
@@ -165,15 +173,24 @@ export default {
},
},
// 选择新增人员
// 选择新增人员
changeUser
(
data
){
changeUser
(
data
){
console
.
log
(
data
)
// console.log(data)
let
alloterInfo
=
this
.
$refs
.
userSelected
.
getSelectItems
();
if
(
data
&&
data
!=
undefined
){
if
(
data
&&
data
!=
undefined
){
this
.
userflag
=
true
this
.
userflag
=
true
}
}
if
(
data
==
undefined
){
if
(
data
==
undefined
){
this
.
userflag
=
false
this
.
userflag
=
false
}
}
let
alloterInfo
=
this
.
$refs
.
userSelected
.
getSelectItems
();
// if (!userInfo || userInfo.length == 0) {
console
.
log
(
alloterInfo
)
// this.$Message.error("请选择人员!");
// return;
// }
// console.log(alloterInfo)
if
(
alloterInfo
.
length
>
0
){
this
.
entity
.
cardNo
=
alloterInfo
[
0
].
cardNo
this
.
entity
.
userName
=
alloterInfo
[
0
].
userName
this
.
entity
.
userId
=
alloterInfo
[
0
].
id
}
},
},
testChange
()
{
testChange
()
{
// 该方法在input内容改变是就会触发进行检测
// 该方法在input内容改变是就会触发进行检测
...
...
pages/produce/execute/taskTime/index.vue
View file @
9fd98ed7
<
template
>
<
template
>
<div
class=
"gs_set"
>
<div
class=
"gs_set"
>
<div
class=
"gs_top"
>
<div
class=
"gs_top"
>
<div
class=
"gs_top_box total_time"
>
<div
class=
"gs_top_box total_time"
>
<img
src=
"@/assets/imgicon/execute/time01.png"
alt=
""
/>
<img
src=
"@/assets/imgicon/execute/time01.png"
alt
/>
<!--
<Icon
type=
"ios-time"
/>
-->
<!--
<Icon
type=
"ios-time"
/>
-->
<div
class=
"gs_bo01"
>
<div
class=
"gs_bo01"
>
<span
class=
"shi"
>
总工时
</span>
<span
class=
"shi"
>
总工时
</span>
<span
class=
"number"
>
{{
allHours
}}
</span>
<span
class=
"number"
>
{{
allHours
}}
</span>
</div>
</div>
<Divider
type=
"vertical"
class=
"line_slit"
/>
<div
class=
"gs_top_box allocated"
>
<!--
<Icon
type=
"md-pie"
/>
-->
<img
src=
"@/assets/imgicon/execute/time02.png"
alt=
""
/>
<div
class=
"gs_bo01"
>
<span
class=
"shi"
>
待分配
</span>
<span
class=
"number"
>
{{
waitHours
}}
</span>
</div>
</div>
</div>
</div>
<div
class=
"gs_card_box"
>
</div>
<Card
class=
"gs_card"
v-for=
"(item,index) in cardMan"
:key=
"index"
>
<Divider
type=
"vertical"
class=
"line_slit"
/>
<p
slot=
"title"
class=
"gs_title"
>
<div
class=
"gs_top_box allocated"
>
{{
item
.
userName
}}
<!--
<Icon
type=
"md-pie"
/>
-->
<span
class=
"fr"
>
{{
item
.
cardNo
}}
</span>
<img
src=
"@/assets/imgicon/execute/time02.png"
alt
/>
</p>
<div
class=
"gs_bo01"
>
<!--
<p
class=
"gs_p"
>
所属车间:车间A
{{
i
}}
</p>
<span
class=
"shi"
>
待分配
</span>
<p
class=
"gs_p"
>
所属班组:班组B
{{
i
}}
</p>
-->
<span
class=
"number"
>
{{
waitHours
}}
</span>
<p
class=
"gs_time"
>
</div>
<span
class=
"b_size"
>
{{
item
.
workHour
}}
</span>
工时
</div>
</p>
</div>
<!--
<p
class=
"gs_p"
>
<div
class=
"gs_card_box"
>
<Card
class=
"gs_card"
v-for=
"(item,index) in cardMan"
:key=
"index"
>
<p
slot=
"title"
class=
"gs_title"
>
{{
item
.
userTitle
}}
<!--
<span
class=
"fr"
>
{{
item
.
cardNo
}}
</span>
-->
</p>
<!--
<p
class=
"gs_p"
>
所属车间:车间A
{{
i
}}
</p>
<p
class=
"gs_p"
>
所属班组:班组B
{{
i
}}
</p>
-->
<p
class=
"gs_time"
>
<span
class=
"b_size"
>
{{
item
.
workHour
}}
</span>
工时
</p>
<!--
<p
class=
"gs_p"
>
<span
class=
"b_size"
>
100
</span>
分
<span
class=
"b_size"
>
100
</span>
分
</p>
</p>
<p
class=
"gs_p"
>
<p
class=
"gs_p"
>
<span
class=
"b_size"
>
100
</span>
秒
<span
class=
"b_size"
>
100
</span>
秒
</p>
-->
</p>
-->
<p
class=
"gs_footer"
>
<p
class=
"gs_footer"
>
<!--
<a
class=
"gs_edit"
@
click=
"editItem"
>
<!--
<a
class=
"gs_edit"
@
click=
"editItem"
>
<Icon
type=
"md-create"
/>
<Icon
type=
"md-create"
/>
编辑
</a>
-->
编辑
</a>
-->
<a
class=
"gs_del"
@
click=
"delItem"
>
<a
class=
"gs_del"
@
click=
"delItem(item.id)"
>
<Icon
type=
"ios-trash-outline"
/>
<Icon
type=
"ios-trash-outline"
/>
删除
删除
</a>
</a>
</p>
</p>
</Card>
</Card>
<a
class=
"gs_card gs_add"
@
click=
"addItem"
>
<a
class=
"gs_card gs_add"
@
click=
"addItem"
v-show=
"this.allHours!=0"
>
<Icon
type=
"ios-add"
/>
<Icon
type=
"ios-add"
/>
</a>
</a>
</div>
<!-- 新增弹框 -->
<Modal
v-model=
"addmodal"
width=
'1100'
:mask-closable=
"false"
title=
"添加人员"
footer-hide
>
<addview
ref=
"addview"
@
on-close=
"cancel"
@
on-ok=
"addInfo"
></addview>
</Modal>
</div>
</div>
<!-- 新增弹框 -->
<Modal
v-model=
"addmodal"
width=
"1100"
:mask-closable=
"false"
title=
"添加人员"
footer-hide
>
<addview
ref=
"addview"
@
on-close=
"cancel"
@
on-ok=
"addInfo"
></addview>
</Modal>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
import
addview
from
"./add"
;
import
addview
from
"./add"
;
import
Api
from
"../api"
;
import
Api
from
"../api"
;
export
default
{
export
default
{
name
:
'starOrder'
,
name
:
"starOrder"
,
components
:
{
addview
,},
components
:
{
addview
},
data
(){
data
()
{
return
{
return
{
starmodal
:
false
,
starmodal
:
false
,
msg
:
'确认要删除吗?'
,
msg
:
"确认要删除吗?"
,
title
:
'删除确认'
,
title
:
"删除确认"
,
addmodal
:
false
,
addmodal
:
false
,
allHours
:
240
,
allHours
:
240
,
waitHours
:
200
,
waitHours
:
200
,
cardMan
:[
cardMan
:
[
// {
// {
// userName:"张三",
// userName:"张三",
// cardNo:123123,
// cardNo:123123,
// workHour:50,
// workHour:50,
// }
// }
]
]
};
},
created
()
{
// this.treeHeight = window.innerHeight - 120;
this
.
laodHorse
();
},
async
fetch
({
store
,
params
})
{
await
store
.
dispatch
(
"loadDictionary"
);
// 加载数据字典
},
mounted
()
{
window
.
onresize
=
()
=>
{
///浏览器窗口大小变化
return
(()
=>
{
this
.
treeHeight
=
window
.
innerHeight
-
120
;
})();
};
},
methods
:
{
laodHorse
()
{
let
parme
=
{
dispatchId
:
this
.
$route
.
query
.
id
,
routingDetailId
:
this
.
$route
.
query
.
routid
,
count
:
this
.
$route
.
query
.
quantity
};
Api
.
getallhours
(
parme
).
then
(
res
=>
{
if
(
res
.
result
)
{
this
.
allHours
=
res
.
result
.
allHours
;
this
.
waitHours
=
res
.
result
.
waitHours
;
this
.
$refs
.
addview
.
maxHour
=
this
.
waitHours
;
}
else
{
console
.
log
(
"获取失败。"
);
}
}
});
let
parm
=
{
conditions
:
[
{
fieldName
:
"dispatchId"
,
fieldValue
:
this
.
$route
.
query
.
id
,
conditionalType
:
"Equal"
}
]
};
Api
.
getentrylist
(
parm
).
then
(
rest
=>
{
if
(
rest
.
success
)
{
this
.
cardMan
=
rest
.
result
;
}
else
{
console
.
log
(
"获取失败。"
);
}
});
},
},
created
()
{
addItem
()
{
// this.treeHeight = window.innerHeight - 120;
// let aa=this.$refs.addview.$refs.userSelected.getSelectItems()
this
.
laodHorse
()
// console.log("1",aa)
},
// if(this.allHours==0){
async
fetch
({
store
,
params
})
{
// this.$Message.info("无工时分配...")
await
store
.
dispatch
(
"loadDictionary"
);
// 加载数据字典
// return
// }
this
.
addmodal
=
true
;
let
id
=
this
.
$route
.
query
.
id
;
Api
.
getentryusers
({
Id
:
id
}).
then
(
res
=>
{
let
result
=
res
.
result
;
result
.
map
(
u
=>
{
u
.
checked
=
false
;
});
this
.
$refs
.
addview
.
listMan
=
result
;
});
},
},
mounted
()
{
editItem
()
{
window
.
onresize
=
()
=>
{
this
.
$Message
.
success
(
"编辑工时..."
);
///浏览器窗口大小变化
return
(()
=>
{
this
.
treeHeight
=
window
.
innerHeight
-
120
;
})();
};
},
},
methods
:
{
delItem
(
itmid
)
{
laodHorse
(){
this
.
$Modal
.
confirm
({
let
parme
=
{
title
:
this
.
title
,
dispatchId
:
this
.
$route
.
query
.
id
,
content
:
"<p>"
+
this
.
msg
+
"</p>"
,
routingDetailId
:
this
.
$route
.
query
.
routid
,
onOk
:
()
=>
{
count
:
this
.
$route
.
query
.
quantity
Api
.
deletehours
(
itmid
).
then
(
res
=>
{
if
(
res
.
success
)
{
this
.
laodHorse
();
this
.
$Message
.
success
(
"工时已删除"
);
}
else
{
this
.
$Message
.
error
(
"删除失败..."
);
}
}
Api
.
getallhours
(
parme
).
then
(
res
=>
{
});
if
(
res
.
result
){
this
.
allHours
=
res
.
result
.
allHours
this
.
waitHours
=
res
.
result
.
waitHours
this
.
$refs
.
addview
.
maxHour
=
this
.
waitHours
}
else
{
console
.
log
(
"获取失败。"
)
}
})
},
addItem
(){
this
.
addmodal
=
true
let
id
=
this
.
$route
.
query
.
id
Api
.
getentryusers
({
Id
:
id
}).
then
(
res
=>
{
let
result
=
res
.
result
result
.
map
(
u
=>
{
u
.
checked
=
false
})
this
.
$refs
.
addview
.
listMan
=
result
})
},
editItem
(){
this
.
$Message
.
success
(
"编辑工时..."
)
},
delItem
(){
this
.
$Modal
.
confirm
({
title
:
this
.
title
,
content
:
"<p>"
+
this
.
msg
+
"</p>"
,
onOk
:
()
=>
{
this
.
$Message
.
success
(
"删除工时..."
)
}
});
},
cancel
(){
this
.
addmodal
=
false
},
addInfo
(
formdata
){
console
.
log
(
formdata
)
this
.
cardMan
.
push
(
formdata
)
// this.cardMan.userName = formdata.userse||formdata.oldUserse
// this.cardMan.cardNo = formdata.cardNo
// this.cardMan.workHour = formdata.workHour
console
.
log
(
this
.
cardMan
)
this
.
addmodal
=
false
}
}
});
},
},
}
cancel
()
{
this
.
addmodal
=
false
;
},
addInfo
(
formdata
)
{
let
parme
=
{
users
:
[
{
userTitle
:
formdata
.
userName
,
userId
:
formdata
.
userId
}
],
workHour
:
formdata
.
workHour
,
dispatchId
:
this
.
$route
.
query
.
id
,
routingDetailId
:
this
.
$route
.
query
.
routid
,
count
:
this
.
$route
.
query
.
quantity
};
Api
.
subcreatehours
(
parme
).
then
(
res
=>
{
if
(
res
.
success
)
{
this
.
laodHorse
();
this
.
addmodal
=
false
;
}
else
{
this
.
addmodal
=
true
;
}
});
}
}
};
</
script
>
</
script
>
pages/produce/orderlist.vue
View file @
9fd98ed7
...
@@ -6,23 +6,26 @@
...
@@ -6,23 +6,26 @@
ref=
"grid"
ref=
"grid"
:batch=
"false"
:batch=
"false"
:type=
"typeInfo"
:type=
"typeInfo"
:high=
"false"
:span=
"6"
:span=
"6"
:lazy=
"true"
:lazy=
"true"
:conditions=
"easySearch"
:conditions=
"easySearch"
:action=
"action"
:action=
"action"
:gutter=
"40"
:gutter=
"40"
:high=
"false"
>
>
<template
slot=
"easySearch"
>
<template
slot=
"easySearch"
>
<Form
ref=
"formInline"
:model=
"easySearch"
inline
>
<Form
ref=
"formInline"
:model=
"easySearch"
inline
>
<FormItem
prop=
"keys"
>
<FormItem
prop=
"keys"
>
<Input
placeholder=
"请输入订单编号/产品名称
"
v-model=
"easySearch.keys.value"
v-width=
"260"
/>
<Input
placeholder=
"请输入订单编号/产品名称
/图号"
v-model=
"easySearch.keys.value"
v-width=
"260"
clearable
/>
</FormItem>
</FormItem>
<FormItem>
<FormItem>
<Button
type=
"primary"
@
click=
"search"
>
查询
</Button>
<Button
type=
"primary"
@
click=
"search"
>
查询
</Button>
</FormItem>
</FormItem>
</Form>
</Form>
</
template
>
</
template
>
<
template
slot=
"searchForm"
>
<Search
/>
</
template
>
<
template
slot=
"buttons"
>
<
template
slot=
"buttons"
>
<Button
:icon=
"iconInfo"
shape=
"circle"
:title=
"titleInfo"
@
click=
"changeShwo"
></Button>
<Button
:icon=
"iconInfo"
shape=
"circle"
:title=
"titleInfo"
@
click=
"changeShwo"
></Button>
</
template
>
</
template
>
...
@@ -32,8 +35,12 @@
...
@@ -32,8 +35,12 @@
@
click=
"toExecute(row.id,row.orderId,row.executeId,row.routingHeaderId,row.routingDetailId,row.quantity,row.status)"
@
click=
"toExecute(row.id,row.orderId,row.executeId,row.routingHeaderId,row.routingDetailId,row.quantity,row.status)"
>
>
<Row
class=
"title-i"
>
<Row
class=
"title-i"
>
<Col
:span=
"10"
class=
"order-code"
>
{{
row
.
productName
}}
</Col>
<Col
:span=
"10"
class=
"order-code"
>
<Col
:span=
"10"
class=
"order-code"
>
{{
row
.
mesCode
}}
</Col>
<Ellipsis
:text=
"row.productName"
:lines=
"1"
tooltip
transfer
/>
</Col>
<Col
:span=
"10"
class=
"order-code"
>
<Ellipsis
:text=
"row.mesCode"
:lines=
"1"
tooltip
transfer
/>
</Col>
<Col
:span=
"4"
>
<Col
:span=
"4"
>
<div
class=
"sanjiao"
:style=
"tdStyle(row.status)"
></div>
<div
class=
"sanjiao"
:style=
"tdStyle(row.status)"
></div>
<div
class=
"box"
>
<div
class=
"box"
>
...
@@ -107,14 +114,18 @@
...
@@ -107,14 +114,18 @@
</template>
</template>
<
script
>
<
script
>
import
Api
from
"./api"
;
import
Api
from
"./api"
;
import
Search
from
"./search"
;
export
default
{
export
default
{
name
:
"starOrder"
,
name
:
"starOrder"
,
components
:
{
Search
,
},
data
()
{
data
()
{
return
{
return
{
action
:
Api
.
index
,
action
:
Api
.
index
,
easySearch
:
{
easySearch
:
{
keys
:
{
keys
:
{
op
:
"mesCode,productName"
,
op
:
"mesCode,productName
,drawnNumber
"
,
value
:
null
value
:
null
}
}
},
},
...
@@ -366,7 +377,7 @@ export default {
...
@@ -366,7 +377,7 @@ export default {
width: 0;
width: 0;
border-left: solid 50px transparent;
border-left: solid 50px transparent;
float: right;
float: right;
margin-right:-1px;
margin-right:
-1px;
}
}
.box {
.box {
color: white;
color: white;
...
...
pages/produce/search.vue
0 → 100644
View file @
9fd98ed7
<
template
>
<Form
ref=
"form"
:model=
"condition"
:label-width=
"100"
>
<Row>
<Col
:span=
"12"
v-if=
"condition.id.show"
>
<FormItem
:label=
"l('id')"
prop=
"id"
>
<Input
v-model=
"condition.id.value"
></Input>
</FormItem>
</Col>
<Col
:span=
"12"
v-if=
"condition.mesCode.show"
>
<FormItem
:label=
"l('mesCode')"
prop=
"mesCode"
>
<Input
v-model=
"condition.mesCode.value"
></Input>
</FormItem>
</Col>
<Col
:span=
"12"
v-if=
"condition.productName.show"
>
<FormItem
:label=
"l('productName')"
prop=
"productName"
>
<Input
v-model=
"condition.productName.value"
></Input>
</FormItem>
</Col>
<Col
:span=
"12"
v-if=
"condition.drawnNumber.show"
>
<FormItem
:label=
"l('drawnNumber')"
prop=
"drawnNumber"
>
<Input
v-model=
"condition.drawnNumber.value"
></Input>
</FormItem>
</Col>
<Col
:span=
"12"
v-if=
"condition.quantity.show"
>
<FormItem
:label=
"l('quantity')"
prop=
"quantity"
>
<Input
v-model=
"condition.quantity.value"
></Input>
</FormItem>
</Col>
<Col
:span=
"12"
v-if=
"condition.status.show"
>
<FormItem
:label=
"l('status')"
prop=
"status"
>
<Dictionary
code=
"taskList.status"
v-model=
"condition.status.value"
></Dictionary>
</FormItem>
</Col>
<Col
:span=
"12"
v-if=
"condition.beginTime.show"
>
<FormItem
:label=
"l('beginTime')"
prop=
"beginTime"
>
<DatePicker
type=
"daterange"
v-model=
"condition.beginTime.value"
></DatePicker>
</FormItem>
</Col>
<Col
:span=
"12"
v-if=
"condition.endTime.show"
>
<FormItem
:label=
"l('endTime')"
prop=
"endTime"
>
<DatePicker
type=
"endTime"
v-model=
"condition.endTime.value"
></DatePicker>
</FormItem>
</Col>
</Row>
</Form>
</
template
>
<
script
>
import
Api
from
"./api"
;
export
default
{
name
:
"Search"
,
data
()
{
return
{
condition
:
{
id
:
{
op
:
"Equal"
,
value
:
null
,
show
:
false
},
executeId
:
{
op
:
"Equal"
,
value
:
null
,
show
:
false
},
drawnNumber
:
{
op
:
"Equal"
,
value
:
null
,
show
:
true
},
mesCode
:
{
op
:
"Equal"
,
value
:
null
,
show
:
true
},
orderId
:
{
op
:
"Equal"
,
value
:
null
,
show
:
false
},
productId
:
{
op
:
"Equal"
,
value
:
null
,
show
:
false
},
productName
:
{
op
:
"Equal"
,
value
:
null
,
show
:
true
},
quantity
:
{
op
:
"Equal"
,
value
:
null
,
show
:
false
},
routingHeaderId
:
{
op
:
"Equal"
,
value
:
null
,
show
:
false
},
routingDetailId
:
{
op
:
"Equal"
,
value
:
null
,
show
:
false
},
status
:
{
op
:
"Equal"
,
value
:
null
,
show
:
true
},
beginTime
:
{
op
:
"Range"
,
value
:
null
,
show
:
false
},
endTime
:
{
op
:
"Range"
,
value
:
null
,
show
:
false
},
}
};
},
methods
:
{
handleClose
()
{
this
.
$emit
(
"on-close"
);
},
l
(
key
)
{
let
vkey
=
"order_list"
+
"."
+
key
;
return
this
.
$t
(
vkey
)
||
key
;
}
}
};
</
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